curl -X POST https://kube.acho.io/service/general-ledger/invoice-payments \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"customer_payment_id": "CP-2024-001",
"customer_id": "a3-customer-xxx",
"invoice_id": "a3-invoice-xxx",
"account_id": "a3-cash-account-xxx",
"ar_account_id": "a3-ar-account-xxx",
"tran_date": "2024-02-10",
"posting_period_id": "a3-period-xxx",
"payment": 4400,
"currency": "USD",
"memo": "Payment for INV-2024-001",
"status": "Draft"
}'
Record a customer payment
curl -X POST https://kube.acho.io/service/general-ledger/invoice-payments \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"customer_payment_id": "CP-2024-001",
"customer_id": "a3-customer-xxx",
"invoice_id": "a3-invoice-xxx",
"account_id": "a3-cash-account-xxx",
"ar_account_id": "a3-ar-account-xxx",
"tran_date": "2024-02-10",
"posting_period_id": "a3-period-xxx",
"payment": 4400,
"currency": "USD",
"memo": "Payment for INV-2024-001",
"status": "Draft"
}'
curl -X POST https://kube.acho.io/service/general-ledger/invoice-payments \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"customer_payment_id": "CP-2024-001",
"customer_id": "a3-customer-xxx",
"invoice_id": "a3-invoice-xxx",
"account_id": "a3-cash-account-xxx",
"ar_account_id": "a3-ar-account-xxx",
"tran_date": "2024-02-10",
"posting_period_id": "a3-period-xxx",
"payment": 4400,
"currency": "USD",
"memo": "Payment for INV-2024-001",
"status": "Draft"
}'