Skip to main content

updateCustomerCollection

Requires permission payments:collection:update.

Corrects a customer collection: its amount, method, date, bank account, reference or notes. Only a collection still open to edits can be changed, and its currency cannot be changed once recorded. The collection date must be valid. Requires permission to update collections.

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 UpdateCustomerCollection($id: ID!, $input: UpdateCustomerCollectionInput!) {
updateCustomerCollection(id: $id, input: $input) {
id
checkNumber
currencyCode
paymentNumber
referenceNumber
status
allocations {
id
invoiceNumber
paymentNumber
createdAt
amount
appliedFromAdvance
}
}
}

Variables:

{
"id": "id",
"input": {}
}

Response:

{
"data": {
"updateCustomerCollection": {
"id": "id",
"checkNumber": "string",
"currencyCode": "string",
"paymentNumber": "string",
"referenceNumber": "string",
"status": "APPROVED",
"allocations": [
{
"id": "id",
"invoiceNumber": "string",
"paymentNumber": "string",
"createdAt": "2025-01-15T00:00:00Z",
"amount": 0,
"appliedFromAdvance": true
}
]
}
}
}
updateCustomerCollection(
id: ID!
input: UpdateCustomerCollectionInput!
): Payment!

Arguments​

updateCustomerCollection.id ● ID! non-null scalar​

The ID of the customer collection.

updateCustomerCollection.input ● UpdateCustomerCollectionInput! non-null input​

The fields to change.

Type​

Payment object​

A payment made out to a vendor or a collection received from a customer, with its allocations to invoices.