curl --request POST \
--url https://api.lumx.io/transactions/off-ramp \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"customerId": "123e4567-e89b-12d3-a456-426614174000",
"sourceCurrency": "USDC",
"sourceAmount": "10000.00",
"targetCurrency": "BRL",
"payment": {
"rail": "pix",
"keyType": "cpf",
"keyValue": "123.456.789-00"
},
"partnerFeeId": "123e4567-e89b-12d3-a456-426614174004"
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "off_ramp",
"request": {
"sourceCurrency": "USDC",
"targetCurrency": "BRL",
"amount": "10000.00",
"payment": {
"rail": "pix",
"keyType": "cpf",
"keyValue": "123.456.789-00"
}
},
"state": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
This endpoint converts stablecoins to fiat.
curl --request POST \
--url https://api.lumx.io/transactions/off-ramp \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"customerId": "123e4567-e89b-12d3-a456-426614174000",
"sourceCurrency": "USDC",
"sourceAmount": "10000.00",
"targetCurrency": "BRL",
"payment": {
"rail": "pix",
"keyType": "cpf",
"keyValue": "123.456.789-00"
},
"partnerFeeId": "123e4567-e89b-12d3-a456-426614174004"
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "off_ramp",
"request": {
"sourceCurrency": "USDC",
"targetCurrency": "BRL",
"amount": "10000.00",
"payment": {
"rail": "pix",
"keyType": "cpf",
"keyValue": "123.456.789-00"
}
},
"state": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Bearer authentication header on the format Bearer <API_KEY>
.
Off-ramp using floating exchange rate.
Off-ramp transaction started successfully.
The response is of type object
.