B2B feature. Learn more
negotiableQuotes query
The negotiableQuotes
query returns a list of negotiable quotes that can be viewed by the logged-in customer, including quotes created by the customer or by subordinates in the company hierarchy.
This query requires a valid customer authentication token.
Syntax
Copied to your clipboard{negotiableQuotes(filter: NegotiableQuoteFilterInput,pageSize: Int = 20,currentPage: Int = 1): NegotiableQuotesOutput}
Reference
The negotiableQuotes
reference provides detailed information about the types and fields defined in this query.
Example usage
The following example returns general information about the negotiable quotes containing the string request
that are accessible to the company user. The results are sorted by negotiable quote name, listed in ascending order.
Request:
Copied to your clipboardquery {negotiableQuotes(filter: { name:{ match: "request" }}){items {uidnamecreated_atstatus}total_count}}
Response:
Copied to your clipboard{"data": {"negotiableQuotes": {"items": [{"uid": "BfYWqXwmUpL2Ra1igfrv6xyOMx89sFDu","name": "Last request","created_at": "2021-04-28 15:43:09","status": "PENDING"},{"uid": "eywCZkG8avwW1eivuahc7oukY0ZFDC3H","name": "Latest request","created_at": "2021-04-26 16:35:48","status": "OPEN"},{"uid": "xCA4wSZEHsb5QbFiKfoq5k1Dk8vIPBgb","name": "April 22 request","created_at": "2021-04-22 15:59:47","status": "PENDING"},{"uid": "kw6mLEvl6vjjPNsjtJqwpamv5o0iT1bc","name": "Discount request","created_at": "2021-04-20 19:01:38","status": "ORDERED"}],"total_count": 4}}}