Skip to main content

customerBuyingLists

Requires a customer (portal or buyer app) session.

THIS partner's shared buying lists — every colleague at the customer company sees the same lists. Totals computed at read time; canEdit/canDelete are computed for the CALLING buyer. screen 12.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query CustomerBuyingLists {
customerBuyingLists {
id
name
createdByName
canDelete
canEdit
currency
items {
id
addedByName
productName
variantName
imageUrl
lineTotal
}
}
}

Response:

{
"data": {
"customerBuyingLists": [
{
"id": "id",
"name": "string",
"createdByName": "string",
"canDelete": true,
"canEdit": true,
"currency": "string",
"items": [
{
"id": "id",
"addedByName": "string",
"productName": "string",
"variantName": "string",
"imageUrl": "string",
"lineTotal": 0
}
]
}
]
}
}
customerBuyingLists: [CustomerBuyingListView!]!

Type​

CustomerBuyingListView object​

A durable partner-shared buying list. screen 12.