curl --request POST \
--url https://api.meetcampfire.com/coa/api/v1/debit-memo \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"lines": [
{
"tags": [
{
"id": "8344",
"name": "Fund 1",
"group": 696
}
],
"account": "2613",
"account_name": "6500 - Travel Expenses",
"description": "Debit Memo Line",
"amount": 1000.01,
"department": "365",
"department_name": "Customer Support"
}
],
"entity": "54",
"entity_name": "Top Level",
"entity_currency": "USD",
"currency": "USD",
"vendor": "34182",
"vendor_name": "ABC Bead Supply",
"debit_memo_date": "2025-07-01",
"exchange_rate_book": 1,
"exchange_rate": 1,
"debit_account": "41905",
"debit_account_name": "5230 - Cloud Credits",
"message_on_debit_memo": "Debit Memo Message"
}'
{
"id": 343,
"lines": [
{
"id": 409,
"account_number": "6500",
"account_name": "6500 - Travel Expenses",
"department_name": "Customer Support",
"tags": [
{
"id": 8344,
"group_name": "Fund",
"parent_name": null,
"parent": null,
"name": "Fund 1",
"created_at": "2025-07-15T18:40:55+0000",
"last_modified_at": "2025-07-15T18:40:55+0000",
"group": 696
}
],
"description": "Debit Memo Line",
"amount": 1000.01,
"created_at": "2025-07-25T21:50:15+0000",
"last_modified_at": "2025-07-25T21:50:15+0000",
"account": 2613,
"department": 365
}
],
"payments": [],
"total_amount": 1000.01,
"amount_used": 0,
"amount_remaining": 1000.01,
"entity_name": "Top Level",
"entity_currency": "USD",
"vendor_name": "ABC Bead Supply",
"debit_account_name": "5230 - Cloud Credits",
"attachments": [],
"debit_memo_number": "DM-0000005",
"voided_date": null,
"ref_number": null,
"debit_memo_date": "2025-07-01",
"applied_date": null,
"message_on_debit_memo": "Debit Memo Message",
"application_status": "open",
"currency": "USD",
"exchange_rate": 1,
"exchange_rate_book": 1,
"created_at": "2025-07-25T21:50:15+0000",
"last_modified_at": "2025-07-25T21:50:15+0000",
"customer": 2,
"entity": 54,
"vendor": 34182,
"debit_account": 41905,
"journal_entry": 7491954,
"voided_journal_entry": null
}
Creates a new accounting debit memo with line items and automatic journal entry generation.
Debit memos are used to record amounts owed to vendors or to adjust vendor account balances. This endpoint handles multi-currency transactions, departmental allocations, and automatic double-entry bookkeeping.
curl --request POST \
--url https://api.meetcampfire.com/coa/api/v1/debit-memo \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"lines": [
{
"tags": [
{
"id": "8344",
"name": "Fund 1",
"group": 696
}
],
"account": "2613",
"account_name": "6500 - Travel Expenses",
"description": "Debit Memo Line",
"amount": 1000.01,
"department": "365",
"department_name": "Customer Support"
}
],
"entity": "54",
"entity_name": "Top Level",
"entity_currency": "USD",
"currency": "USD",
"vendor": "34182",
"vendor_name": "ABC Bead Supply",
"debit_memo_date": "2025-07-01",
"exchange_rate_book": 1,
"exchange_rate": 1,
"debit_account": "41905",
"debit_account_name": "5230 - Cloud Credits",
"message_on_debit_memo": "Debit Memo Message"
}'
{
"id": 343,
"lines": [
{
"id": 409,
"account_number": "6500",
"account_name": "6500 - Travel Expenses",
"department_name": "Customer Support",
"tags": [
{
"id": 8344,
"group_name": "Fund",
"parent_name": null,
"parent": null,
"name": "Fund 1",
"created_at": "2025-07-15T18:40:55+0000",
"last_modified_at": "2025-07-15T18:40:55+0000",
"group": 696
}
],
"description": "Debit Memo Line",
"amount": 1000.01,
"created_at": "2025-07-25T21:50:15+0000",
"last_modified_at": "2025-07-25T21:50:15+0000",
"account": 2613,
"department": 365
}
],
"payments": [],
"total_amount": 1000.01,
"amount_used": 0,
"amount_remaining": 1000.01,
"entity_name": "Top Level",
"entity_currency": "USD",
"vendor_name": "ABC Bead Supply",
"debit_account_name": "5230 - Cloud Credits",
"attachments": [],
"debit_memo_number": "DM-0000005",
"voided_date": null,
"ref_number": null,
"debit_memo_date": "2025-07-01",
"applied_date": null,
"message_on_debit_memo": "Debit Memo Message",
"application_status": "open",
"currency": "USD",
"exchange_rate": 1,
"exchange_rate_book": 1,
"created_at": "2025-07-25T21:50:15+0000",
"last_modified_at": "2025-07-25T21:50:15+0000",
"customer": 2,
"entity": 54,
"vendor": 34182,
"debit_account": 41905,
"journal_entry": 7491954,
"voided_journal_entry": null
}
Token-based authentication with required prefix "Token"
The response is of type object
.