Admin API / Types

SendOffersToInterestedBuyersInput

Input

The offer to send to each interested buyer of a variant.

input SendOffersToInterestedBuyersInput

Input fields

FieldTypeDescription
idempotencyKeyString!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.
priceMoneyInput!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.
productVariantIdID!The variant to send offers for.
quantityPositiveInt!The units in each offer. At most the variant's availableQuantity, else InsufficientQuantityError. A variant with no stock tracking takes any quantity. Default: 1.