invoiceAddCredit

Graphql fields and variables for the invoiceAddCredit mutation

Add a credit to an invoice

Scope required: billing:write

mutation invoiceAddCredit ($id: ID!, $amount: Float!) {
  invoiceAddCredit (id: $id, amount: $amount) {
      invoiceItem {
        amount
        chargeType
        comment
        couponId
        currencyId
        discount
        endDate
        id
        invoiceId
        isCoupon
        isCredit
        lineText
        position
        price
        priceDecimals
        prorationRate
        quantity
        startDate
        subtotal
        taxAmount
        taxCode
        vatCode
      }
  }
}

Arguments

{
  "id": "456123",
  "amount": "1.00"
}
Name
Type
Description

id

ID

amount

Float

Response

Name
Type
Description

invoiceItem

Last updated

Was this helpful?