Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
1 - All (default)
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:

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

...

Parameter

...

Data type

...

Description

...

 

...

Request

...

Text

...

getTransactionCount

...

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

...

Mandatory

 

 

...

startTimeStamp

...

timestamp

...

Timestamp of the start date

...

Mandatory

...

userToken

...

Token

...

...

Optional

Success Response Example

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

Fail Response Example

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

...