Skip to main content
POST
Select my Vault Payment method
Selects vault.stableyard for this Payment. paymentMethodId is the only field you control: Stableyard derives the payer UPA, active Vault, payment source and active policy from the client token, and you cannot submit a vaultId, account locator, source or destination address, amount, policy or fee. The resulting funding operation is private execution state under the existing Payment, and must fund the same immutable escrow amount as Direct crypto, Routing and hosted on-ramp methods. It has commercialFeeMode: parent_payment, so it never accrues a second platform or partner fee. Creating the option moves no money and does not complete the Payment; authorize it next. Send the client bearer token and X-Stableyard-Payment-Secret. Idempotency-Key is required; reusing it with different input returns 409 idempotency_conflict.

Authorizations

Authorization
string
header
required

Short-lived account-bound token returned by POST /v2/client/auth/exchange.

X-Stableyard-Payment-Secret
string
header
required

Payment-specific secret used together with an account-bound Client bearer token. It proves access to exactly one Payment and must never be placed in a URL, analytics event, or log.

Headers

Idempotency-Key
string
required

Required retry key for this account-bound Payment mutation. Reuse the same key only with the identical Payment, option, and body; different input returns 409 idempotency_conflict.

Required string length: 1 - 256
Pattern: ^[ -~]+$
Example:

"vault-payment-option-01"

Path Parameters

paymentId
string
required

Canonical receive Payment whose escrow will be funded.

Pattern: ^payment_[A-Za-z0-9_-]+$
Example:

"payment_123"

Body

application/json
paymentMethodId
string
required

The only caller-controlled field. Stableyard derives the UPA, Vault, source, active policy, escrow, amount, and fees.

Allowed value: "vault.stableyard"

Response

Vault funding option awaiting one-time authorization

paymentId
string
required
Pattern: ^payment_[A-Za-z0-9_-]+$
Example:

"payment_123"

option
object
required
fundingOperation
object
required