curl --request POST \
--url https://api.meetcampfire.com/coa/api/v1/invoice/{invoice_id}/default-payment \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"posted_at": "2023-12-25",
"transaction_amount": 0
}
'{
"default_payment_amount": 0,
"payment_term_discount_note": "<string>"
}Get the default payment amount for an invoice based on when payment is posted.
If the invoice has discount terms and the posted date is within the discount period, the discounted amount is returned. Otherwise, the full amount is returned.
curl --request POST \
--url https://api.meetcampfire.com/coa/api/v1/invoice/{invoice_id}/default-payment \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"posted_at": "2023-12-25",
"transaction_amount": 0
}
'{
"default_payment_amount": 0,
"payment_term_discount_note": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.campfire.ai/llms.txt
Use this file to discover all available pages before exploring further.
Token-based authentication with required prefix "Token"
ID of the invoice