/v1/transactions

Initialize a Secure Fields tokenization

Changed on
post/v1/transactions/secureFields/tokenize

Request

  • Base URL
    https://api.sandbox.datatrans.com
  • URL
    https://api.sandbox.datatrans.com/v1/transactions/secureFields/tokenize
  • Auth
    HTTP basic

Request body

usage'SIMPLE' | 'REGISTRATION'
returnResourcesboolean

If true, JavaScript resources with Subresource Integrity (SRI) information are returned in the response.

Response

Tokenization successfully initialized.

transactionIdstring

The transactionId to be used when calling SecureFields.init(). If no further action happens with the transactionId after initialization, it will be invalidated after 30 minutes.

Example response

{
  "resources": [
    {
      "uri": "https://pay.datatrans.com/upp/payment/js/secure-fields-2.0.0.js",
      "integrity": "sha384-Base64EncodedHashValue"
    }
  ]
}

Changes

    • info

      api operation id initTokenize removed and replaced with secure-fields-init-tokenize

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status