Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section 10: Delivery Status updates subscription

...

  1. We are capturing subscription notifications through the Delivery Status Subscription APITo get the subscriptions from the shoppers either via email id or phone number to get automatic notifications on different shipment status from fenix.

  2. Currently, Fenix supports two channels for sending delivery status notifications to subscribers:

    1. Email 

    2. SMS

...

Resource Name

getTrackHistory

Resource URL

api/v1/{identifier-name}/track-status?tracking_number=123&notification_id=undefined

Method

GET

Params (query/path)

PathVariable:

Identifier-name

RequestParam:

tracking_number

order_number

notification_id

Headers

Request Payload

Response Payload

Code Block
languagejson
{
    "fenixShipping": true, 
    "tracking_number": "123", 
    "carrier_name": "UPS", 
    "important_updates": "Please note that carrier delays can occur due to weather or COVID-19. Many carrier hubs have had to adjust to ensure the health + safety of their employees and it may impact transit times. Please reach out to <a href =\"https://www.yourstore.com/pages/contact-us\">yourstore.com</a> with any questions you have about your order.", 
    "display_emoji": false, 
    "emoji_on": null, 
    "edd_info": {
        "delivery_date": "Friday, September 09 2022", 
        "promised_date": "Monday, September 12 2022", 
        "delivery_message": "Yay, it\"s early...", 
        "expected_shipment_date": "Wednesday, September 07 2022", 
        "split_delivery_date": {
            "day": "Friday", 
            "month": "September", 
            "date": "09", 
            "year": "2022"
        }, 
        "header_name": "Expected Delivery Date"
    }, 
    "display_order_info": true, 
    "order_info": {
        "number": "AAA", 
        "placed_dtm": "2022-09-07T10:55:11-05:00", 
        "formatted_dttm": "Wednesday, September 07 2022"
    }, 
    "concise_infos": [
        {
            "description": "SHIPPED", 
            "event_date": "Wednesday, September 07 2022", 
            "event_code": "SH", 
            "event_message": "Order Confirmed"
        }, 
        {
            "description": "PICKED", 
            "event_date": "Wednesday, September 07 2022", 
            "event_code": "PU", 
            "event_message": "Left Warehouse"
        }
    ], 
    "shipment_activities": [
        {
            "day": "Sep 07, 2022", 
            "time": "12:09 PM", 
            "desc": "Shipper created a label, UPS has not received the package yet.", 
            "address": {
                "first_name": null, 
                "last_name": null, 
                "name": null, 
                "company": null, 
                "address1": null, 
                "address2": null, 
                "country": "US", 
                "country_code": "US", 
                "province": null, 
                "province_code": null, 
                "city": null, 
                "zip_code": null, 
                "latitude": null, 
                "longitude": null
            }, 
            "event_code": "MP", 
            "fenix_code": "IT"
        }, 
        {
            "day": "Sep 07, 2022", 
            "time": "06:43 PM", 
            "desc": "Origin Scan", 
            "address": {
                "first_name": null, 
                "last_name": null, 
                "name": null, 
                "company": null, 
                "address1": null, 
                "address2": null, 
                "country": "US", 
                "country_code": "US", 
                "province": "FL", 
                "province_code": "FL", 
                "city": "Orlando", 
                "zip_code": null, 
                "latitude": null, 
                "longitude": null
            }, 
            "event_code": "OR", 
            "fenix_code": "IT"
        }, 
        {
            "day": "Sep 08, 2022", 
            "time": "12:49 PM", 
            "desc": "Received by the local post office", 
            "address": {
                "first_name": null, 
                "last_name": null, 
                "name": null, 
                "company": null, 
                "address1": null, 
                "address2": null, 
                "country": null, 
                "country_code": null, 
                "province": null, 
                "province_code": null, 
                "city": null, 
                "zip_code": null, 
                "latitude": null, 
                "longitude": null
            }, 
            "event_code": "YH", 
            "fenix_code": "IT"
        }
    ], 
    "recent_shipment_info": {
        "day": "Sep 08, 2022", 
        "time": "12:49 PM", 
        "desc": "Received by the local post office", 
        "address": {
            "first_name": null, 
            "last_name": null, 
            "name": null, 
            "company": null, 
            "address1": null, 
            "address2": null, 
            "country": null, 
            "country_code": null, 
            "province": null, 
            "province_code": null, 
            "city": null, 
            "zip_code": null, 
            "latitude": null, 
            "longitude": null
        }, 
        "event_code": "YH", 
        "fenix_code": "IT"
    }, 
    "selected_shipment_activities": [
        {
            "event_code": "SH", 
            "display_message": "Order Confirmed"
        }, 
        {
            "event_code": "PU", 
            "display_message": "Left Warehouse"
        }, 
        {
            "event_code": "OFD", 
            "display_message": "Out for delivery"
        }, 
        {
            "event_code": "DL", 
            "display_message": "Delivered"
        }
    ], 
    "line_items": [
        {
            "sku": "101102", 
            "quantity": 1, 
            "name": "special cleansing gel - travel - 1.7 oz", 
            "title": "special cleansing gel - travel", 
            "variantId": "123", 
            "image_url": "https://cdn.shopify.com/s/files/1/0420/7683/1896/products/specialcleansinggel_1.7oz_98dee553-f068-43c8-a94b-5cb93e84d0c1.jpg?v=164764199788", 
            "product_id": "123", 
            "routing_url": "https://www.yourstore.com/products/special-cleansing-gel-travel"
        }, 
        {
            "sku": "111249", 
            "quantity": 1, 
            "name": "daily microfoliant exfoliator - 2.6 oz", 
            "title": "daily microfoliant exfoliator", 
            "variantId": "123", 
            "image_url": "https://cdn.shopify.com/s/files/1/0420/7683/1896/products/daily-microfoliant_main-with-benefits.jpg?v=16600853368", 
            "product_id": "123", 
            "routing_url": "https://www.yourstore.com/products/daily-microfoliant"
        }
    ], 
    "display_lineitems": true, 
    "item_count": {
        "total_ordered": 3, 
        "total_filled": 2, 
        "current_packaged": 2
    }, 
    "remaning_days_to_delivery_info": "Your Order is Going to Deliver Today", 
    "display_recommended_products": true
}

