Credits history
Use this endpoint to list all the credit history of an account.
To know more about the Account click here
URL Config
Endpoint: https://api-stage.dps.io/api
APIVersion: v1
route: accounts/credits-history
path:
Method
GET
URL
https://api-stage.dps.io/api/v1/accounts/credits-history
Request Headers
{
"Content-Type": "application/json",
"x-api-key": "<YOUR_API_KEY>",
"ShipperHash": "<YOUR_SHIPPER_HASH>"
}
Curl request
curl --location --request GEt 'https://api-stage.dps.io/api/v1/accounts/credits-history' \
--header 'x-api-key: xxxxxxdfjbdjdfjdhfxxxxxxx' \
--header 'ShipperHash: 05K9****************************JG6a'
Response
[
{
"TransactionId": "txn_3NIy9FFCTLiv3m0L1tkFDQsn",
"DepositAmount": 100.0,
"WithdrawalAmount": 0.0,
"TotalBalance": 110.0,
"ShipperHash": "<YOUR_SHIPPER_HASH>",
"TransactionStatus": "Success",
"ReceiptUrl": "https://<Receipt Url>",
"TransactionDate": "2023-06-14 18:10:26+00:00"
},
{
"TransactionId": "txn_3MATazFCTLiv3m0L0DXxr0AH",
"DepositAmount": 10.0,
"WithdrawalAmount": 0.0,
"TotalBalance": 10.0,
"ShipperHash": "<YOUR_SHIPPER_HASH>",
"TransactionStatus": "Success",
"ReceiptUrl": "https://<Receipt Url>",
"TransactionDate": "2022-12-02 07:24:12+00:00"
}
]