curl --request PUT \
--url https://api.meetcampfire.com/coa/api/v1/debit-memo/{id} \
--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": "Updated debit memo line",
"amount": 1500,
"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": "Updated debit memo message"
}'
{
"id": 123,
"lines": [
{
"id": 123,
"account_number": "<string>",
"account_name": "<string>",
"department_name": "<string>",
"tags": [
{
"id": 123,
"group_name": "<string>",
"parent_name": "<string>",
"parent": 123,
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"group": 123
}
],
"description": "<string>",
"amount": 0,
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"account": 123,
"department": 123
}
],
"payments": [
{
"id": 123,
"payment_journal_entry_order": "<string>",
"bill": "<string>",
"currency": "<string>",
"amount": 0,
"payment_date": "2023-12-25",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"voided_date": "2023-12-25",
"customer": 123,
"debit_memo": 123,
"payment_journal_entry": 123,
"payment_transaction": 123,
"voided_journal_entry": 123
}
],
"total_amount": "<string>",
"amount_used": "<string>",
"amount_remaining": "<string>",
"entity_name": "<string>",
"entity_currency": "<string>",
"vendor_name": "<string>",
"debit_account_number": "<string>",
"debit_account_name": "<string>",
"attachments": [
{
"id": 123,
"customer": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by": 123,
"created_by_name": "<string>",
"created_by_email": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"url": "<string>",
"s3_content_type": "<string>",
"s3_content_length": 1073741823,
"s3_path": "<string>",
"object_id": 1073741823,
"app": "<string>",
"model": "<string>"
}
],
"debit_memo_number": "<string>",
"voided_date": "2023-12-25",
"voided_journal_entry_order": "<string>",
"ref_number": "<string>",
"debit_memo_date": "2023-12-25",
"applied_date": "2023-12-25",
"message_on_debit_memo": "<string>",
"application_status": "open",
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"entity": 123,
"vendor": 123,
"debit_account": 123,
"journal_entry": 123,
"voided_journal_entry": 123
}
Performs a complete update of an existing accounting debit memo using PUT semantics.
This endpoint allows full replacement of debit memo data including line items and journal entry recalculation.
curl --request PUT \
--url https://api.meetcampfire.com/coa/api/v1/debit-memo/{id} \
--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": "Updated debit memo line",
"amount": 1500,
"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": "Updated debit memo message"
}'
{
"id": 123,
"lines": [
{
"id": 123,
"account_number": "<string>",
"account_name": "<string>",
"department_name": "<string>",
"tags": [
{
"id": 123,
"group_name": "<string>",
"parent_name": "<string>",
"parent": 123,
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"group": 123
}
],
"description": "<string>",
"amount": 0,
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"account": 123,
"department": 123
}
],
"payments": [
{
"id": 123,
"payment_journal_entry_order": "<string>",
"bill": "<string>",
"currency": "<string>",
"amount": 0,
"payment_date": "2023-12-25",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"voided_date": "2023-12-25",
"customer": 123,
"debit_memo": 123,
"payment_journal_entry": 123,
"payment_transaction": 123,
"voided_journal_entry": 123
}
],
"total_amount": "<string>",
"amount_used": "<string>",
"amount_remaining": "<string>",
"entity_name": "<string>",
"entity_currency": "<string>",
"vendor_name": "<string>",
"debit_account_number": "<string>",
"debit_account_name": "<string>",
"attachments": [
{
"id": 123,
"customer": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by": 123,
"created_by_name": "<string>",
"created_by_email": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"url": "<string>",
"s3_content_type": "<string>",
"s3_content_length": 1073741823,
"s3_path": "<string>",
"object_id": 1073741823,
"app": "<string>",
"model": "<string>"
}
],
"debit_memo_number": "<string>",
"voided_date": "2023-12-25",
"voided_journal_entry_order": "<string>",
"ref_number": "<string>",
"debit_memo_date": "2023-12-25",
"applied_date": "2023-12-25",
"message_on_debit_memo": "<string>",
"application_status": "open",
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"entity": 123,
"vendor": 123,
"debit_account": 123,
"journal_entry": 123,
"voided_journal_entry": 123
}
Token-based authentication with required prefix "Token"
The response is of type object
.