Bembit's Offramp endpoint.
Sell your Cryptos and receive via PIX.
In order to sell your TOKENS and receive your money via PIX using our API, it's required to send a POST request with the following specifications:
URL
https://api.bembit.com/api/v1/orders/swap/crypto-to-fiat
Method
POST
Params
Note
The params being passed to this request must be sent via headers altogether with the request body.
Param | Type | Default value | Description |
---|---|---|---|
api | string | undefined | API Key obtained via Dashboard or API. |
secret | string | undefined | Secret obtained via Dashboard or API. |
cURL
curl -X 'POST' \
'https://api.bembit.com/api/v1/orders/swap/crypto-to-fiat' \
-H 'accept: */*' \
-H 'api: [Your API key]' \
-H 'secret: [Your Secret]' \
-H 'Content-Type: application/json' \
-d '{
"amount": number,
"currency": string,
"network": number
}'
Request Body:
{
"amount": number,
"currency": string,
"network": number
}
- amount: Quantity of tokens being sold.
- currency: token symbol.
- network: Blockchain ID number.
Server Responses:
Status 200:
Success
Status 403:
Unauthorized
Status 404:
Unable to do swap
Veja em execução em nosso Swagger.