Order API 19.2
Base URL
Lists the available operations to be used against the Order API
The API only supports the sending and receiving of UTF-8 encoded data.
{order_number}/shipments{order_number}Authentication
This will create a new order or send new information about an existing order
Request body
Order details
A unique identifier for the order
Timestamp of when the order was created. See data formats for accepted formats for timestamp. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The categories the product falls under
Whether or not the item is backordered
The vendor for the item. Narvar uses this to power business logic when items need to be shipped back to variable locations. If this functionality is being used then the address where the item should be returned can be sent in this object. For example, if the item should be shipped back to a store location or a drop ship vendor then this should be passed
The vendor’s phone number
Vendor name
Vendor email
Describes the type of vendor
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
The description of the item
The percentage that the item was discounted
The date when the order item went on final sale. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
Used to determine what fulfillment state the item is in when the order is created or updated. NOT_SHIPPED should persist until all of the quantity of the line item has been shipped
The item has yet to be shipped
The item has shipped
The item has been cancelled
The item has been returned
The item is still processing
The item is ready to be picked up from a location
The item has been delayed
The item has been picked up
The item did not get picked up
True is the item is not returnable. False if it is returnable
True if the item was purchased as a gift
Required if the same SKU is sent in two different item object and is used as the unique identifier of the record
The image that should be used for the item
The promise date associated with the item
The URL that will direct back to the product page
The line number of the item from the OMS system
A title or name of the order item
The number of the item that has been purchased
A unique sku for this product item
This is the price that will be shown to the end user as what they paid for the product
Home delivery
Buy online pick up in store
Buy online ship to store
Describes the dimensions of an item
The item has not yet shipped. Customer can define up to 10 distinct preshipment statuses to represent the different steps before shipment. Is “sequence’ is not passed then “sequence” = 0 will be assumed
The item has been cancelLed
The item has been returned by mail without using the Narvar platform
The item has been returned to the store without using the Narvar platform
The item should not be allowed to be returned because of something that occurred after delivery
The item did not make it to the end user because of an issue that occurred while in-transit
It is not required to send an update to the Narvar system when an item is returned through the Narvar application. However, if an update is needed or desired based on other communications then this status can be used to show items already returned by Narvar
Represents the total returnable quantity that Narvar should allow to be returned through the platform. If this is passed it will override all other quantity calculations and show this exact quantity to the end user
The item has been modified on this date/time
The number of the items that are in the event state
This can be used to show the order of events. Mainly used to show the order of preshipment statuses on the Narvar tracking pages
Date/time of the event. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The date when the order item should be shipped. This field is used to capture the anticipated date of shipping, the actual ship date when the item is shipped is captured in the shipments object
The original price for the unit without discounts and/or promotions applied, otherwise known as the strikethrough price.
The total original price for the order line, without discounts and/or promotions applied, otherwise known as the strikethrough line price.
The total price for the order line with discounts and/or promotions applied.
ID of the request to Narvar Convert that was displayed to the end user. This is used for analytics and monitoring of Narvar Convert product
Used to describe the item type.
Physical item - Default
Digital item
Indicates whether it is a hazmat item or not.
List of hazmat codes
[
"UN3480", "GHS02"
]Contains the items within the shipment. Must match items passed under order_items
Retailer’s promise date for items in the shipment. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The date the items were shipped. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference to a pre-configured location id in Narvar
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference ID to a pre-configured location in Narvar
Total amount paid for the order
Contains the payment information about the order
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference ID to a pre-configured location in Narvar
This will trigger different actions on the Narvar platform. Must follow the enums
The items are still processing
The items are ready to be shipped through carrier
The items are ready to be picked up from a location
The items have been picked up
The items have been delayed
The items did not get picked up
The item has been cancelled
A custom message can be passed and will be used with some Narvar products
The date the status changed. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The date when the order is expected to be ready to pickup. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The by which the customer is required to pickup their order. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The store information where the items will be picked up
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
[
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
}
]If a carrier is used to deliver the package to a store then this can be passed to Narvar. Required if pickup type is BOSS, or carrier-based CONCIERGE
Tracking number for the package being shipped to the store. Required if pickup type is BOSS, or carrier-based CONCIERGE
The date when the package was shipped to the store. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
Type of this pickup
If this is a concierge pickup
If items need to be shipped from warehouse though carrier (Please make sure to include carrier and tracking_number in pickup object)
If items are already in store, and do not need to be shipped from warehouse
The code or passphrase that may or may not be needed to pickup item(s) from a pickup point.
A unique identifier for the customer
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
["SMS","FACEBOOK_MESSENGER","HIPAA_SMS","FB","VOICE","WHATSAPP","HIPAA_EMAIL","EMAIL","LINE","WEBHOOK"]The order has been modified on this date/time
The order has been CANCELLED
Date/time of the event. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The currency code for the item price/cost in the order
Shipment method selected at order checkout
Used to set an opt-into order-level notifications.
An array of maps describing the order level opt-in. Currently, we only support one channel and contact.
[
{
"channel": "sms",
"contact": "+11234567890"
}
]the channel that the customer has opted-into for this order. Currently, we only support sms
the contact information for the customer for that channel for this order. Phone numbers have to be given in E.164 format with country code.
An array containing 0 or more order promotion names and their associated values. Promotions that were applied as percentages should be passed as “Applied”. Promotions will be displayed in the order they are received in the array.
[
{
"promotion": "New Customer Special",
"value": "-$3.5"
},
{
"promotion": "Valentine's Day",
"value": "Applied"
}
]The name of the promotion
The value of the promotion
Responses
ITEM CREATED
Body
NOT MODIFIED
BAD REQUEST
Body
UNAUTHORIZED
FORBIDDEN
NOT FOUND
METHOD NOT ALLOWED
ITEM ALREADY EXISTS
INTERNAL SERVER ERROR
SERVICE UNAVAILABLE
POST https://ws-st01.narvar.qa/api/v1/orders HTTP/1.1
Content-Type: application/json
{
"order_info": {
"order_number": "34252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"status": "SHIPPED",
"order_items": [
{
"categories": [
"Clothing",
"Shoes"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_promise_date": "2018-03-30T13:25:31Z",
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"item_type": "PHYSICAL",
"quantity": 2,
"sku": "D2343122",
"item_id": null,
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98,
"narvar_convert_id": "8db7e368-43f8-4654-8b33-18729986e580",
"color": "red",
"size": "10",
"style": "low-tops",
"is_hazmat": false,
"attributes": {
"pattern": "zebra"
}
},
{
"categories": [
"Clothing",
"Tops"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_promise_date": "2018-03-30T13:25:31Z",
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Blue shirt",
"description": "Blue striped shirt",
"item_type": "PHYSICAL",
"quantity": 1,
"sku": "F432423",
"item_id": null,
"unit_price": 59.99,
"original_unit_price": 75.99,
"line_price": 59.99,
"original_line_price": 76.99,
"narvar_convert_id": "2d342a92-f487-4a82-9cde-83bf1402feca",
"color": "blue",
"size": "medium",
"style": "retro",
"is_hazmat": true,
"hazmat_codes": [
"UN3480",
"UN3481",
],
"attributes": {
"pattern": "striped"
}
}
],
"billing": {
"amount": 30.00,
"payments": [
{
"is_gift_card": true,
"merchant": "VISA",
"method": "swipe",
"expiration_date": "02/19"
}
],
"billed_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"tax_amount": 12.50,
"tax_rate": 9.8,
"shipping_handling": 4.30
},
"customer": {
"customer_id": "78997234200222",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"customer_type": "premium"
},
"attributes": {
"promotion": "bogo",
"checkout_brand": "peninsula",
"checkout_language": "en",
"checkout_country": "US"
},
"shipments": [
{
"items_info": [
{
"sku": "D2343122",
"quantity": 2
},
{
"sku": "F432423",
"quantity": 1
}
],
"ship_method": "Standard",
"carrier": "UPS",
"carrier_service": "GR",
"ship_source": "DCWest",
"ship_date": "2018-02-25T13:25:31Z",
"ship_discount": 5.00,
"ship_tax": 10.00,
"ship_total": 100.00,
"tracking_number": "1Z517757671802283",
"shipped_from": {
"company_name": "Acme International",
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"shipped_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
}
],
"promotions": [
{
"promotion": "New Customer Special",
"value": "-$3.5"
},
{
"promotion": "Valentine's Day",
"value": "Applied"
}
],
"notification_preferences": {
"optins": [
{
"channel": "sms",
"contact": "+11234567890"
},
{
"channel": "whatsapp",
"contact": "somewhatsappid"
}
]
}
}
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"status": "SUCCESS",
"messages": [
{
"code": "response.status.success",
"message": "Order information saved for order number 34252345"
}
]
}
POST https://ws-st01.narvar.qa/api/v1/orders HTTP/1.1
Content-Type: application/json
{
"order_info": {
"order_number": "34252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"status": "NOT_SHIPPED",
"order_items": [{
"categories": [
"Clothing",
"Shoes"
],
"fulfillment_status": "NOT_SHIPPED",
"is_final_sale": false,
"item_promise_date": "2018-03-30T13:25:31Z",
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"item_type": "PHYSICAL",
"quantity": 2,
"sku": "D2343122",
"item_id": null,
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98,
"narvar_convert_id": "8db7e368-43f8-4654-8b33-18729986e580",
"color": "red",
"size": "10",
"style": "low-tops",
"is_hazmat": false,
"attributes": {
"pattern": "zebra"
}
},
{
"categories": [
"Clothing",
"Tops"
],
"fulfillment_status": "NOT_SHIPPED",
"is_final_sale": false,
"item_promise_date": "2018-03-30T13:25:31Z",
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Blue shirt",
"description": "Blue striped shirt",
"item_type": "PHYSICAL",
"quantity": 1,
"sku": "F432423",
"item_id": null,
"unit_price": 59.99,
"original_unit_price": 75.99,
"line_price": 59.99,
"original_line_price": 76.99,
"narvar_convert_id": "2d342a92-f487-4a82-9cde-83bf1402feca",
"color": "blue",
"size": "medium",
"style": "retro",
"is_hazmat": true,
"hazmat_codes": [
"UN3480"
]
"attributes": {
"pattern": "striped"
}
}],
"billing": {
"amount": 30.00,
"payments": [{
"is_gift_card": true,
"merchant": "VISA",
"method": "swipe",
"expiration_date": "02/19"
}],
"billed_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"tax_amount": 12.50,
"tax_rate": 9.8,
"shipping_handling": 4.30
},
"customer": {
"customer_id": "78997234200222",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"customer_type": "premium"
},
"attributes": {
"promotion": "bogo"
}
}
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"status": "SUCCESS",
"messages": [
{
"code": "response.status.success",
"message": "Order information saved for order number 34252345"
}
]
}
POST https://ws-st01.narvar.qa/api/v1/orders HTTP/1.1
Content-Type: application/json
{
"order_info": {
"order_number": "34252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"status": "PROCESSED",
"order_items": [{
"categories": [
"Clothing",
"Shoes"
],
"is_backordered": true,
"description": "Red Shoes - Size 10",
"discount_amount": 10.00,
"discount_percent": 5.00,
"final_sale_date": "2018-02-25T13:25:31Z",
"fulfillment_status": "READY_FOR_PICKUP",
"is_final_sale": true,
"item_promise_date": "2018-02-30T13:25:31Z",
"is_gift": true,
"item_image": "https://itemimageurl.png",
"item_promise_date": "2018-02-25T13:25:31Z",
"item_url": "https://item123.html",
"line_number": 1,
"name": "Red Shoes",
"quantity": 2,
"sku": "D2343122",
"item_id": null,
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
},
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98,
"narvar_convert_id": "8db7e368-43f8-4654-8b33-18729986e580",
"fulfillment_type": "HD",
"dimension": {
"uom": "in",
"length": 10.00,
"width": 5.00,
"height": 7.00,
"weight": 25.00,
"weight_uom": "lbs"
}
}],
"billing": {
"amount": 30.00,
"payments": [{
"is_gift_card": true,
"merchant": "VISA",
"method": "swipe",
"expiration_date": "02/19"
}],
"billed_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"tax_amount": 12.50,
"tax_rate": 9.8,
"shipping_handling": 4.30
},
"pickups": [{
"id": "1234",
"items_info": [{
"sku": "D2343122",
"quantity": 1
}],
"status": {
"code": "READY_FOR_PICKUP",
"message": "Your order is ready to be picked up!",
"date": "2018-02-25T13:25:31Z"
},
"eta": "2018-02-25T13:25:31Z",
"pickup_by_date": "2018-03-01T13:25:31Z",
"attributes": {
"additionalProperties": null
},
"store": {
"name": "Peninsula Trading",
"id": "2342",
"store_area": "Side Door",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"url": "peninsulatrading.co",
"phone_number": "(415) 486-8611",
"hours": [{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
}
]
}
}],
"customer": {
"customer_id": "78997234200222",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"customer_type": "premium"
}
}
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"status": "SUCCESS",
"messages": [
{
"code": "response.status.success",
"message": "Order information saved for order number 34252345"
}
]
}
{order_number}/shipmentsAuthentication
This will update an order with a shipment record or change
Path variables
pass the order number
Request body
The shipment updates
A unique identifier for the order
Timestamp of when the order was created. See data formats for accepted formats for timestamp. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The categories the product falls under
Whether or not the item is backordered
The vendor for the item. Narvar uses this to power business logic when items need to be shipped back to variable locations. If this functionality is being used then the address where the item should be returned can be sent in this object. For example, if the item should be shipped back to a store location or a drop ship vendor then this should be passed
The vendor’s phone number
Vendor name
Vendor email
Describes the type of vendor
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
The description of the item
The percentage that the item was discounted
The date when the order item went on final sale. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
Used to determine what fulfillment state the item is in when the order is created or updated. NOT_SHIPPED should persist until all of the quantity of the line item has been shipped
The item has yet to be shipped
The item has shipped
The item has been cancelled
The item has been returned
The item is still processing
The item is ready to be picked up from a location
The item has been delayed
The item has been picked up
The item did not get picked up
True is the item is not returnable. False if it is returnable
True if the item was purchased as a gift
Required if the same SKU is sent in two different item object and is used as the unique identifier of the record
The image that should be used for the item
The promise date associated with the item
The URL that will direct back to the product page
The line number of the item from the OMS system
A title or name of the order item
The number of the item that has been purchased
A unique sku for this product item
This is the price that will be shown to the end user as what they paid for the product
Home delivery
Buy online pick up in store
Buy online ship to store
Describes the dimensions of an item
The item has not yet shipped. Customer can define up to 10 distinct preshipment statuses to represent the different steps before shipment. Is “sequence’ is not passed then “sequence” = 0 will be assumed
The item has been cancelLed
The item has been returned by mail without using the Narvar platform
The item has been returned to the store without using the Narvar platform
The item should not be allowed to be returned because of something that occurred after delivery
The item did not make it to the end user because of an issue that occurred while in-transit
It is not required to send an update to the Narvar system when an item is returned through the Narvar application. However, if an update is needed or desired based on other communications then this status can be used to show items already returned by Narvar
Represents the total returnable quantity that Narvar should allow to be returned through the platform. If this is passed it will override all other quantity calculations and show this exact quantity to the end user
The item has been modified on this date/time
The number of the items that are in the event state
This can be used to show the order of events. Mainly used to show the order of preshipment statuses on the Narvar tracking pages
Date/time of the event. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The date when the order item should be shipped. This field is used to capture the anticipated date of shipping, the actual ship date when the item is shipped is captured in the shipments object
The original price for the unit without discounts and/or promotions applied, otherwise known as the strikethrough price.
The total original price for the order line, without discounts and/or promotions applied, otherwise known as the strikethrough line price.
The total price for the order line with discounts and/or promotions applied.
ID of the request to Narvar Convert that was displayed to the end user. This is used for analytics and monitoring of Narvar Convert product
Used to describe the item type.
Physical item - Default
Digital item
Indicates whether it is a hazmat item or not.
List of hazmat codes
[
"UN3480", "GHS02"
]Contains the items within the shipment. Must match items passed under order_items
Retailer’s promise date for items in the shipment. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The date the items were shipped. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference to a pre-configured location id in Narvar
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference ID to a pre-configured location in Narvar
Total amount paid for the order
Contains the payment information about the order
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference ID to a pre-configured location in Narvar
This will trigger different actions on the Narvar platform. Must follow the enums
The items are still processing
The items are ready to be shipped through carrier
The items are ready to be picked up from a location
The items have been picked up
The items have been delayed
The items did not get picked up
The item has been cancelled
A custom message can be passed and will be used with some Narvar products
The date the status changed. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The date when the order is expected to be ready to pickup. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The by which the customer is required to pickup their order. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The store information where the items will be picked up
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
[
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
}
]If a carrier is used to deliver the package to a store then this can be passed to Narvar. Required if pickup type is BOSS, or carrier-based CONCIERGE
Tracking number for the package being shipped to the store. Required if pickup type is BOSS, or carrier-based CONCIERGE
The date when the package was shipped to the store. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
Type of this pickup
If this is a concierge pickup
If items need to be shipped from warehouse though carrier (Please make sure to include carrier and tracking_number in pickup object)
If items are already in store, and do not need to be shipped from warehouse
The code or passphrase that may or may not be needed to pickup item(s) from a pickup point.
A unique identifier for the customer
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
["SMS","FACEBOOK_MESSENGER","HIPAA_SMS","FB","VOICE","WHATSAPP","HIPAA_EMAIL","EMAIL","LINE","WEBHOOK"]The order has been modified on this date/time
The order has been CANCELLED
Date/time of the event. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The currency code for the item price/cost in the order
If there was a deliver by date provided to the customer as it relates to the order. This information is typically passed at the item level. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
Shipment method selected at order checkout
Responses
ITEM CREATED
Body
NOT MODIFIED
BAD REQUEST
Body
UNAUTHORIZED
FORBIDDEN
NOT FOUND
METHOD NOT ALLOWED
ITEM ALREADY EXISTS
INTERNAL SERVER ERROR
SERVICE UNAVAILABLE
PUT https://ws-st01.narvar.qa/api/v1/orders/{order_number}/shipments HTTP/1.1
Content-Type: application/json
{
"order_info": {
"order_number": "34252345",
"order_date": "2021-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"status": "SHIPPED",
"order_items": [{
"categories": [
"Clothing",
"Shoes"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 2,
"sku": "D2343122",
"item_id": null,
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98,
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
}
},
{
"categories": [
"Clothing",
"Tops"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Blue shirt",
"description": "Blue striped shirt",
"quantity": 1,
"sku": "F432423",
"item_id": null,
"unit_price": 59.99,
"original_unit_price": 75.99,
"line_price": 59.99,
"original_line_price": 76.99,
"color": "blue",
"size": "medium",
"style": "retro",
"attributes": {
"pattern": "striped"
}
}],
"shipments": [{
"items_info": [{
"sku": "D2343122",
"quantity": 2
},
{
"sku": "F432423",
"quantity": 1
}],
"ship_method": "Standard",
"carrier": "UPS",
"carrier_service": "GR",
"ship_source": "DCWest",
"ship_date": "2021-02-25T13:25:31Z",
"ship_discount": 5.00,
"ship_tax": 10.00,
"ship_total": 15.00,
"promise_date": "2021-03-01T09:00:00Z",
"tracking_number": "1Z517757671802283",
"shipped_from": {
"company_name": "Acme International",
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"shipped_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
}]
}
}
HTTP/1.1 200 Created
Content-Type: application/json
{
"status": "SUCCESS",
"messages": [
{
"code": "response.status.success",
"message": "Shipment information saved for order number 34252345"
}
]
}
{order_number}Authentication
This operation is used to retrieve order details
Path variables
pass the order number
Responses
Returns details about the order specified
Body
The categories the product falls under
Whether or not the item is backordered
The vendor for the item. Narvar uses this to power business logic when items need to be shipped back to variable locations. If this functionality is being used then the address where the item should be returned can be sent in this object. For example, if the item should be shipped back to a store location or a drop ship vendor then this should be passed
The vendor’s phone number
Vendor name
Vendor email
Describes the type of vendor
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
The description of the item
The percentage that the item was discounted
The date when the order item went on final sale. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
Used to determine what fulfillment state the item is in when the order is created or updated. NOT_SHIPPED should persist until all of the quantity of the line item has been shipped
The item has yet to be shipped
The item has shipped
The item has been cancelled
The item has been returned
The item is still processing
The item is ready to be picked up from a location
The item has been delayed
The item has been picked up
The item did not get picked up
True is the item is not returnable. False if it is returnable
True if the item was purchased as a gift
Required if the same SKU is sent in two different item object and is used as the unique identifier of the record
The image that should be used for the item
The promise date associated with the item
The URL that will direct back to the product page
The line number of the item from the OMS system
A title or name of the order item
The number of the item that has been purchased
A unique sku for this product item
This is the price that will be shown to the end user as what they paid for the product
Home delivery
Buy online pick up in store
Buy online ship to store
Describes the dimensions of an item
The item has not yet shipped. Customer can define up to 10 distinct preshipment statuses to represent the different steps before shipment. Is “sequence’ is not passed then “sequence” = 0 will be assumed
The item has been cancelLed
The item has been returned by mail without using the Narvar platform
The item has been returned to the store without using the Narvar platform
The item should not be allowed to be returned because of something that occurred after delivery
The item did not make it to the end user because of an issue that occurred while in-transit
It is not required to send an update to the Narvar system when an item is returned through the Narvar application. However, if an update is needed or desired based on other communications then this status can be used to show items already returned by Narvar
Represents the total returnable quantity that Narvar should allow to be returned through the platform. If this is passed it will override all other quantity calculations and show this exact quantity to the end user
The item has been modified on this date/time
The number of the items that are in the event state
This can be used to show the order of events. Mainly used to show the order of preshipment statuses on the Narvar tracking pages
Date/time of the event. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The date when the order item should be shipped. This field is used to capture the anticipated date of shipping, the actual ship date when the item is shipped is captured in the shipments object
The original price for the unit without discounts and/or promotions applied, otherwise known as the strikethrough price.
The total original price for the order line, without discounts and/or promotions applied, otherwise known as the strikethrough line price.
The total price for the order line with discounts and/or promotions applied.
ID of the request to Narvar Convert that was displayed to the end user. This is used for analytics and monitoring of Narvar Convert product
Used to describe the item type.
Physical item - Default
Digital item
Indicates whether it is a hazmat item or not.
List of hazmat codes
[
"UN3480", "GHS02"
]Contains the items within the shipment. Must match items passed under order_items
Retailer’s promise date for items in the shipment. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The date the items were shipped. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference to a pre-configured location id in Narvar
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference ID to a pre-configured location in Narvar
Total amount paid for the order
Contains the payment information about the order
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference ID to a pre-configured location in Narvar
This will trigger different actions on the Narvar platform. Must follow the enums
The items are still processing
The items are ready to be shipped through carrier
The items are ready to be picked up from a location
The items have been picked up
The items have been delayed
The items did not get picked up
The item has been cancelled
A custom message can be passed and will be used with some Narvar products
The date the status changed. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The date when the order is expected to be ready to pickup. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The by which the customer is required to pickup their order. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The store information where the items will be picked up
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
[
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
}
]If a carrier is used to deliver the package to a store then this can be passed to Narvar. Required if pickup type is BOSS, or carrier-based CONCIERGE
Tracking number for the package being shipped to the store. Required if pickup type is BOSS, or carrier-based CONCIERGE
The date when the package was shipped to the store. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
Type of this pickup
If this is a concierge pickup
If items need to be shipped from warehouse though carrier (Please make sure to include carrier and tracking_number in pickup object)
If items are already in store, and do not need to be shipped from warehouse
The code or passphrase that may or may not be needed to pickup item(s) from a pickup point.
A unique identifier for the customer
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
["SMS","FACEBOOK_MESSENGER","HIPAA_SMS","FB","VOICE","WHATSAPP","HIPAA_EMAIL","EMAIL","LINE","WEBHOOK"]The order has been modified on this date/time
The order has been CANCELLED
Date/time of the event. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
CREATED
NOT MODIFIED
BAD REQUEST
UNAUTHORIZED
FORBIDDEN
NOT FOUND
METHOD NOT ALLOWED
INTERNAL SERVER ERROR
SERVICE UNAVAILABLE
GET https://ws-st01.narvar.qa/api/v1/orders/34252345 HTTP/1.1
HTTP/1.1 200 OK
Content-Type: application/json
{
"order_info": {
"order_number": "34252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"status": "SHIPPED",
"order_items": [
{
"categories": [
"Clothing",
"Shoes"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 2,
"sku": "D2343122",
"item_id": null,
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98,
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
}
},
{
"categories": [
"Clothing",
"Tops"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Blue shirt",
"description": "Blue striped shirt",
"quantity": 1,
"sku": "F432423",
"item_id": null,
"unit_price": 59.99,
"original_unit_price": 75.99,
"line_price": 59.99,
"original_line_price": 76.99,
"color": "blue",
"size": "medium",
"style": "retro",
"attributes": {
"pattern": "striped"
}
}
],
"billing": {
"amount": 30.00,
"payments": [
{
"is_gift_card": true,
"merchant": "VISA",
"method": "swipe",
"expiration_date": "02/19"
}
],
"billed_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"tax_amount": 12.50,
"tax_rate": 9.8,
"shipping_handling": 4.30
},
"customer": {
"customer_id": "78997234200222",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"customer_type": "premium"
},
"attributes": {
"promotion": "bogo",
"checkout_brand": "peninsula",
"checkout_language": "en",
"checkout_country": "US"
},
"shipments": [
{
"items_info": [
{
"sku": "D2343122",
"quantity": 1
}
],
"ship_method": "Standard",
"carrier": "UPS",
"carrier_service": "GR",
"ship_source": "DCWest",
"ship_date": "2018-02-25T13:25:31Z",
"ship_discount": 5.00,
"ship_tax": 10.00,
"ship_total": 100.00,
"tracking_number": "1Z517757671802283",
"shipped_from": {
"company_name": "Acme International",
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"shipped_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
}
],
"promotions": [
{
"promotion": "New Customer Special",
"value": "-$3.5"
},
{
"promotion": "Valentine's Day",
"value": "Applied"
}
],
"notification_preferences": {
"optins": [
{
"channel": "sms",
"contact": "+11234567890"
},
{
"channel": "whatsapp",
"contact": "somewhatsappid"
}
]
}
}
},
"status": "SUCCESS",
"messages": [{
"code": "response.status.success"
}]
}
Item specific information for the order
The categories the product falls under
Whether or not the item is backordered
The vendor for the item. Narvar uses this to power business logic when items need to be shipped back to variable locations. If this functionality is being used then the address where the item should be returned can be sent in this object. For example, if the item should be shipped back to a store location or a drop ship vendor then this should be passed
The vendor’s phone number
Vendor name
Vendor email
Describes the type of vendor
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
The description of the item
The percentage that the item was discounted
The date when the order item went on final sale. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
Used to determine what fulfillment state the item is in when the order is created or updated. NOT_SHIPPED should persist until all of the quantity of the line item has been shipped
The item has yet to be shipped
The item has shipped
The item has been cancelled
The item has been returned
The item is still processing
The item is ready to be picked up from a location
The item has been delayed
The item has been picked up
The item did not get picked up
True is the item is not returnable. False if it is returnable
True if the item was purchased as a gift
Required if the same SKU is sent in two different item object and is used as the unique identifier of the record
The image that should be used for the item
The promise date associated with the item
The URL that will direct back to the product page
The line number of the item from the OMS system
A title or name of the order item
The number of the item that has been purchased
A unique sku for this product item
This is the price that will be shown to the end user as what they paid for the product
Home delivery
Buy online pick up in store
Buy online ship to store
Describes the dimensions of an item
The item has not yet shipped. Customer can define up to 10 distinct preshipment statuses to represent the different steps before shipment. Is “sequence’ is not passed then “sequence” = 0 will be assumed
The item has been cancelLed
The item has been returned by mail without using the Narvar platform
The item has been returned to the store without using the Narvar platform
The item should not be allowed to be returned because of something that occurred after delivery
The item did not make it to the end user because of an issue that occurred while in-transit
It is not required to send an update to the Narvar system when an item is returned through the Narvar application. However, if an update is needed or desired based on other communications then this status can be used to show items already returned by Narvar
Represents the total returnable quantity that Narvar should allow to be returned through the platform. If this is passed it will override all other quantity calculations and show this exact quantity to the end user
The item has been modified on this date/time
The number of the items that are in the event state
This can be used to show the order of events. Mainly used to show the order of preshipment statuses on the Narvar tracking pages
Date/time of the event. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The date when the order item should be shipped. This field is used to capture the anticipated date of shipping, the actual ship date when the item is shipped is captured in the shipments object
The original price for the unit without discounts and/or promotions applied, otherwise known as the strikethrough price.
The total original price for the order line, without discounts and/or promotions applied, otherwise known as the strikethrough line price.
The total price for the order line with discounts and/or promotions applied.
ID of the request to Narvar Convert that was displayed to the end user. This is used for analytics and monitoring of Narvar Convert product
Used to describe the item type.
Physical item - Default
Digital item
Indicates whether it is a hazmat item or not.
List of hazmat codes
[
"UN3480", "GHS02"
][{
"description": "Red Shoe made by designer",
"fulfillment_status": "NOT_SHIPPED",
"is_final_sale": false,
"item_id": "43582",
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoe",
"quantity": 7,
"sku": "D2343122",
"unit_price": 32
}][{
"categories": [
"Clothing"
],
"is_backordered": true,
"vendors": [{
"phone": "1-888-555-4433",
"name": "Stevensen Fabrics",
"email": "johndoe@example.com",
"type": "Drop Ship",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}],
"description": "Red Shoe made by designer",
"discount_amount": 10.00,
"discount_percent": 5.00,
"final_sale_date": "2018-02-25T13:25:31Z",
"fulfillment_status": "SHIPPED",
"is_final_sale": true,
"is_gift": true,
"item_id": "43582",
"item_image": "https://itemimageurl.png",
"item_promise_date": "2018-02-25T13:25:31Z",
"anticipated_ship_date": "2018-02-22T13:25:31Z",
"item_url": "https://item123.html",
"line_number": 1,
"name": "Red Shoe",
"quantity": 7,
"sku": "D2343122",
"unit_price": 32,
"original_unit_price": 34,
"original_line_price": 238,
"line_price": 224,
"fulfillment_type": "HD",
"item_type": "PHYSICAL",
"is_hazmat": true,
"hazmat_codes": [
"UN3480", "UN3481"
],
"dimension": {
"uom": "in",
"length": 10.00,
"width": 5.00,
"height": 7.00,
"weight": 25.00,
"weight_uom": "lbs"
},
"attributes": {
"color": "red",
"size": "small"
},
"events": [{
"event": "CANCELLED",
"quantity": 4
}]
}]
The list of shipments for the order containing which items are in each package
Contains the items within the shipment. Must match items passed under order_items
Retailer’s promise date for items in the shipment. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The date the items were shipped. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference to a pre-configured location id in Narvar
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference ID to a pre-configured location in Narvar
[{
"items_info": [{
"sku": "DS234",
"quantity": 1
}],
"ship_method": "Standard",
"carrier": "UPS",
"carrier_service": "Gr",
"ship_source": "DCWest",
"ship_date": "2021-02-25T13:25:31Z",
"ship_discount": 5.00,
"ship_tax": 10.00,
"ship_total": 15.00,
"promise_date": "2021-03-01T15:00:00Z",
"tracking_number": "1Z517757671802283",
"shipped_from": {
"company_name": "Acme International",
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"shipped_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
}]
[{
"items_info": [{
"sku": "DS234",
"quantity": 1
}],
"ship_method": "Standard",
"carrier": "UPS",
"carrier_service": "UG",
"ship_source": "DCWest",
"ship_date": "2021-02-25T13:25:31Z",
"ship_discount": 5.00,
"ship_tax": 10.00,
"ship_total": 100.00,
"promise_date": "2021-03-01T15:00:00Z",
"tracking_number": "1Z517757671802283",
"shipped_from": {
"company_name": "Acme International",
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"shipped_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
}, {
"items_info": [{
"sku": "DS2345",
"quantity": 1
}],
"ship_method": "Standard",
"carrier": "Fedex",
"carrier_service": "UG",
"ship_source": "DCWest",
"ship_date": "2021-02-28T07:11:14Z",
"ship_discount": 5.00,
"ship_tax": 10.00,
"ship_total": 100.00,
"promise_date": "2021-03-05T18:00:00Z",
"tracking_number": "94837661109933",
"shipped_from": {
"company_name": "Acme International",
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"shipped_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
}]
The billing object is used to send Narvar required information about how the order was paid for by the end user
Total amount paid for the order
Contains the payment information about the order
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference ID to a pre-configured location in Narvar
{
"amount": 30.00,
"payments": [{
"is_gift_card": true,
"merchant": "VISA",
"method": "swipe",
"expiration_date": "02/19"
}],
"billed_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"tax_amount": 12.50,
"tax_rate": 9.8,
"shipping_handling": 4.30
}
Information relating to the customer who placed the order
A unique identifier for the customer
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
["SMS","FACEBOOK_MESSENGER","HIPAA_SMS","FB","VOICE","WHATSAPP","HIPAA_EMAIL","EMAIL","LINE","WEBHOOK"]{
"customer_id": "78997234200222",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"customer_type": "premium"
}The pickups object associated with items to be picked up in store
This will trigger different actions on the Narvar platform. Must follow the enums
The items are still processing
The items are ready to be shipped through carrier
The items are ready to be picked up from a location
The items have been picked up
The items have been delayed
The items did not get picked up
The item has been cancelled
A custom message can be passed and will be used with some Narvar products
The date the status changed. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The date when the order is expected to be ready to pickup. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The by which the customer is required to pickup their order. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
The store information where the items will be picked up
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
[
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
},
{
"open" : "0800",
"close" : "2000"
}
]If a carrier is used to deliver the package to a store then this can be passed to Narvar. Required if pickup type is BOSS, or carrier-based CONCIERGE
Tracking number for the package being shipped to the store. Required if pickup type is BOSS, or carrier-based CONCIERGE
The date when the package was shipped to the store. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
Type of this pickup
If this is a concierge pickup
If items need to be shipped from warehouse though carrier (Please make sure to include carrier and tracking_number in pickup object)
If items are already in store, and do not need to be shipped from warehouse
The code or passphrase that may or may not be needed to pickup item(s) from a pickup point.
[
{
"id": "1234",
"items_info": [
{
"sku": "DS234",
"quantity": 1
}
],
"status": {
"code": "READY_FOR_PICKUP",
"message": "Your order is ready to be picked up!",
"date": "2018-02-24T13:25:31Z"
},
"eta": "2018-02-25T13:25:31Z",
"pickup_by_date": "2018-03-01T13:25:31Z",
"store": {
"name": "Peninsula Trading",
"id": 2342,
"store_area": "Side Door",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"url": "peninsulatrading.co",
"phone_number": "(415) 486-8611",
"hours": [
{
"open": "",
"close": ""
}
]
},
"carrier": "ups",
"tracking_number": "1Z4398734978453",
"ship_date": "2018-02-23T13:25:31Z",
"type": "BOSS"
}
]
Events that relate to an order. This can be used to send Narvar information about an order after it has been created
The order has been modified on this date/time
The order has been CANCELLED
Date/time of the event. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
[{
"event": "MODIFIED",
"date": "2018-02-25T13:25:31Z"
}]Events that relate to an item. This can be used to send Narvar information about an item after it has been created
The item has not yet shipped. Customer can define up to 10 distinct preshipment statuses to represent the different steps before shipment. Is “sequence’ is not passed then “sequence” = 0 will be assumed
The item has been cancelLed
The item has been returned by mail without using the Narvar platform
The item has been returned to the store without using the Narvar platform
The item should not be allowed to be returned because of something that occurred after delivery
The item did not make it to the end user because of an issue that occurred while in-transit
It is not required to send an update to the Narvar system when an item is returned through the Narvar application. However, if an update is needed or desired based on other communications then this status can be used to show items already returned by Narvar
Represents the total returnable quantity that Narvar should allow to be returned through the platform. If this is passed it will override all other quantity calculations and show this exact quantity to the end user
The item has been modified on this date/time
The number of the items that are in the event state
This can be used to show the order of events. Mainly used to show the order of preshipment statuses on the Narvar tracking pages
Date/time of the event. All dates and times are expressed in ISO 8601, with a UTC offset (denoted by the Z)
[{
"event": "PRESHIPMENT",
"sequence": 0,
"quantity": 1
}]A list of attributes, key-value pairs
{
"promotion": "bogo"
}{
"checkout_brand": "peninsula",
"checkout_language": "fr",
"checkout_country": "CA"
}The shipment destination
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference ID to a pre-configured location in Narvar
{
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}The shipment origin
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
Reference to a pre-configured location id in Narvar
{
"company_name": "Acme International",
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}Address format to be sent to Narvar
This can be a US zip code, or any international postal code
Country code should match ISO Alpha-2
{
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}Notifications can be sent by Narvar for a variety of purposes. The most common use cases involve carrier events such as delivery or damage.
Sample Notification integration:
- POST when an order is created
- POST/PUT when fulfillment occurs
- POST with any order changes
{
"order_info": {
"order_number": "634252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"order_items": [{
"categories": [
"Clothing",
"Shoes"
],
"fulfillment_status": "NOT_SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 2,
"sku": "D2343122",
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98,
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
}
},
{
"categories": [
"Clothing",
"Tops"
],
"fulfillment_status": "NOT_SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Blue shirt",
"description": "Blue striped shirt",
"quantity": 1,
"sku": "F432423",
"unit_price": 59.99,
"original_unit_price": 75.99,
"line_price": 59.99,
"original_line_price": 76.99,
"color": "blue",
"size": "medium",
"style": "retro",
"attributes": {
"pattern": "striped"
}
}],
"billing": {
"amount": 30.00,
"billed_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
},
"customer": {
"customer_id": "78997234200222",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567"
}
}
}
{
"order_info": {
"order_number": "634252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"order_items": [{
"categories": [
"Clothing",
"Shoes"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 2,
"sku": "D2343122",
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98,
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
},
"events": []
},
{
"categories": [
"Clothing",
"Tops"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Blue shirt",
"description": "Blue striped shirt",
"quantity": 1,
"sku": "F432423",
"unit_price": 59.99,
"original_unit_price": 75.99,
"line_price": 59.99,
"original_line_price": 76.99,
"color": "blue",
"size": "medium",
"style": "retro",
"attributes": {
"pattern": "striped"
},
"events": []
}],
"billing": {
"amount": 30.00,
"billed_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
},
"shipments": [{
"items_info": [{
"sku": "D2343122",
"quantity": 2
},
{
"sku": "F432423",
"quantity": 1
}],
"ship_method": "Standard",
"carrier": "UPS",
"carrier_service": "GR",
"ship_source": "DCWest",
"ship_date": "2018-02-25T13:25:31Z",
"ship_discount": 5.00,
"ship_tax": 10.00,
"ship_total": 15.00,
"tracking_number": "1Z517757671802283",
"shipped_from": {
"company_name": "Acme International",
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"shipped_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
}]
}
}
{
"order_info": {
"order_number": "634252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"order_items": [{
"categories": [
"Clothing",
"Shoes"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoe",
"description": "Red Shoes - Size 10",
"quantity": 2,
"sku": "D2343122",
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98,
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
},
"events": []
},
{
"categories": [
"Clothing",
"Tops"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Blue shirt",
"description": "Blue striped shirt",
"quantity": 1,
"sku": "F432423",
"unit_price": 59.99,
"original_unit_price": 75.99,
"line_price": 59.99,
"original_line_price": 76.99,
"color": "blue",
"size": "medium",
"style": "retro",
"attributes": {
"pattern": "striped"
},
"events": []
}],
"billing": {
"amount": 30.00,
"billed_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
},
"shipments": [{
"items_info": [{
"sku": "D2343122",
"quantity": 2
},
{
"sku": "F432423",
"quantity": 1
}],
"ship_method": "Standard",
"carrier": "UPS",
"carrier_service": "GR",
"ship_source": "DCWest",
"ship_date": "2018-02-25T13:25:31Z",
"ship_discount": 5.00,
"ship_tax": 10.00,
"ship_total": 15.00,
"tracking_number": "1Z517757671802283",
"shipped_from": {
"company_name": "Acme International",
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"shipped_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
}]
}
}
Narvar can use order data to power return support for retailers.
Sample Returns integration:
- POST when fulfillment occurs
- POST with any order changes
{
"order_info": {
"order_number": "634252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"order_items": [{
"categories": [
"Clothing",
"Shoes"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 2,
"sku": "D2343122",
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98,
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
}
},
{
"categories": [
"Clothing",
"Tops"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Blue shirt",
"description": "Blue striped shirt",
"quantity": 1,
"sku": "F432423",
"unit_price": 59.99,
"original_unit_price": 75.99,
"line_price": 59.99,
"original_line_price": 76.99,
"color": "blue",
"size": "medium",
"style": "retro",
"attributes": {
"pattern": "striped"
}
}],
"billing": {
"billed_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
},
"customer": {
"customer_id": "78997234200222"
},
"shipments": [{
"items_info": [{
"sku": "D2343122",
"quantity": 2
},
{
"sku": "F432423",
"quantity": 1
}],
"ship_method": "Standard",
"carrier": "UPS",
"carrier_service": "GR",
"ship_date": "2018-02-25T13:25:31Z",
"tracking_number": "1Z517757671802283",
"shipped_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
}]
}
}
{
"order_info": {
"order_number": "634252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"order_items": [{
"categories": [
"Clothing",
"Shoes"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 2,
"sku": "D2343122",
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98,
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
},
"events": [{
"event": "RETURNED_TO_STORE",
"quantity": 1
}]
},
{
"categories": [
"Clothing",
"Tops"
],
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Blue shirt",
"description": "Blue striped shirt",
"quantity": 1,
"sku": "F432423",
"unit_price": 59.99,
"original_unit_price": 76.99,
"line_price": 59.99,
"original_line_price": 76.99,
"attributes": {
"color": "blue"
},
"events": []
}],
"billing": {
"billed_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
},
"customer": {
"customer_id": "78997234200222"
},
"shipments": [{
"items_info": [{
"sku": "D2343122",
"quantity": 2
},
{
"sku": "F432423",
"quantity": 1
}],
"ship_method": "Standard",
"carrier": "UPS",
"carrier_service": "GR",
"ship_date": "2018-02-25T13:25:31Z",
"tracking_number": "1Z517757671802283",
"shipped_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
}]
}
}
Preshipment statuses can be used for items that take a longer time to ship. During the period after sale and before shipment retailers can keep their customers engaged by updating the status of the order.
Sample Preshipment integration:
- POST when an order is created
- POST when an item changes status
- POST when an item is shipped
{
"order_info": {
"order_number": "634252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"order_items": [{
"fulfillment_status": "NOT_SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 1,
"sku": "D2343122",
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98,
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
},
"events": [{
"event": "PRESHIPMENT",
"sequence": 0,
"quantity": 1
}]
}],
"billing": {
"amount": 30.00,
"payments": [{
"is_gift_card": true,
"merchant": "VISA",
"method": "swipe",
"expiration_date": "02/19"
}],
"billed_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"tax_amount": 12.50,
"tax_rate": 9.8,
"shipping_handling": 4.30
},
"customer": {
"customer_id": "78997234200222",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"customer_type": "premium"
},
"attributes": {
"promotion": "bogo"
}
}
}
{
"order_info": {
"order_number": "634252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"order_items": [{
"fulfillment_status": "NOT_SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 1,
"sku": "D2343122",
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98,
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
},
"events": [{
"event": "PRESHIPMENT",
"sequence": 1,
"quantity": 1
}]
}],
"customer": {
"customer_id": "78997234200222"
}
}
}
{
"order_info": {
"order_number": "634252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"order_items": [{
"fulfillment_status": "SHIPPED",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 1,
"sku": "D2343122",
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98,
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
},
"events": []
}],
"customer": {
"customer_id": "78997234200222"
},
"shipments": [{
"items_info": [{
"sku": "D2343122",
"quantity": 1
}],
"ship_method": "Standard",
"carrier": "UPS",
"carrier_service": "GR",
"ship_date": "2018-02-25T13:25:31Z",
"tracking_number": "1Z517757671802283",
"shipped_from": {
"company_name": "Acme International",
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"shipped_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
}]
}
}
When orders are purchased online and picked up in a retail store, Narvar can power this experience through order data.
Sample BOPIS integration:
- POST when an order is created
- POST when an order is ready to be picked up
- POST when an order is is no longer available to be picked up
{
"order_info": {
"order_number": "34252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"order_items": [{
"fulfillment_status": "PROCESSING",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 1,
"sku": "D2343122",
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
},
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98
}],
"pickups": [{
"id": "1234",
"items_info": [{
"item_id": "ID123",
"sku": "D2343122",
"quantity": 1
}],
"status": {
"code": "PROCESSING",
"message": "Your order is processing",
"date": "2018-02-24T13:25:31Z"
},
"eta": "2018-02-25T13:25:31Z",
"pickup_by_date": "2018-03-01T13:25:31Z",
"store": {
"name": "Peninsula Trading",
"id": "2342",
"store_area": "Side Door",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"url": "peninsulatrading.co",
"phone_number": "(415) 486-8611",
"hours": [{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
}
]
}
}],
"customer": {
"customer_id": "78997234200222",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"customer_type": "premium"
}
}
}
{
"order_info": {
"order_number": "34252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"order_items": [{
"fulfillment_status": "READY_FOR_PICKUP",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 1,
"sku": "D2343122",
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
},
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98
}],
"pickups": [{
"id": "1234",
"items_info": [{
"item_id": "ID123",
"sku": "D2343122",
"quantity": 1
}],
"status": {
"code": "READY_FOR_PICKUP",
"message": "Your order is ready to be picked up!",
"date": "2018-02-25T13:25:31Z"
},
"eta": "2018-02-25T13:25:31Z",
"pickup_by_date": "2018-03-01T13:25:31Z",
"store": {
"name": "Peninsula Trading",
"id": "2342",
"store_area": "Side Door",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"url": "peninsulatrading.co",
"phone_number": "(415) 486-8611",
"hours": [{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
}
]
}
}],
"customer": {
"customer_id": "78997234200222",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"customer_type": "premium"
}
}
}
{
"order_info": {
"order_number": "34252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"order_items": [{
"fulfillment_status": "NOT_PICKED_UP",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 1,
"sku": "D2343122",
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
},
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98
}],
"pickups": [{
"id": "1234",
"items_info": [{
"item_id": "ID123",
"sku": "D2343122",
"quantity": 1
}],
"status": {
"code": "NOT_PICKED_UP",
"message": "Your order is no longer available for pickup",
"date": "2018-03-02T13:25:31Z"
},
"eta": "2018-02-25T13:25:31Z",
"pickup_by_date": "2018-03-01T13:25:31Z",
"store": {
"name": "Peninsula Trading",
"id": "2342",
"store_area": "Side Door",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"url": "peninsulatrading.co",
"phone_number": "(415) 486-8611",
"hours": [{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
}
]
}
}],
"customer": {
"customer_id": "78997234200222",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"customer_type": "premium"
}
}
}
{
"order_info": {
"order_number": "34252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"order_items": [{
"fulfillment_status": "PICKED_UP",
"is_final_sale": false,
"item_image": "https://itemimageurl.png",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 1,
"sku": "D2343122",
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
},
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98
}],
"pickups": [{
"id": "1234",
"items_info": [{
"item_id": "ID123",
"sku": "D2343122",
"quantity": 1
}],
"status": {
"code": "PICKED_UP",
"message": "Your order has been picked up.",
"date": "2018-03-02T13:25:31Z"
},
"eta": "2018-02-25T13:25:31Z",
"pickup_by_date": "2018-03-01T13:25:31Z",
"store": {
"name": "Peninsula Trading",
"id": "2342",
"store_area": "Side Door",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"url": "peninsulatrading.co",
"phone_number": "(415) 486-8611",
"hours": [{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
},
{
"open": "0800",
"close": "2000"
}
]
}
}],
"customer": {
"customer_id": "78997234200222",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
},
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"customer_type": "premium"
}
}
}
Narvar tracking can use order data to enhance the user experience when tracking their packages. When order data is sent to Narvar then the items in each box can be shown and a holistic view of the order can be communicated to the end user.
Sample tracking integration:
- POST when an order is shipped
{
"order_info": {
"order_number": "34252345",
"order_date": "2018-02-24T13:25:31Z",
"checkout_locale": "en_US",
"currency_code": "USD",
"order_items": [{
"final_sale_date": "2018-02-25T13:25:31Z",
"fulfillment_status": "SHIPPED",
"item_image": "https://itemimageurl.png",
"item_promise_date": "2018-02-25T13:25:31Z",
"item_url": "https://item123.html",
"name": "Red Shoes",
"description": "Red Shoes - Size 10",
"quantity": 2,
"sku": "D2343122",
"color": "red",
"size": "10",
"style": "low-tops",
"attributes": {
"pattern": "zebra"
},
"unit_price": 32.99,
"original_unit_price": 55.99,
"line_price": 65.98,
"original_line_price": 111.98
}],
"customer": {
"customer_id": "78997234200222"
},
"shipments": [{
"items_info": [{
"sku": "D2343122",
"quantity": 1
}],
"ship_method": "Standard",
"carrier": "UPS",
"carrier_service": "GR",
"ship_date": "2018-02-25T13:25:31Z",
"tracking_number": "1Z517757671802283",
"shipped_from": {
"company_name": "Acme International",
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
},
"shipped_to": {
"email": "john.doe@narvar.com",
"first_name": "John",
"last_name": "Doe",
"phone": "6501234567",
"address": {
"street_1": "633 Folsom Street",
"street_2": "Floor 2",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "US"
}
}
}]
}
}
Open API 2.0 YAML Specification
You can upload the API Swagger file to Swagger UI to output SDKs and work within the Swagger UI.