POST https://:account.api-us1.com/api/3/ecomOrders
- JSON
{
"ecomOrder": {
"externalcheckoutid": "3246315233",
"source": "1",
"email": "alice@example.com",
"orderProducts": [
{
"externalid": "PROD12345",
"name": "Pogo Stick",
"price": "4900",
"quantity": "1",
"category": "Toys",
"description": "The most advanced Pogo Stick ever created!",
"productUrl": "https://example.com/products/pogo-stick",
"imageUrl": "https://example.com/products/pogo-stick.jpg"
},
{
"externalid": "PROD23456",
"name": "Skateboard",
"price": "3000",
"quantity": "1",
"category": "Toys",
"description": "Do a kick flip!",
"productUrl": "https://example.com/products/skateboard",
"imageUrl": "https://example.com/products/skateboard.jpg"
}
],
"orderUrl": "https://example.com/orders/3246315233",
"externalCreatedDate": "2016-09-13T17:41:39-04:00",
"externalUpdatedDate": "2016-09-14T13:20:17-04:00",
"abandonedDate": "2016-09-13T17:41:39-04:00",
"totalPrice": "9111",
"currency": "USD",
"connectionid": "1",
"customerid": "1"
}
}
201 Created
BODY PARAMS
ecomOrder
object
ecomOrder.externalcheckoutid REQUIRED
string The id of the cart in the external service.
ecomOrder.source
int32 The order source code (0 - sync, 1 - realtime webhook).
ecomOrder.email REQUIRED
string The email address of the customer who placed the order.
ecomOrder.orderProducts
object ecomOrder.orderProducts.description
ecomOrder.orderProducts.name REQUIRED
string The name of the product
ecomOrder.orderProducts.price REQUIRED
int32 The price of the product, in cents. (i.e. $456.78 => 45678). Must be greater than or equal to zero.
ecomOrder.orderProducts.quantity REQUIRED
int32 The quantity ordered.
ecomOrder.orderProducts.externalid
string The id of the product in the external service.
ecomOrder.orderProducts.category
string The category of the product.
ecomOrder.orderProducts.description
string The description for the product.
ecomOrder.orderProducts.productUrl
string The URL for the product in the external service.
ecomOrder.orderProducts.imageUrl
string The URL for the image for the product in the external service.
ecomOrder.totalPrice REQUIRED
int32 The total price of the order in cents, including tax and shipping charges. (i.e. $456.78 => 45678). Must be greater than or equal to zero.
ecomOrder.currency REQUIRED
string The currency of the order (3-digit ISO code, e.g., 'USD').
ecomOrder.connectionid REQUIRED
int32 The id of the connection from which this order originated.
ecomOrder.customerid REQUIRED
int32 The id of the customer associated with this order.
ecomOrder.orderNumber
string The order number in the external system (this may differ from the
externalid
).ecomOrder.orderUrl
string The URL for the cart where the customer can finish their checkout.
ecomOrder.abandonedDate REQUIRED
date The date the cart was abandoned.
ecomOrder.externalCreatedDate REQUIRED
date The date the abandoned cart was created.
ecomOrder.externalUpdatedDate
string The date the abandoned cart was updated.
ecomOrder.shippingMethod
string The shipping method of the order.
Opmerkingen
0 opmerkingen
Artikel is gesloten voor opmerkingen.