curl --request POST \
--url https://api.meetcampfire.com/coa/api/v1/bill/{bill_id}/payment/{payment_id}/void/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"void_date": "2023-12-25"
}
'{
"id": 123,
"payment_transaction_bank_description": "<string>",
"payment_journal_entry_order": "<string>",
"voided_journal_entry_order": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"bill": 123,
"payment_journal_entry": 123,
"currency": "<string>",
"amount": 0,
"payment_date": "2023-12-25",
"source": "<string>",
"source_id": "<string>",
"voided_date": "2023-12-25",
"payment_transaction": 123,
"voided_journal_entry": 123
}Void an existing bill payment.
This creates a reversing journal entry to void the payment and updates the bill status.
Optionally accepts a void_date in the request body to specify when the payment should be voided. If not provided, defaults to today’s date.
curl --request POST \
--url https://api.meetcampfire.com/coa/api/v1/bill/{bill_id}/payment/{payment_id}/void/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"void_date": "2023-12-25"
}
'{
"id": 123,
"payment_transaction_bank_description": "<string>",
"payment_journal_entry_order": "<string>",
"voided_journal_entry_order": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"bill": 123,
"payment_journal_entry": 123,
"currency": "<string>",
"amount": 0,
"payment_date": "2023-12-25",
"source": "<string>",
"source_id": "<string>",
"voided_date": "2023-12-25",
"payment_transaction": 123,
"voided_journal_entry": 123
}Token-based authentication with required prefix "Token"
ID of the bill
ID of the payment to void
3-1000000000000000000 < x < 1000000000000000000250