creditNoteCreateAdhoc

Create a standalone (ad-hoc) credit note crediting previously-invoiced charges. The creditNoteCreateAdhoc mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: billing:write

mutation creditNoteCreateAdhoc ($accountId: ID!, $items: [CreditNoteCreditItemInput!], $issuedAt: ISO8601Date) {
  creditNoteCreateAdhoc (accountId: $accountId, items: $items, issuedAt: $issuedAt) {
      creditNote {
        accountId
        amount
        amountApplied
        amountUnapplied
        createdAt
        creditedInvoiceId
        currencyId
        description
        disputeId
        disputeReasonId
        entityId
        id
        isCredit
        isLegacy
        issuedAt
        number
        subtotal
        taxAmount
        updatedAt
        uuid
        warrenId
      }
      errors
  }
}

Arguments

{
  "accountId": "456123",
  "items": [
    {
      "priceListChargeId": "456123",
      "amount": "1.00"
    }
  ],
  "issuedAt": "2022-06-01"
}
Name Type Description
accountId ID  
items List (CreditNoteCreditItemInput)  
issuedAt ISO8601Date  

Response

Name Type Description
creditNote CreditNote  
errors List (String)