{"_id":"59a45d2dd12e81000f842f6a","category":{"_id":"59a45d2bd12e81000f842ee7","version":"59a45d2bd12e81000f842ee2","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-07-10T15:05:46.960Z","from_sync":false,"order":4,"slug":"sepa-direct-debit-transactions","title":"SEPA Direct Debit Transactions"},"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","parentDoc":null,"version":{"_id":"59a45d2bd12e81000f842ee2","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-08-28T18:12:59.168Z","releaseDate":"2017-08-28T18:12:59.168Z","categories":["59a45d2bd12e81000f842ee3","59a45d2bd12e81000f842ee4","59a45d2bd12e81000f842ee5","59a45d2bd12e81000f842ee6","59a45d2bd12e81000f842ee7","59a45d2bd12e81000f842ee8","59a45d2bd12e81000f842ee9","59a45d2bd12e81000f842eea","59a45d2bd12e81000f842eeb","59a45d2bd12e81000f842eec","59a45d2bd12e81000f842eed","59a45d2bd12e81000f842eee","59a45d2bd12e81000f842eef","59a45d2bd12e81000f842ef0","59a45d2bd12e81000f842ef1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.22.1","version_clean":"8976.0.0-JSON","version":"8976-JSON"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-07-17T17:16:35.401Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"57ee593a21ceb20e0061959e","examples":{"codes":[]},"method":"get","auth":"optional","params":[{"_id":"596cf1cb20660f0015f5191a","ref":"","in":"path","required":false,"desc":"transaction ID received in the response from BlueSnap","default":"","type":"string","name":"transactionId"}],"url":"/alt-transactions/:transactionId"},"isReference":false,"order":12,"body":"[block:html]\n{\n  \"html\": \"<script>\\n  // hide body textbox of API Explorer\\n $(document).ready(function() {\\n  $(\\\"textarea[placeholder='Body Content']\\\").hide();  \\n }); \\n</script>\"\n}\n[/block]\nThis 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.\n\n<a class=\"btn btn-success\" href=\"#section-api-explorer-for-request-based-on-transaction-id-\" role=\"button\">Try it in the API Explorer</a>\n\n\n###Request Content\nNo content is required in the request body. Enter the relevant IDs in the request URL, as follows:\n\n**Retrieve based on Transaction ID**\nEnter the `transactionId` into the web service URL, in the format:\n`services/2/alt-transactions/{transactionId}`\n\nFor example:\n`services/2/transactions/38504790`\n\n**Retrieve based on Merchant Transaction ID and Merchant ID**\nEnter the `merchantTransactionId` and `merchantId` into the web service URL, in the format:\n`services/2/alt-transactions/{merchantTransactionId},{merchantId}`\n\nFor example:\n`services/2/alt-transactions/unique_001,395608`\n\n###Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the retrieved `altTransaction` resource (see [altTransaction](doc:alt-transaction)). \n[block:callout]\n{\n  \"type\": \"success\",\n  \"title\": \"Staying informed of the transaction status\",\n  \"body\": \"The `processingStatus` property is returned in the response, and it will indicate the status of the transaction.\\nThe possible values are: \\n* **PENDING** - Invoice was not yet approved. \\n* **SUCCESS** - Invoice was approved and the shopper's account was debited.\\n* **FAIL** - Invoice was canceled and the shopper's account was not debited. \\n* **REFUNDED** - Invoice was refunded in response to a chargeback or refund requested by the shopper.\"\n}\n[/block]\n\n<hr>\n\n##Examples\n\n###Request Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/alt-transactions/38504790 \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\",\n      \"language\": \"curl\",\n      \"name\": \"Retrieve SEPA Direct Debit Transaction: by Transaction ID\"\n    },\n    {\n      \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/alt-transactions/unique_001,395608 \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\",\n      \"language\": \"curl\",\n      \"name\": \"by Merchant Transaction ID and Merchant ID\"\n    }\n  ]\n}\n[/block]\n###Response Examples\nThe below examples assume the shopper's bank has approved the transaction and their account has been debited, shown by a `processingStatus` value of **SUCCESS**. \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"transactionId\\\": \\\"38504790\\\",\\n    \\\"softDescriptor\\\": \\\"Testing\\\",\\n    \\\"amount\\\": 9.65,\\n    \\\"currency\\\": \\\"EUR\\\",\\n    \\\"payerInfo\\\": {\\n        \\\"firstName\\\": \\\"John\\\",\\n        \\\"lastName\\\": \\\"Doe\\\"\\n    },\\n    \\\"vaultedShopperId\\\": 21788723,\\n    \\\"sepaDirectDebitTransaction\\\": {\\n        \\\"ibanFirstFour\\\": \\\"DE09\\\",\\n        \\\"ibanLastFour\\\": \\\"7893\\\",\\n        \\\"mandateId\\\": \\\"Ooo153467\\\",\\n        \\\"mandateDate\\\": \\\"21-Jul-17\\\"\\n    },\\n    \\\"processingInfo\\\": {\\n        \\\"processingStatus\\\": \\\"SUCCESS\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Retrieve SEPA Direct Debit Transaction: 200 OK - by Transaction ID\"\n    },\n    {\n      \"code\": \"{\\n    \\\"merchantTransactionId\\\": \\\"unique_001\\\", \\n    \\\"transactionId\\\": \\\"38504790\\\",\\n    \\\"softDescriptor\\\": \\\"Testing\\\",\\n    \\\"amount\\\": 9.65,\\n    \\\"currency\\\": \\\"EUR\\\",\\n    \\\"payerInfo\\\": {\\n        \\\"firstName\\\": \\\"John\\\",\\n        \\\"lastName\\\": \\\"Doe\\\"\\n    },\\n    \\\"vaultedShopperId\\\": 21788723,\\n    \\\"sepaDirectDebitTransaction\\\": {\\n        \\\"ibanFirstFour\\\": \\\"DE09\\\",\\n        \\\"ibanLastFour\\\": \\\"7893\\\",\\n        \\\"mandateId\\\": \\\"Ooo153467\\\",\\n        \\\"mandateDate\\\": \\\"21-Jul-17\\\"\\n    },\\n    \\\"processingInfo\\\": {\\n        \\\"processingStatus\\\": \\\"SUCCESS\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK - by Merchant Transaction ID and Merchant ID\"\n    }\n  ]\n}\n[/block]\n##API Explorer (for request based on Transaction ID)\nTo test out a call, enter an existing transaction ID (e.g. *1014672453*) in the `transactionId` field; this will automatically insert the ID into the request URL. Then, click **Try it!**.","excerpt":"","slug":"retrieve-sepa-dd-transaction","type":"get","title":"Retrieve SEPA DD Transaction"}

getRetrieve SEPA DD Transaction


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

transactionId:
string
transaction ID received in the response from BlueSnap

Documentation

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.

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 transactionId into the web service URL, in the format:
services/2/alt-transactions/{transactionId}

For example:
services/2/transactions/38504790

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

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 altTransaction resource (see altTransaction).

Staying informed of the transaction status

The processingStatus 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/38504790 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
curl -v -X GET https://sandbox.bluesnap.com/services/2/alt-transactions/unique_001,395608 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-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 processingStatus value of SUCCESS.

{
    "transactionId": "38504790",
    "softDescriptor": "Testing",
    "amount": 9.65,
    "currency": "EUR",
    "payerInfo": {
        "firstName": "John",
        "lastName": "Doe"
    },
    "vaultedShopperId": 21788723,
    "sepaDirectDebitTransaction": {
        "ibanFirstFour": "DE09",
        "ibanLastFour": "7893",
        "mandateId": "Ooo153467",
        "mandateDate": "21-Jul-17"
    },
    "processingInfo": {
        "processingStatus": "SUCCESS"
    }
}
{
    "merchantTransactionId": "unique_001", 
    "transactionId": "38504790",
    "softDescriptor": "Testing",
    "amount": 9.65,
    "currency": "EUR",
    "payerInfo": {
        "firstName": "John",
        "lastName": "Doe"
    },
    "vaultedShopperId": 21788723,
    "sepaDirectDebitTransaction": {
        "ibanFirstFour": "DE09",
        "ibanLastFour": "7893",
        "mandateId": "Ooo153467",
        "mandateDate": "21-Jul-17"
    },
    "processingInfo": {
        "processingStatus": "SUCCESS"
    }
}

API Explorer (for request based on Transaction ID)

To test out a call, enter an existing transaction ID (e.g. 1014672453) in the transactionId field; this will automatically insert the ID into the request URL. Then, click Try it!.


User Information

Try It Out


get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}