Send Batch Transactions
curl --request POST \
--url https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"transactions": [
{
"transactionDescription": {
"card": {
"cardId": "<string>"
},
"transactionData": {
"transactionAmount": {
"amount": 25,
"currency": "EUR"
},
"transactionDateTime": "2025-05-21T14:30:00Z"
},
"merchantData": {
"merchantId": "<string>",
"merchantName": "<string>",
"merchantCity": "<string>",
"merchantCountry": "FIN",
"merchantCategoryCode": "5812",
"acquirerId": "<string>",
"acquirerCountry": "FIN",
"terminalId": "<string>",
"subMerchantId": "<string>",
"partialApprovalCapable": true
},
"threeDsData": {
"eci": "<string>",
"authenticationValue": "<string>",
"dsTransactionId": "<string>"
}
},
"transactionEvents": [
{}
],
"includeInClearing": true
}
]
}
'import requests
url = "https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions"
payload = { "transactions": [
{
"transactionDescription": {
"card": { "cardId": "<string>" },
"transactionData": {
"transactionAmount": {
"amount": 25,
"currency": "EUR"
},
"transactionDateTime": "2025-05-21T14:30:00Z"
},
"merchantData": {
"merchantId": "<string>",
"merchantName": "<string>",
"merchantCity": "<string>",
"merchantCountry": "FIN",
"merchantCategoryCode": "5812",
"acquirerId": "<string>",
"acquirerCountry": "FIN",
"terminalId": "<string>",
"subMerchantId": "<string>",
"partialApprovalCapable": True
},
"threeDsData": {
"eci": "<string>",
"authenticationValue": "<string>",
"dsTransactionId": "<string>"
}
},
"transactionEvents": [{}],
"includeInClearing": True
}
] }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transactions: [
{
transactionDescription: {
card: {cardId: '<string>'},
transactionData: {
transactionAmount: {amount: 25, currency: 'EUR'},
transactionDateTime: '2025-05-21T14:30:00Z'
},
merchantData: {
merchantId: '<string>',
merchantName: '<string>',
merchantCity: '<string>',
merchantCountry: 'FIN',
merchantCategoryCode: '5812',
acquirerId: '<string>',
acquirerCountry: 'FIN',
terminalId: '<string>',
subMerchantId: '<string>',
partialApprovalCapable: true
},
threeDsData: {eci: '<string>', authenticationValue: '<string>', dsTransactionId: '<string>'}
},
transactionEvents: [{}],
includeInClearing: true
}
]
})
};
fetch('https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transactions' => [
[
'transactionDescription' => [
'card' => [
'cardId' => '<string>'
],
'transactionData' => [
'transactionAmount' => [
'amount' => 25,
'currency' => 'EUR'
],
'transactionDateTime' => '2025-05-21T14:30:00Z'
],
'merchantData' => [
'merchantId' => '<string>',
'merchantName' => '<string>',
'merchantCity' => '<string>',
'merchantCountry' => 'FIN',
'merchantCategoryCode' => '5812',
'acquirerId' => '<string>',
'acquirerCountry' => 'FIN',
'terminalId' => '<string>',
'subMerchantId' => '<string>',
'partialApprovalCapable' => true
],
'threeDsData' => [
'eci' => '<string>',
'authenticationValue' => '<string>',
'dsTransactionId' => '<string>'
]
],
'transactionEvents' => [
[
]
],
'includeInClearing' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions"
payload := strings.NewReader("{\n \"transactions\": [\n {\n \"transactionDescription\": {\n \"card\": {\n \"cardId\": \"<string>\"\n },\n \"transactionData\": {\n \"transactionAmount\": {\n \"amount\": 25,\n \"currency\": \"EUR\"\n },\n \"transactionDateTime\": \"2025-05-21T14:30:00Z\"\n },\n \"merchantData\": {\n \"merchantId\": \"<string>\",\n \"merchantName\": \"<string>\",\n \"merchantCity\": \"<string>\",\n \"merchantCountry\": \"FIN\",\n \"merchantCategoryCode\": \"5812\",\n \"acquirerId\": \"<string>\",\n \"acquirerCountry\": \"FIN\",\n \"terminalId\": \"<string>\",\n \"subMerchantId\": \"<string>\",\n \"partialApprovalCapable\": true\n },\n \"threeDsData\": {\n \"eci\": \"<string>\",\n \"authenticationValue\": \"<string>\",\n \"dsTransactionId\": \"<string>\"\n }\n },\n \"transactionEvents\": [\n {}\n ],\n \"includeInClearing\": true\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"transactions\": [\n {\n \"transactionDescription\": {\n \"card\": {\n \"cardId\": \"<string>\"\n },\n \"transactionData\": {\n \"transactionAmount\": {\n \"amount\": 25,\n \"currency\": \"EUR\"\n },\n \"transactionDateTime\": \"2025-05-21T14:30:00Z\"\n },\n \"merchantData\": {\n \"merchantId\": \"<string>\",\n \"merchantName\": \"<string>\",\n \"merchantCity\": \"<string>\",\n \"merchantCountry\": \"FIN\",\n \"merchantCategoryCode\": \"5812\",\n \"acquirerId\": \"<string>\",\n \"acquirerCountry\": \"FIN\",\n \"terminalId\": \"<string>\",\n \"subMerchantId\": \"<string>\",\n \"partialApprovalCapable\": true\n },\n \"threeDsData\": {\n \"eci\": \"<string>\",\n \"authenticationValue\": \"<string>\",\n \"dsTransactionId\": \"<string>\"\n }\n },\n \"transactionEvents\": [\n {}\n ],\n \"includeInClearing\": true\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transactions\": [\n {\n \"transactionDescription\": {\n \"card\": {\n \"cardId\": \"<string>\"\n },\n \"transactionData\": {\n \"transactionAmount\": {\n \"amount\": 25,\n \"currency\": \"EUR\"\n },\n \"transactionDateTime\": \"2025-05-21T14:30:00Z\"\n },\n \"merchantData\": {\n \"merchantId\": \"<string>\",\n \"merchantName\": \"<string>\",\n \"merchantCity\": \"<string>\",\n \"merchantCountry\": \"FIN\",\n \"merchantCategoryCode\": \"5812\",\n \"acquirerId\": \"<string>\",\n \"acquirerCountry\": \"FIN\",\n \"terminalId\": \"<string>\",\n \"subMerchantId\": \"<string>\",\n \"partialApprovalCapable\": true\n },\n \"threeDsData\": {\n \"eci\": \"<string>\",\n \"authenticationValue\": \"<string>\",\n \"dsTransactionId\": \"<string>\"\n }\n },\n \"transactionEvents\": [\n {}\n ],\n \"includeInClearing\": true\n }\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"transactionEventResponses": [
{
"messageCategory": "INITIAL_AUTHORIZATION",
"messageFunction": "REQUEST",
"response": {
"metadata": {
"mti": "0110",
"id": "<string>"
},
"transactionData": {
"authResponseCode": "00",
"retrievalReferenceNumber": "<string>"
}
}
}
]
}
]{
"code": "<string>",
"message": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"errorCode": "<string>",
"errorType": "STATIC_VALIDATION_ERROR",
"errorReason": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"errorCode": "<string>",
"errorType": "STATIC_VALIDATION_ERROR",
"errorReason": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"errorCode": "<string>",
"errorType": "STATIC_VALIDATION_ERROR",
"errorReason": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"errorCode": "<string>",
"errorType": "STATIC_VALIDATION_ERROR",
"errorReason": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}Test API
Send Batch Transactions
Send a request to this endpoint to trigger a series of transactions in sequence. Each transaction consists of an authorisation description with a series of events.
Each batchTransactionEvent combination:
messageCategory | messageFunction | Description |
|---|---|---|
INITIAL_AUTHORIZATION | REQUEST | First authorisation |
INITIAL_AUTHORIZATION | ADVICE | Authorisation advice |
DECLINED_AUTHORIZATION | REQUEST | Force-declined authorization |
REVERSAL | REQUEST | Full reversal |
REVERSAL | ADVICE | Reversal advice |
ADJUSTMENT | ADVICE | Amount adjustment advice |
POST
/
v1
/
batch-transactions
Send Batch Transactions
curl --request POST \
--url https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"transactions": [
{
"transactionDescription": {
"card": {
"cardId": "<string>"
},
"transactionData": {
"transactionAmount": {
"amount": 25,
"currency": "EUR"
},
"transactionDateTime": "2025-05-21T14:30:00Z"
},
"merchantData": {
"merchantId": "<string>",
"merchantName": "<string>",
"merchantCity": "<string>",
"merchantCountry": "FIN",
"merchantCategoryCode": "5812",
"acquirerId": "<string>",
"acquirerCountry": "FIN",
"terminalId": "<string>",
"subMerchantId": "<string>",
"partialApprovalCapable": true
},
"threeDsData": {
"eci": "<string>",
"authenticationValue": "<string>",
"dsTransactionId": "<string>"
}
},
"transactionEvents": [
{}
],
"includeInClearing": true
}
]
}
'import requests
url = "https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions"
payload = { "transactions": [
{
"transactionDescription": {
"card": { "cardId": "<string>" },
"transactionData": {
"transactionAmount": {
"amount": 25,
"currency": "EUR"
},
"transactionDateTime": "2025-05-21T14:30:00Z"
},
"merchantData": {
"merchantId": "<string>",
"merchantName": "<string>",
"merchantCity": "<string>",
"merchantCountry": "FIN",
"merchantCategoryCode": "5812",
"acquirerId": "<string>",
"acquirerCountry": "FIN",
"terminalId": "<string>",
"subMerchantId": "<string>",
"partialApprovalCapable": True
},
"threeDsData": {
"eci": "<string>",
"authenticationValue": "<string>",
"dsTransactionId": "<string>"
}
},
"transactionEvents": [{}],
"includeInClearing": True
}
] }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transactions: [
{
transactionDescription: {
card: {cardId: '<string>'},
transactionData: {
transactionAmount: {amount: 25, currency: 'EUR'},
transactionDateTime: '2025-05-21T14:30:00Z'
},
merchantData: {
merchantId: '<string>',
merchantName: '<string>',
merchantCity: '<string>',
merchantCountry: 'FIN',
merchantCategoryCode: '5812',
acquirerId: '<string>',
acquirerCountry: 'FIN',
terminalId: '<string>',
subMerchantId: '<string>',
partialApprovalCapable: true
},
threeDsData: {eci: '<string>', authenticationValue: '<string>', dsTransactionId: '<string>'}
},
transactionEvents: [{}],
includeInClearing: true
}
]
})
};
fetch('https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transactions' => [
[
'transactionDescription' => [
'card' => [
'cardId' => '<string>'
],
'transactionData' => [
'transactionAmount' => [
'amount' => 25,
'currency' => 'EUR'
],
'transactionDateTime' => '2025-05-21T14:30:00Z'
],
'merchantData' => [
'merchantId' => '<string>',
'merchantName' => '<string>',
'merchantCity' => '<string>',
'merchantCountry' => 'FIN',
'merchantCategoryCode' => '5812',
'acquirerId' => '<string>',
'acquirerCountry' => 'FIN',
'terminalId' => '<string>',
'subMerchantId' => '<string>',
'partialApprovalCapable' => true
],
'threeDsData' => [
'eci' => '<string>',
'authenticationValue' => '<string>',
'dsTransactionId' => '<string>'
]
],
'transactionEvents' => [
[
]
],
'includeInClearing' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions"
payload := strings.NewReader("{\n \"transactions\": [\n {\n \"transactionDescription\": {\n \"card\": {\n \"cardId\": \"<string>\"\n },\n \"transactionData\": {\n \"transactionAmount\": {\n \"amount\": 25,\n \"currency\": \"EUR\"\n },\n \"transactionDateTime\": \"2025-05-21T14:30:00Z\"\n },\n \"merchantData\": {\n \"merchantId\": \"<string>\",\n \"merchantName\": \"<string>\",\n \"merchantCity\": \"<string>\",\n \"merchantCountry\": \"FIN\",\n \"merchantCategoryCode\": \"5812\",\n \"acquirerId\": \"<string>\",\n \"acquirerCountry\": \"FIN\",\n \"terminalId\": \"<string>\",\n \"subMerchantId\": \"<string>\",\n \"partialApprovalCapable\": true\n },\n \"threeDsData\": {\n \"eci\": \"<string>\",\n \"authenticationValue\": \"<string>\",\n \"dsTransactionId\": \"<string>\"\n }\n },\n \"transactionEvents\": [\n {}\n ],\n \"includeInClearing\": true\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"transactions\": [\n {\n \"transactionDescription\": {\n \"card\": {\n \"cardId\": \"<string>\"\n },\n \"transactionData\": {\n \"transactionAmount\": {\n \"amount\": 25,\n \"currency\": \"EUR\"\n },\n \"transactionDateTime\": \"2025-05-21T14:30:00Z\"\n },\n \"merchantData\": {\n \"merchantId\": \"<string>\",\n \"merchantName\": \"<string>\",\n \"merchantCity\": \"<string>\",\n \"merchantCountry\": \"FIN\",\n \"merchantCategoryCode\": \"5812\",\n \"acquirerId\": \"<string>\",\n \"acquirerCountry\": \"FIN\",\n \"terminalId\": \"<string>\",\n \"subMerchantId\": \"<string>\",\n \"partialApprovalCapable\": true\n },\n \"threeDsData\": {\n \"eci\": \"<string>\",\n \"authenticationValue\": \"<string>\",\n \"dsTransactionId\": \"<string>\"\n }\n },\n \"transactionEvents\": [\n {}\n ],\n \"includeInClearing\": true\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://test-api.ext-uat1-sandbox.mycore.enfuce.com/test-api/v1/batch-transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transactions\": [\n {\n \"transactionDescription\": {\n \"card\": {\n \"cardId\": \"<string>\"\n },\n \"transactionData\": {\n \"transactionAmount\": {\n \"amount\": 25,\n \"currency\": \"EUR\"\n },\n \"transactionDateTime\": \"2025-05-21T14:30:00Z\"\n },\n \"merchantData\": {\n \"merchantId\": \"<string>\",\n \"merchantName\": \"<string>\",\n \"merchantCity\": \"<string>\",\n \"merchantCountry\": \"FIN\",\n \"merchantCategoryCode\": \"5812\",\n \"acquirerId\": \"<string>\",\n \"acquirerCountry\": \"FIN\",\n \"terminalId\": \"<string>\",\n \"subMerchantId\": \"<string>\",\n \"partialApprovalCapable\": true\n },\n \"threeDsData\": {\n \"eci\": \"<string>\",\n \"authenticationValue\": \"<string>\",\n \"dsTransactionId\": \"<string>\"\n }\n },\n \"transactionEvents\": [\n {}\n ],\n \"includeInClearing\": true\n }\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"transactionEventResponses": [
{
"messageCategory": "INITIAL_AUTHORIZATION",
"messageFunction": "REQUEST",
"response": {
"metadata": {
"mti": "0110",
"id": "<string>"
},
"transactionData": {
"authResponseCode": "00",
"retrievalReferenceNumber": "<string>"
}
}
}
]
}
]{
"code": "<string>",
"message": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"errorCode": "<string>",
"errorType": "STATIC_VALIDATION_ERROR",
"errorReason": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"errorCode": "<string>",
"errorType": "STATIC_VALIDATION_ERROR",
"errorReason": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"errorCode": "<string>",
"errorType": "STATIC_VALIDATION_ERROR",
"errorReason": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"errorCode": "<string>",
"errorType": "STATIC_VALIDATION_ERROR",
"errorReason": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}Authorizations
HTTP Basic Auth. Credentials must carry the CAT2_API_ALL role.
Query Parameters
Identifier of the user performing the action, used for audit logging.
Body
application/json
A series of transactions sent in sequence.
Show child attributes
Show child attributes
Was this page helpful?
⌘I

