GET
/
getTransactions
curl --request GET \
  --url https://dashu.sa/api/external/getTransactions
{
  "success": true,
  "result": {
    "items": [
      {
        "id": 1,
        "payment_method": "ap-mada",
        "amount": "313.00",
        "service_charge": "1.00",
        "time": "2021-01-21 13:12:59"
      }
    ],
    "page_num": 1,
    "total_pages": 1,
    "total_rows": 1
  }
}

Query Parameters

apiKey
string
required

The API Key of your account.

startDate
string
required

The starting date of the result.

Sample: 2021-05-27 15:31:39

endDate
string
required

The ending date of the result.

Sample: 2021-06-28 23:59:59

pageNum
integer
required

The current page number (used for pagination in your system)

itemsPerPage
integer
required

Specifies the total items that should be return for each request (each page). It should be a number between 1 and 50.

{
  "success": true,
  "result": {
    "items": [
      {
        "id": 1,
        "payment_method": "ap-mada",
        "amount": "313.00",
        "service_charge": "1.00",
        "time": "2021-01-21 13:12:59"
      }
    ],
    "page_num": 1,
    "total_pages": 1,
    "total_rows": 1
  }
}

Response properties

success
boolean
required

A boolean value indicates the response status.

result
object
required

Error Codes

Here’s a list of possible error codes of this endpoint.

CodeDescription
1Missing or invalid api key
3You cannot pass a number greater than 50 for the parameter itemsPerPage
4Invalid `startDate“.
5invalid `endDate“.
GET
/
getTransactions
curl --request GET \
  --url https://dashu.sa/api/external/getTransactions
{
  "success": true,
  "result": {
    "items": [
      {
        "id": 1,
        "payment_method": "ap-mada",
        "amount": "313.00",
        "service_charge": "1.00",
        "time": "2021-01-21 13:12:59"
      }
    ],
    "page_num": 1,
    "total_pages": 1,
    "total_rows": 1
  }
}

Query Parameters

apiKey
string
required

The API Key of your account.

startDate
string
required

The starting date of the result.

Sample: 2021-05-27 15:31:39

endDate
string
required

The ending date of the result.

Sample: 2021-06-28 23:59:59

pageNum
integer
required

The current page number (used for pagination in your system)

itemsPerPage
integer
required

Specifies the total items that should be return for each request (each page). It should be a number between 1 and 50.

{
  "success": true,
  "result": {
    "items": [
      {
        "id": 1,
        "payment_method": "ap-mada",
        "amount": "313.00",
        "service_charge": "1.00",
        "time": "2021-01-21 13:12:59"
      }
    ],
    "page_num": 1,
    "total_pages": 1,
    "total_rows": 1
  }
}

Response properties

success
boolean
required

A boolean value indicates the response status.

result
object
required

Error Codes

Here’s a list of possible error codes of this endpoint.

CodeDescription
1Missing or invalid api key
3You cannot pass a number greater than 50 for the parameter itemsPerPage
4Invalid `startDate“.
5invalid `endDate“.