paymentUnapplyFromInvoices

Remove a payment from an invoice. The paymentUnapplyFromInvoices mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: billing:write

mutation paymentUnapplyFromInvoices ($paymentId: ID!, $invoiceIds: [ID!]!) {
  paymentUnapplyFromInvoices (paymentId: $paymentId, invoiceIds: $invoiceIds) {
      errors
      invoices
      payment {
        accountId
        amount
        amountUnapplied
        baseCurrencyCash
        baseCurrencyId
        completedAt
        conversionRate
        createdAt
        currencyId
        description
        errorCode
        errorMessage
        fees
        fromChildAccountId
        id
        isLegacy
        memo
        paymentProcessor
        pluginId
        receivedAt
        remoteTransactionId
        startedAt
        updatedAt
      }
  }
}

ArgumentsLink to Arguments section

{
  "paymentId": "456123",
  "invoiceIds": [
    "456123"
  ]
}
Name Type Description
paymentId ID  
invoiceIds List (ID)  

ResponseLink to Response section

Name Type Description
errors List (String)  
invoices List (Invoice)  
payment Payment