added

2025-07 New Payments API Endpoint

A new API 2.0 endpoint /api/2.0/payments/{payment_id} has been added to retrieve individual payment details by payment ID.

This endpoint returns the same payment fields as the /api/2.0/sales endpoint but includes an additional fee field that contains fees associated with the payment if it was processed through LSPay.

Key Features

  • Retrieve individual payment details using the payment ID
  • Returns all standard payment fields (id, amount, payment_date, etc.)
  • Includes a new nullable fee field for LSPay processing fees

Example Response

{
  "data": {
    "id": "a604d16b-a999-beb5-11e4-3ed468ffbb24",
    "register_id": "b1e198a9-f019-11e3-a0f5-b8ca3a64f8f4",
    "outlet_id": "b1e04bd8-f019-11e3-a0f5-b8ca3a64f8f4",
    "retailer_payment_type_id": "b1e1d70e-f019-11e3-a0f5-b8ca3a64f8f4",
    "payment_type_id": "1",
    "name": "Cash",
    "amount": 231.5,
    "payment_date": "2014-09-18T01:37:54+00:00",
    "external_attributes": [],
    "fee": 2.50
  }
}