Skip to main content

bulkActivatePendingCustomers

Requires a tenant administrator.

Approves many pending customers in one call and reports, for each, whether it succeeded. Tenant admins only.

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:

mutation BulkActivatePendingCustomers($target: PendingBulkTargetInput!) {
bulkActivatePendingCustomers(target: $target) {
batchId
failed
succeeded
total
results {
id
code
name
message
success
}
}
}

Variables:

{
"target": {}
}

Response:

{
"data": {
"bulkActivatePendingCustomers": {
"batchId": "string",
"failed": 0,
"succeeded": 0,
"total": 0,
"results": [
{
"id": "id",
"code": "string",
"name": "string",
"message": "string",
"success": true
}
]
}
}
}
bulkActivatePendingCustomers(
target: PendingBulkTargetInput!
): BulkPendingActionResult!

Arguments​

bulkActivatePendingCustomers.target ● PendingBulkTargetInput! non-null input​

The pending customers to approve.

Type​

BulkPendingActionResult object​

The outcome of approving or rejecting several pending customers.