paymentApplyToInvoices
Graphql fields and variables for the paymentApplyToInvoices mutation
Apply a payment to one or more invoices
Scope required: billing:write
mutation paymentApplyToInvoices ($paymentId: ID!, $invoiceIds: !) {
paymentApplyToInvoices (paymentId: $paymentId, invoiceIds: $invoiceIds) {
errors
paidInvoices
payment {
accountId
amount
amountUnapplied
baseCurrencyCash
baseCurrencyId
completedAt
createdAt
currencyId
description
errorCode
errorMessage
id
isLegacy
memo
receivedAt
remoteTransactionId
updatedAt
}
paymentApplications
removedInvoices
}
}
Arguments
{
"paymentId": "456123",
"invoiceIds": [
"456123"
]
}
Name
Type
Description
paymentId
ID
invoiceIds
List (ID)
Response
Name
Type
Description
errors
List (String)
Last updated
Was this helpful?