Create quote
Creates an account-funded swap quote that locks a price for ~30 seconds.
Account-funded swap quotes must be executed before expires_at via POST /v1/accounts/{account_id}/quotes/{quote_id}/execute, otherwise they transition to expired and are no longer usable.
Exactly one of from.amount or to.amount must be set; the server calculates the other side. Setting both or neither is rejected with 400 Bad Request.
Authorizations
Headers
Client-generated UUIDv4 for safe retries. Sent as the Idempotency-Key HTTP header. Replayed responses include the Idempotent-Replayed: true header.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"550e8400-e29b-41d4-a716-446655440000"
Path Parameters
ID of the account the request applies to. This refers to one of the accounts held by the user the request is acting on behalf of (typically the user's main account, but any of the user's accounts is accepted). Routes the request to that specific account container. Canonical identifier for an account in the Payward public API.
14 - 42Body
Request to create a new quote.
Exactly one of from.amount or to.amount must be provided to
indicate which side of the trade is fixed. The server calculates
the other side. Requests that set both amounts or omit both are
rejected with a 400 Bad Request.
Response
Successful response
A swap quote.