Sales order historic import API (0.1.0)
Download OpenAPI specification:Download
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:
Request Body schema: application/json
required | object An order placed in an external system, identified by its | ||||||||||||||||||||||||||||||||
|
Responses
Request samples
- Payload
{- "order": [
- {
- "external_id": "HISTORIC_ORDER_123",
- "placed_at": "2018-10-08T07:06:08.067Z",
- "channel_type": "mobile",
- "channel_name": "android app",
- "currency": "USD",
- "customer_email": "jw@example.com",
- "consumer_uuid": "63036ceb-a18c-4b7b-b507-7cdb43d4f547",
- "external_consumer_id": "WX78LZ",
- "shop_locale": "en-US",
- "shop": "storefront-catalog-en",
- "shipping_address": {
- "first_name": "Jay",
- "last_name": "Doubleyou",
- "country": "US",
- "zip_code": "02111",
- "city": "Boston",
- "state": "Massachusetts",
- "address_line_1": "601 South Street",
- "address_line_2": "",
- "phone": "202-555-0140"
}, - "billing_address": {
- "first_name": "Jay",
- "last_name": "Doubleyou",
- "country": "US",
- "zip_code": "02111",
- "city": "Boston",
- "state": "Massachusetts",
- "address_line_1": "601 South Street",
- "phone": "202-555-0140"
}, - "shipments": [
- {
- "items": [
- {
- "product_id": "1000011",
- "product_name": "Short sleeve T-Shirt blue",
- "status": "complete",
- "external_item_id": "GD-10000001",
- "price": {
- "item_price": 100.21,
- "item_list_price": 100.21,
- "item_tax_lines": [
- {
- "amount": 68.78,
- "rate": 0.0758,
- "name": "Custom Tax",
- "country_code": "DE"
}
]
}, - "extended_attributes": [
- {
- "name": "key_a",
- "value": "value_a"
}, - {
- "name": "key_b",
- "value": "value_b"
}
]
}
], - "shipping_option": {
- "service_level_identifier": "GROUND",
- "shipping_type": "traditional_carrier",
- "fulfillment_node_id": "DC01",
- "shipping_carrier": "FedEx",
- "display_name": "In store handover",
- "price": 19,
- "tax": 6.78,
- "zip_code": "81379",
- "country_code": "DE"
}
}
], - "price_method": "tax_excluded",
- "extended_attributes": [
- {
- "name": "key_a",
- "value": "value_a"
}, - {
- "name": "key_b",
- "value": "value_b"
}
]
}
]
}
Response samples
- 200
- 400
- 500
{- "sales_order_uuid": "a1e3d1f0-65f2-4c52-a752-27bea25279dc"
}