Mercuryo Spend Card API is a solution which allows to issue a Mercuryo virtual payment card for end-user. Once the Spend card is issued, it can be used when selling crypto for fiat money and withdrawing funds, as well as in POS and e-commerce transactions.
Before using the Sandbox
environment, prepare these:
The Sandbox
environment works with the following networks:
Testnet | Address | Supported Cryptocurrency |
---|---|---|
BTC Testnet | msBE6aCaAesegu4VzbQW3L5xWBL8vi15Q7 |
Bitcoin |
ETH Sepolia | 0xA14691F9f1F851bd0c20115Ec10B25FC174371DF |
Ethereum (ETH) and USDT |
Contact your integration manager. You will get the Sdk-Partner-Token
to sign up user registration and authorization endpoints to access API.
All the requests must contain:
application
/json
application
/json
Sandbox URL
https://sandbox-api.mrcr.io
.For the purpose of authentication and authorization each submitted request must contain one of two tokens:
Sdk-Partner-Token
- a token issued for a merchant and used when end-user is not yet authenticated (for sign-in requests).
Sdk-User-Token
- a token received as a result of sign-in process and used for all user-specific requrests.
The Sdk-User-Token
expires in 24 hours for the Production
environment. You can authorize the user again or refresh the token after that. The Sdk-User-Token
doesn’t expire in the Sandbox
environment.
Spend Cards API endpoints accept the B2B-User-Ip
header, and it is mandatory when Sdk-User-Token
is used for authorization. It must contain the real IP address of end-user.
For authentication of new and existing users, the same API and authorization processes are used. In case when a user with specified e-mail does not exist yet, their account will be created. Thus, here and below only sign-in process is described.
The user must accept the Terms of Service before signing up. You have to ask the user to agree to the Terms of Service on your front end. You will send user’s consent in the accept
parameter of POST /sdk-partner/user/sign-in-no-verify
or POST /sdk-partner/user/sign-in
.
For Sign-In request, Sdk-Partner-Token
header must be included. Mercuryo uses the header to identify the merchant/user context.
There are two scenarios for user sign-in. For both of them, user's e-mail is used as an identifier. Please check with your integration manager which scenario you can use.
This scenario assumes that a merchant validates user's e-mail and identity, and no additional authentication is required to access Spend Card API.
Sdk-Partner-Token
, which is required for the following authentication endpoints.POST /sdk-partner/user/sign-in-no-verify
to sign-in a user without OTP e-mail verification.GET /sdk-partner/user/refresh-token
to refresh the Sdk-User-Token
, if needed.After user's successful authentication, 1) KYC verification and then 2) phone number specifying are required.
In the following scenario, a user must enter OTP submitted to their e-mail.
Sdk-Partner-Token
, which is required for the following authentication endpoints.POST /sdk-partner/user/sign-in
to start authentication process, providing user's e-mail. As the result, OTP will be sent to the user in case of success.POST /sdk-partner/user/sign-in/verify
to submit OTP, entered by the user.POST /sdk-partner/user/sign-in/verify/resend
.GET /sdk-partner/user/refresh-token
to refresh the Sdk-User-Token
, if needed.After user's successful authentication, 1) KYC verification and then 2) phone number specifying are required.
POST /sdk-partner/user/sign-out
to sign-out a user.Sdk-User-Token
is deactivated. After signing out, authorization does not work with the same Sdk-User-Token
.
Know Your Customer (KYC) procedures are indispensable for financial institutions to verify their clients and keep business on the safe side.
KYC procedures help Mercuryo fight financial crime. Therefore, it prevents mixing your users’ funds with illegal funds of bad actors and perpetrators of any sort. Identity verification is a legal obligation to be compliant with AML/CFT laws. Mercuryo is strongly committed to the highest industry standards of clients' security, which requires protecting the integrity of the entire financial system.
SumSub is the major KYC procedure provider of Mercuryo.
Note: Please be aware that there must be only one e-mail address per user. That is, if the existing user (who is already registered and passed the KYC procedure with one e-mail address) registers with another e-mail address and provides the same documents to pass the KYC procedure, this user will receive the KYC refusal under the new e-mail. Thus, e-mail address used in user registration must be wisely chosen.
The list of required documents depends on the end-user's country of citizenship:
*- ID card is not accepted for UK citizens.
These documents can be acceptable identity verification:
The document must have:
Meet these requirements:
We do not accept bank statements from neobanks.
These documents can be acceptable proof of address:
The document must have:
Meet these requirements:
There are two options of how KYC procedure can be implemented:
Contact your integration manager if you have any questions regarding KYC procedures.
This KYC integration option is used to let a user upload documents for verification to SumSub directly.
If you don’t implement any KYC procedures, we provide the SumSub interface to do KYC verification directly in Mercuryo.
URL example: https://sandbox-payments.mrcr.io/kyc?access_token=your_token&success_url=url&failure_url=url&scheme=your_scheme&lang=lang_code
.
Parameter | Description | Type |
---|---|---|
access_token | Get the access token using GET /sdk-partner/kyc/access-token . |
Required |
success_url | URL-encoded JSON. Example: https://mercuryo.success.com. | Required |
failure_url | URL-encoded JSON. Example: https://mercuryo.failure.com. | Required |
scheme | Light or Dark appearance. | Optional |
lang | The language is English by default. Supported languages: English, Chinese, Russian, French, Hindi, Indonesian, Japanese, Korean, Portuguese, Spanish, Turkish, Vietnamese. | Optional |
If redirect parameters are missing, the user won’t be redirected. status
and msg
parameters will be appended to failure_url
. status: back
if user clicks the back button. status: fail
if you get an error.
GET /sdk-partner/user/kyc-status
to get the KYC status. We can identify a user whom you registered by the e-mail if we already have it:status
is complete
, then that’s it.GET /sdk-partner/kyc/access-token
to get the KYC access token.Production
environment URL example: https://payments.mercuryo.io/kyc?access_token=your_token8&success_url=url&failure_url=url&scheme=your_scheme&lang=lang_code.Sandbox
environment URL example: https://sandbox-payments.mrcr.io/kyc?access_token=your_token&success_url=url&failure_url=url&scheme=your_scheme&lang=lang_code.Sandbox
, upload the documents and contact Mercuryo to approve the documents.GET /sdk-partner/user/kyc-status
to get the status
parameter.complete
: KYC procedures are successfully complete.incomplete
: SumSub hasn’t started the verification.failed_attempt
: the first attempt to pass the verification failed. Try again.failed
: the verification failed; the user isn’t allowed to open a Spend card. Contact Mercuryo Support.under_review
: SumSub is verifying the documents.This scenario assumes that a merchant validates user's phone number, and no additional validation is required.
POST /sdk-partner/user/set-phone-no-verify
to submit user's phone number.Opening a Spend card with an empty balance.
The end-user must 1) be signed in, 2) successfully complete KYC procedures (valid KYC), and 3) have a mobile phone number specified.
If something is not verified, you need to restart the authorization flow, or use GET /sdk-partner/user/contacts
to check whether a user has a phone set. If needed, use GET /sdk-partner/user/kyc-status
to check user’s verification. Please note that these endpoints are needed only if you want to check everything in advance before the transaction. You can try to open a card without doing these checks and focus on errors in the response of the POST /sdk-partner/spend/cards/open
endpoint.
There can be only one Spend card per end-user (within all partners or within one partner depending on the pricing model).
Currently, only EUR can be used as currency.
POST /sdk-partner/spend/cards/open
to open a Spend card with an empty balance.card_id
parameter.GET /sdk-partner/spend/cards/status
to check the status of card. After opening, the card will be in the active
status.GET /sdk-partner/spend/cards/transactions
to get the list of card transactions.GET /sdk-partner/spend/cards/balance
to get card balance.POST /sdk-partner/spend/cards/iframe/init
and display response of that URL in an iFrame.Once the Mercuryo Spend card is issued, it can be used when selling crypto for fiat money and withdrawing funds, as well as in POS and e-commerce transactions.
Opening a Spend card with instant topup by selling crypto for fiat money.
The end-user must 1) be signed in, 2) successfully complete KYC procedures (valid KYC), and 3) have a mobile phone number specified.
If something is not verified, you need to restart the authorization flow, or use GET /sdk-partner/user/contacts
to check whether a user has a phone set. If needed, use GET /sdk-partner/user/kyc-status
to check user’s verification. Please note that these endpoints are needed only if you want to check everything in advance before the transaction. You can try to open a card without doing these checks and focus on errors in the response of the POST /sdk-partner/spend/cards/open-off-ramp
endpoint.
There can be only one Spend card per end-user (within all partners or within one partner depending on the pricing model).
Currently, only EUR can be used as currency.
If needed, you can check user limits before the transaction. Mercuryo won’t complete the transaction when beyond the limit. Use GET /sdk-partner/user/limits/spend
, if you want to get limit details separately.
GET /sdk-partner/spend/cards/rates/open
to get rates.trx_token
.trx_token
expires in one hour.POST /sdk-partner/spend/cards/open-off-ramp
to start a transaction so that the user can confirm it and perform transfer in order to open a Spend card with instant topup.GET /sdk-partner/spend/cards/sell-request/{id}/status
to check the status of created sell request. GET /sdk-partner/spend/cards/status
to check the status of card.GET /sdk-partner/spend/cards/transactions
to get the list of card transactions.GET /sdk-partner/spend/cards/balance
to get card balance.POST /sdk-partner/spend/cards/iframe/init
and display response of that URL in an iFrame.Once the Mercuryo Spend card is issued, it can be used when selling crypto for fiat money and withdrawing funds, as well as in POS and e-commerce transactions.
Replenishing a Spend card.
The end-user must 1) be signed in, 2) successfully complete KYC procedures (valid KYC), and 3) have a mobile phone number specified.
If needed, use GET /sdk-partner/user/kyc-status
to check user’s verification. Please note that this endpoint is needed only if you want to check KYC status in advance before the transaction. You can try to topup a card without doing this check and focus on errors in the response of the POST /sdk-partner/spend/cards/crypto-topup
endpoint.
If needed, you can check user limits before the transaction. Mercuryo won’t complete the transaction when beyond the limit. Use GET /sdk-partner/user/limits/spend
, if you want to get limit details separately.
GET /sdk-partner/spend/cards/rates/crypto-topup
to get rates.trx_token
.trx_token
expires in one hour.POST /sdk-partner/spend/cards/crypto-topup
to replenish a Spend card.GET /sdk-partner/spend/cards/sell-request/{id}/status
to check the status of created sell request.GET /sdk-partner/spend/cards/transactions
to get the list of card transactions.GET /sdk-partner/spend/cards/balance
to get card balance.Viewing card's details.
GET /sdk-partner/spend/cards/status
to check the status of card.GET /sdk-partner/spend/cards/masked
to get masked card data.GET /sdk-partner/spend/cards/balance
to get card balance.GET /sdk-partner/spend/cards/transactions
to get the list of card transactions.POST /sdk-partner/spend/cards/iframe/init
and display response of that URL in an iFrame.Freezing a card.
POST /sdk-partner/spend/cards/lock
to lock the card.When the card is locked, you can still perform the following actions: unlock the card, reissue a new card, and view the transaction history.
Unlocking a card.
POST /sdk-partner/spend/cards/unlock
to unlock the card.Once the card is unlocked, the funds will be transferred to it.
Replacing the card with a new one.
To reissue a card, you must first block the current card. The remaining balance on the blocked card will be saved and transferred to a new card. The new card will have different card details from the blocked one.
POST /sdk-partner/spend/cards/replace
to replace the card with a new one.Mercuryo sends callbacks when the transaction status changes. Set up a callback URL to receive callbacks.
Callback URL
.Go to Widget Callbacks to browse callbacks, resend a callback, and send a test callback.
{
"data":{
"id":"0ab3f70c72c0f5056",
"fee":"11.80",
"card":{
"number":"1111"
},
"rate":"25756.99",
"type":"buy",
"user":{
"email":"sf@mercuryo.io",
"phone":"+3570000000",
"uuid4":"b5086805-4b83-4415-8a00-5c1ad43210b6",
"country_code":"de"
},
"amount":"0.00148310",
"status":"paid",
"currency":"BTC",
"created_at":"2023-09-07 07:32:33",
"updated_at":"2023-09-07 07:32:46",
"fiat_amount":"50.00",
"partner_fee":"0.00",
"created_at_ts":1694071953,
"fiat_currency":"USD",
"updated_at_ts":1694071966,
"payment_method":"card",
"card_masked_pan":null,
"merchant_transaction_id":"123"
}
}
The sign key is used for checking the callback signature. When the transaction status changes, the merchant receives a request with transaction data from Mercuryo. If you use callbacks, you can set up the signature check.
You can check the signature by generating a hash with the HMAC sha256 algorithm and a key from the Sign Key field in the Dashboard. Check the X-Signature
HTTP header against the generated hash.
Re-registering a new email address is only possible through our Customer Support. If the user logs in with the new email and attempts to complete KYC, an error will occur indicating that the user is already registered and must use the old account. The error code 403082: KYC is already completed
will be returned by the GET /sdk-partner/user/kyc-status
endpoint.
No, ATM withdrawals are not possible.
Please see the limites here. No, there are no limits adjustable by a user.
No, the transaction will only be visible after the funds have been credited to the card.
Users can initiate multiple top-up transactions in succession, provided each transaction involves different amounts and/or different cryptocurrencies or networks. However, if a user attempts to send the same amount of funds in the same cryptocurrency at the same time, it may cause issues with transfer.
Get KYC access token
OK
Error codes:
* 400001: Validation error, check the data field;
* 400062: Cannot get KYC access token. Check the message field;
401000: Authorization failed
Error codes:
* 403082: KYC is already completed;
* 403020: IP is blacklisted;
* 403026: Resource is unavailable. Please contact support;
405000: Method Not Allowed
500001: Various reasons, check the message field
{- "data": {
- "applicant_id": "6315bcb2647ada0001823025",
- "kyc_access_token": "_act-ca4dae41-0ecd-468d-86e2-02d5ca697b8d"
}, - "status": "200"
}
Get spend card balance
OK
Error codes:
* 400210: Invalid card status;
Forbidden
404000: No open card found
Internal server error
{- "data": {
- "fiat_amount": "90.00",
- "fiat_currency": "EUR"
}, - "status": "200"
}
Lock spend card
OK
Error codes:
* 400001: Validation error, check the data field;
* 400085: Failed to lock card.;
Forbidden
Not found
Internal server error
{- "status": "200"
}
Get masked card data
OK
Forbidden
404000: No open card found
Internal server error
{- "data": {
- "created_at": "2023-09-10 16:14:26",
- "expiration_month": "02",
- "expiration_year": "2032",
- "number": "************1234",
- "status": "active"
}, - "status": "200"
}
Change card pin
OK
Error codes:
* 400210: Invalid card status;
Error codes:
* 403030: API is not available by partner settings;
404000: No open card found
Internal server error
{- "data": {
- "pin": "0000"
}, - "status": "200"
}
Replace spend card with a new one
OK
Error codes:
* 400001: Validation error, check the data field;
* 400088: Failed to replace card; Unable to process request now; Wrong card;
* 400251: KYC is not completed. See response data for more details;
Forbidden
Internal server error
{- "status": "200"
}
List spend card transactions
OK
Error codes:
* 400001: Validation error, check the data field;
* 400086: Failed to get transactions.;
Forbidden
Not found
Internal server error
{- "data": {
- "items": [
- {
- "amount": "30.06",
- "counterparty_name": "John Doe",
- "currency": "EUR",
- "status": "CLEARED",
- "timestamp": "2024-02-27T13:37:15Z",
- "type": "TOP_UP"
}, - {
- "amount": "56.26",
- "counterparty_name": "Jane Doe",
- "currency": "EUR",
- "status": "CLEARED",
- "timestamp": "2024-02-27T11:49:13Z",
- "type": "TOP_UP"
}
], - "pagination": {
- "limit": 1,
- "next_cursor": "eyfsgf2ZWVrSWQiOjEwLCJzZWVrVGltZXN0YW1wIjoiMjAyNC0wMi0yMlQxMTo1MTowOVoifQ"
}
}, - "status": "200"
}
Unlock spend card
OK
Error codes:
* 400001: Validation error, check the data field;
* 400086: Failed to unlock card.; Wrong card.;
* 400251: KYC is not completed. See response data for more details;
Forbidden
Not found
Internal server error
{- "status": "200"
}
Topup spend card using crypto deposit
JSON Body
address required | string Address for returning cryptocurrency in case of an error in the transaction |
merchant_transaction_id | string Custom ID for checking transaction status. If empty, it will be generated. |
trx_token required | string Token returned by |
OK
Error codes:
* 400000: Antifraud error. Cannot check, try again later; Service is temporarily unavailable. Please try again later.;
* 400001: Validation error, check the data field;
* 400004: Token is already used;
* 400007: Antifraud error. Amount off limits;
* 400087: Operation is currently unavailable.;
* 400251: KYC is required, details in data field.;
* 400201: Card is not available.;
401000: Authorization failed
Error codes:
* 403007: There's another active transaction;
* 403020: IP is blacklisted;
* 403026: Resource is unavailable. Please contact support;
404000: No open card found
405000: Method Not Allowed
500001: Various reasons, check the message field
{- "address": "string",
- "merchant_transaction_id": "string",
- "trx_token": "string"
}
{- "data": {
- "deposit_address": "bc1qfc6h7pgn204qystwmkgh2c2t3e8ewekgeuulp3",
- "merchant_transaction_id": "00357ec76de855485",
- "sell_request_id": "0b9ace44536d91078"
}, - "status": "200"
}
Open a spend card with an empty balance
OK
Error codes:
* 400000: Antifraud error. Cannot check, try again later;
* 400001: Validation error, check the data field;
* 400251: KYC is required, details in data field.
* 400252: Phone is required.;
401000: Authorization failed
Error codes:
* 403007: There's another active transaction;
* 403020: IP is blacklisted;
* 403026: Resource is unavailable. Please contact support;
405000: Method Not Allowed
500001: Various reasons, check the message field
{- "fiat_currency": "EUR"
}
{- "data": {
- "id": "0b74e9bb7576c5355"
}, - "status": "200"
}
Get sdk partner topup with crypto rates
OK
401000: Authorization failed
Error codes:
* 403020: IP is blacklisted;
405000: Method Not Allowed
500001: Various reasons, check the message field
{- "data": {
- "amount": "0.02000000",
- "currency": "BTC",
- "fee": {
- "BTC": "0.00075999",
- "EUR": "17.09"
}, - "fiat_amount": "432.50",
- "fiat_currency": "EUR",
- "rate": "22478.7000000000",
- "subtotal": {
- "BTC": "0.01924001",
- "EUR": "432.50"
}, - "total": {
- "BTC": "0.02000000",
- "EUR": "449.59"
}, - "trx_token": "4ae0bdd7f4ea2f9ac1f54a6ca21685f324d11479f9040305dec90899f4dbe154eyJ0IjoxNj\n * U4OTk4NDI0LCJjIjoiQlRDIiwiYSI6IjAuMDIwMDAwMDAiLCJmYyI6IkVVUiIsImZhIjoiNDMyLjUwIiwiZiI6IjE3LjA5IiwiciI6Ij\n * IyNDc4LjcwMDAwMDAwMDAiLCJjaWQiOiJlZWI5MTVkNDRjNzU0YjdkYzhiNGI1NDkxMTY5ZGU5NiIsIm9wIjoic2VsbCIsInB0IjpudW\n * xsLCJwYSI6ImNhcmQiLCJ0dCI6dHJ1ZSwidGYiOiIwIiwidyI6ImRjMDNmYjUyLWEwNTgtNDhlMS1hMjJmLWMyYjA3NDRkNmU4MiIsIn\n * NmIjoiMTcuMDkifQ=="
}, - "status": "200"
}
Check status of created sell request
OK
Error codes:
* 400064: User not found by token;
401000: Authorization failed
Error codes:
* 403020: IP is blacklisted;
* 403026: Resource is unavailable. Please contact support;
405000: Method Not Allowed
500001: Various reasons, check the message field
{- "data": {
- "address": "2MufWTNoq71xwFU8enzfeYpmywhQt4katpm",
- "amounts": {
- "request": {
- "amount": "0.00400000",
- "currency": "BTC",
- "fiat_amount": "95.38",
- "fiat_currency": "EUR"
}
}, - "card_id": "0a56a5796e6056355",
- "deposit_transaction": [ ],
- "status": "pending"
}, - "status": "200"
}
Init Iframe to show card details
OK
400000: Bad requests
401000: Authorization failed
Error codes:
* 403020: IP is blacklisted;
404000: User has no open cards
405000: Method Not Allowed
500000: Various reasons, check the message field
{- "data": {
- "init_token": "0a66a2a7a05792379",
}, - "status": "200"
}
Save user birthday date
OK
Error codes:
* 400064: User not found by token;
* 400240: Birthday is already set;
401000: Authorization failed
Error codes:
* 403020: IP is blacklisted;
* 403026: Resource is unavailable. Please contact support;
405000: Method Not Allowed
500001: Various reasons, check the message field
{- "birthday": "1995-05-25"
}
{- "data": { },
- "status": "201"
}
Get user contacts
OK
Error codes:
* 400064: User not found by token;
401000: Authorization failed
Error codes:
* 403020: IP is blacklisted;
* 403026: Resource is unavailable. Please contact support;
405000: Method Not Allowed
500001: Various reasons, check the message field
{- "data": {
- "email": "user@email.com",
- "email_status": "confirmed",
- "is_billing_address_set": true,
- "is_birthday_set": true,
- "phone": "+35799339993",
- "phone_status": "confirmed"
}, - "status": "200"
}
Get user KYC statuses
OK
Error codes:
* 400064: User not found by token;
401000: Authorization failed
Error codes:
* 403020: IP is blacklisted;
* 403026: Resource is unavailable. Please contact support;
405000: Method Not Allowed
500001: Various reasons, check the message field
{- "data": {
- "features": [
- {
- "feature": "crypto",
- "status": "incomplete"
}, - {
- "feature": "card",
- "status": "incomplete"
}
]
}, - "status": "200"
}
Get user limits for spend products operation
OK
401000: Authorization failed
Error codes:
* 403020: IP is blacklisted;
405000: Method Not Allowed
500001: Various reasons, check the message field
{- "data": {
- "cards": {
- "crypto_topup": {
- "BTC": {
- "max": {
- "remain": "0.01630379",
- "total": "0.01630379"
}, - "min": {
- "remain": "0.0003",
- "total": "0.0003"
}
}, - "EUR": {
- "max": {
- "remain": "1500",
- "total": "1500"
}, - "min": {
- "remain": "25.70",
- "total": "25.70"
}
}
}
}
}, - "status": "200"
}
Refresh bearer token
OK
Error codes:
* 400014: Empty widget error. Contact your account manager;
* 400064: User not found by token;
401000: Authorization failed
Error codes:
* 403020: IP is blacklisted;
* 403026: Resource is unavailable. Please contact support;
405000: Method Not Allowed
500001: Various reasons, check the message field
{- "data": {
- "bearer_token": "06c6587c7c4257195crsGTnPPK_9vKoNAU23-u-ja9XJdjjYBc6Vc9c_L0T9R-yq",
- "timeout": 86400,
- "user_uuid": "044ef633-d20b-4e4f-a011-7f3378334cd1"
}, - "status": "200"
}
Sign-up/Sign-in user with OTP verification
OK
401000: Authorization failed
Error codes:
* 403007: There's another active transaction;
* 403020: IP is blacklisted;
405000: Method Not Allowed
Internal server error
{- "accept": "true",
- "email": "someemail@gmail.com"
}
{- "data": {
- "code_length": 5,
- "key": "6a5555a814aeb10c19e0e79c3d82f18c0ad385a34b341175b9b2818b10cf6e64YXV0aGVudGljYXRpb24=qe_1ZM_1v7lnHmfxjohPmn5qUjYppTBC",
- "next": "email-verify",
- "timeout": 20
}, - "status": "200"
}
Sign-up/Sign-in user without OTP verification
OK
401000: Authorization failed
Error codes:
* 403007: There's another active transaction;
* 403009: User account is locked;
* 403020: IP is blacklisted;
* 403030: Forbidden;
405000: Method Not Allowed
Internal server error
{- "accept": true,
- "email": "someemail@gmail.com"
}
{- "data": {
- "bearer_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJkZXYubG9jYWwiLCJpYXQiOjE2NDkxMDAxNjIsImp0aSI6ImZCc2NUYnhlYXBteG9hMzc1WU9pajBtQXNVb045VFRoRWF3ZGFQYWxcL1g0PSIsIm5iZiI6MTY0OTEwMDE2NywiZGF0YSI6eyJ1c2VyX2lkIjoyMywiYWRkaXRpb25hbCI6eyJ3aWRnZXRfaWQiOiJkNWE0OGQ2My1mNWRlLTQ5OGEtYjM4OC02NDE2NjJkYjg2NmMiLCJleGNoYW5nZV9wYXJ0bmVyX2lkIjoxLCJzZGtfcGFydG5lcl9pZCI6MSwicHJvZHVjdCI6ImNvbW1fYXBpIn19fQ.AN8TxPN6tmxfcpTrp_FSWiCXvjqWwRg4oUMgWPFIg08",
- "user_uuid": "3292c753-6809-492a-9acd-1ccdbf2fa91e"
}, - "status": "200"
}
Verify email with OTP code
OK
Error codes:
* 400001: Validation error;
401000: Authorization failed
* 401004: Verification key is invalid.;
Error codes:
* 403007: There's another active transaction;
* 403020: IP is blacklisted;
* 403042: Some error during verification, pelase read message;
405000: Method Not Allowed
500001: Various reasons, check the message field
{- "code": "73172",
- "key": "6a5555a814aeb10c19e0e79c3d82f18c0ad385a34b341175b9b2818b10cf6e64YXV0aGVudGljYXRpb24=qe_1ZM_1v7lnHmfxjohPmn5qUjYppTBC"
}
{- "data": {
- "bearer_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJtcmNyLmlvIiwiaWF0IjoxNjg5MDA0MDUzLCJqdGkiOiJhZUpCNnhVekYvbjlhSlhOQWc1bWljTEtZM2ZNOEx4MDJpYW9SUjNjRVdBPSIsIm5iZiI6MTY4OTAwNDAyMywiZGF0YSI6eyJ1c2VyX2lkIjo0MDMyLCJhZGRpdGlvbmFsIjp7IndpZGdldF9pZCI6IjQ5YmI4YTQ4LTY1NTAtNDc5OS05NTRlLThhOTBhNzU3YzY3YiIsImV4Y2hhbmdlX3BhcnRuZXJfaWQiOjgwLCJzZGtfcGFydG5lcl9pZCI6MTksInByb2R1Y3QiOiJzYWFzIn19fQ.MwX-EeGXHR2Jw4IIxw4Ovc3ZlAwzH3NAqUb26QQVKmM",
- "user_uuid": "3292c753-6809-492a-9acd-1ccdbf2fa91e"
}, - "status": "200"
}
Resend verification token for sign-in
OK
Error codes:
* 400001: Validation error;
401000: Authorization failed
* 401004: Verification key is invalid.;
Error codes:
* 403007: There's another active transaction;
* 403020: IP is blacklisted;
405000: Method Not Allowed
500001: Various reasons, check the message field
{- "key": "6a5555a814aeb10c19e0e79c3d82f18c0ad385a34b341175b9b2818b10cf6e64YXV0aGVudGljYXRpb24=qe_1ZM_1v7lnHmfxjohPmn5qUjYppTBC"
}
{- "data": {
- "code_length": 5,
- "key": "6a5555a814aeb10c19e0e79c3d82f18c0ad385a34b341175b9b2818b10cf6e64YXV0aGVudGljYXRpb24=qe_1ZM_1v7lnHmfxjohPmn5qUjYppTBC",
- "next": "email-verify",
- "timeout": 20
}, - "status": "200"
}
Sign out
OK
401000: Authorization failed
Error codes:
* 403007: There's another active transaction;
* 403020: IP is blacklisted;
405000: Method Not Allowed
500001: Various reasons, check the message field
{- "status": "200"
}
Set user phone without OTP verification unless it is already set.
OK
Error codes:
* 400001: Validation error, check the data field;
* 400090: User phone has already been set;
401000: Authorization failed
Error codes:
* 403007: There's another active transaction;
* 403020: IP is blacklisted;
405000: Method Not Allowed
Internal server error
{- "phone": "+1234567890"
}
{- "status": "200"
}