Description
Returns all transactions with the same booking ref
URL: https://secure1.sandbox.directpay.online/API/v7/
Response
The method will respond with the result of your request.
Variables to send:
Parameter | Data type | Description | |
---|---|---|---|
CompanyToken | Token | Token you got from 3G to operate this API | Mandatory |
Request | Text | getTransactionByRef | Mandatory |
CompanyRef | Text | Booking Reference | Mandatory |
userToken | Token | Using this field will return all transactions created by specified user | Optional |
allTrans | Boolean | Sending false with this parameter will return only paid transactions, else will return all transactions | Optional |
descOrder | Boolean | Sending this with true will return all results in the opposite order | Optional |
Request example:
<?xml version="1.0" encoding="utf-8"?> <API3G> <CompanyToken>DC6405AA-A025-4B8B-989B-A8921DD31094</CompanyToken> <Request>getTransactionByRef</Request> <CompanyRef>Testref</CompanyRef> <userToken>26E692C5-4F6F-46CA-AE86-6007DBDE4DDA</userToken> <allTrans>1</allTrans> <descOrder>1</descOrder> </API3G>
Response example:
<?xml version="1.0" encoding="UTF-8"?> <API3G><Code>000</Code> <Explanation>Results Found</Explanation> <Transactions> <Transaction> <TransactionBookRef>49FKQOB</TransactionBookRef> <TransactionToken>78F8572A-02C8-486F-A5DF-88671E609DD8</TransactionToken> <TransactionCreatedDate>2020-01-26 14:16:13</TransactionCreatedDate> <TransactionAmount>183.00</TransactionAmount> <TransactionCurrency>USD</TransactionCurrency> <TransactionFinalAmount>183.00</TransactionFinalAmount> <TransactionFinalCurrency>USD</TransactionFinalCurrency> <TransactionCreditCard>8367</TransactionCreditCard> <TransactionPartPayment>0</TransactionPartPayment> <TransactionCityId>7</TransactionCityId> <TransactionPhone>765468</TransactionPhone> <TransactionPhonePrefix></TransactionPhonePrefix> <TransactionRef>84178F85</TransactionRef> <TransactionStatus>Paid</TransactionStatus> <TransactionPaymentDate>2020-01-26 14:20:44</TransactionPaymentDate> <TransactionCardType>Mastercard</TransactionCardType> <TransactionUserName>System</TransactionUserName> <TransactionApprovalNumber>4444444420</TransactionApprovalNumber> <TransactionServiceDescription> <ServiceDescription>Flight from Paris to Ouagadougou</ServiceDescription> </TransactionServiceDescription> <TransactionCustomerPhone></TransactionCustomerPhone> <TransactionCustomerEmail>JohnDoe@gmail.com</TransactionCustomerEmail> <TransactionCustomerName>Joh Doe</TransactionCustomerName> <TransactionFraudAlert>002</TransactionFraudAlert> <TransactionFraudExplanation>High risk</TransactionFraudExplanation> </Transaction> </Transactions> </API3G>