---
description: Graphql fields and variables for the invoiceAddCredit mutation
---

# invoiceAddCredit

Add a credit to an invoice

**Scope required:** billing:write

```graphql
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

```json
{
  "id": "456123",
  "amount": "1.00"
}
```

| Name   | Type  | Description |
| ------ | ----- | ----------- |
| id     | ID    |             |
| amount | Float |             |

## Response

| Name        | Type                                                 | Description |
| ----------- | ---------------------------------------------------- | ----------- |
| invoiceItem | [InvoiceItem](../../api-reference/types/invoiceitem) |             |
