PUT
/
coa
/
api
/
v1
/
credit-memo
/
{id}
Update Credit Memo
curl --request PUT \
  --url https://api.meetcampfire.com/coa/api/v1/credit-memo/{id} \
  --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": "Updated credit for subscription overpayment",
      "amount": 1250.5
    },
    {
      "tags": [],
      "product": "3680",
      "product_name": "Professional Services",
      "account": "169209",
      "account_name": "Service Revenue",
      "department": "36",
      "department_name": "Sales",
      "description": "Additional credit for services",
      "amount": 500
    }
  ],
  "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": "Updated credit memo for subscription overpayment and additional services. Thank you for your business.",
  "ref_number": "REF-2025-0087-UPDATED"
}'
{
  "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": "Updated credit for subscription overpayment",
      "amount": 1250.5,
      "created_at": "2025-07-25T21:04:38+0000",
      "last_modified_at": "2025-07-25T22:15:12+0000",
      "product": 3679,
      "account": 169208,
      "department": 35
    },
    {
      "id": 5450,
      "account_number": "4108",
      "account_name": "4108 - Service Revenue",
      "product_name": "Professional Services",
      "department_name": "Sales",
      "tags": [],
      "description": "Additional credit for services",
      "amount": 500,
      "created_at": "2025-07-25T22:15:12+0000",
      "last_modified_at": "2025-07-25T22:15:12+0000",
      "product": 3680,
      "account": 169209,
      "department": 36
    }
  ],
  "payments": [],
  "total_amount": 1750.5,
  "amount_used": 0,
  "amount_remaining": 1750.5,
  "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": "REF-2025-0087-UPDATED",
  "credit_memo_date": "2025-07-01",
  "applied_date": null,
  "message_on_credit_memo": "Updated credit memo for subscription overpayment and additional services. 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-25T22:15:12+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"

Path Parameters

id
integer
required

Body

Response

200 - application/json

The response is of type object.