Retrieve SEPA DD Transaction

This request gets details about a past SEPA Direct Debit transaction, such as the transaction ID, amount, currency, payer info or vaulted shopper, and so on.

Note: If you are using the API + Hosted Page Hybrid solution, this can also return transactions created in Hosted Payment Pages.

Try it in the API Explorer

Request Content

No content is required in the request body. Enter the relevant IDs in the request URL, as follows:

Retrieve based on Transaction ID
Enter the transaction-id into the web service URL, in the format:
services/2/alt-transactions/{transaction-id}

For example:
services/2/alt-transactions/38504790

Retrieve based on Merchant Transaction ID and Merchant ID
Enter the merchant-transaction-id and merchant-id into the web service URL, in the format:
services/2/alt-transactions/{merchant-transaction-id},{merchant-id}

For example:
services/2/alt-transactions/unique_001,395608

Response Details

If successful, the response HTTP status code is 200 OK.
The response contains the retrieved alt-transaction resource (see alt-transaction).

👍

Staying informed of the transaction status

The processing-status property is returned in the response, and it will indicate the status of the transaction.
The possible values are:

  • PENDING — Invoice was not yet approved.
  • SUCCESS — Invoice was approved and the shopper's account was debited.
  • FAIL — Invoice was canceled and the shopper's account was not debited.
  • REFUNDED — Invoice was refunded in response to a chargeback or refund requested by the shopper.

Examples

Request Examples

curl -v -X GET https://sandbox.bluesnap.com/services/2/alt-transactions/1011189089 \
-H 'Content-Type: application/xml' \
-H 'Accept: application/xml' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
curl -v -X GET https://sandbox.bluesnap.com/services/2/alt-transactions/unique_001,395608 \
-H 'Content-Type: application/xml' \
-H 'Accept: application/xml' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '

Response Examples

The below examples assume the shopper's bank has approved the transaction and their account has been debited, shown by a processing-status value of SUCCESS.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<alt-transaction xmlns="http://ws.plimus.com">
  <transaction-id>1011189089</transaction-id>
  <soft-descriptor>ABC COMPANY</soft-descriptor>
  <amount>9.65</amount>
  <currency>EUR</currency>
  <transaction-approval-date>10/01/2020</transaction-approval-date>
  <transaction-approval-time>10:19:21</transaction-approval-time>
  <payer-info>
    <first-name>John</first-name>
    <last-name>Doe</last-name>
  </payer-info>
  <vaulted-shopper-id>21781957</vaulted-shopper-id>
  <sepa-direct-debit-transaction>
    <iban-first-four>DE09</iban-first-four>
    <iban-last-four>7893</iban-last-four>
    <mandate-id>Ooo153451</mandate-id>
    <mandate-date>01-Oct-20</mandate-date>
  </sepa-direct-debit-transaction>
  <processing-info>
    <processing-status>SUCCESS</processing-status>
  </processing-info>
</alt-transaction>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<alt-transaction xmlns="http://ws.plimus.com">
  <transaction-id>38504790</transaction-id>
  <merchant-transaction-id>unique_001</merchant-transaction-id>
  <soft-descriptor>ABC COMPANY</soft-descriptor>
  <amount>9.65</amount>
  <currency>EUR</currency>
  <transaction-approval-date>10/01/2020</transaction-approval-date>
  <transaction-approval-time>10:19:21</transaction-approval-time>
  <payer-info>
    <first-name>John</first-name>
    <last-name>Doe</last-name>
  </payer-info>
  <vaulted-shopper-id>21788723</vaulted-shopper-id>
  <sepa-direct-debit-transaction>
    <iban-first-four>DE09</iban-first-four>
    <iban-last-four>7893</iban-last-four>
    <mandate-id>Ooo153467</mandate-id>
    <mandate-date>01-Oct-20</mandate-date>
  </sepa-direct-debit-transaction>
  <processing-info>
    <processing-status>SUCCESS</processing-status>
  </processing-info>
</alt-transaction>

API Explorer (for request based on Transaction ID)

To test out a call, enter an existing transaction ID in the transaction-id field. This will automatically insert the ID into the request URL.

Language
Credentials
:
Click Try It! to start a request and see the response here!