Admin API / Mutations

acceptOffer

Accepts the last offer, creates an order and charges the buyer. The negotiation's seller, or a staff member of a store that the seller owns, can accept. The buyer cannot. The last offer must be the buyer's, and the order pays the seller. A repeat of a successful acceptance with the same idempotencyKey returns the first AcceptOfferSuccess, also when the repeat omits offerId or expectedPrice. A repeat whose offerId is not the accepted offer, or whose expectedPrice is not the accepted price, returns IdempotencyConflictError.

Requires a client key with one of these scopes: admin:offers:acceptRequires this member role or higher: SELLER
acceptOffer(
  input: AcceptOfferInput!
): AcceptOfferPayload!

Arguments

ArgumentTypeDescription
inputAcceptOfferInput!The offer acceptance details.

Return type

AcceptOfferPayload!