Response Status

200 - Success

400 – Failure

401 - Un-Authentication 

RecommendedProducts API Details

  • Using RecommendedProducts API, Section 7 will be populated.

Resource Name

getRecommendations

Resource URL

/api/v3/{identifier-name}/recommended_products?tracking_number=123

Method

GET

Params (query/path)

PathVariable:

Identifier-name

RequestParam:

tracking_number

order_number

Headers

Request Payload

Response Payload

Code Block[ { "id": 5710551744664, "imageUrl": "//cdn.shopify.com/s/files/1/0420/7683/1896/products/special-cleansing-gel_main-with-benefits.jpg?v=1661814662", "productName": "special cleansing gel", "productUrl": "store-us.myshopify.com/products/special-cleansing-gel?pr_prod_strat=copurchase&pr_rec_id=56bc14926&pr_rec_pid=5710551744664&pr_ref_pid=5710539751576&pr_seq=uniformm", "title": "special cleansing gel", "price": "$12.00 - $64.00", "vendor": "store-us", "type": "cleansers", "variants": [ { "id": 36070283280536, "title": "1.7 oz", "sku": "101102" }, {

Track Status API

important_updates

Message which retailer wants to display in the tracking page.

edd_info

Contains information regarding 

  • Delivery date

  • Delivery message

  • Split delivery date

  • Header name 

Note : Header name refers to whether the delivery date is the promised delivery date which is shown in checkout page or expected delivery date which is provided by the carrier after pickup or delivery date on package delivered to customer.

{

        "delivery_date": "Friday, September 09 2022", 

        "promised_date": "Monday, September 12 2022", 

        "delivery_message": "Yay, it\"s early...", 

        "expected_shipment_date": "Wednesday, September 07 2022", 

        "split_delivery_date": {

            "day": "Friday", 

            "month": "September", 

            "date": "09", 

            "year": "2022"

        }, 

        "header_name": "Expected Delivery Date"

    }

display_order_info

Refers to whether to display order details(refer to order_info field)  on the page or not.

  • true : display

  • false : not to display

order_info

Contains Order related information such as 

{

        "number": "AAA", 

        "placed_dtm": "2022-09-07T10:55:11-05:00", 

        "formatted_dttm": "Wednesday, September 07 2022"

    }

concise_infos

To move the progress bar to the latest status(event).

shipment_activities

To display Shipment Track Event History.

selected_shipment_activities

To build the complete progress bar section with stoppers.

line_items

Contains all the product details which are part of order or shipments. We will display line items information in Section4.

display_lineitems

Refers to whether to display line items on the page or not. 

  • true : display

  • false : not to display

item_count

Refer to  whether to display a multi shipment section or not.

  {

        "total_ordered": 3, 

          "total_filled": 2, 

        "current_packaged": 2

    }

total_filled   :  Items shipped by retailer.

current_packaged  :  Items which exist in the current package.

Note : Based on discrepancy between total ordered and current packaged count.

display_recommended_products

Refers to whether to call Recommended products API or not.

  • true : call API

  • false : not call API

RecommendedProducts API Details

  • Using RecommendedProducts API, Section 7 will be populated.

  • Fenix completely relying on Shopify Recommended Product API to get and display recommended products.

Resource Name

getRecommendations

Resource URL

/api/v3/{identifier-name}/recommended_products?tracking_number=123

Method

GET

Params (query/path)

PathVariable:

Identifier-name

RequestParam:

tracking_number

order_number

Headers

Request Payload

Response Payload

Code Block
[
    {
        "id": 5710551744664, 
        "imageUrl": "//cdn.shopify.com/s/files/1/0420/7683/1896/products/special-cleansing-gel_main-with-benefits.jpg?v=1661814662", 
        "productName": "special cleansing gel", 
        "productUrl": "store-us.myshopify.com/products/special-cleansing-gel?pr_prod_strat=copurchase&pr_rec_id=56bc14926&pr_rec_pid=5710551744664&pr_ref_pid=5710539751576&pr_seq=uniformm", 
        "title": "special cleansing gel", 
        "price": "$12.00 - $64.00", 
        "vendor": "store-us", 
        "type": "cleansers", 
        "variants": [
            {
                "id": 36070283280536, 
                "title": "1.7 oz", 
                "sku": "101102"
            }, 
            {
                "id": 36070283215000, 
                "title": "8.4 oz", 
                "sku": "101104"
            }, 
            {
                "id": 36070283247768, 
                "title": "16.9 oz", 
                "sku": "101106"
            }
        ]
    }, 
    {
        "id": 5710542471320, 
        "imageUrl": "//cdn.shopify.com/s/files/1/0420/7683/1896/products/ultracalming-cleanser_main-with-benefits.jpg?v=123", 
        "productName": "ultracalming cleanser", 
        "productUrl": "store-us.myshopify.com/products/ultracalming-cleanser?pr_prod_strat=description&pr_rec_id=56bc14926&pr_rec_pid=5710542471320&pr_ref_pid=5710539751576&pr_seq=uniform", 
        "title": "ultracalming cleanser", 
        "price": "$39.50 - $64.00", 
        "vendor": "store-us", 
        "type": "cleansers", 
        "variants": [
            {
                "id": 123, 
                "title": "8.4 oz", 
                "sku": "110541"
            }, 
            {
                "id": 123, 
                "title": "16.9 oz", 
                "sku": "110542"
            }
        ]
    }
]

Response Status

200 - Success

400 – Failure

401 - Un-Authentication 

Multi-Shipment Visibility API Details

  • Using the Multi-Shipment Visibility API, Section 8 data will be populated.

Resource Name

getTrackHistory

Resource URL

api/v2/{identifier-name}/track-status?order_number=AAA&place_dttm=2022-07-19T14:16:04-05:00

Method

GET

Params (query/path)

PathVariable:

Identifier-name

RequestParam:

place_dttm

order_number

Headers

Request Payload

Response Payload

Code Block
languagejson
{
    "order_summary": {
        "number": "AAA", 
        "placed_date": "Wednesday, September 07 2022", 
        "promised_date": "Monday, September 12 2022", 
        "split_delivery_date": {
            "day": "Monday", 
            "month": "September", 
            "date": "12", 
            "year": "2022"
        }, 
        "total_item_quantity": 3, 
        "total_filled_item_quantity": 2, 
        "line_items": [
            {
                "sku": "456", 
                "quantity": 1, 
                "name": "double cleanse full size kit - each", 
                "title": "double cleanse full size kit", 
                "variantId": "41694522802328", 
                
"id": 36070283215000
"image_url": "https://cdn.shopify.com/s/files/1/0420/7683/1896/products/double-cleanse-set_carton-front.jpg?v=1653587001", 
                "
title
product_id": "
8.4 oz
7255087710360", 
                "
sku
routing_url": "
101104
https://www.store-us.com/products/double-cleanse-full-size-kit"
            }, 
            {
                "
id
sku": 
36070283247768
"123", 
                "
title
quantity": 
"16.9 oz"
1, 
                "
sku
name": "
101106"
special cleansing gel - travel - 1.7 oz", 
    
}
         
]
   "title": "special 
},
cleansing gel 
{
- travel", 
     
"id":
 
5710542471320,
          "
imageUrl
variantId": "
//cdn.shopify.com/s/files/1/0420/7683/1896/products/ultracalming-cleanser_main-with-benefits.jpg?v=123",
11123", 
    
"productName":
 
"ultracalming
 
cleanser",
          "
productUrl
image_url": "
store-us.myshopify
https://cdn.shopify.com/
products/ultracalming-cleanser?pr_prod_strat=description&pr_rec_id=56bc14926&pr_rec_pid=5710542471320&pr_ref_pid=5710539751576&pr_seq=uniform",
s/files/1/0420/7683/1896/products/specialcleansinggel_1.7oz_98dee553-f068-43c8-a94b-5cb93e84d0c1.jpg?v=164", 
         
"title
       "product_id": "
ultracalming cleanser
5710539751576",
 
    
"price": "$39.50
 
-
 
$64.00",
          "
vendor
routing_url": "https://www.store-us
",
.com/products/special-cleansing-gel-travel"
  
"type":
 
"cleansers",
         
"variants": [
}, 
            {
                "
id
sku": 
123
"232", 
                "
title
quantity": 
"8.4 oz"
1, 
                "
sku
name": "
110541"
daily microfoliant exfoliator - 2.6 oz", 
      
},
          "title": "daily microfoliant exfoliator", 
{

                "
id
variantId": 
123
"126", 
                "
title": "16.9 oz
image_url": "https://cdn.shopify.com/s/files/1/0420/7683/1896/products/daily-microfoliant_main-with-benefits.jpg?v=166", 
                "
sku
product_id": "
110542
5710551548056"
, 
        
}
       
] } ]

Response Status

200 - Success

400 – Failure

401 - Un-Authentication 

Multi-Shipment Visibility API Details

  • Using the Multi-Shipment Visibility API, Section 8 data will be populated.

Resource Name

getTrackHistory

Resource URL

api/v2/{identifier-name}/track-status?order_number=AAA&place_dttm=2022-07-19T14:16:04-05:00

Method

GET

Params (query/path)

PathVariable:

Identifier-name

RequestParam:

place_dttm

order_number

Headers

Request Payload

Response Payload

Code Block
languagejson
{ "routing_url": "https://www.store-us.com/products/daily-microfoliant"
            }
        ]
    }, 
    "ordershipment_summarysummaries": [
{        {
 "number": "AAA",          "placededd_dateinfo": "Wednesday, September 07 2022",{
                "promiseddelivery_date": "MondayFriday, September 1209 2022", 
   
    "split_delivery_date": {             "daypromised_date": "Monday, September 12 2022", 
            "month    "delivery_message": "September",Yay, it\"s early...", 
                "expected_shipment_date": "12Wednesday, September 07 2022", 
            "year    "split_delivery_date": "2022"{
          },          "total_item_quantityday": 3"Friday", 
         "total_filled_item_quantity": 2,          "line_itemsmonth": [
"September", 
          {                 "sku"date": "45609", 
                "quantity": 1,        "year": "2022"
         "name": "double cleanse full size kit - each"}, 
                "titleheader_name": "Expected Delivery Date"double
     cleanse full size kit",    }, 
            "variantIdtracking_number": "41694522802328123", 
                "imagecarrier_urlname": "https://cdn.shopify.com/s/files/1/0420/7683/1896/products/double-cleanse-set_carton-front.jpg?v=1653587001", 
UPS", 
              "productevent_idmessage": "7255087710360Left Warehouse", 
   
            "routingitem_urlquantity": "https://www.store-us.com/products/double-cleanse-full-size-kit"2, 
            "line_items": [
  },              {
                    "sku": "123", 
                    "quantity": 1, 
                    "name": "special cleansing gel - travel - 1.7 oz", 
                    "title": "special cleansing gel - travel", 
                    "variantId": "11123", 
                    "image_url": "https://cdn.shopify.com/s/files/1/0420/7683/1896/products/specialcleansinggel_1.7oz_98dee553-f068-43c8-a94b-5cb93e84d0c1.jpg?v=164", 
                    "product_id": "5710539751576", 
                    "routing_url": "https://www.store-us.com/products/special-cleansing-gel-travel"
                }, 
                {
                    "sku": "232", 
                    "quantity": 1, 
                    "name": "daily microfoliant exfoliator - 2.6 oz",, 
                    "title": "daily microfoliant exfoliator", 
                    "variantId": "126", 
                    "image_url": "https://cdn.shopify.com/s/files/1/0420/7683/1896/products/daily-microfoliant_main-with-benefits.jpg?v=166", 
                    "product_id": "5710551548056", 
                    "routing_url": "https://www.store-us.com/products/daily-microfoliant"
                }
           ]
    }, 
    "shipment_summaries": [
        {
            "edd_info": {
                "delivery_date": "Friday, September 09 2022", 
                "promised_date": "Monday, September 12 2022", 
                "delivery_message": "Yay, it\"s early...", 
                "expected_shipment_date": "Wednesday, September 07 2022", 
                "split_delivery_date": {
                    "day": "Friday", 
                    "month": "September", 
                    "date": "09", 
                    "year": "2022"
                }, 
                "header_name": "Expected Delivery Date"
            }, 
            "tracking_number": "123", 
            "carrier_name": "UPS", 
            "event_message": "Left Warehouse", 
            "item_quantity": 2, 
            "line_items": [
                {
                    "sku": "123", 
                    "quantity": 1, 
                    "name": "special cleansing gel - travel - 1.7 oz", 
                    "title": "special cleansing gel - travel", 
                    "variantId": "11123", 
                    "image_url": "https://cdn.shopify.com/s/files/1/0420/7683/1896/products/specialcleansinggel_1.7oz_98dee553-f068-43c8-a94b-5cb93e84d0c1.jpg?v=164", 
                    "product_id": "5710539751576", 
                    "routing_url": "https://www.store-us.com/products/special-cleansing-gel-travel"
                }, 
                {
                    "sku": "232", 
                    "quantity": 1, 
                    "name": "daily microfoliant exfoliator - 2.6 oz", 
                    "title": "daily microfoliant exfoliator", 
                    "variantId": "126", 
                    "image_url":      ]
        }
    ]
}

Response Status

200 - Success

400 – Failure

401 - Un-Authentication 

Multi Shipment Status API

order_summary

Contains order related information such as

{

        "number": "AAA", 

        "placed_date": "Wednesday, September 07 2022", 

        "promised_date": "Monday, September 12 2022", 

        "split_delivery_date": {

            "day": "Monday", 

            "month": "September", 

            "date": "12", 

            "year": "2022"

        }, 

        "total_item_quantity": 3, 

        "total_filled_item_quantity": 2, 

        "line_items": [

            {

                "sku": "456", 

                "quantity": 1, 

                "name": "double cleanse full size kit - each", 

                "title": "double cleanse full size kit", 

                "variantId": "41694522802328", 

                "image_url": "https://cdn.shopify.com/s/files/1/0420/7683/1896/products/double-cleanse-set_carton-front.jpg?v=1653587001", 

                "product_id": "7255087710360", 

                "routing_url": "https://www.store-us.com/products/double-cleanse-full-size-kit"

            }        ]

    }

line_items : Contains all the product details which are part of order.

Note : If there is discrepancy between total_filled_item_quantity and total_item_quantity then Fenix will display remaining items as unshipped items.

Shipment Summaries 

Contains list of shipments. Each shipments contains information such as

[

        {

            "edd_info": {

                "delivery_date": "Friday, September 09 2022", 

                "promised_date": "Monday, September 12 2022", 

                "delivery_message": "Yay, it\"s early...", 

                "expected_shipment_date": "Wednesday, September 07 2022", 

                "split_delivery_date": {

                    "day": "Friday", 

                    "month": "September", 

                    "date": "09", 

                    "year": "2022"

                }, 

                "header_name": "Expected Delivery Date"

            }, 

            "tracking_number": "123", 

            "carrier_name": "UPS", 

            "event_message": "Left Warehouse", 

            "item_quantity": 2, 

            "line_items": [

                {

                    "sku": "123", 

                    "quantity": 1, 

                    "name": "special cleansing gel - travel - 1.7 oz", 

                    "title": "special cleansing gel - travel", 

                    "variantId": "11123", 

                    "image_url": "https://cdn.shopify.com/s/files/1/0420/7683/1896/products/

daily-microfoliant_main-with-benefits

specialcleansinggel_1.7oz_98dee553-f068-43c8-a94b-5cb93e84d0c1.jpg?v=

166",

164", 

                    "product_id":

"

5710551548056",

5710539751576", 

                    "routing_url":

"https://www.store-us.com/products/

daily-microfoliant" } ] } ] }

Response Status

200 - Success

400 – Failure

401 - Un-Authentication 

special-cleansing-gel-travel"

                } 

                

    ]

  • edd_info  :  basic delivery info

  • event_message  : Status of specific shipment.

  • line_items : Contains all the product details which are part of specific shipment.

Note : If line_items contains tracking_number then we can track the shipment from the current page, otherwise we will display No Tracking Details Found text.

Feedback API Details

  • Using the Feedback API, Section 9 data will be populated.

...