Admin API / Types

AcceptOfferInput

Input

Details for accepting an offer.

input AcceptOfferInput

Input fields

FieldTypeDescription
expectedPriceMoneyInputThe currentPrice that the caller read: the price per unit, not the total for quantity. When the negotiation's currentPrice has another amount or currency at the acceptance, also after the buyer changed the price of the last offer, the call returns OfferMismatchError with mismatchReason PRICE_MISMATCH and charges nothing. Omitted or null: no check.
idempotencyKeyString!A client-generated key for this acceptance attempt. Reusing the key resumes the same attempt without creating a duplicate order. Use a new key to start a new attempt.
negotiationIdID!The negotiation containing the offer.
offerIdIDThe offer the caller intends to accept. When provided, the request fails if a newer offer exists.