Skip to main content
POST
Confirm an Order
Call this endpoint to confirm an order from your side. What it does depends on orderType and, for fiat_to_fiat orders, on direction (on_ramp or off_ramp), which is required for that type: For fiat_to_crypto and crypto_to_fiat, the action follows the order’s actual type. Orders on automatic payment methods are moved to paid by VelaFi’s bank integration and cannot be marked as paid through this endpoint.

Endpoint

Use https://api-test.velafi.com/v2/order/confirm for sandbox testing.

Request Headers

Request Body Parameters

integer
required
The unique numeric ID of the order to confirm.
string
required
The type of the order. Must be one of fiat_to_crypto, crypto_to_fiat, or fiat_to_fiat.
string
Required only when orderType is fiat_to_fiat. Specifies which leg to confirm: on_ramp or off_ramp.

Response Fields

integer
Response status code. 200 indicates success.
string
Human-readable response message.
boolean
true if the order was successfully confirmed.

Examples

Requests that do not meet the conditions in the table above return an error. Retrieve the current order status via GET /v2/order/detail before calling this endpoint.