v1

latestOpenAPI 3.1.02026-07-24920300.7 KB

Create

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.

post/items/create/

Request body

merchant_idstring required

Merchant ID

customer_idstring required

Customer ID

shipping_idstring required

Shipping address record ID

payment_idstring required

Payment record ID

offer_idstring required

Offer ID

product_idstring required

Product ID

place_datestring required

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

quantityinteger required

Number of items

contextsobject

Items contexts as key:value

Response

200

orderstring
{"stackTrail":"paths:/items/create/:post:responses:200:content:application/json:schema:properties:offer","oasType":"schema","type":"unknown"}
subscriptionstring
productstring
componentsobject[]
subscription_componentstring
quantityinteger
public_idstring
{"stackTrail":"paths:/items/create/:post:responses:200:content:application/json:schema:properties:product_attribute","oasType":"schema","type":"unknown"}
pricestring
extra_coststring
total_pricestring
one_timeboolean
order_updatedstring
frozenboolean
{"stackTrail":"paths:/items/create/:post:responses:200:content:application/json:schema:properties:first_placed","oasType":"schema","type":"unknown"}

Example response

{
  "order": "45c27952cd9211e8855abc764e106cf4",
  "subscription": "6199282ccd8f11e88267bc764e106cf4",
  "product": "0070067698",
  "subscription_component": "85eae83c245111eeb185acde48001122",
  "quantity": 1,
  "public_id": "45c39ceccd9211e8855abc764e106cf4",
  "price": "79.99",
  "extra_cost": "0.00",
  "total_price": "35.99",
  "order_updated": "2025-01-31 00:00:00"
}