Create

View as Markdown
This endpoint locates an existing order using the specified place date, shipping, payment and customer parameters, adding an additional item to that order. If no order exists with these parameters, it will create a new order and add an item for that order.

Authentication

x-api-keystring
API Key authentication via header

Request

This endpoint expects an object.
merchant_idstringRequired
Merchant ID
customer_idstringRequired
Customer ID
shipping_idstringRequired
Shipping address record ID
payment_idstringRequired
Payment record ID
offer_idstringRequired
Offer ID
product_idstringRequired
Product ID
place_datestringRequired

Date for order placement, should be in MM/DD/YYYY format

quantityintegerRequired
Number of items
contextsobjectOptional

Items contexts as key:value

Response

200
orderstringOptional
offerstring or nullOptional
subscriptionstringOptional
productstringOptional
componentslist of objectsOptional
subscription_componentstringOptional
quantityintegerOptionalDefaults to 0
public_idstringOptional
product_attributeanyOptional
pricestringOptional
extra_coststringOptional
total_pricestringOptional
one_timebooleanOptionalDefaults to true
order_updatedstringOptional
frozenbooleanOptionalDefaults to true
first_placedanyOptional

Errors

400
Bad Request Error
403
Forbidden Error