v1

latestOpenAPI 3.1.0Proprietary2026-07-24462215.9 KB
Orders

Create Order

Create a new order (onramp, offramp, payin, payout, prefund, swap).

post/v3/orders

Headers

MIDstring required

Merchant or sub-merchant MID

Request body

partnerIdstring

Optional; This field can be used to reference your own transaction Id with TransFi's order Id.

userIdstring

Required for onramp, offramp, payin, payout, swap, gaming. For offramp, this field must be omitted when using the user-user (third-party) flow — in that case, provide source.userId and destination.userId instead.

invoiceIdstring

Can be obtained from the /v3/invoices/create endpoint. Relevant for payin and payout orderTypes.

customerMetaDataobject

Optional; This field can be used to pass additional customer metadata to the order.

settlementAccountIdstring

Optional. Only applicable for orderType payin and gaming. This is the account where you want your funds to be paid out. The settlementAccountId's currency should match with the destination.currency passed.

purposeCodestring required

Purpose of the Payment. Enum values for purposeCode can be found here.

sourceUrlstring uri

Merchant website URL from where the traffic is flowing to TransFi. Must include https:// protocol.

successRedirectUrlstring uri

URL to redirect the user after a successful transfer. Must include the https:// protocol. This field is not required if a default redirectUrl is configured in the Displ-AI dashboard [https://qa-displai.transfi.com/settings/integration]. Providing a value in this field will override the default redirectUrl configured in the dashboard. If a redirectUrl is not configured in the dashboard, this field is required for: - Gaming orders - Cases where headlessMode is false and the orderType is one of: onramp, offramp, payin, swap

failureRedirectUrlstring uri

URL to redirect the user after a failed transfer. Must include the https:// protocol. This field is not required if a default redirectUrl is configured in the Displ-AI dashboard [https://qa-displai.transfi.com/settings/integration]. Providing a value in this field will override the default redirectUrl configured in the dashboard. If a redirectUrl is not configured in the dashboard, this field is required for: - Gaming orders - Cases where headlessMode is false and the orderType is one of: onramp, offramp, payin, swap

headlessModeboolean

Optional; defaults to false. When true, enables headless mode for the payment flow: the user is not redirected to a payment page. All required additional payment details for the source object must be provided in this API payload. NOte: This field is relevant for payin, swap, onramp, offramp orderTypes.

orderType'onramp' | 'offramp' | 'payin' | 'payout' | 'fiat_prefund' | 'crypto_prefund' | 'swap' | 'gaming' required

Response

Order created successfully

statusstring
traceIdstring uuid