Admin API / Types

NegotiationWhereInput

Input

Negotiation filters. An omitted field or an empty list matches every negotiation. A negotiation matches a list when it matches one value, and it must match every field that is set. Each ID list takes at most 100 IDs, else VALIDATION_ERROR.

input NegotiationWhereInput

Input fields

FieldTypeDescription
awaitingResponseFrom[NegotiationParty!]Negotiations that status: [ACTIVE] matches and that wait for one of these parties. SELLER: the buyer made the last offer, and the seller can accept, counter or decline it.
buyerIds[ID!]Negotiations with these buyers.
createdAtDateTimeRangeInputNegotiations that started in this range (createdAt): from inclusive, to exclusive.
expiresAtDateTimeRangeInputNegotiations whose expiresAt is in this range: from inclusive, to exclusive. An ACTIVE negotiation becomes EXPIRED at expiresAt with no write, so an expiry does not change updatedAt. To find the expiries since your last sync, read the negotiations whose expiresAt is in the range from your last sync to now.
initiatedBy[NegotiationParty!]Negotiations whose first offer came from one of these parties.
lastOfferAtDateTimeRangeInputNegotiations whose last offer was made in this range: from inclusive, to exclusive.
productIds[ID!]Negotiations on variants of these listings.
productVariantIds[ID!]Negotiations on these variants.
sellerIds[ID!]Negotiations of these sellers, inside the negotiations that the field reads. An ID outside them matches nothing.
status[NegotiationStatus!]Negotiations in one of these states, as Negotiation.status gives them. ACTIVE does not match a negotiation whose listing was deleted.
updatedAtDateTimeRangeInputNegotiations whose updatedAt is in this range: from inclusive, to exclusive. Each new offer, counter-offer, edit of an offer, acceptance and decline is a write, and so are internal updates such as the link to the order. An expiry is a write only when a later write stores EXPIRED, which can be long after expiresAt: use the expiresAt filter to find expiries. The recorded time is the start of the write, which can be earlier than the time the change becomes visible: when you read changes in consecutive ranges, overlap each range with the previous one.