curl -X POST https://api2.ecomailapp.cz/tracker/transaction-bulk \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"transaction_data": [
{
"transaction": {
"order_id": "transaction_1001",
"email": "foo@bar.cz",
"shop": "myshop.cz",
"amount": 1000,
"timestamp": 1673342224,
"status": "completed"
},
"transaction_items": [
{
"code": "product code 1",
"title": "product name 1",
"price": 400,
"amount": "1"
}
]
}
]
}'
{
"inserts": 2
}
Create multiple transactions in a single request.
curl -X POST https://api2.ecomailapp.cz/tracker/transaction-bulk \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"transaction_data": [
{
"transaction": {
"order_id": "transaction_1001",
"email": "foo@bar.cz",
"shop": "myshop.cz",
"amount": 1000,
"timestamp": 1673342224,
"status": "completed"
},
"transaction_items": [
{
"code": "product code 1",
"title": "product name 1",
"price": 400,
"amount": "1"
}
]
}
]
}'
{
"inserts": 2
}
transaction and transaction_items object with the same structure as the single create endpoint.Show transaction_data item properties
curl -X POST https://api2.ecomailapp.cz/tracker/transaction-bulk \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"transaction_data": [
{
"transaction": {
"order_id": "transaction_1001",
"email": "foo@bar.cz",
"shop": "myshop.cz",
"amount": 1000,
"timestamp": 1673342224,
"status": "completed"
},
"transaction_items": [
{
"code": "product code 1",
"title": "product name 1",
"price": 400,
"amount": "1"
}
]
}
]
}'
{
"inserts": 2
}