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
orderstring
offerany
subscriptionstring
productstring
componentslist of objects
subscription_componentstring
quantityintegerDefaults to 0
public_idstring
product_attributeany
pricestring
extra_coststring
total_pricestring
one_timebooleanDefaults to true
order_updatedstring
frozenbooleanDefaults to true
first_placedany

Errors

400
Bad Request Error
403
Forbidden Error