Skip to main content

Payment

Overview

Returns a payment report for the selected date range, designed for cashiering and accounting reconciliation. On success, data.list contains the detailed payment entries (date/time, user, amounts, reference context, account and payment method, and payment source), while data.summary provides an aggregated view of totals by payment method/status; optional request fields let you filter by account, payment source/type, user, POS, and control grouping or settlement-related display behavior.

Request Endpoint

  • Method: POST
  • Path: {{base_url}}/api/hq/reports/payment

Payload Construction and Schema Definition

The request payload is submitted as form-data fields.

Request Body Fields

FieldTypeRequiredDescription
start_datestring (date)YesStart date (YYYY-MM-DD) for the report.
end_datestring (date)YesEnd date (YYYY-MM-DD) for the report.
account_idstringNoAccount filter. Use all for all accounts.
payment_fromstringNoPayment source filter. Use [] for all.
payment_typestringNoPayment type filter. Use all for all types.
userstringNoUser filter. Use all for all users.
show_payment_settlementstring/numberNoShow payment settlement (0/1).
pos_idstringNoPOS filter.
filter_typestringNoFilter type, e.g. PAYMENT_DATE.
show_deposit_usage_on_paymentstring/numberNoShow deposit usage on payment (0/1).
group_bystringNoGrouping field, e.g. payment_date.

Response Body Fields

FieldTypeAlways presentDescription
errorbooleanYesIndicates whether the request failed. false means success.
statusstringYesStatus string. On success the example returns "ok".
messagestringYesHuman-readable message. Often empty on success.
dataobjectYes (on success)Payment report data.

Response data.list Fields

FieldTypeDescriptionExample
idstringPayment entry ID.ff988ba0-50ca-11f0-ae4c-235b679d1023
payment_statusstring/nullPayment status.null
payment_datestring (date)Payment date (YYYY-MM-DD).2025-06-23
created_atstring (datetime)Creation timestamp.2025-06-24 15:15:24
created_bystringUser who created the entry.admin
total_paidnumberTotal paid amount.1000000
name_on_cardstring/nullName on card (if applicable).null
card_nostring/nullCard number (if applicable).null
notesstring/nullNotes.null
bookeepingratenumberBookkeeping rate.1
transaction_nostringTransaction number.PAY-2849
reference_nostringReference information.Folio no : 1649, Guest Profile Name : Hupo , ...
account_namestringAccount name.1.1.01.01 - INI TEST
payment_method_namestringPayment method name.Cash with Fee
payment_fromstringPayment source.RESERVATION

Response data.summary Fields

FieldTypeDescriptionExample
payment_method_namestringPayment method name.Cash with Fee
payment_statusstring/nullPayment status.null
total_paidnumberTotal paid for this method.5272331

Expected System Responses

The system responds with HTTP 200 OK.

{
"error": false,
"status": "ok",
"message": "",
"data": {
"list": [
{
"id": "ff988ba0-50ca-11f0-ae4c-235b679d1023",
"payment_status": null,
"payment_date": "2025-06-23",
"created_at": "2025-06-24 15:15:24",
"created_by": "admin",
"total_paid": 1000000,
"name_on_card": null,
"card_no": null,
"notes": null,
"bookeepingrate": 1,
"transaction_no": "PAY-2849",
"reference_no": "Folio no : 1649, Guest Profile Name : Hupo , Room Type : , Room : Deluxe Villa 101 renamed",
"account_name": "1.1.01.01 - INI TEST",
"payment_method_name": "Cash with Fee",
"payment_from": "RESERVATION"
}
],
"summary": [
{
"payment_method_name": "Cash with Fee",
"payment_status": null,
"total_paid": 5272331
}
]
}
}