Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Description

Request to this API will return all transactions count based on status of the transaction created by the selected merchants with limitations with timestamp

URL: https://secure1.sandbox.directpay.online/API/v7/index.php

Response:

The method will respond with the result of your request

Variables to send:

Parameter

Data type

Description

 

Request

Text

getTransactionsCount

Mandatory

CompanyToken

Token

Token you got from 3G to operate this API

Mandatory

allTrans

 

Status of transaction
0 - Paid (default)
1 - All
2 - Cancelled
3 - Authorised
4 - Queued Auth

Mandatory

 

 

startTimeStamp

timestamp

Timestamp of the start date

Mandatory

endTimeStamp

timestamp

Timestamp of the end date

Mandatory

userToken

Token

Token fo user who initiated refund

Optional


Request Example:

<?xml version="1.0" encoding="utf-8"?>
<API3G>
    <CompanyToken>DC6405AA-A025-4B8B-989B-A8921DD31094</CompanyToken>
    <Request>getTransactionsCount</Request>
    <startTimeStamp>1579478429</startTimeStamp>
    <endTimeStamp>1585552085</endTimeStamp>
    <allTrans>1</allTrans>
    <userToken>26E692C5-4F6F-46CA-AE86-6007DBDE4DDA</userToken>
</API3G>

Success Response Example

<?xml version="1.0" encoding="UTF-8"?>
<API3G>
    <Code>000</Code>
    <Explanation>Results Found</Explanation>
    <TransactionCount>6</TransactionCount>
</API3G>

Fail Response Example

<?xml version="1.0" encoding="UTF-8"?>
<API3G>
    <Code>901</Code>
    <Explanation>No transactions found</Explanation>
    <TransactionCount></TransactionCount>
</API3G>

  • No labels