API reference · Types
OrderAdditionPayment
The buyer’s payment for this offer, or null until one accepts it.
Type: object or null
Example
{
"payment_ref": "string",
"status": "processing",
"currency": "string",
"amount_cents": 0,
"accepted_at": "string",
"completes_at": "string",
"resolved_at": "string",
"failure_reason": "string",
"attempts": 0
}Fields
payment_refstring requiredThe opaque public payment id (
oap_…).statusstring requiredprocessingmeans the answer is not in yet - a browser redirect does not prove a payment succeeded, so keep asking.succeededmeans the cards are on the order.failedmeans the attempt collected nothing and the offer can be accepted again.blockedmeans a captured payment was screened out and returned; this offer is over.Constraints: allowed values:
processing,succeeded,failed,blockedcurrencystring requiredThe ISO 4217 currency code used for monetary amounts.
amount_centsinteger requiredThe exact amount the buyer approved, frozen from the offer.
accepted_atstring requiredcompletes_atstring requiredWhen this attempt’s 15-minute completion window closes - distinct from the offer’s own 24 hours. Past it a
processingpayment is UNKNOWN rather than failed, and is reconciled against the provider.resolved_atstring or null requiredfailure_reasonstring or null requiredattemptsinteger requiredAbove 1 when a declined card was retried on the same payment.
Used by
GET /orders/{orderId}/addition-offers- List an order's add-on offers (not yet available) (response)POST /orders/{orderId}/addition-offers- Send or replace an add-on offer (not yet available) (response)POST /orders/{orderId}/addition-offers/{offerRef}/withdraw- Withdraw an add-on offer (not yet available) (response)order.addition_offer.updated- Add-on offer updated (not yet available) (payload)