Skip to main content

paymentTermHolders

Requires at least one of the permissions customers:customer:list, customers:customer:read, suppliers:supplier:list or suppliers:supplier:read.

The records that hold a payment term as their default, one kind at a time, paged and searchable by name: the list behind each usage count. Customers need a customer read grant; suppliers and vendor accounts a supplier read grant; other partners either. Without it the call is refused and no names are returned.

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 PaymentTermHolders($code: String!, $kind: PaymentTermHolderKind!) {
paymentTermHolders(code: $code, kind: $kind) {
limit
page
total
items {
id
code
name
status
explainedBySupplier
kind
}
}
}

Variables:

{
"code": "string",
"kind": "CUSTOMER"
}

Response:

{
"data": {
"paymentTermHolders": {
"limit": 0,
"page": 0,
"total": 0,
"items": [
{
"id": "id",
"code": "string",
"name": "string",
"status": "string",
"explainedBySupplier": true,
"kind": "CUSTOMER"
}
]
}
}
}
paymentTermHolders(
code: String!
kind: PaymentTermHolderKind!
limit: Int
onlyUnexplained: Boolean
page: Int
search: String
): PaymentTermHolderPage!

Arguments​

paymentTermHolders.code ● String! non-null scalar​

The payment term code.

paymentTermHolders.kind ● PaymentTermHolderKind! non-null enum​

Which holders to list: customers, suppliers, other partners or vendor accounts.

paymentTermHolders.limit ● Int scalar​

Rows per page. Defaults to 25, at most 100.

paymentTermHolders.onlyUnexplained ● Boolean scalar​

VENDOR_ACCOUNT only: list just the accounts no supplier on this term explains.

paymentTermHolders.page ● Int scalar​

1-based page. Defaults to 1.

Part of the name.

Type​

PaymentTermHolderPage object​

One page of the records holding a payment term.