Admin API / Types
SendOffersToInterestedBuyersInput
InputThe offer to send to each interested buyer of a variant.
input SendOffersToInterestedBuyersInputInput fields
| Field | Type | Description |
|---|---|---|
idempotencyKey | String! | A client-generated key, 1 to 200 characters after trim. A repeat with the same key and input within 24 hours returns the first result, writes nothing and sends no second notification. The same key with another input returns IdempotencyConflictError. |
price | MoneyInput! | The price per unit, in the variant currency, greater than 0 with at most 2 decimal places, and at most the variant price. A price equal to the variant price is valid. 0 or less, or more than 2 decimal places, fails with VALIDATION_ERROR. A price above the variant price gives OfferPriceTooHighError. Another currency gives CurrencyMismatchError. |
productVariantId | ID! | The variant to send offers for. |
quantity | PositiveInt! | The units in each offer. At most the variant's availableQuantity, else InsufficientQuantityError. A variant with no stock tracking takes any quantity. Default: 1. |