Skip to main content
POST
Create a payment quote

Authorizations

Authorization
string
header
required

Token from POST /auth/token

Headers

Idempotency-Key
string
required

Required on POST and PUT requests. Use a unique value per logical mutation attempt, for example a UUID.

Body

application/json

Request body for creating a quote. Pick a type on each side and set the amount on exactly one side; OMS calculates the other.

customerId
string
required

The customer this quote is for (cst_ prefix).

source
OMS wallet · object
required

What funds the transaction. Pick a type: an OMS crypto wallet (walletOms) or a registered card (card, pull-from-card).

destination
OMS wallet · object
required

The instrument that receives the funds. Pick a type: a wallet (walletOms / walletExternal), a bank account (bankUs / bankIban / bankCanada), a card, or cash.

sponsorGas
boolean

When true, OMS absorbs the on-chain gas cost for the destination delivery. Only true is currently supported. Ignored for non-crypto destinations (no on-chain leg).

settlementType
enum<string>

Card rail only: INTERNAL (Coinme custodies the crypto) or EXTERNAL (on-chain wallet). Defaults: card buy -> external, card sell -> internal. Ignored for non-card rails.

Available options:
internal,
external
metadata
object

Free-form key-value pairs stored on the quote and copied to the resulting transaction.

Response

201 - application/json

The request has succeeded and a new resource has been created as a result.

A price quote for moving money between two instruments. It locks an exchange rate and the amounts for a short window; execute it by creating a transaction that references this quote's id.

id
string
required

Quote ID (qt_ prefix).

Pattern: ^[a-z]+_([0-9a-hjkmnp-tv-z]{26}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$
object
enum<string>
required

Resource type discriminator. Always "quote".

Available options:
quote
status
enum<string>
required

Current status of the quote.

Available options:
open,
accepted,
expired
customerId
string
required

The OMS customer that owns this record (cst_ prefix).

Pattern: ^[a-z]+_([0-9a-hjkmnp-tv-z]{26}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$
source
OMS wallet · object
required

The funding side, echoed from the request with resolved instrument detail.

destination
OMS wallet · object
required

The receiving side, echoed from the request with resolved instrument detail.

pricing
object
required

Consolidated economics.

sourceToDestination
enum<string>

Corridor composite derived from the two sides.

Available options:
cryptoToCrypto,
cryptoToCash,
cryptoToFiatAccount,
cashToCrypto,
fiatAccountToCrypto,
fiatAccountToFiatAccount
expiresAt
string<date-time>

When the locked pricing expires.

createdAt
string<date-time>

When the quote was created.

metadata
object

Free-form key-value pairs supplied at creation or update.