Logo
100PAY API Documentation

Crypto price conversion

POST https://api.100pay.co/api/v1/pay/crypto/convert

Performs a currency conversion with respect to Customer's local currency (using official CMC rates), and returns the Crypto-equivalent.

Failure to call this endpoint with the required fields will result in a permanent loss of all funds sent to the generated address.

Request Body

Field Attributes Type Description
wallet wallet.symbol


wallet.convertid_


wallet.chart
string


string


string
Selected Crypto token

randomly-generated ID assigned to the conversion

Must be "cmc" (CoinMarketCap)
local local.amount


local.currency
string


string
amount worth of token to be paid

currency worth of token to be paid
_id string a uniquely-generated deposit ID included in the response body returned by Address generation endpoint
network string a blockchain network via which deposits could be tracked and confirmed.
Currently supports only "bsc"

Response Body

Field Type Description
amount integer Crypto-equivalent
cuurency string Crypto token

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "amount": 9996.864941116186, "currency": "USDT" }



Curl
curl -X POST 'https://api.100pay.co/api/v1/pay/crypto/convert' -d '{"wallet":{"symbol":"USDT","convert_id":"825","chart":"cmc"},"local":{"amount":"10000","currency":"USD"},"_id":"66c27a76ca9387009120acc3","network":"bsc"}'

ENDPOINTS