Skip to main content
POST
/
transactions
/
on-ramp
curl --request POST \
--url https://api.lumx.io/transactions/on-ramp \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rail": "PIX",
"sourceCurrency": "BRL",
"sourceAmount": "10000.00",
"targetCurrency": "USDC",
"purpose": "PERSONAL_ACCOUNT"
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "ON_RAMP",
"request": {
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rail": "PIX",
"sourceCurrency": "BRL",
"sourceAmount": "10000.00",
"targetCurrency": "USDC",
"purpose": "PERSONAL_ACCOUNT"
},
"state": {
"status": "AWAITING_FUNDS",
"payment": {
"rail": "PIX",
"brCode": "00020126580014br.gov.bcb.PIX0136123e4567-e89b-12d3-a456-4266141740005204000053039865802BR5915Test Merchant6009Sao Paulo62070503***63041234"
}
},
"createdAt": "2024-03-20T15:30:00Z",
"updatedAt": "2024-03-20T15:30:05Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header on the format Bearer <API_KEY>.

Body

application/json
  • Floating
  • Locked

On-ramp using floating exchange rate.

customerId
string<uuid>
required

Customer's unique identifier.

Example:

"3c90c3cc-0d44-4b50-8888-8dd25736052a"

rail
enum<string>
required

Exchange rate payment rail.

Available options:
PIX
Example:

"PIX"

sourceCurrency
enum<string>
required

Transaction's source currency.

Available options:
BRL,
USD,
EUR
Example:

"BRL"

sourceAmount
string
required

Transaction's source amount.

Example:

"10000.00"

targetCurrency
enum<string>
required

Transaction's target currency.

Available options:
USDC,
USDT
Example:

"USDC"

purpose
enum<string>
required

Transaction's purpose. Note that PERSONAL_ACCOUNT can only be used with SELF relationship bank accounts.

Available options:
PERSONAL_ACCOUNT,
INVESTMENT,
REAL_ESTATE,
TRADE_TRANSACTIONS,
TAX,
LOAN,
BILLS,
EXPENSES_REIMBURSEMENT,
PROFESSIONAL_SERVICES
Example:

"PERSONAL_ACCOUNT"

partnerFeeId
string<uuid>

Transaction's partner fee ID. If not provided, the default partner fee will be used.

Example:

"123e4567-e89b-12d3-a456-426614174004"

Response

202 - application/json

On-ramp transaction started successfully.

  • Floating
  • Locked
id
string<uuid>

On-ramp operation's unique identifier.

Example:

"123e4567-e89b-12d3-a456-426614174000"

customerId
string<uuid>

Customer's unique identifier.

Example:

"3c90c3cc-0d44-4b50-8888-8dd25736052a"

type
enum<string>

On-ramp operation's type.

Available options:
ON_RAMP
Example:

"ON_RAMP"

request
object
state
object

On-ramp operation's current state. See examples for more details.

createdAt
string<date-time>

Creation date and time (UTC).

Example:

"2024-03-20T15:30:00Z"

updatedAt
string<date-time>

Last update date and time (UTC).

Example:

"2024-03-20T15:30:05Z"