latestOpenAPI 3.0.0Apache 2.02026-08-06199181.1 MB

e0d144609998

Bill Payments

Create Bill Payment

Create Bill Payment

post/bills/{bill_header_id}/payments

Path parameters

bill_header_idinteger required

Bill Id

Request body

organization_idinteger required
paid_onstring date required
deposit_account_idinteger required
deposit_amountnumber required
payment_method'Bank Transfer' | 'Cash' | 'Cheque' | 'Credit Card' | 'Other' | 'Online payment' required
commentsstring
payment_referencestring

Example request

{
  "organization_id": 1,
  "paid_on": "2023-11-02",
  "deposit_account_id": 31,
  "deposit_amount": 400,
  "payment_method": "Cash",
  "comments": "Partial payment",
  "payment_reference": "TXN-20231102-01"
}

Response

Bill payment has been created successfully.

messagestring

Example response

{
  "message": "Bill payment has been created.",
  "bill_payment": {
    "payment_id": 1,
    "payment_voucher_id": 1,
    "payment_method": "Cash",
    "payment_total": 400,
    "payment_reference": "TXN-20231102-01",
    "description": "Partial payment",
    "account_id": 12,
    "supplier_account_id": 97,
    "date": "2021-11-02",
    "bill_number": "BIL-0000001",
    "comments": "Partial payment",
    "created_on": "2024-09-30T10:30:02.000000Z"
  }
}