paymentUnapplyFromInvoices

Graphql fields and variables for the paymentUnapplyFromInvoices mutation

Remove a payment from an invoice

Scope required: billing:write

mutation paymentUnapplyFromInvoices ($paymentId: ID!, $invoiceIds: !) {
  paymentUnapplyFromInvoices (paymentId: $paymentId, invoiceIds: $invoiceIds) {
      errors
      invoices
      payment {
        accountId
        amount
        amountUnapplied
        baseCurrencyCash
        baseCurrencyId
        createdAt
        currencyId
        description
        id
        isLegacy
        memo
        receivedAt
        updatedAt
      }
  }
}

Arguments

{
  "paymentId": "456123",
  "invoiceIds": [
    "456123"
  ]
}
Name
Type
Description

paymentId

ID

invoiceIds

List (ID)

Response

Name
Type
Description

errors

List (String)

invoices

payment

Last updated

Was this helpful?