Initialize a transaction
Changed onSecurely send all the needed parameters to the transaction initialization API. The result of this API call is a HTTP 201 status code with a transactionId in the response body and the Location header set. This call is required to proceed with our Redirect and Lightbox integration
Request
- Base URLhttps://api.sandbox.datatrans.com
- URLhttps://api.sandbox.datatrans.com/v1/transactions
- AuthHTTP basic
Request body
Example request
{
"card": {
"number": "4242424242424242"
},
"BON": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"DMO": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"ELV": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"ESY": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"INT": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"MDP": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"MFX": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"MPX": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"PAP": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"PFC": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"PFP": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"PLU": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"REK": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"SWP": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
},
"TWI": {
"alias": "AAABeCBPbiHssdexyrAAAYkaznYWAPYt"
}
}Response
Transaction successfully initialized
Example response
{
"resources": [
{
"uri": "https://pay.datatrans.com/upp/payment/js/secure-fields-2.0.0.js",
"integrity": "sha384-Base64EncodedHashValue"
}
]
}Changes
- warning
removed the request property
- warning
removed the request property
////// - warning
removed the request property
////// - warning
removed the request property
- warning
removed the request property
- warning
added the new
CONCURRENT_LIMIT_REACHEDenum value to the/response property for the response status - warning
added the new
NOT_FOUNDenum value to the/response property for the response status - warning
added the new
ROUTING_LOOKUP_FAILEDenum value to the/response property for the response status - warning
added the new
ROUTING_NOT_CONFIGUREDenum value to the/response property for the response status - warning
added the new
ROUTING_NOT_FOUNDenum value to the/response property for the response status - info
added the new optional request property
- info
added the new optional request property
/ - info
added the new optional request property
////// - info
added the new optional request property
////// - info
added the new optional request property
/ - info
added the new
80enum value to the request property/////// - info
added the new
80enum value to the request property/////// - info
added the new
81enum value to the request property/////// - info
added the new
81enum value to the request property/////// - info
added the new
82enum value to the request property/////// - info
added the new
82enum value to the request property/////// - info
added the new
83enum value to the request property/////// - info
added the new
83enum value to the request property/////// - info
added the new
84enum value to the request property/////// - info
added the new
84enum value to the request property/////// - info
added the new
85enum value to the request property/////// - info
added the new
85enum value to the request property/////// - info
added the new
86enum value to the request property/////// - info
added the new
86enum value to the request property/////// - info
added the new
87enum value to the request property/////// - info
added the new
87enum value to the request property/////// - info
added the new
88enum value to the request property/////// - info
added the new
88enum value to the request property/////// - info
added the new
89enum value to the request property/////// - info
added the new
89enum value to the request property/////// - info
added the new
90enum value to the request property/////// - info
added the new
90enum value to the request property/////// - info
added the new
91enum value to the request property/////// - info
added the new
91enum value to the request property/////// - info
added the new
92enum value to the request property/////// - info
added the new
92enum value to the request property/////// - info
added the new
93enum value to the request property/////// - info
added the new
93enum value to the request property/////// - info
added the new
94enum value to the request property/////// - info
added the new
94enum value to the request property/////// - info
added the new
95enum value to the request property/////// - info
added the new
95enum value to the request property/////// - info
added the new
96enum value to the request property/////// - info
added the new
96enum value to the request property/////// - info
added the new
97enum value to the request property/////// - info
added the new
97enum value to the request property/////// - info
added the new
98enum value to the request property/////// - info
added the new
98enum value to the request property/////// - info
added the new
99enum value to the request property/////// - info
added the new
99enum value to the request property/////// - info
added the new
DMOenum value to the request property/ - info
added the optional property
to the response with the status
- warning