curl -X POST https://kube.acho.io/service/general-ledger/invoices/INV-2024-001/receive-payment \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"payment_date": "2024-02-10",
"payment_amount": 4400,
"deposit_account_id": "a3-cash-xxx",
"payment_method": "Bank Transfer",
"reference": "WIRE-001"
}'
{
"invoice_id": "INV-2024-001",
"payment_id": "CP-2024-001",
"payment_date": "2024-02-10",
"payment_amount": 4400,
"deposit_account_id": "a3-cash-xxx",
"payment_method": "Bank Transfer",
"reference": "WIRE-001",
"invoice_status": "Paid",
"amount_paid_total": 4400,
"amount_due": 0
}
Record a customer payment against an invoice
curl -X POST https://kube.acho.io/service/general-ledger/invoices/INV-2024-001/receive-payment \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"payment_date": "2024-02-10",
"payment_amount": 4400,
"deposit_account_id": "a3-cash-xxx",
"payment_method": "Bank Transfer",
"reference": "WIRE-001"
}'
{
"invoice_id": "INV-2024-001",
"payment_id": "CP-2024-001",
"payment_date": "2024-02-10",
"payment_amount": 4400,
"deposit_account_id": "a3-cash-xxx",
"payment_method": "Bank Transfer",
"reference": "WIRE-001",
"invoice_status": "Paid",
"amount_paid_total": 4400,
"amount_due": 0
}
jwt YOUR_TOKENapplication/jsonBank Transfer, Check, Credit Card)curl -X POST https://kube.acho.io/service/general-ledger/invoices/INV-2024-001/receive-payment \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"payment_date": "2024-02-10",
"payment_amount": 4400,
"deposit_account_id": "a3-cash-xxx",
"payment_method": "Bank Transfer",
"reference": "WIRE-001"
}'
{
"invoice_id": "INV-2024-001",
"payment_id": "CP-2024-001",
"payment_date": "2024-02-10",
"payment_amount": 4400,
"deposit_account_id": "a3-cash-xxx",
"payment_method": "Bank Transfer",
"reference": "WIRE-001",
"invoice_status": "Paid",
"amount_paid_total": 4400,
"amount_due": 0
}