POST
/
coa
/
api
/
v1
/
credit-memo
Create Credit Memo
curl --request POST \
  --url https://api.meetcampfire.com/coa/api/v1/credit-memo \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "lines": [
    {
      "tags": [
        {
          "id": "7736",
          "name": "Other"
        }
      ],
      "product": "3679",
      "product_name": "Annual Subscription",
      "account": "169208",
      "account_name": "Subscription fees",
      "department": "35",
      "department_name": "Engineering",
      "description": "Credit for overpayment on annual subscription",
      "amount": 1000.23
    }
  ],
  "entity": "54",
  "entity_name": "Top Level",
  "entity_currency": "USD",
  "currency": "USD",
  "client": "33973",
  "client_name": "Client A",
  "credit_memo_date": "2025-07-01",
  "exchange_rate_book": 1,
  "exchange_rate": 1,
  "credit_account": "41905",
  "credit_account_name": "5230 - Cloud Credits",
  "message_on_credit_memo": "Credit memo for annual subscription overpayment. Thank you for your business."
}'
{
  "id": 4258,
  "lines": [
    {
      "id": 5449,
      "account_number": "4107",
      "account_name": "4107 - Subscription fees",
      "product_name": "Annual Subscription",
      "department_name": "Engineering",
      "tags": [
        {
          "id": 7736,
          "parent_name": null,
          "parent": null,
          "name": "Other",
          "created_at": "2025-06-18T21:09:34+0000",
          "last_modified_at": "2025-06-18T21:09:34+0000",
          "group": null
        }
      ],
      "description": "Credit for overpayment on annual subscription",
      "amount": 1000.23,
      "created_at": "2025-07-25T21:04:38+0000",
      "last_modified_at": "2025-07-25T21:04:38+0000",
      "product": 3679,
      "account": 169208,
      "department": 35
    }
  ],
  "payments": [],
  "total_amount": 1000.23,
  "amount_used": 0,
  "amount_remaining": 1000.23,
  "entity_name": "Top Level",
  "entity_currency": "USD",
  "client_name": "Client A",
  "credit_account_name": "5230 - Cloud Credits",
  "attachments": [],
  "credit_memo_number": "CM-0000008",
  "voided_date": null,
  "ref_number": null,
  "credit_memo_date": "2025-07-01",
  "applied_date": null,
  "message_on_credit_memo": "Credit memo for annual subscription overpayment. Thank you for your business.",
  "application_status": "open",
  "currency": "USD",
  "exchange_rate": 1,
  "exchange_rate_book": 1,
  "created_at": "2025-07-25T21:04:38+0000",
  "last_modified_at": "2025-07-25T21:04:38+0000",
  "customer": 2,
  "entity": 54,
  "client": 33973,
  "credit_account": 41905,
  "journal_entry": 7491953,
  "contract": null,
  "voided_journal_entry": null
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

Response

201 - application/json

The response is of type object.