Retrieve Sofort Transaction

This request gets details about a past Sofort transaction.


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 Order ID
The order ID can be used to retrieve the transaction at any point. BlueSnap returns the order ID in the Create Sofort Transaction response.

Enter the orderId into the web service URL, in the format:
services/2/alt-transactions/resolve?orderId={order ID}

For example: services/2/alt-transactions/resolve?orderId=18981947

Retrieve based on Transaction ID
If the shopper has completed their purchase (processingStatus is success), the transaction will be assigned a transaction ID. BlueSnap provides the transaction ID in your return URL query string.

Enter the transactionId into the web service URL, in the format:
services/2/alt-transactions/{transaction ID}

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

Note: If the shopper has not completed their purchase (processingStatus is pending), the transaction will not have a transaction ID yet, so you will need to retrieve based on order ID, or retrieve based on Merchant Transaction ID and Merchant ID.

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/sofort-8202020,500605

Response Details

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


Examples

Request Examples

curl -v -X GET https://sandbox.bluesnap.com/services/2/alt-transactions/resolve?orderId=20922493 \
-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/1034522167 \
-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/sofort-1222,500605 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '

Response Examples

{
  "amount": 42,
  "currency": "GBP",
  "payerInfo": {
    "firstName": "John",
    "lastName": "Doe",
    "country": "uk"
  },
  "vaultedShopperId": 29896125,
  "sofortTransaction": {
    "language": "en",
    "sofortUrl": "https://eu.gcsip.nl/orb/orb?ACTION=DO_START&REF=000000410000209224930000100001&MAC=k4cr6oNG%2FYtDMwfKJWwveKOSA6V3xDS8j0qFWZD7IyA%3D",
    "orderId": 20922493
  },
  "processingInfo": {
    "processingStatus": "PENDING"
  }
}
{
  "transactionId": "1034522167",
  "amount": 42,
  "currency": "GBP",
  "payerInfo": {
    "firstName": "John_APPROVE",
    "lastName": "Doe",
    "country": "uk"
  },
  "vaultedShopperId": 28557135,
  "sofortTransaction": {
    "sofortUrl": "https://eu.gcsip.nl/orb/orb?ACTION=DO_START&REF=000000410000040103490000100001&MAC=HE6YXxWM7LZAnz6yaS9%2BIzKUBbAnrBi%2Bv%2BO4vWCV7h0%3D",
    "orderId": 4010349
  },
  "transactionApprovalDate": "09/08/2020",
  "transactionApprovalTime": "10:22:44",
  "processingInfo": {
    "processingStatus": "SUCCESS"
  }
}
{
  "merchantTransactionId": "sofort-1222",
  "amount": 50,
  "currency": "EUR",
  "payerInfo": {
    "firstName": "John",
    "lastName": "Doe",
    "country": "de"
  },
  "vaultedShopperId": 29896253,
  "sofortTransaction": {
    "language": "en",
    "sofortUrl": "https://eu.gcsip.nl/orb/orb?ACTION=DO_START&REF=000000410000209225010000100001&MAC=T8Xk9fqXiIlBNoEZKEVceB82rTUWBS%2BsHQbhZAHLlmU%3D",
    "orderId": 20922501
  },
  "processingInfo": {
    "processingStatus": "PENDING"
  }
}

API Explorer (for request based on Order ID)

To test out a call, enter an existing order ID (e.g. 20922493) in the orderId field; this automatically inserts the ID into the request URL. Then, click Try it!.

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