Tokenized Transactions

Tokens let SAP access transactions created in a consumer application that is directly connected with BlueSnap. For instance, you may process a transaction in your e-Commerce platform and then need to refund it through SAP. When this occurs, SAP DPA checks that the transaction exists with BlueSnap and matches the data provided.

For more information, refer to Direct Connection Between PSP and Consumer Application.

Shared Token Transactions

The ability to transfer this data is known as a Shared Token Transaction. It lets you use tokens created in another system (such as a third-party shopping cart or a previous payment service provider) with BlueSnap and SAP DPA.

Common scenarios include:

  • Migrating vaulted shoppers when switching providers.
  • Capturing or refunding an authorization that started outside SAP.

Token-Based Transaction Endpoints

The following endpoints are specific to tokenized flows.

ActionEndpointDescription
Get Card Token/core/v1/tokens/getforpaymentcardSAP checks a vaulted shopper's payment card information in BlueSnap.
Authorize/core/v1/tokens/getforauthorizationSAP checks authorization for an external payment in BlueSnap.
Capture/core/v1/tokens/getfordirectcaptureSAP checks direct capture for an external payment in BlueSnap.

Get Card Token

When calling /core/v1/tokens/getforpaymentcard, you must provide a PaymentCards object with the following parameters. For comprehensive details about this endpoint, refer to the SAP API reference:

ParametersValues
PaymentServiceProviderFour-character code provided by SAP DPA for BlueSnap.
For example: BSNP
PaytCardByPaytServiceProviderPayment card token from BlueSnap.
For example: tok4711

The response will return a Digital Payment Add-on Payment Card Token (PaytCardByDigitalPaymentSrvc).

Authorize

When calling /core/v1/tokens/getforauthorization, you must provide an Authorizations object with the following parameters. For comprehensive details about this endpoint, refer to the SAP API reference:

ParametersValues
AuthorizationByPaytSrvcPrvdrThe transaction ID provided by BlueSnap.
For example: 38488222
PaymentServiceProviderFour-character code provided by SAP DPA for BlueSnap.
For example: BSNP
MerchantAccountBlueSnap merchant ID.
For example: 2138589
DigitalPaymentAuthorizationTypeIdentifier indicating the type of authorization performed.
For example: DPC2
AuthorizedAmountInAuthznCrcyThe amount authorized at BlueSnap.
For example: 35.62
AuthorizationCurrencyCurrency code (ISO 4217).
For example: USD

The response will return the Digital Payment Add-on Payment Token (PaymentByDigitalPaymentService) that you can use to refund the payment.

Capture

When calling /core/v1/tokens/getfordirectcapture, you must provide a DirectCaptures object with the following parameters. For comprehensive details about this endpoint, refer to the SAP API reference:

ParametersValues
PaymentByPaymentServicePrvdrThe ID of the transaction provided by BlueSnap.
For example: 38488220
PaymentServiceProviderFour-character code provided by SAP DPA.
For example: BSNP
MerchantAccountBlueSnap merchant ID.
For example: 2138589
DigitalPaymentDirectCaptureTypeIdentifier indicating the type of direct capture performed.
For example: DPC2
AmountInPaymentCurrencyThe amount of the direct capture. Must match the amount authorized.
For example: 35.62
PaymentCurrencyCurrency code (ISO 4217).
For example: USD

The response will return the Digital Payment Add-on Payment Token (PaymentByDigitalPaymentService) that you can use to refund the payment.