POST
/
transactions
/
on-ramp
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"
  }
}'
{
  "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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header on the format Bearer <API_KEY>.

Body

application/json

On-ramp using floating exchange rate.

Response

202 - application/json
On-ramp transaction started successfully.

The response is of type object.