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