Retrieve Sofort Transaction

📘

Coming soon!

Watch for Klarna to replace Sofort.

This request gets details about a past Sofort transaction.


📘

Send a test request

Go to API Explorer to send a test request to our sandbox environment and receive a response in real time.

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=140803713

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=140803713 \
-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": "EUR",
  "payerInfo": {
    "firstName": "John",
    "lastName": "Doe",
    "country": "de"
  },
  "vaultedShopperId": 29896125,
  "sofortTransaction": {
    "language": "en",
    "sofortUrl": "https://eu.gcsip.nl/orb/orb?ACTION=DO_START&REF=0000004100001408037130000100001&MAC=k4cr6oNG%2FYtDMwfKJWwveKOSA6V3xDS8j0qFWZD7IyA%3D",
    "orderId": 140803713
  },
  "processingInfo": {
    "processingStatus": "PENDING",
    "transactionRegion": "DE"
  }
}
{
  "transactionId": "1034522167",
  "amount": 42,
  "currency": "EUR",
  "payerInfo": {
    "firstName": "John_APPROVE",
    "lastName": "Doe",
    "country": "de"
  },
  "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

Order ID Request

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

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