Skip to main content
POST
https://api2.ecomailapp.cz
/
tracker
/
transaction
curl -X POST https://api2.ecomailapp.cz/tracker/transaction \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "transaction": {
      "order_id": "transaction_1234",
      "email": "foo@bar.cz",
      "shop": "myshop.cz",
      "amount": 1500,
      "tax": 200,
      "shipping": 100,
      "city": "Praha",
      "timestamp": 1441905935,
      "status": "completed"
    },
    "transaction_items": [
      {
        "code": "product code",
        "title": "product name",
        "categories": ["my category 1", "my category 2"],
        "price": 1500,
        "amount": 1,
        "tags": ["M", "3+", "puzzle"]
      }
    ]
  }'
{
  "order_id": "transaction_1234",
  "email": "foo@bar.cz",
  "shop": "myshop.cz",
  "amount": 1500,
  "timestamp": "2015-09-10 17:25:35",
  "id": 1,
  "status": "completed"
}
Timestamps are saved and returned in UTC+0.
transaction
object
required
Transaction details.
transaction_items
array
required
Array of transaction items.
curl -X POST https://api2.ecomailapp.cz/tracker/transaction \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "transaction": {
      "order_id": "transaction_1234",
      "email": "foo@bar.cz",
      "shop": "myshop.cz",
      "amount": 1500,
      "tax": 200,
      "shipping": 100,
      "city": "Praha",
      "timestamp": 1441905935,
      "status": "completed"
    },
    "transaction_items": [
      {
        "code": "product code",
        "title": "product name",
        "categories": ["my category 1", "my category 2"],
        "price": 1500,
        "amount": 1,
        "tags": ["M", "3+", "puzzle"]
      }
    ]
  }'
{
  "order_id": "transaction_1234",
  "email": "foo@bar.cz",
  "shop": "myshop.cz",
  "amount": 1500,
  "timestamp": "2015-09-10 17:25:35",
  "id": 1,
  "status": "completed"
}