Skip to main content
POST
/
service
/
general-ledger
/
invoice-payments
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"
  }'

Request

Create a new customer payment record.

Body Parameters

customer_payment_id
string
required
Unique identifier
customer_id
string
required
Customer ID
invoice_id
string
required
Invoice being paid
account_id
string
required
Cash/bank account
ar_account_id
string
required
Accounts Receivable account
tran_date
string
required
Payment date (YYYY-MM-DD)
posting_period_id
string
required
Accounting period
payment
number
required
Payment amount
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"
  }'