# 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
        taxRate
        vatCode
      }
  }
}
```

## Arguments

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

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

## Response

| Name        | Type                                                                            | Description |
| ----------- | ------------------------------------------------------------------------------- | ----------- |
| invoiceItem | [InvoiceItem](https://docs.bunny.com/developer/api-reference/types/invoiceitem) |             |
