Admin API / Types
Negotiation
ObjectA price negotiation between a buyer and a seller for one product variant.
Requires a client key with one of these scopes:admin:offers:readThe requirement applies to every field of Negotiation unless that field declares its own scopes.
type Negotiation implements NodeFields
| Field | Type | Description |
|---|---|---|
awaitingResponseFrom | NegotiationParty | The party that must respond next: the party that did not make lastOffer. Null unless status is ACTIVE. |
buyer | User | The buyer's account. Null when the buyer is not a user of this marketplace. Reading the buyer's fields needs the admin:account:read scope. |
createdAt | DateTime! | When the negotiation started. |
currentPrice | Money! | The price per unit of lastOffer. |
expiresAt | DateTime! | When the negotiation expires. Each new offer and each edit of an offer sets it again. From this time, status is EXPIRED. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
initiatedBy | NegotiationParty! | The party that made the first offer. A seller can start a negotiation with an offer to a buyer. |
lastOffer | Offer! | The newest offer. Its price equals currentPrice. |
offers | [Offer!]! | Every offer, oldest first. Never empty. Each offer and counter-offer adds one item; the list has no length limit. |
order | Order | The order that acceptance created. Null unless status is ACCEPTED. Also null while acceptance has not created the order, or when the order is not visible to the caller. Reading the order's fields needs the admin:orders:read scope. |
product | Product | The listing. Null when the listing was deleted or is not visible to the caller. Reading the listing's fields needs the admin:products:read scope. |
productVariant | ProductVariant | The variant under negotiation. Null when the listing or the variant was deleted, or the variant is not visible to the caller. Reading the variant's fields needs the admin:products:read scope. |
quantity | PositiveInt! | The number of units the negotiation is for. |
seller | User! | The seller of the variant: the caller or the owner of a store that the caller staffs. Reading the seller's fields needs the admin:account:read scope. |
startingPrice | Money! | The variant price per unit when the negotiation started. |
status | NegotiationStatus! | The state. EXPIRED from expiresAt on, also while the stored state is still ACTIVE. |
updatedAt | DateTime! | The start time of the latest write to the negotiation. NegotiationWhereInput.updatedAt states which writes change it. An expiry at expiresAt does not change it until a later write stores EXPIRED, so a reader that polls by change time also reads the NegotiationWhereInput.expiresAt range since its last poll. Use the largest value you read as the start of the next updatedAt range, with the overlap that it describes. |