API Reference

Order Created event

Webhook data sent for custom swag order placed events

Webhook Data Schema

{
  "data": {
    "orderDetails": {
      "address": {
        "firstName": "string",
        "lastName": "string",
        "address1": "string",
        "address2": "string",
        "address3": "string",
        "city": "string",
        "province": "string",
        "provinceCode": "string",
        "countryCode": "string",
        "phone": "string",
        "zip": "string"
      },
      "itemDetails": {
        "name": "string",
        "email": "string",
        "skuId": "string",
        "variant": {
          "color": "string",
          "size": "string"
        }
      },
      "orderItems": {
        "quantity": "integer"
      }
    },
    "orderNumber": "string"
  },
  "type": "string"
}


Example Data

{
  "data": {
    "orderDetails": {
      "address": {
        "firstName": "Mohit",
        "lastName": "A",
        "address1": "dad",
        "address2": "dasd",
        "address3": "",
        "city": "Santa Monica",
        "province": "Andhra Pradesh",
        "provinceCode": "AP",
        "countryCode": "IN",
        "phone": "12345566779",
        "zip": "90403"
      },
      "itemDetails": {
        "name": "Item multiple, amount > 0",
        "email": "[email protected]",
        "skuId": "sku test",
        "variant": {
          "color": "Red",
          "size": "R"
        }
      },
      "orderItems": {
        "quantity": 1
      }
    },
    "orderNumber": "XYZ"
  },
  "type": "orderCreated"
}