---
title: "Create multiple credit memos"
method: POST
path: "/v3/credit-memos/bulk"
tags: ["credit-memos"]
---

# Create multiple credit memos

`POST /v3/credit-memos/bulk`

Create multiple credit memos with one API request. You can create up to 50 credit memos with one `POST /v3/credit-memos/bulk` request.

## Headers

- `sessionId` string, nullable — API session ID generated with `/v3/login`
- `devKey` string, nullable — Developer key generated with your BILL developer account

## Request body

- CreateCreditMemoRequestDto[]
  - `customerId` string, required — BILL-generated ID of the customer. The value begins with `0cu`.
  - `referenceNumber` string, required — User-generated credit memo number. This value can be in your chosen number scheme.
  - `creditDate` string, date, required — Credit memo issued date. This value is in the `yyyy-MM-dd` format.
  - `description` string — Credit memo description
  - `salesTaxItemId` string — BILL-generated ID of the `SALES_TAX` item. The value begins with `0ii`. The tax rate is applied to all the credit memo line items set as taxable. You can set up a `SALES_TAX` percentage item with `POST /v3/classifications/items`.
  - `payToChartOfAccountId` string — BILL-generated ID of the chart of accounts used when the credit memo is applied to an invoice payment. The value begins with `0ca`.
  - `payToBankAccountId` string — BILL-generated ID of the bank account used when the credit memo is applied to an invoice payment. The value begins with `bac`. **Note**: You can set only one of `payToChartOfAccountId` or `payToBankAccountId`.
  - `classifications` object — General ledger classifications information for the credit memo
    - `accountingClassId` string — BILL-generated ID of the accounting class. The value begins with `cls`.
    - `departmentId` string — BILL-generated ID of the department. The value begins with `0de`.
    - `jobId` string — BILL-generated ID of the job. The value begins with `job`.
    - `locationId` string — BILL-generated ID of the location. The value begins with `loc`.
  - `creditMemoLineItems` CreateCreditMemoLineItemDto[], required — Credit memo line item information
    - `description` string — Credit memo line item description
    - `price` number — Credit memo line item unit price. For a credit memo in an international currency (not USD), this value is in the local currency.
    - `quantity` number — Credit memo line item unit quantity
    - `ratePercent` number — Credit memo line item rate percent. Use `ratePercent` to apply a discount or markup in your credit memo. BILL applies the `ratePercent` to the sum of the `amount` values of all the line items above the `ratePercent` line item. **Note**: Use a separate line item to set a `ratePercent` for the credit memo. Set the `ratePercent` line item as the final line item. Do not set `price` and `quantity` in the line item when you set `ratePercent`. For example, let's say you have two line items in a credit memo with an `amount` sum of `$150`. If you create a third line item with `ratePercent` set as `-10`, a 10% discount (`$15`) is applied to the `amount` sum of `$150`.
    - `taxable` boolean — Set as `true` if the credit memo line item is taxable
    - `classifications` object — General ledger classifications information for the credit memo line item
      - `chartOfAccountId` string — BILL-generated ID of the chart of accounts. The value begins with `0ca`.
      - `accountingClassId` string — BILL-generated ID of the accounting class. The value begins with `cls`.
      - `departmentId` string — BILL-generated ID of the department. The value begins with `0de`.
      - `jobId` string — BILL-generated ID of the job. The value begins with `job`.
      - `locationId` string — BILL-generated ID of the location. The value begins with `loc`.
      - `itemId` string — BILL-generated ID of the item. The value begins with `0ii`.

## Response `201`

Create multiple credit memos response

- CreditMemoBulkResponseDto — Response Dto for bulk credit memo.
  - `creditMemos` CreditMemoResponseDto[] — List of credit memos
    - `id` string — BILL-generated ID of the credit memo. The value begins with `ccr`.
    - `customerId` string — BILL-generated ID of the customer. The value begins with `0cu`.
    - `referenceNumber` string — User-generated credit memo number. This value can be in your chosen number scheme.
    - `creditDate` string, date — Credit memo issued date. This value is in the `yyyy-MM-dd` format.
    - `description` string — Credit memo description
    - `archived` boolean — Set as `true` if the credit memo is archived
    - `salesTaxItemId` string — BILL-generated ID of the `SALES_TAX` item. The value begins with `0ii`. The tax rate is applied to all the credit memo line items set as taxable.
    - `payToChartOfAccountId` string — BILL-generated ID of the chart of accounts used when the credit memo is applied to an invoice payment. The value begins with `0ca`.
    - `payToBankAccountId` string — BILL-generated ID of the bank account used when the credit memo is applied to an invoice payment. The value begins with `bac`.
    - `amount` number — Credit memo amount
    - `appliedAmount` number — Credit memo amount applied to invoices
    - `salesTaxTotal` number — Credit memo sales tax amount. The value is set based on `salesTaxItemId`.
    - `salesTaxPercentage` number — Credit memo sales tax percentage. The value is set based on `salesTaxItemId`.
    - `status` 'FULLY_APPLIED' | 'NOT_APPLIED' | 'PARTIALLY_APPLIED' | 'IN_PROCESS' | 'UNDEFINED' — Credit memo status.
    - `createdTime` string, date-time — Credit memo created time
    - `updatedTime` string, date-time — Credit memo updated time
    - `creditMemoLineItems` CreditMemoLineItemResponseDto[] — Credit memo line item information
      - `id` string — BILL-generated ID of the credit memo line item. The value begins with `cci`.
      - `description` string — Credit memo line item description
      - `price` number — Credit memo line item unit price. For a credit memo in an international currency (not USD), this value is in the local currency.
      - `quantity` number — Credit memo line item unit quantity
      - `amount` number — Credit memo line item amount
      - `ratePercent` number — Credit memo line item rate percent
      - `taxable` boolean — Set as `true` if the credit memo line item is taxable
      - `classifications` object — General ledger classifications information for the credit memo line item
        - `chartOfAccountId` string — BILL-generated ID of the chart of accounts. The value begins with `0ca`.
        - `accountingClassId` string — BILL-generated ID of the accounting class. The value begins with `cls`.
        - `departmentId` string — BILL-generated ID of the department. The value begins with `0de`.
        - `jobId` string — BILL-generated ID of the job. The value begins with `job`.
        - `locationId` string — BILL-generated ID of the location. The value begins with `loc`.
        - `itemId` string — BILL-generated ID of the item. The value begins with `0ii`.
    - `classifications` object — General ledger classifications information for the credit memo
      - `accountingClassId` string — BILL-generated ID of the accounting class. The value begins with `cls`.
      - `departmentId` string — BILL-generated ID of the department. The value begins with `0de`.
      - `jobId` string — BILL-generated ID of the job. The value begins with `job`.
      - `locationId` string — BILL-generated ID of the location. The value begins with `loc`.

## Other responses

- `4XX` — List of errors.
- `5XX` — List of errors.

---

[API](https://skmtc.net/bill/apis/bill-v3-api.md) · [All operations](https://skmtc.net/bill/apis/bill-v3-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bill/bill-v3-api/revisions/0483350c434e/schema)
