---
title: "Create credit"
method: POST
path: "/v1/Credits"
tags: ["Credits"]
---

# Create credit

`POST /v1/Credits`

Create a new credit.

## Request body

- RevAppModelsCredit
  - `credit_memo_id` integer — Primary identifier for this credit.
  - `description` string, required — Memo for credit.
  - `product_type_id` integer — ID of the product type on this credit.
  - `product_id` integer — ID of the product on this credit.
  - `service_product_id` integer — ID of the service product on this credit.
  - `balance` number, double — Customer balance at the time the credit was applied.
  - `closed_date` string, date-time
  - `buy_rate` number, double
  - `atype` string — Type of credit. (FCC, MRC, NRC, OCC, ADJ)
  - `created_date` string, date-time — Date the credit was created.
  - `created_by` integer — ID of user that created the credit.
  - `tax_class_id` integer — ID of tax class on the credit.
  - `customer_id` integer, required — ID of customer on the credit.
  - `bill_id` integer — ID of bill the credit is applied to.
  - `service_id` integer — ID of service on a customer account.
  - `amount` number, double — Total dollar amount including taxes and product amounts on credit.
  - `product_amount` number, double — Dollar amount of product on this credit.
  - `tax_amount` number, double — Tax amount on this credit.
  - `geocode` string — Location of the credit.
  - `proration` number, double — Dollar amount prorated over the credit's start and end dates.
  - `is_tax_included` boolean, required — Tax amounts are included in the credit amount field.
  - `cost` number, double — Cost of the credit.
  - `is_bad_debt` boolean — Identifies a credit as bad debt.
  - `quantity` number, double, required — Units of product or product type on the transaction.
  - `rate` number, double, required — Rate of product associated to this transaction
  - `is_prorated` boolean, required — Is proration of transaction required
  - `start_date` string, date-time, required — Billing start date of product or product type associated to this transaction
  - `end_date` string, date-time, required — Billing end date of product or product type associated to this transaction
  - `links` RevAppComponentsLink[]
    - `rel` string
    - `href` string

## Response `201`

Created

- RevWebAPIModelsCreate
  - `ok` boolean
  - `id` integer

## Other responses

- `400` — BadRequest
- `500` — InternalServerError

---

[API](https://skmtc.net/rev-io/apis/rev-io-api.md) · [All operations](https://skmtc.net/rev-io/apis/rev-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rev-io/rev-io-api/revisions/135571434f6c/schema)
