Creating a onramp order
Create Order
- POST
/v2/order/deposit
curl --request POST \
--url https://sandbox-api.transfi.com/v2/orders/deposit \
--header 'accept: application/json' \
--header 'authorization: Basic dHJhbnNmaV9xYTo=' \
--header 'content-type: application/json' \
--data '
{
"paymentType": "bank_transfer",
"purposeCode": "expense_or_medical_reimbursement",
"amount": 100,
"country": "BR",
"currency": "EUR",
"email": "[email protected]",
"firstName": "John",
"lastName": "Doe",
"redirectUrl": "https://www.transfi.com",
"sourceUrl": "https://transfi.com",
"withdrawDetails": {
"cryptoTicker": "USDC",
"walletAddress": "0xcf2888157e35d8595cba5abd7970f94a43f0d2d2"
}
}
'
{
"orderId": "OR-250428100239802",
"paymentUrl": "https://sandbox-pay-widget.transfi.com/pay?paytoken=547930e4-a87d-485c-9528-ccaee204b41",
"partnerContext": {},
"redirectUrl": "https://www.transfi.com"
}
We received a paymentURL in the response that will take users to TransFi hosted checkout page.
Complete the payment
- TransFi hosted page without passing payment_code & payment_type

TransFi hosted page without passing payment_code & payment_type

TransFi hosted page after passing payment_code & payment_type
Updated 2 days ago