Status
The Status request returns the actual status of a payment transaction. Use the <uppTransactionId>
parameter and <reqtype>STX</reqtype>
to make the Status API call.
Example
curl -v -X POST https://api.sandbox.datatrans.com/upp/jsp/XML_status.jsp \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d @- << EOF
<?xml version="1.0" encoding="UTF-8" ?>
<statusService version="5">
<body merchantId="1100004624">
<transaction>
<request>
<uppTransactionId>TRANSACTION-ID</uppTransactionId>
<reqtype>STX</reqtype>
</request>
</transaction>
</body>
</statusService>
EOF
<?xml version='1.0' encoding='UTF-8'?>
<statusService version='5'>
<body merchantId='1100004624' status='accepted'>
<transaction trxStatus='response'>
<request>
<uppTransactionId>TRANSACTION-ID</uppTransactionId>
<reqtype>STX</reqtype>
</request>
<response itemNr='1'>
<responseCode>2</responseCode>
<responseMessage>Trx debit waiting for daily settlement process</responseMessage>
<refno>594080</refno>
<amount>1000</amount>
<currency>CHF</currency>
<authorizationCode>896916723</authorizationCode>
<pmethod>VIS</pmethod>
<uppTransactionId>TRANSACTION-ID</uppTransactionId>
<maskedCC>424242xxxxxx4242</maskedCC>
<aliasCC>70119122433810042</aliasCC>
<expm>12</expm>
<expy>21</expy>
<trxDate>20180507</trxDate>
<trxTime>123956</trxTime>
<trtype>05</trtype>
<settledAmount>1000</settledAmount>
</response>
</transaction>
</body>
</statusService>
Updated about 4 years ago