Skip to main content

Sales order historic import API (0.1.0)

Download OpenAPI specification:Download

team-order-management: team-order-management@newstore.com

Use this API to import historic order into NewStore and create a sales_order object out of it. This is an internal API and should not be used outside of OM.

Use this API to import historical order into NewStore and create a sales_order object.

Import historic orders into NewStore and creates a sales_order object out of it. Other services are notified of this imported order by emitting a event.

Authorizations:
newStoreAccessToken
Request Body schema: application/json
required
object

An order placed in an external system, identified by its external_id in NewStore. An order contains a list of shipments and the products in each shipment.

external_id
required
string [ 1 .. 64 ] characters
placed_at
required
string <date-time>

Date representation of when the order was placed, containing date, time and timezone as defined by https://tools.ietf.org/html/rfc3339 (ISO 8601).

store_id
string <= 256 characters

ID of the store where this order was placed.

channel_type
required
string
Enum: "web" "mobile" "store"
channel_name
required
string [ 1 .. 64 ] characters

A string used to distinguish between various sources of orders.

currency
required
string
Enum: "AED" "AFN" "ALL" "AMD" "ANG" "AOA" "ARS" "AUD" "AWG" "AZN" "BAM" "BBD" "BDT" "BGN" "BHD" "BIF" "BMD" "BND" "BOB" "BOV" "BRL" "BSD" "BTN" "BWP" "BYN" "BZD" "CAD" "CDF" "CHE" "CHF" "CHW" "CLF" "CLP" "CNY" "COP" "COU" "CRC" "CUC" "CUP" "CVE" "CZK" "DJF" "DKK" "DOP" "DZD" "EGP" "ERN" "ETB" "EUR" "FJD" "FKP" "GBP" "GEL" "GHS" "GIP" "GMD" "GNF" "GTQ" "GYD" "HKD" "HNL" "HRK" "HTG" "HUF" "IDR" "ILS" "INR" "IQD" "IRR" "ISK" "JMD" "JOD" "JPY" "KES" "KGS" "KHR" "KMF" "KPW" "KRW" "KWD" "KYD" "KZT" "LAK" "LBP" "LKR" "LRD" "LSL" "LYD" "MAD" "MDL" "MGA" "MKD" "MMK" "MNT" "MOP" "MRU" "MUR" "MVR" "MWK" "MXN" "MXV" "MYR" "MZN" "NAD" "NGN" "NIO" "NOK" "NPR" "NZD" "OMR" "PAB" "PEN" "PGK" "PHP" "PKR" "PLN" "PYG" "QAR" "RON" "RSD" "RUB" "RWF" "SAR" "SBD" "SCR" "SDG" "SEK" "SGD" "SHP" "SLL" "SOS" "SRD" "SSP" "STN" "SVC" "SYP" "SZL" "THB" "TJS" "TMT" "TND" "TOP" "TRY" "TTD" "TWD" "TZS" "UAH" "UGX" "USD" "USN" "UYI" "UYU" "UYW" "UZS" "VES" "VND" "VUV" "WST" "XAF" "XAG" "XAU" "XBA" "XBB" "XBC" "XBD" "XCD" "XDR" "XOF" "XPD" "XPF" "XPT" "XSU" "XTS" "XUA" "XXX" "YER" "ZAR" "ZMW" "ZWL"

The currency for all the prices contained within this payload.

customer_email
required
string <email> [ 1 .. 64 ] characters
consumer_uuid
required
string [ 36 .. 72 ] characters

ID of the consumer who placed this SalesOrder

external_consumer_id
required
string <= 256 characters

Identifier used in external system to identify a consumer.

shop_locale
required
string [ 1 .. 128 ] characters

The locale of the customer used for the shop, in RFC 5646.

shop
required
string [ 1 .. 128 ] characters

The shop containing the items of the order.

required
object
required
object
price_method
required
string
Enum: "tax_included" "tax_excluded"

Specifies if all items and shipping prices include tax or not.

required
Array of objects
Array of objects <= 100 items [ items <= 2 properties ]

Responses

Request samples

Content type
application/json
{
  • "order": [
    ]
}

Response samples

Content type
application/json
{
  • "sales_order_uuid": "a1e3d1f0-65f2-4c52-a752-27bea25279dc"
}