Create an order

Create a new e-commerce order resource.

{
  "ecomOrder": {
    "externalid": "3246315233",
    "source": "1",
    "email": "[email protected]",
    "orderProducts": [
      {
        "externalid": "PROD12345",
        "name": "Pogo Stick",
        "price": 4900,
        "quantity": 1,
        "category": "Toys",
        "sku": "POGO-12",
        "description": "lorem ipsum...",
        "imageUrl": "https://example.com/product.jpg",
        "productUrl": "https://store.example.com/product12345"
      },
      {
        "externalid": "PROD23456",
        "name": "Skateboard",
        "price": 3000,
        "quantity": 1,
        "category": "Toys",
        "sku": "SK8BOARD145",
        "description": "lorem ipsum...",
        "imageUrl": "https://example.com/product.jpg",
        "productUrl": "https://store.example.com/product45678"
      }
    ],
    "orderDiscounts": [
      {
        "name": "1OFF",
        "type": "order",
        "discountAmount": 100
      }
    ],
    "orderUrl": "https://example.com/orders/3246315233",
    "externalCreatedDate": "2016-09-13T17:41:39-04:00",
    "externalUpdatedDate": "2016-09-14T17:41:39-04:00",
    "shippingMethod": "UPS Ground",
    "totalPrice": 9111,
    "shippingAmount": 200,
    "taxAmount": 500,
    "discountAmount": 100,
    "currency": "USD",
    "orderNumber": "myorder-123",
    "connectionid": "1",
    "customerid": "1"
  }
}
{
    "connections": [
        {
            "service": "example",
            "externalid": "examplestore",
            "name": "My Example Store",
            "isInternal": "0",
            "connectionType": "ecommerce",
            "status": "1",
            "syncStatus": "0",
            "sync_request_time": null,
            "sync_start_time": null,
            "lastSync": null,
            "logoUrl": "https://myexamplestore.com/images/logo.jpg",
            "linkUrl": "https://myexamplestore.com",
            "cdate": "2018-01-12T13:13:53-06:00",
            "udate": "2018-01-12T13:13:53-06:00",
            "credentialExpiration": null,
            "links": {
                "options": "https://exampleaccount.api-us1.com/api/3/connections/1/options",
                "customers": "https://exampleaccount.api-us1.com.api-us1.com/api/3/connections/1/customers"
            },
            "id": "1",
            "serviceName": "shopify"
        }
    ],
    "ecomOrderProducts": [
        {
            "externalid": "PROD12345",
            "name": "Pogo Stick",
            "price": 4900,
            "quantity": 1,
            "category": "Toys",
            "sku": "POGO-12",
            "description": "lorem ipsum...",
            "imageUrl": "https://example.com/product.jpg",
            "productUrl": "https://store.example.com/product12345"
        },
        {
            "externalid": "PROD23456",
            "name": "Skateboard",
            "price": 3000,
            "quantity": 1,
            "category": "Toys",
            "sku": "SK8BOARD145",
            "description": "lorem ipsum...",
            "imageUrl": "https://example.com/product.jpg",
            "productUrl": "https://store.example.com/product45678"
        }
    ],
    "ecomOrderDiscounts": [
        {
            "name": "1OFF",
            "type": "order",
            "orderid": "5355",
            "discountAmount": "100",
            "id": "1",
            "createdDate": "2019-09-05T12:16:18-05:00",
            "updatedDate": "2019-09-05T12:16:18-05:00"
        }
    ],
    "ecomOrder": {
        "externalid": "3246315234",
        "source": "1",
        "email": "[email protected]",
        "currency": "USD",
        "connectionid": "1",
        "customerid": "1",
        "orderUrl": "https://example.com/orders/3246315233",
        "shippingMethod": "UPS Ground",
        "totalPrice": 9111,
        "shippingAmount": 200,
        "taxAmount": 500,
        "discountAmount": 100,
        "externalCreatedDate": "2016-09-13T16:41:39-05:00",
        "totalProducts": 2,
        "createdDate": "2019-09-05T12:16:18-05:00",
        "updatedDate": "2019-09-05T12:16:18-05:00",
        "state": 1,
        "connection": "1",
        "orderProducts": [
            "1",
            "2"
        ],
        "orderDiscounts": [
            "1"
        ],
        "customer": "1",
        "orderDate": "2016-09-13T16:41:39-05:00",
        "tstamp": "2019-09-05T12:16:18-05:00",
        "links": {
            "connection": "https://exampleaccount.api-us1.com/api/3/ecomOrders/1/connection",
            "customer": "https://exampleaccount.api-us1.com/api/3/ecomOrders/1/customer",
            "orderProducts": "https://exampleaccount.api-us1.com/api/3/ecomOrders/1/orderProducts",
            "orderDiscounts": "https://exampleaccount.api-us1.com/api/3/ecomOrders/1/orderDiscounts",
            "orderActivities": "https://exampleaccount.api-us1.com/api/3/ecomOrders/1/orderActivities"
        },
        "id": "1"
    }
}
Language
Credentials
Header
URL