curl -X POST https://kube.acho.io/service/general-ledger/credit-memos \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"credit_memo_id": "CM-2024-001",
"customer_id": "a3-customer-xxx",
"ar_account_id": "a3-ar-account-xxx",
"tran_date": "2024-02-15",
"posting_period_id": "a3-period-xxx",
"total": 500,
"currency": "USD",
"memo": "Return credit for damaged goods",
"status": "Draft",
"lines": [
{
"line_number": 1,
"revenue_account_id": "a3-revenue-xxx",
"description": "Returned item - Widget A",
"quantity": 5,
"unit_price": 100,
"amount": 500
}
]
}'
Issue a new credit memo
curl -X POST https://kube.acho.io/service/general-ledger/credit-memos \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"credit_memo_id": "CM-2024-001",
"customer_id": "a3-customer-xxx",
"ar_account_id": "a3-ar-account-xxx",
"tran_date": "2024-02-15",
"posting_period_id": "a3-period-xxx",
"total": 500,
"currency": "USD",
"memo": "Return credit for damaged goods",
"status": "Draft",
"lines": [
{
"line_number": 1,
"revenue_account_id": "a3-revenue-xxx",
"description": "Returned item - Widget A",
"quantity": 5,
"unit_price": 100,
"amount": 500
}
]
}'
curl -X POST https://kube.acho.io/service/general-ledger/credit-memos \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"credit_memo_id": "CM-2024-001",
"customer_id": "a3-customer-xxx",
"ar_account_id": "a3-ar-account-xxx",
"tran_date": "2024-02-15",
"posting_period_id": "a3-period-xxx",
"total": 500,
"currency": "USD",
"memo": "Return credit for damaged goods",
"status": "Draft",
"lines": [
{
"line_number": 1,
"revenue_account_id": "a3-revenue-xxx",
"description": "Returned item - Widget A",
"quantity": 5,
"unit_price": 100,
"amount": 500
}
]
}'