Create an off-ramp or on-ramp quote
Creates a quote for a connector and amount. Omit type (or send any
value other than onramp) for an off-ramp quote; send
type=onramp for an on-ramp quote.
Off-ramp. amount is the recipient amount in the sending
currency (fee-exclusive): the fee is added on top, so
total = amount + fee. Exactly one of beneficiaryId or
transactionType is required — never both, never neither.
beneficiaryId prices the quote for the corridor the payment will
actually execute as (type derived server-side from the association
and the beneficiary). transactionType (C2C/C2B/B2C/B2B)
prices an exploratory quote before a beneficiary is chosen. The
returned quoteId is what POST /v1/payments/offramp executes
against, and it expires roughly two minutes after creation.
On-ramp. amount is what the paying counterparty pays in, in the
collection currency. transactionType is optional and
beneficiaryId is not used. In the response, sendAmount and total
are both the amount collected, and receiveAmount is what lands in
your wallet after fee has been deducted. The returned quoteId is
what POST /v1/payments/onramp executes against, before expiresAt.
Authorizations
Access token issued by POST /v1/auth/token.
Application secret (the apiKey issued at registration), required on every request.
Query Parameters
Send onramp for an on-ramp quote. Omit it for an off-ramp quote.
onramp Body
Recipient amount in the sending currency (fee-exclusive). Must be greater than 0.
Exactly one of beneficiaryId or transactionType is required — never both, never neither. Prices the quote for the corridor the payment will actually execute as: the transaction type is derived server-side from this beneficiary and the caller's association.
Exactly one of beneficiaryId or transactionType is required — never both, never neither. Prices an exploratory quote directly for this corridor, before a beneficiary is chosen.
C2C, C2B, B2C, B2B Optional, with beneficiaryId. The destination the payment will pay; the quote is then attributed to it for off-ramp limits. Pass it whenever you know it — the submit requires the same id.
Response
Quote created.
Amount debited in the sending currency, as confirmed by the connector.
Amount the beneficiary receives.
The only fee the user pays. An exact configured BUSINESS/OffRamp fee row wins (including zero); otherwise this is the connector's fee.
Exactly sendAmount plus fee, as authoritatively priced and snapshotted server-side.
ISO 8601 expiry. Quotes expire roughly two minutes after creation.