Examples

Batch post contacts

{
    "method": "POST",
    "endpoint": "contacts",
    "items": [
        {
          "identifiers": [
            {
              "type":"email",
              "id": "[email protected]",
              "channels": {
              "email": {
                "status": "subscribed",
                "statusDate": "2019-05-30T14:11:12Z"
                }
              }
            }
          ]
        },
        {
          "identifiers": [
          {
            "type":"email",
            "id": "[email protected]",
            "channels": {
              "email": {
                "status": "subscribed",
                "statusDate": "2019-05-30T14:11:12Z"
                }
              }
            }
          ],
        
         "firstName":"Vanessa"
        }
    ]
}

Batch post events (trigger event)

 {
    "method": "POST",
    "endpoint": "events",
    "eventID":"5a3a57235ff78f4307346af5",
    "items": [
        {
        "email": "[email protected]",
        "phone": "+12025550142",
        "fields": {
          "size": "M",
          "bust": 100,
          "waterproof": true,
          "packageWeight": 12.2,
          "manualUrl": "http://www.example.com/uploads/prodManual.pdf",
          "validUntil": "2017-05-30T14:11:12Z"
         }
        },
        {
        "email": "[email protected]",
        "fields": {
          "size": "M",
          "bust": 100,
          "waterproof": true,
          "packageWeight": 12.2,
          "manualUrl": "http://www.example.com/uploads/prodManual.pdf",
          "validUntil": "2017-05-30T14:11:12Z"
         }
      }
    ]
}

Batch put products

{
  "endpoint": "products",
  "method": "PUT",
  "items": [
    {
      "productID": "123",
      "currency": "EUR",
      "title": "Book1",
      "productUrl": "https://mystore.com/book1",
      "variants": [
        {
          "variantID": "abc",
          "title": "Book1",
          "price": 5
        }
      ],
      "imageUrl": "https://mystore.com/book1.jpg"
    },
    {
      "productID": "456",
      "currency": "EUR",
      "title": "Book2",
      "productUrl": "https://mystore.com/book2",
      "variants": [
        {
          "variantID": "cde",
          "title": "Book2",
          "price": 23
        }
      ],
      "imageUrl": "https://mystore.com/book2.jpg"
    }
  ]
}
Language
Authorization
Header
Click Try It! to start a request and see the response here!