---
title: "Create Credit Line Item"
method: POST
path: "/organizations/{orgId}/bills/{billId}/creditlineitems"
tags: ["Credits"]
---

# Create Credit Line Item

`POST /organizations/{orgId}/bills/{billId}/creditlineitems`

## Request

- Base URL: `https://api.m3ter.com`
- URL: `https://api.m3ter.com/organizations/{orgId}/bills/{billId}/creditlineitems`
- Auth: OAuth 2
  - Authorization code: `https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/authorize`, token URL `https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/token`
  - Client credentials, token URL `/oauth/token`
- TypeScript: <https://skmtc.dev/m3ter-com/apis/m3ter-api/docs/organizations/:orgId/bills/:billId/creditlineitems/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new Credit line item for the given Bill.
 
When creating Credit line items for Bills, use the Credit Reasons created for your Organization. See [CreditReason](https://www.m3ter.com/docs/api#tag/CreditReason).

## Path parameters

- `orgId` string, required
- `billId` string, required

## Request body

- CreditLineItemRequest
  - `version` integer: The version number of the entity: - **Create entity:** Not valid for initial insertion of new entity - *do not use for Create*. On initial Create, version is set at 1 and listed in the response. - **Update Entity:** On Update, version is required and must match the existing version because a check is performed to ensure sequential versioning is preserved. Version is incremented by 1 and listed in the response.
  - `reasonId` string: The UUID of the line item reason.
  - `lineItemType` 'STANDING_CHARGE' | 'USAGE' | 'COUNTER_RUNNING_TOTAL_CHARGE' | 'COUNTER_ADJUSTMENT_DEBIT' | 'COUNTER_ADJUSTMENT_CREDIT' | 'USAGE_CREDIT' | 'MINIMUM_SPEND' | 'MINIMUM_SPEND_REFUND' | 'CREDIT_DEDUCTION' | 'MANUAL_ADJUSTMENT' | 'CREDIT_MEMO' | 'DEBIT_MEMO' | 'COMMITMENT_CONSUMED' | 'COMMITMENT_FEE' | 'OVERAGE_SURCHARGE' | 'OVERAGE_USAGE' | 'BALANCE_CONSUMED' | 'BALANCE_FEE' | 'AD_HOC': See [Bill Line Item Types](https://www.m3ter.com/docs/guides/running-viewing-and-managing-bills/bill-line-item-types) for more information.
  - `amountToApplyOnBill` number
  - `productId` string, required: The UUID of the Product.
  - `accountingProductId` string, required
  - `description` string, required: The description for the line item.
  - `amount` number, required: The amount for the line item.
  - `referencedBillId` string, required: The UUID of the bill for the line item.
  - `referencedLineItemId` string, required: The UUID of the line item.
  - `servicePeriodStartDate` string, date-time, required: The service period start date in ISO-8601 format. *(inclusive of the starting date)*.
  - `servicePeriodEndDate` string, date-time, required: The service period end date in ISO-8601 format.*(exclusive of the ending date)*.
  - `creditReasonId` string: The UUID of the credit reason.

## Response `200`

Returns the new credit line item

- CreditLineItemResponse
  - `id` string, required: The UUID of the entity.
  - `version` integer: The version number: - **Create:** On initial Create to insert a new entity, the version is set at 1 in the response. - **Update:** On successful Update, the version is incremented by 1 in the response.
  - `lineItemType` 'STANDING_CHARGE' | 'USAGE' | 'COUNTER_RUNNING_TOTAL_CHARGE' | 'COUNTER_ADJUSTMENT_DEBIT' | 'COUNTER_ADJUSTMENT_CREDIT' | 'USAGE_CREDIT' | 'MINIMUM_SPEND' | 'MINIMUM_SPEND_REFUND' | 'CREDIT_DEDUCTION' | 'MANUAL_ADJUSTMENT' | 'CREDIT_MEMO' | 'DEBIT_MEMO' | 'COMMITMENT_CONSUMED' | 'COMMITMENT_FEE' | 'OVERAGE_SURCHARGE' | 'OVERAGE_USAGE' | 'BALANCE_CONSUMED' | 'BALANCE_FEE' | 'AD_HOC': See [Bill Line Item Types](https://www.m3ter.com/docs/guides/running-viewing-and-managing-bills/bill-line-item-types) for more information.
  - `productId` string
  - `description` string
  - `servicePeriodStartDate` string, date-time
  - `servicePeriodEndDate` string, date-time
  - `referencedBillId` string
  - `referencedLineItemId` string
  - `dtCreated` string, date-time: The DateTime when the line item was created.
  - `dtLastModified` string, date-time: The DateTime when the line item was last modified.
  - `createdBy` string: The ID of the user who created this line item.
  - `lastModifiedBy` string: The ID of the user who last modified this line item.
  - `amount` number: The credit amount.
  - `creditReasonId` string: The UUID of the credit reason for this credit line item.

## Other responses

- `4XX`: Error message
- `5XX`: Error message

## Changes

- **2026-10-16** `85c514abc692`: 4 breaking
  - the `allOf[#/components/schemas/MemoLineItemRequest]/allOf[subschema #2]/` request property type changed from no type to `object`
  - the `allOf[subschema #3]/` request property type changed from no type to `object`
  - the `allOf[#/components/schemas/AbstractBillLineItemResponse]/allOf[subschema #2]/` response's property type changed from no type to `object` for status `200`
  - the `allOf[subschema #3]/` response's property type changed from no type to `object` for status `200`
- **2025-12-03** `ac93d1a9e6d9`: 4 warning, 6 info
  - removed the optional property `allOf[subschema #3]/createdBy` from the response with the `200` status
  - removed the optional property `allOf[subschema #3]/dtCreated` from the response with the `200` status
  - removed the optional property `allOf[subschema #3]/dtLastModified` from the response with the `200` status
  - removed the optional property `allOf[subschema #3]/lastModifiedBy` from the response with the `200` status
  - …6 more
- **2025-08-01** `9f9e5f3dbde7`: 3 breaking
  - added the new required request property `allOf[#/components/schemas/MemoLineItemRequest]/allOf[subschema #2]/accountingProductId`
  - the response property `allOf[#/components/schemas/AbstractResponse]/version` became optional for the status `200`
  - the response property `allOf[#/components/schemas/MemoLineItemResponse]/allOf[#/components/schemas/AbstractResponse]/version` became optional for the status `200`

[Operation history](https://skmtc.dev/m3ter-com/apis/m3ter-api/changes/organizations/:orgId/bills/:billId/creditlineitems/post.md)

---

[API](https://skmtc.dev/m3ter-com/apis/m3ter-api.md) - [All operations](https://skmtc.dev/m3ter-com/apis/m3ter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/m3ter-com/apis/m3ter-api/revisions/85c514abc692?raw)
