curl --request POST \
--url https://api.meetcampfire.com/coa/api/v1/credit-memo/{credit_memo_id}/void/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"void_date": "2023-12-25"
}
'{
"id": 123,
"lines": [
{
"id": 123,
"account_number": "<string>",
"account_name": "<string>",
"product_name": "<string>",
"department_name": "<string>",
"tags": [
{
"id": 123,
"group_name": "<string>",
"parent_name": "<string>",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"parent": 123,
"is_active": true,
"group": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"account": 123,
"description": "<string>",
"amount": 0,
"product": 123,
"department": 123
}
],
"payments": [
{
"id": 123,
"payment_journal_entry_order": "<string>",
"invoice": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"credit_memo": 123,
"payment_journal_entry": 123,
"currency": "<string>",
"amount": 0,
"payment_date": "2023-12-25",
"voided_date": "2023-12-25",
"payment_transaction": 123,
"voided_journal_entry": 123
}
],
"amount_remaining": 123,
"entity_name": "<string>",
"entity_currency": "<string>",
"client_name": "<string>",
"client_email": "<string>",
"contract_name": "<string>",
"credit_account_number": "<string>",
"credit_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_path": "<string>",
"app": "<string>",
"model": "<string>",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"s3_content_type": "<string>",
"s3_content_length": 1073741823,
"object_id": 1073741823
}
],
"voided_date": "2023-12-25",
"voided_journal_entry_order": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"search_vector": "<string>",
"search_text": "<string>",
"credit_memo_date": "2023-12-25",
"created_at": "2023-11-07T05:31:56Z",
"customer": 123,
"entity": 123,
"credit_memo_number": "<string>",
"ref_number": "<string>",
"applied_date": "2023-12-25",
"message_on_credit_memo": "<string>",
"application_status": "open",
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"last_sent_at": "2023-11-07T05:31:56Z",
"anrok_transaction_id": "<string>",
"total_amount": 0,
"amount_used": 0,
"client": 123,
"credit_account": 123,
"journal_entry": 123,
"contract": 123,
"voided_journal_entry": 123,
"anrok_connection": 123
}Void an existing credit memo.
This creates a reversing journal entry to void the credit memo by reversing all debit and credit amounts. The credit memo status will be updated to reflect the void.
curl --request POST \
--url https://api.meetcampfire.com/coa/api/v1/credit-memo/{credit_memo_id}/void/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"void_date": "2023-12-25"
}
'{
"id": 123,
"lines": [
{
"id": 123,
"account_number": "<string>",
"account_name": "<string>",
"product_name": "<string>",
"department_name": "<string>",
"tags": [
{
"id": 123,
"group_name": "<string>",
"parent_name": "<string>",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"parent": 123,
"is_active": true,
"group": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"account": 123,
"description": "<string>",
"amount": 0,
"product": 123,
"department": 123
}
],
"payments": [
{
"id": 123,
"payment_journal_entry_order": "<string>",
"invoice": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"credit_memo": 123,
"payment_journal_entry": 123,
"currency": "<string>",
"amount": 0,
"payment_date": "2023-12-25",
"voided_date": "2023-12-25",
"payment_transaction": 123,
"voided_journal_entry": 123
}
],
"amount_remaining": 123,
"entity_name": "<string>",
"entity_currency": "<string>",
"client_name": "<string>",
"client_email": "<string>",
"contract_name": "<string>",
"credit_account_number": "<string>",
"credit_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_path": "<string>",
"app": "<string>",
"model": "<string>",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"s3_content_type": "<string>",
"s3_content_length": 1073741823,
"object_id": 1073741823
}
],
"voided_date": "2023-12-25",
"voided_journal_entry_order": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"search_vector": "<string>",
"search_text": "<string>",
"credit_memo_date": "2023-12-25",
"created_at": "2023-11-07T05:31:56Z",
"customer": 123,
"entity": 123,
"credit_memo_number": "<string>",
"ref_number": "<string>",
"applied_date": "2023-12-25",
"message_on_credit_memo": "<string>",
"application_status": "open",
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"last_sent_at": "2023-11-07T05:31:56Z",
"anrok_transaction_id": "<string>",
"total_amount": 0,
"amount_used": 0,
"client": 123,
"credit_account": 123,
"journal_entry": 123,
"contract": 123,
"voided_journal_entry": 123,
"anrok_connection": 123
}Token-based authentication with required prefix "Token"
ID of the credit memo to void
Show child attributes
Show child attributes
Calculate amount remaining from database fields
Combines account number and name in the format "number - name"
Show child attributes
120open - Openpartially_used - Partially Usedused - Usedvoided - Voidedopen, partially_used, used, voided 3-100000000000000 < x < 100000000000000-100000000000000 < x < 100000000000000ID of the negation transaction in Anrok for this credit memo
255Sum of all line item amounts
-1000000000000000000 < x < 1000000000000000000Sum of all non-voided payment amounts
-1000000000000000000 < x < 1000000000000000000