Skip to main content

Update customers

Our batch functionality is ideal for updating a list of customers efficiently.
In the example below, we set the pricelistID to 2 for three customers.

When you make the request, you'll receive an immediate response with the ID of the queued job.
You can use the jobStatus query to track the status of the job.

note

Please note that batchUpdateCustomers has a maximum limit of 1000 customers per call.

Request:

mutation UpdateCustomersPricelist {
batchUpdateCustomers(input:[{
id: 34403,
pricelistID: 2,
},
{
id: 34341,
pricelistID: 2,
},
{
id: 45401,
pricelistID: 2,
}
])
{
id
status
}
}

Response:

{
"data": {
"batchUpdateCustomers": {
"id": 160,
"status": "waiting"
}
}
}