Transaction List

At the core of our payment gateway, the Transaction List Endpoint provides users with a seamless avenue to retrieve comprehensive transaction records. Integrate effortlessly to analyze transaction data, enhancing financial visibility and reporting capabilities.

Authentication

LeanX uses Auth Token to authenticate in each request's header.

Auth Token can be retrieved in your portal dashboard under API page.

Request Header

{
    "auth-token": "LP-0D7C06DE-MM|7394e58e-edee-4c42-9ca5-bcbc449f1b9f|2141df4a3cb633d5ce8683bb0c55067e5caebfbe07390dde277dc455bcc95c91723a81b5e565c7c02d68fb84e396722563016bf99e576a4b8cdbe4423fbf226b"
}

Getting the transaction list

HTTP Method: GET

https://api.leanx.dev/api/v1/merchant/transaction-list

Request Query

?skip=0&limit=10&start_date=01-01-1970&end_date=31-01-2099

Please double-check and ensure that the selected date range is accurate for your query. This ensures you receive the precise information you need.

Attribute

Property
Description

skip

Skips a specified number of rows

limit

Limits the results to the number of rows

start_date*

Start date of the transaction list. Kindly follow this format DD-MM-YYYY

end_date*

End date of the transaction list. Kindly follow this format DD-MM-YYYY

invoice_status*

Get list of transaction with invoice status SUCCESS or PENDING

Request Body

no request body

Response

{
  "response_code": 2000,
  "description": "SUCCESS",
  "app_version": "/api/v1",
  "talk_to_server_before": "2023-02-01T16:30:37.250585",
  "data": {
    "total-date-sale": 545,
    "total-date-count": 2,
    "transaction": [
      {
        "Invoice No": "BP-827E01E439-LNP",
        "Invoice Status": "SUCCESS",
        "Name": "Sophea",
        "Email": "sophea@gmail.com",
        "Phone Number": "0136598465",
        "Transaction Invoice No": "FPX1674124350nnGPXTwY",
        "Payment Mode": "WEB_PAYMENT",
        "Amount": 338.00,
        "Payment Date": "2023-01-19T18:32:40"
      },
      .......
      {
        "Invoice No": "BP-AF423CCB51-LNP",
        "Invoice Status": "SUCCESS",
        "Name": "Wardina",
        "Email": "wardina@gmail.com",
        "Phone Number": "0156939874",
        "Transaction Invoice No": "LP1675136138rJuRMukD",
        "Payment Mode": "WEB_PAYMENT",
        "Amount": 207.00,
        "Payment Date": "2023-01-31T11:35:51"
      }
    ]
  },
  "breakdown_errors": "",
  "token": ""
}

Last updated