curl --request POST \
--url https://api.meetcampfire.com/coa/api/v1/credit-memo/{credit_memo_id}/payment/{payment_id}/void \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"void_date": "2023-12-25"
}
'{
"id": 123,
"payment_journal_entry_order": "<string>",
"voided_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
}Void a credit memo ‘mark used’ payment by creating a reversing journal entry.
This creates a reversing JE that credits the A/R account and debits Uncategorized, then marks the payment as voided.
curl --request POST \
--url https://api.meetcampfire.com/coa/api/v1/credit-memo/{credit_memo_id}/payment/{payment_id}/void \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"void_date": "2023-12-25"
}
'{
"id": 123,
"payment_journal_entry_order": "<string>",
"voided_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
}Token-based authentication with required prefix "Token"
ID of the credit memo
ID of the payment to void
3-1000000000000000000 < x < 1000000000000000000