Skip to main content

updatePaymentTerm

Requires at least one of the permissions settings:sales:update or settings:tenant:update.

Changes a payment term. An inactive term cannot be the default. The change is recorded field by field in the audit trail.

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 UpdatePaymentTerm($input: UpdatePaymentTermInput!) {
updatePaymentTerm(input: $input) {
id
code
createdAt
description
isActive
isDefault
}
}

Variables:

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

Response:

{
"data": {
"updatePaymentTerm": {
"id": "id",
"code": "string",
"createdAt": "2025-01-15T00:00:00Z",
"description": "string",
"isActive": true,
"isDefault": true
}
}
}
updatePaymentTerm(
input: UpdatePaymentTermInput!
): PaymentTerm!

Arguments​

updatePaymentTerm.input ● UpdatePaymentTermInput! non-null input​

The payment term changes.

Type​

PaymentTerm object​

An organization's payment term, such as Net 30, that sets when an invoice is due.