---
updatedAt: 2026-06-12T23:05:53.000Z
agentTools:
  projectIndex: https://developer.bill.com/llms.txt
---

# Credit memos

A credit memo is an adjustment on the amount owed by a customer.

In a credit memo, you can add credit memo line items to record details about a credit you want to apply for an individual good or service. In addition, you can apply credit memos to invoices.

See the <Anchor label="/v3/credit-memos" target="_blank" href="ref:createcreditmemo">/v3/credit-memos</Anchor> API for the complete list of available operations.

## Create a credit memo

In your `POST /v3/credit-memos` request, set the required fields.

| Field                 | Description                                                                                            |
| :-------------------- | :----------------------------------------------------------------------------------------------------- |
| `customerId`          | BILL-generated ID of the customer. The value begins with **`0cu`**.                                    |
| `referenceNumber`     | User-generated credit memo number. This value can be in your chosen number scheme.                     |
| `creditDate`          | Credit memo issued date. This value is in the **`yyyy-MM-dd`** format.                                 |
| `creditMemoLineItems` | In the **`creditMemoLineItems`** array, set the required information about the credit memo line items. |

See the <Anchor label="POST /v3/credit-memos" target="_blank" href="ref:createcreditmemo">POST /v3/credit-memos</Anchor> API for more information about the other credit memo fields you can set.

### Sample request

In this cURL example, a credit memo of `$71.98` is created for the customer (`customerId`). A `referenceNumber` and `creditDate` is set for the credit memo.

BILL applies `ratePercent` to the sum of the `amount` values of all the line items above the `ratePercent` line item. In the example, three `creditMemoLineItems` are added. The `amount` sum of the first two line items is `$79.98`. The third line item is added to apply a 10% discount (`$8`) on the credit memo `amount` sum.

```curl
curl --request POST \
--url 'https://gateway.stage.bill.com/connect/v3/credit-memos' \
--header 'content-type: application/json' \
--header 'devKey: {developer_key}' \
--header 'sessionId: {session_id}' \
--data '{
  "customerId": "{customed_id}",
  "referenceNumber": "202602-creditmemo",
  "creditDate": "2026-12-28",
  "creditMemoLineItems": [
    {
      "description": "Classic extreme drum sticks",
      "price": 14.99,
      "quantity": 2
    },
    {
      "description": "Metal guitar picks (5-pack)",
      "price": 50.00,
      "quantity": 1
    },
    {
       "description": "10% discount",
       "ratePercent": -10
    }
  ],
  "description": "Paperless Band Credit Memo 20261228"
}'
```

### Response

In the response, a BILL-generated credit memo `id` is available. The value begins with `ccr`. The `amount` value is `$71.98` (`$79.98` total - `$8` discount).

```json
{
    "id": "{credit_memo_id}",
    "customerId": "{customer_id}",
    "referenceNumber": "202602-creditmemo",
    "creditDate": "2026-12-28",
    "description": "Paperless Band Credit Memo 20261228",
    "archived": false,
    "amount": 71.98,
    "appliedAmount": 0.00,
    "salesTaxTotal": 0.00,
    "salesTaxPercentage": 0,
    "status": "NOT_APPLIED",
    "createdTime": "2026-12-26T19:41:29.127+00:00",
    "updatedTime": "2026-12-26T19:41:29.127+00:00",
    "creditMemoLineItems": [
        {
            "id": "{creditMemoLineItem_id01}",
            "description": "Classic extreme drum sticks",
            "price": 14.99,
            "quantity": 2,
            "amount": 29.98,
            "taxable": false
        },
        {
            "id": "{creditMemoLineItem_id02}",
            "description": "Metal guitar picks (5-pack)",
            "price": 50.00,
            "quantity": 1,
            "amount": 50.00,
            "taxable": false
        },
        {
            "id": "{creditMemoLineItem_id03}",
            "description": "10% discount",
            "quantity": 1,
            "amount": -8.00,
            "ratePercent": -10,
            "taxable": false
        }
    ]
}
```

## Apply credit memo to an invoice

In your `PATCH /v3/invoices/{invoiceId}`  request, set the required fields. You can also use the `PUT` operation.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `invoiceId`
      </td>

      <td>
        BILL-generated ID of the invoice. The value begins with **`00e`**.
      </td>
    </tr>

    <tr>
      <td>
        `creditAmount`
      </td>

      <td>
        Credit amount applied to the invoice.

        BILL applies the credit amount from the total of all the credit memos available for the customer.

        **Note**: After all credit memos are used, BILL applies the credit amount from any `unappliedAmount` values in the Charge a customer (`POST /v3/receivable-payments`) and Record AR payment (`POST /v3/invoices/record-payment`) operations.
      </td>
    </tr>
  </tbody>
</Table>

> 👍 Credit memo updates after applying it to an invoice
>
> When a credit memo amount is applied to an invoice, there are three updates to note in the credit memo response.
>
> | Credit memo updates after applying it to an invoice                                                      |
> | :------------------------------------------------------------------------------------------------------- |
> | The `appliedAmount` is updated to show the total credit memo amount that has been applied.               |
> | The `status` is updated to `PARTIALLY_APPLIED` or `FULLY_APPLIED` depending on the credit memo `amount`. |
> | The `usage` array lists the invoices that the credit amount is applied to.                               |

### Sample request

In this cURL example, a credit memo is applied to an existing invoice (`invoiceId`).

```curl
curl --request PATCH \
--url 'https://gateway.stage.bill.com/connect/v3/invoices/{invoiceId}' \
--header 'content-type: application/json' \
--header 'devKey: {developer_key}' \
--header 'sessionId: {session_id}' \
--data '{
  "creditAmount": 10.00
}'
```

### Response

In the response, the invoice is updated based on the applied `creditAmount`.

| Invoices updates based on the applied `creditAmount`                                                                                                          |
| :------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `creditAmount` is set as the credit amount applied to the invoice.                                                                                            |
| `dueAmount` is calculated by subtracting any applied credits (`creditAmount`), scheduled payment (`scheduledAmount`), and cleared payment from `totalAmount`. |
| The invoice `status` is set as `PARTIAL_PAYMENT` or `PAID_IN_FULL` depending on the invoice `totalAmount`.                                                    |

See the <Anchor label="/v3/credit-memos" target="_blank" href="ref:createcreditmemo">/v3/credit-memos</Anchor> API for the complete list of available operations.