...
...
The SuperWalletGetTransactions request will show the transactions paid for a customer, ordered by payment date (descending)
URL: https://secure1.sandbox.directpay.online/API/v6/
Variables to send:
Parameter | Data type | Description | |
---|---|---|---|
Request | Text | createAccount | Mandatory |
CompanyToken | Token | Token you got from 3G to operate this API | Mandatory |
customerUnq | Token | Token of the customer | Mandatory |
customerToken | Token | Token for customer's credit card. If not sent, results will be for all cards. | Optional |
numberOfRecords | Number | Maximum number of records to show in response (default 100) | Optional |
indexOfRecords | Number | Index for first (default 0) | Optional |
...
Request example
Code Block | ||||
---|---|---|---|---|
|
...
| |
<?xml version="1.0" encoding="utf-8"?>
<API3G>
<CompanyToken>68B90B5E-25F6-4146-8AB1-C7A3A0C41A7F</CompanyToken>
<Request>SuperWalletGetTransactions</Request>
<customerUnq>9D3D99F7-3FEE-4792-961A-6EFFB5B642BA</customerUnq>
<indexOfRecords>50</indexOfRecords>
<numberOfRecords>25</numberOfRecords>
</API3G> |
Response:
The server will respond for the SuperWalletGetTransactions request according to the following results:
Parameter | Data type | Description |
---|---|---|
Result | Number | Result |
...
Code | ||
ResultExplanation | Text | Free text of the response |
TotalTransactions | Number | Total of transactions existing for the customer |
transHistory | Tag |
...
An inside xml with details of the transactions | ||
trans | Tag | Each transaction will be returned in a <trans> tag |
transRef | Text | Reference of the transaction |
providerName | Text | Company Name of the transaction |
transCurrency | Text | Currency of transaction |
paymentDate | Date | Payement date |
transCardType | Text | Type of the credit card |
transCardNum | Number | Last 4 numbers of the credit card |
Code Block | ||||
---|---|---|---|---|
| ||||
<Result>000</Result>
<ResultExplanation>Transactions found</ResultExplanation>
<TotalTransactions>8</TotalTransactions>
<transHistory>
<trans>
<transRef>49717D0F</transRef>
<providerName>Direct Pay Online Payment</providerName>
<transAmount>1.00</transAmount>
<transCurrency>USD</transCurrency>
<paymentDate>2018-07-20</paymentDate>
<transCardType>MASC</transCardType>
<transCardNum>(4679)</transCardNum>
</trans>
<trans>
<transRef>49711B2E</transRef>
<providerName>Direct Pay Online Payment</providerName>
<transAmount>1.00</transAmount>
<transCurrency>USD</transCurrency>
<paymentDate>2018-07-20</paymentDate>
<transCardType>MASC</transCardType>
<transCardNum>(3215)</transCardNum>
</trans>
</transHistory> |