creditNoteAddCharge

Add a previously-invoiced charge as a line on a draft credit note. The creditNoteAddCharge mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: billing:write

mutation creditNoteAddCharge ($creditNoteId: ID!, $priceListChargeId: ID!, $amount: Float) {
  creditNoteAddCharge (creditNoteId: $creditNoteId, priceListChargeId: $priceListChargeId, amount: $amount) {
      creditNote {
        accountId
        amount
        amountApplied
        amountUnapplied
        createdAt
        creditedInvoiceId
        currencyId
        description
        disputeId
        disputeReasonId
        entityId
        id
        isCredit
        isLegacy
        issuedAt
        number
        subtotal
        taxAmount
        updatedAt
        uuid
        warrenId
      }
      errors
  }
}

Arguments

{
  "creditNoteId": "456123",
  "priceListChargeId": "456123",
  "amount": "1.00"
}
Name Type Description
creditNoteId ID  
priceListChargeId ID  
amount Float  

Response

Name Type Description
creditNote CreditNote  
errors List (String)