/
Amazon - IMEI SERIAL NUMBER

Amazon - IMEI SERIAL NUMBER

Step 1: On the Shipment - Created, Accepted, Picked Events on Item Level we will search for order_items.productAdditionalInfo.specification: inside the specification list, we will check for String: “requires serial number (e.g. IMEI) scan"

The process Different for Virtual Kit and Non- Virtual Kit Items:

 

Step 2: For Virtual Kit Items: Sample Shipment Event containing Only Virtual kit Items :

{ "resource": "shipment", "eventType": "PUT", "eventSubType": "created", "accountSlug": "testing_brand_party", "accountId": null, "actor": "SYSTEM", "version": "v1", "request_data": [], "response_data": { "customerOrderNumber": "TEST_SBH", "orderSiteID": "", "vendorOrderNumber": "TEST_SBH", "externalShipmentID": "TEST_SBH-61440", "externalWarehouseID": "Test_FC", "externalChannelID": "CH2164", "externalWmsChannelName": "SHOPIFY_TESTING_BRAND_PARTY_TFC_2463", "external_wms_channel_id": 2463, "channelLabel": "Deprecated Shopify N", "integrationType": "7", "vendorPartyID": null, "partner_as2_id": null, "defaultWarehouseCode": "Test_FC", "facilityLabel": "Test FC (TFC)", "facilityType": "auperator", "orderDate": "2022-12-21 13:50:34", "portal_id": 27, "paymentType": "manual", "expectedShipDate": "2022-12-24 12:00:00", "dispatchAfterDate": null, "externalManifestNumber": null, "channelManifestNumber": null, "order_id": 46349039, "channel_id": 2164, "warehouse_id": 646, "channel_account_id": 0, "account_id": 454, "connectionId": 1306, "locationId": "65558216898", "region": "", "isMetro": "0", "isSpecialplace": "0", "shippingConnectionId": 0, "picklistCode": null, "invoiceNumber": "", "boxType": "UNKNOWN", "isPriorityShipment": "0", "isGift": "0", "invoice_url": "", "invoiceDate": null, "label_url": "", "labels": "", "shippingInfo": [], "boxAdditionalRecommendation": [], "dimension_length": "0", "dimension_width": "0", "dimension_height": "0", "weight": "0.12", "trackingID": "", "trackingDomain": "", "packageID": "", "barcode": "", "taxAmount": 0, "shipChargeAmount": 0, "courierName": "", "cp_id": 0, "created_at": "2022-12-23 14:06:11", "updated_at": "2022-12-23 14:06:11", "status": "created", "remarks": "", "warehousePincode": "122503", "thirdPartyShipping": false, "customerName": "Neha A", "customerContactNumber": "918178400000", "email": "neha.rani@eshopbox.com", "channelSlug": "testing_brand_party44", "status_updated_at": "2022-12-23 14:06:11", "status_log": { "created": "2022-12-23 14:06:11" }, "status_log_first_occurrence": { "created": "2022-12-23 14:06:11" }, "status_log_count": { "created": 1 }, "status_log_id": "106567977", "orderExternalCreatedAt": "2022-12-23 14:06:02", "shippingAddress": { "customerName": "Neha A", "addressLine1": "M-260 Ashiana Road Sector G LDA Colony", "addressLine2": "", "city": "Lucknow", "state": "Uttar Pradesh", "postalCode": "226012", "countryCode": "IN", "countryName": "INDIA", "contactPhone": "8178400000", "email": "neha.rani@eshopbox.com" }, "warehouseAddress": { "addressLine1": "MJ Logistics Private Limited, Seabird Marine services Pvt Ltd", "addressLine2": "Village Babra Bakirpur, Pataudi Road Near Adani Logistic Park, ICD Patli, Gurgaon, Haryana 122503", "city": "Gurgaon", "state": "Haryana", "postalCode": "122503", "gstin": "06AAFCB0498R2Z2" }, "id": 14410522, "isCOD": "1", "track_payload": [], "items": [ { "order_item_id": 27988178, "lineItemSequenceNumber": 11747633070274, "orderItemID": "TEST_SBH-27988178", "itemID": "44892984049858", "sku": "VK53Y3H9ZW8", "asin": "", "productName": "TestVK", "quantity": 1, "orderItemCreatedAt": "2022-12-23 14:06:02", "customerPrice": 1000, "lineItemTotal": 1000, "invoiceTotal": 1000, "cashOnDeliveryCharges": 0, "discount": 0, "taxRate": 0, "taxAmount": 0, "inventoryItemCode": "", "giftMessage": "", "isGift": "0", "giftLabelContent": "", "lineItemOrderStatus": "", "orderItemIDs": [ "TEST_SBH-27988178" ], "productImageUrl": null, "productAdditionalInfo": null, "expectedDeliveryDate": null, "shippingCharges": 0, "productUrl": null, "originalOrderItemId": null, "isVirtualKit": "1", "component": [ { "inventoryItemCode": null, "productAdditionalInfo": { "size": "M", "color": "red", "serialNumber": "23256789087654", "specification": [ "is_fragile", "is_danger", "requires serial number (e.g. IMEI) scan" ], "batchDetail": { "expiryDate": "2022-02-01 00: 00: 00" } }, "whOrderItemID": null, "esin": "03Y4U3H9FKD" }, { "inventoryItemCode": null, "productAdditionalInfo": "", "whOrderItemID": null, "esin": "03Y4U3H9FKD" } ], "onhold": "0", "cancellationAdditionalReason": "", "cancellationReason": "", "customerOrderItemID": "", "recallBlockedInventoryUsed": "" } ], "calledFrom": "call_from_log_8", "outOfStock": false }, "previous_data": [], "resource_type": "shipment.update", "account_slug": "testing_brand_party", "custom": [] }

Here In the Event, We will go Inside response_data.Items[] list:

Step 3: If response_data.Items[].isVirtualKit == 1 (Virtual Kit items)

Step 3.1: If (response_data.Items[].component[].productAdditionalInfo.specification[] contains "requires serial number (e.g. IMEI) scan" ) means the item needs IMEI serial number in label and Invoice.

Note: Then We will skip the Further Processing Of the Given Event.

Step 3.2: If none of the Items have IMEI serial Number Requirement then we will continue with the usual Flow: i.e If (response_data.Items[].component[].productAdditionalInfo.specification[] does not contain "requires serial number (e.g. IMEI) scan" ) Means the item doesn't require IMEI serial number in label and Invoice, So we will Continue with the usual flow.

Step 4: For Events Containing Non Virtual Kit Items

{ "resource": "shipment", "eventType": "PUT", "eventSubType": "created", "accountSlug": "testing_brand_party", "accountId": null, "actor": "SYSTEM", "version": "v1", "request_data": [], "response_data": { "customerOrderNumber": "TEST_SBH", "orderSiteID": "", "vendorOrderNumber": "TEST_SBH", "externalShipmentID": "TEST_SBH-61440", "externalWarehouseID": "Test_FC", "externalChannelID": "CH2164", "externalWmsChannelName": "SHOPIFY_TESTING_BRAND_PARTY_TFC_2463", "external_wms_channel_id": 2463, "channelLabel": "Deprecated Shopify N", "integrationType": "7", "vendorPartyID": null, "partner_as2_id": null, "defaultWarehouseCode": "Test_FC", "facilityLabel": "Test FC (TFC)", "facilityType": "auperator", "orderDate": "2022-12-21 13:50:34", "portal_id": 27, "paymentType": "manual", "expectedShipDate": "2022-12-24 12:00:00", "dispatchAfterDate": null, "externalManifestNumber": null, "channelManifestNumber": null, "order_id": 46349039, "channel_id": 2164, "warehouse_id": 646, "channel_account_id": 0, "account_id": 454, "connectionId": 1306, "locationId": "65558216898", "region": "", "isMetro": "0", "isSpecialplace": "0", "shippingConnectionId": 0, "picklistCode": null, "invoiceNumber": "", "boxType": "UNKNOWN", "isPriorityShipment": "0", "isGift": "0", "invoice_url": "", "invoiceDate": null, "label_url": "", "labels": "", "shippingInfo": [], "boxAdditionalRecommendation": [], "dimension_length": "0", "dimension_width": "0", "dimension_height": "0", "weight": "0.12", "trackingID": "", "trackingDomain": "", "packageID": "", "barcode": "", "taxAmount": 0, "shipChargeAmount": 0, "courierName": "", "cp_id": 0, "created_at": "2022-12-23 14:06:11", "updated_at": "2022-12-23 14:06:11", "status": "created", "remarks": "", "warehousePincode": "122503", "thirdPartyShipping": false, "customerName": "Neha A", "customerContactNumber": "918178400000", "email": "neha.rani@eshopbox.com", "channelSlug": "testing_brand_party44", "status_updated_at": "2022-12-23 14:06:11", "status_log": { "created": "2022-12-23 14:06:11" }, "status_log_first_occurrence": { "created": "2022-12-23 14:06:11" }, "status_log_count": { "created": 1 }, "status_log_id": "106567977", "orderExternalCreatedAt": "2022-12-23 14:06:02", "shippingAddress": { "customerName": "Neha A", "addressLine1": "M-260 Ashiana Road Sector G LDA Colony", "addressLine2": "", "city": "Lucknow", "state": "Uttar Pradesh", "postalCode": "226012", "countryCode": "IN", "countryName": "INDIA", "contactPhone": "8178400000", "email": "neha.rani@eshopbox.com" }, "warehouseAddress": { "addressLine1": "MJ Logistics Private Limited, Seabird Marine services Pvt Ltd", "addressLine2": "Village Babra Bakirpur, Pataudi Road Near Adani Logistic Park, ICD Patli, Gurgaon, Haryana 122503", "city": "Gurgaon", "state": "Haryana", "postalCode": "122503", "gstin": "06AAFCB0498R2Z2" }, "id": 14410522, "isCOD": "1", "track_payload": [], "items": [ { "order_item_id": 27988179, "lineItemSequenceNumber": 11747633103042, "orderItemID": "TEST_SBH-27988179", "itemID": "44875696701634", "sku": "03Y4U3H9FKD", "asin": "", "productName": "TestImportBatching1003", "quantity": 1, "orderItemCreatedAt": "2022-12-23 14:06:02", "customerPrice": 8999, "lineItemTotal": 8999, "invoiceTotal": 8999, "cashOnDeliveryCharges": 0, "discount": 0, "taxRate": 0, "taxAmount": 0, "inventoryItemCode": "", "giftMessage": "", "isGift": "0", "giftLabelContent": "", "lineItemOrderStatus": "", "orderItemIDs": [ "TEST_SBH-27988179" ], "productImageUrl": "https:\/\/ik.imagekit.io\/image\/image\/IMAGE_9819798103.jpg", "productAdditionalInfo": {                     "size": "M",                     "color": "red",                     "serialNumber": "23256789087654",                     "specification": [                         "is_fragile",                         "is_danger", "requires serial number (e.g. IMEI) scan"                     ],                     "batchDetail": {                         "expiryDate": "2022-02-01 00: 00: 00"                     }                 }, "expectedDeliveryDate": null, "shippingCharges": 0, "productUrl": null, "originalOrderItemId": null, "isVirtualKit": "0", "component": [], "onhold": "0", "cancellationAdditionalReason": "", "cancellationReason": "", "customerOrderItemID": "", "recallBlockedInventoryUsed": "" } ], "calledFrom": "call_from_log_8", "outOfStock": false }, "previous_data": [], "resource_type": "shipment.update", "account_slug": "testing_brand_party", "custom": [] }

If response_data.Items[].isVirtualKit == 0 ( means it is Non-Virtual Kit Item)

Step 4.1: If (response_data.Items[].productAdditionalInfo.specification[] contains "requires serial number (e.g. IMEI) scan" ) means the item needs IMEI serial number in label and Invoice.

Note: Then We will skip the Further Processing Of the Given Event.

Step 4.2: If none of the Items have IMEI serial Number Requirement then we will continue with the usual Flow: i.e If (response_data.Items[].productAdditionalInfo.specification[] does not contain "requires serial number (e.g. IMEI) scan" ) Means the item doesn't require IMEI serial number in label and Invoice, So we will Continue with the usual flow.

Step 5: If the Event Contains Both Virtual Kit and Non-Virtual Kit Items:

{ "resource": "shipment", "eventType": "PUT", "eventSubType": "created", "accountSlug": "testing_brand_party", "accountId": null, "actor": "SYSTEM", "version": "v1", "request_data": [], "response_data": { "customerOrderNumber": "TEST_SBH", "orderSiteID": "", "vendorOrderNumber": "TEST_SBH", "externalShipmentID": "TEST_SBH-61440", "externalWarehouseID": "Test_FC", "externalChannelID": "CH2164", "externalWmsChannelName": "SHOPIFY_TESTING_BRAND_PARTY_TFC_2463", "external_wms_channel_id": 2463, "channelLabel": "Deprecated Shopify N", "integrationType": "7", "vendorPartyID": null, "partner_as2_id": null, "defaultWarehouseCode": "Test_FC", "facilityLabel": "Test FC (TFC)", "facilityType": "auperator", "orderDate": "2022-12-21 13:50:34", "portal_id": 27, "paymentType": "manual", "expectedShipDate": "2022-12-24 12:00:00", "dispatchAfterDate": null, "externalManifestNumber": null, "channelManifestNumber": null, "order_id": 46349039, "channel_id": 2164, "warehouse_id": 646, "channel_account_id": 0, "account_id": 454, "connectionId": 1306, "locationId": "65558216898", "region": "", "isMetro": "0", "isSpecialplace": "0", "shippingConnectionId": 0, "picklistCode": null, "invoiceNumber": "", "boxType": "UNKNOWN", "isPriorityShipment": "0", "isGift": "0", "invoice_url": "", "invoiceDate": null, "label_url": "", "labels": "", "shippingInfo": [], "boxAdditionalRecommendation": [], "dimension_length": "0", "dimension_width": "0", "dimension_height": "0", "weight": "0.12", "trackingID": "", "trackingDomain": "", "packageID": "", "barcode": "", "taxAmount": 0, "shipChargeAmount": 0, "courierName": "", "cp_id": 0, "created_at": "2022-12-23 14:06:11", "updated_at": "2022-12-23 14:06:11", "status": "created", "remarks": "", "warehousePincode": "122503", "thirdPartyShipping": false, "customerName": "Neha A", "customerContactNumber": "918178400000", "email": "neha.rani@eshopbox.com", "channelSlug": "testing_brand_party44", "status_updated_at": "2022-12-23 14:06:11", "status_log": { "created": "2022-12-23 14:06:11" }, "status_log_first_occurrence": { "created": "2022-12-23 14:06:11" }, "status_log_count": { "created": 1 }, "status_log_id": "106567977", "orderExternalCreatedAt": "2022-12-23 14:06:02", "shippingAddress": { "customerName": "Neha A", "addressLine1": "M-260 Ashiana Road Sector G LDA Colony", "addressLine2": "", "city": "Lucknow", "state": "Uttar Pradesh", "postalCode": "226012", "countryCode": "IN", "countryName": "INDIA", "contactPhone": "8178400000", "email": "neha.rani@eshopbox.com" }, "warehouseAddress": { "addressLine1": "MJ Logistics Private Limited, Seabird Marine services Pvt Ltd", "addressLine2": "Village Babra Bakirpur, Pataudi Road Near Adani Logistic Park, ICD Patli, Gurgaon, Haryana 122503", "city": "Gurgaon", "state": "Haryana", "postalCode": "122503", "gstin": "06AAFCB0498R2Z2" }, "id": 14410522, "isCOD": "1", "track_payload": [], "items": [ { "order_item_id": 27988178, "lineItemSequenceNumber": 11747633070274, "orderItemID": "TEST_SBH-27988178", "itemID": "44892984049858", "sku": "VK53Y3H9ZW8", "asin": "", "productName": "TestVK", "quantity": 1, "orderItemCreatedAt": "2022-12-23 14:06:02", "customerPrice": 1000, "lineItemTotal": 1000, "invoiceTotal": 1000, "cashOnDeliveryCharges": 0, "discount": 0, "taxRate": 0, "taxAmount": 0, "inventoryItemCode": "", "giftMessage": "", "isGift": "0", "giftLabelContent": "", "lineItemOrderStatus": "", "orderItemIDs": [ "TEST_SBH-27988178" ], "productImageUrl": null, "productAdditionalInfo": null, "expectedDeliveryDate": null, "shippingCharges": 0, "productUrl": null, "originalOrderItemId": null, "isVirtualKit": "1", "component": [ { "inventoryItemCode": null, "productAdditionalInfo": { "size": "M", "color": "red", "serialNumber": "23256789087654", "specification": [ "is_fragile", "is_danger", "requires serial number (e.g. IMEI) scan" ], "batchDetail": { "expiryDate": "2022-02-01 00: 00: 00" } }, "whOrderItemID": null, "esin": "03Y4U3H9FKD" }, { "inventoryItemCode": null, "productAdditionalInfo": "", "whOrderItemID": null, "esin": "03Y4U3H9FKD" } ], "onhold": "0", "cancellationAdditionalReason": "", "cancellationReason": "", "customerOrderItemID": "", "recallBlockedInventoryUsed": "" }, { "order_item_id": 27988179, "lineItemSequenceNumber": 11747633103042, "orderItemID": "TEST_SBH-27988179", "itemID": "44875696701634", "sku": "03Y4U3H9FKD", "asin": "", "productName": "TestImportBatching1003", "quantity": 1, "orderItemCreatedAt": "2022-12-23 14:06:02", "customerPrice": 8999, "lineItemTotal": 8999, "invoiceTotal": 8999, "cashOnDeliveryCharges": 0, "discount": 0, "taxRate": 0, "taxAmount": 0, "inventoryItemCode": "", "giftMessage": "", "isGift": "0", "giftLabelContent": "", "lineItemOrderStatus": "", "orderItemIDs": [ "TEST_SBH-27988179" ], "productImageUrl": "https:\/\/ik.imagekit.io\/image\/image\/IMAGE_9819798103.jpg", "productAdditionalInfo": {                     "size": "M",                     "color": "red",                     "serialNumber": "23256789087654",                     "specification": [                         "is_fragile",                         "is_danger", "requires serial number (e.g. IMEI) scan"                     ],                     "batchDetail": {                         "expiryDate": "2022-02-01 00: 00: 00"                     }                 }, "expectedDeliveryDate": null, "shippingCharges": 0, "productUrl": null, "originalOrderItemId": null, "isVirtualKit": "0", "component": [], "onhold": "0", "cancellationAdditionalReason": "", "cancellationReason": "", "customerOrderItemID": "", "recallBlockedInventoryUsed": "" } ], "calledFrom": "call_from_log_8", "outOfStock": false }, "previous_data": [], "resource_type": "shipment.update", "account_slug": "testing_brand_party", "custom": [] }

5.1: We will go inside the items list in the event:

For Items Having response_data.Items[].isVirtualKit == 1 (means it is Virtual Kit Item)

We will continue from step 3.1.

For Items Having response_data.Items[].isVirtualKit == 0 (means it is Non Virtual Kit Item)

We will continue from step 4.1.

NOTE: If any of the Item Requires IMEI serial Number we will Stop the Event there.

Step 6: IF Event Contains none of the Item Requires IMEI Serial Number. Then we will Simply Continue with the existing Flow of the Event.

FOR RTS EVENT

Step 1: When RTS Event Triggers:

{ "customerOrderNumber": "89e40e1e-ecb7-4837-adff-d74962d32f6f", "orderSiteID": "", "vendorOrderNumber": "OD427186048819389100", "externalShipmentID": "OD427186048819389100-1943-390", "externalWarehouseID": "Gurgaon_FC", "externalChannelID": "CH1943", "externalWmsChannelName": "RAYMOND_FLIPKART_NEW_RAYMOND_AGGN_2113", "external_wms_channel_id": 2113, "channelLabel": "Raymond Flipkart New", "integrationType": "6", "defaultWarehouseCode": "Gurgaon_FC", "facilityLabel": "Gurgaon (AGGN)", "facilityType": "auperator", "orderDate": "2023-01-29 20:42:53", "portal_id": 1, "paymentType": "COD", "expectedShipDate": "2023-01-30 16:00:00", "dispatchAfterDate": "2023-01-29 20:48:37", "order_id": 46981446, "channel_id": 1943, "warehouse_id": 650, "channel_account_id": 0, "account_id": 126, "connectionId": 948, "locationId": "LOC50dd02318df14e2ab34809de63c580a2", "region": "National", "isMetro": "0", "isSpecialplace": "0", "invoiceNumber": "", "boxType": "UNKNOWN", "isPriorityShipment": "0", "isGift": "0", "invoice_url": "", "label_url": "", "labels": "", "shippingInfo": [], "boxAdditionalRecommendation": [], "dimension_length": "56.642", "dimension_width": "42.672", "dimension_height": "6.604", "weight": "520", "trackingID": "FMPC2503392468", "trackingDomain": "", "packageID": "", "barcode": "", "taxAmount": 0, "shipChargeAmount": 0, "courierName": "", "cp_id": 0, "created_at": "2023-01-29 20:50:16", "updated_at": "2023-01-30 10:01:28", "status": "picked", "remarks": "", "warehousePincode": "122503", "thirdPartyShipping": true, "customerName": "Devendra", "customerContactNumber": "9999999999", "email": "xyz@gmail.com", "status_updated_at": "2023-01-30 10:01:28", "status_log": { "created": "2023-01-29 20:50:16", "accepted": "2023-01-29 21:01:42", "picked": "2023-01-30 10:01:28" }, "status_log_first_occurrence": { "picked": "2023-01-30 10:01:28", "accepted": "2023-01-29 21:01:42", "created": "2023-01-29 20:50:16" }, "status_log_count": { "created": 1, "accepted": 1, "picked": 1 }, "status_log_id": "110899188", "orderExternalCreatedAt": "2023-01-29 20:50:12", "shippingAddress": { "customerName": "Devendra", "addressLine1": "New teliphon exchange ke samne", "addressLine2": "Bsnl tower lahar", "city": "Lahar", "state": "Madhya Pradesh", "postalCode": "477445", "countryCode": "IN", "countryName": "India", "contactPhone": "9999999999", "email": "xyz@gmail.com" }, "warehouseAddress": { "addressLine1": "MJ Logistics Private Limited, Seabird Marine Services Pvt Ltd", "addressLine2": "Village Babra Bakirpur, Pataudi Road Near Adani Logistic Park, ICD Patli, Gurgaon, Haryana(122503)", "city": "Gurgaon", "state": "Haryana", "postalCode": "122503", "gstin": "06AAFCB0498R2Z2" }, "id": 15060864, "isCOD": "1", "track_payload": [], "items": [ { "order_item_id": 27988178, "lineItemSequenceNumber": 11747633070274, "orderItemID": "TEST_SBH-27988178", "itemID": "44892984049858", "sku": "VK53Y3H9ZW8", "asin": "", "productName": "TestVK", "quantity": 1, "orderItemCreatedAt": "2022-12-23 14:06:02", "customerPrice": 1000, "lineItemTotal": 1000, "invoiceTotal": 1000, "cashOnDeliveryCharges": 0, "discount": 0, "taxRate": 0, "taxAmount": 0, "inventoryItemCode": "", "giftMessage": "", "isGift": "0", "giftLabelContent": "", "lineItemOrderStatus": "", "orderItemIDs": [ "TEST_SBH-27988178" ], "productImageUrl": null, "productAdditionalInfo": null, "expectedDeliveryDate": null, "shippingCharges": 0, "productUrl": null, "originalOrderItemId": null, "isVirtualKit": "1", "component": [ { "inventoryItemCode": null, "productAdditionalInfo": { "size": "M", "color": "red", "serialNumber": "23256789087654", "specification": [ "is_fragile", "is_danger", "requires serial number (e.g. IMEI) scan" ], "batchDetail": { "expiryDate": "2022-02-01 00: 00: 00" } }, "whOrderItemID": null, "esin": "03Y4U3H9FKD" }, { "inventoryItemCode": null, "productAdditionalInfo": "", "whOrderItemID": null, "esin": "03Y4U3H9FKD" } ], "onhold": "0", "cancellationAdditionalReason": "", "cancellationReason": "", "customerOrderItemID": "", "recallBlockedInventoryUsed": "" }, { "order_item_id": 27988179, "lineItemSequenceNumber": 11747633103042, "orderItemID": "TEST_SBH-27988179", "itemID": "44875696701634", "sku": "03Y4U3H9FKD", "asin": "", "productName": "TestImportBatching1003", "quantity": 1, "orderItemCreatedAt": "2022-12-23 14:06:02", "customerPrice": 8999, "lineItemTotal": 8999, "invoiceTotal": 8999, "cashOnDeliveryCharges": 0, "discount": 0, "taxRate": 0, "taxAmount": 0, "inventoryItemCode": "", "giftMessage": "", "isGift": "0", "giftLabelContent": "", "lineItemOrderStatus": "", "orderItemIDs": [ "TEST_SBH-27988179" ], "productImageUrl": "https:\/\/ik.imagekit.io\/image\/image\/IMAGE_9819798103.jpg", "productAdditionalInfo": {                     "size": "M",                     "color": "red",                     "serialNumber": "23256789087654",                     "specification": [                         "is_fragile",                         "is_danger", "requires serial number (e.g. IMEI) scan"                     ],                     "batchDetail": {                         "expiryDate": "2022-02-01 00: 00: 00"                     }                 }, "expectedDeliveryDate": null, "shippingCharges": 0, "productUrl": null, "originalOrderItemId": null, "isVirtualKit": "0", "component": [], "onhold": "0", "cancellationAdditionalReason": "", "cancellationReason": "", "customerOrderItemID": "", "recallBlockedInventoryUsed": "" } ], "statusMovedTo": "unhold" }

Step 2: If Items[].isVirtualKit == 1 (Virtual Kit items)

Step 2.1: If (Items[].component[].productAdditionalInfo.specification[] contains "requires serial number (e.g. IMEI) scan" ) means the item needs IMEI serial number in label and Invoice.

Step 2.2: We will save the Serial Number in a List according to its orderItemId

(serialNumberList[]=Items[].component[].productAdditionalInfo.serialNumber )

Note: For virtual kit Items we might get multiple Items inside the component[] list So, might get multiple IMEI Serial Numbers, and we will save all those serial Numbers Inside a variable List.

Step 2.3: Now we will pass the saved Serial Number List In the Lebel Generation API In the Service File :

curl --location --request PUT 'https://api.sandbox.dub.yojaka.xp.sellers.a2z.com/v1/orders/cfa80abc-ea06-4a78-8332-a294789b05d3/create-packages' \ --header 'X-Amz-Access-Token: Atza|IwEBICIu9_6E_zLKJAfCukqZZmeaqaFzirXJNn8z-9qqDh7c3obkt0vF3UQY9Hqw_MZeBvAmzrc7mLGCEcJXCZF6-qlKAoxjiCCuTBephBLpmStyeoodT4DpS8crb49h8lPvAFQjoZTTK6cQEje8jnmFKje4ZFz-aA1pVud_SCcaC5owjSxTJyGFjJJgC9CXoEKIjyoWCObULTnsJ4K3cao_wjQhRsqys3R2jK97q4btfTz2FMtJ95QUC2nBH0zjbqzwsmZXMbKRxbI-9GPHdfQj9msqRnXYaVy3BsOsfL2APah1XfnrXydgzJ47G56omOhDgDysLzDy6G20R_2J3s004cZJ3Yn9gcwoxkFvPrwATrCjBEDgE99lOx5UrG3o7SOJ7sUWk73KIJZrY1ho-fIRURlD7-um-jutjJSwbHwzn-0AzkNRzWWf8KHdgVdn-6kQ0mLxgLSmbIVSI41_nCUNB5DraCmiUkHSdXYZs2Z_exjFRg' \ --header 'X-Amz-Content-Sha256: beaead3198f7da1e70d03ab969765e0821b24fc913697e929e726aeaebf0eba3' \ --header 'X-Amz-Security-Token: FwoGZXIvYXdzEMP//////////wEaDDCs94cgi+SlzO28CSKrAXXRJcoVWVGIoneqonKdgwP0Y7F986n/voL/zwlL+FYeL1/TswNA1/g/ZB3WqUeNAN2jH68WJS9u6lAmrP4/MNFeTckgKoZV3eOv0hKI+twC/c4AWkHDyj0EAR959VMkHK+Z7DVbDXEx94IHCbmXxnxqyU+WDu6SRgIqwvn/TKcbnvVqTM3Pp0Nw+zB0OPQq6skliaq5tCiITNvOan+XT8AU2NiGFOVT1gjxYCiTk6aZBjItGdNmq65Y2KO95fGLZIJNfls6hThpTwQnYMrcsjz+2BKJNZncpqVd7se3qhMH' \ --header 'X-Amz-Date: 20230215T051403Z' \ --header 'Authorization: AWS4-HMAC-SHA256 Credential=ASIARJV7TODSXT7CASUU/20230215/eu-west-1/execute-api/aws4_request, SignedHeaders=host;x-amz-access-token;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=f2f8b21db7867a69619f59c0822e95f7d013b032e5b3f7280a25e665e1d38511' \ --header 'Content-Type: application/json' \ --data-raw '{ "packages": [ { "height": { "dimensionUnit": "CM", "value": 20 }, "id": "1", "length": { "dimensionUnit": "CM", "value": 20 }, "packagedLineItems": [ { "lineItem": { "id": "0" }, "quantity": 1, "serialNumbers": [ { "value": "serialNumber", "type": "AWS_KMS" } ] }, { "lineItem": { "id": "1" }, "quantity": 1, "serialNumbers": [ { "value": "serialNumber", "type": "AWS_KMS" } ] } ], "weight": { "value": 20000, "weightUnit": "grams" }, "width": { "dimensionUnit": "CM", "value": 20 }, "hazmatLabels": [] } ] }'

Step 3: If Items[].isVirtualKit == 0 (Non-Virtual Kit items)

Step 3.1: If (response_data.Items[].productAdditionalInfo.specification[] contains "requires serial number (e.g. IMEI) scan" ) means the item needs IMEI serial number in the label and Invoice.

Step 3.2: we will save the Serial Number in a variable according to its orderItemId ( serialNumber= response_data.Items[].productAdditionalInfo.serialNumber )

Note: For a Non-virtual kit, there will be one serial Number for one Item Id, we will save the serial Number Inside a variable.

Step 3.3: Now we will pass the saved Serial Number In the Lebel Generation API in RTS service :

curl --location --request PUT 'https://api.sandbox.dub.yojaka.xp.sellers.a2z.com/v1/orders/cfa80abc-ea06-4a78-8332-a294789b05d3/create-packages' \ --header 'X-Amz-Access-Token: Atza|IwEBICIu9_6E_zLKJAfCukqZZmeaqaFzirXJNn8z-9qqDh7c3obkt0vF3UQY9Hqw_MZeBvAmzrc7mLGCEcJXCZF6-qlKAoxjiCCuTBephBLpmStyeoodT4DpS8crb49h8lPvAFQjoZTTK6cQEje8jnmFKje4ZFz-aA1pVud_SCcaC5owjSxTJyGFjJJgC9CXoEKIjyoWCObULTnsJ4K3cao_wjQhRsqys3R2jK97q4btfTz2FMtJ95QUC2nBH0zjbqzwsmZXMbKRxbI-9GPHdfQj9msqRnXYaVy3BsOsfL2APah1XfnrXydgzJ47G56omOhDgDysLzDy6G20R_2J3s004cZJ3Yn9gcwoxkFvPrwATrCjBEDgE99lOx5UrG3o7SOJ7sUWk73KIJZrY1ho-fIRURlD7-um-jutjJSwbHwzn-0AzkNRzWWf8KHdgVdn-6kQ0mLxgLSmbIVSI41_nCUNB5DraCmiUkHSdXYZs2Z_exjFRg' \ --header 'X-Amz-Content-Sha256: beaead3198f7da1e70d03ab969765e0821b24fc913697e929e726aeaebf0eba3' \ --header 'X-Amz-Security-Token: FwoGZXIvYXdzEMP//////////wEaDDCs94cgi+SlzO28CSKrAXXRJcoVWVGIoneqonKdgwP0Y7F986n/voL/zwlL+FYeL1/TswNA1/g/ZB3WqUeNAN2jH68WJS9u6lAmrP4/MNFeTckgKoZV3eOv0hKI+twC/c4AWkHDyj0EAR959VMkHK+Z7DVbDXEx94IHCbmXxnxqyU+WDu6SRgIqwvn/TKcbnvVqTM3Pp0Nw+zB0OPQq6skliaq5tCiITNvOan+XT8AU2NiGFOVT1gjxYCiTk6aZBjItGdNmq65Y2KO95fGLZIJNfls6hThpTwQnYMrcsjz+2BKJNZncpqVd7se3qhMH' \ --header 'X-Amz-Date: 20230215T051403Z' \ --header 'Authorization: AWS4-HMAC-SHA256 Credential=ASIARJV7TODSXT7CASUU/20230215/eu-west-1/execute-api/aws4_request, SignedHeaders=host;x-amz-access-token;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=f2f8b21db7867a69619f59c0822e95f7d013b032e5b3f7280a25e665e1d38511' \ --header 'Content-Type: application/json' \ --data-raw '{ "packages": [ { "height": { "dimensionUnit": "CM", "value": 20 }, "id": "1", "length": { "dimensionUnit": "CM", "value": 20 }, "packagedLineItems": [ { "lineItem": { "id": "0" }, "quantity": 1, "serialNumbers": [ { "value": "serialNumber", "type": "AWS_KMS" } ] }, { "lineItem": { "id": "1" }, "quantity": 1, "serialNumbers": [ { "value": "serialNumber", "type": "AWS_KMS" } ] } ], "weight": { "value": 20000, "weightUnit": "grams" }, "width": { "dimensionUnit": "CM", "value": 20 }, "hazmatLabels": [] } ] }'

Step 4: For RTS Event Containing Both Virtual kit and Non-Virtual kit Items and Both Types of Items Requiring IMEI Serial Number. Then we will save the serial Numbers according to their orderItemId for both kinds of items.

curl --location --request PUT 'https://api.sandbox.dub.yojaka.xp.sellers.a2z.com/v1/orders/cfa80abc-ea06-4a78-8332-a294789b05d3/create-packages' \ --header 'X-Amz-Access-Token: Atza|IwEBICIu9_6E_zLKJAfCukqZZmeaqaFzirXJNn8z-9qqDh7c3obkt0vF3UQY9Hqw_MZeBvAmzrc7mLGCEcJXCZF6-qlKAoxjiCCuTBephBLpmStyeoodT4DpS8crb49h8lPvAFQjoZTTK6cQEje8jnmFKje4ZFz-aA1pVud_SCcaC5owjSxTJyGFjJJgC9CXoEKIjyoWCObULTnsJ4K3cao_wjQhRsqys3R2jK97q4btfTz2FMtJ95QUC2nBH0zjbqzwsmZXMbKRxbI-9GPHdfQj9msqRnXYaVy3BsOsfL2APah1XfnrXydgzJ47G56omOhDgDysLzDy6G20R_2J3s004cZJ3Yn9gcwoxkFvPrwATrCjBEDgE99lOx5UrG3o7SOJ7sUWk73KIJZrY1ho-fIRURlD7-um-jutjJSwbHwzn-0AzkNRzWWf8KHdgVdn-6kQ0mLxgLSmbIVSI41_nCUNB5DraCmiUkHSdXYZs2Z_exjFRg' \ --header 'X-Amz-Content-Sha256: beaead3198f7da1e70d03ab969765e0821b24fc913697e929e726aeaebf0eba3' \ --header 'X-Amz-Security-Token: FwoGZXIvYXdzEMP//////////wEaDDCs94cgi+SlzO28CSKrAXXRJcoVWVGIoneqonKdgwP0Y7F986n/voL/zwlL+FYeL1/TswNA1/g/ZB3WqUeNAN2jH68WJS9u6lAmrP4/MNFeTckgKoZV3eOv0hKI+twC/c4AWkHDyj0EAR959VMkHK+Z7DVbDXEx94IHCbmXxnxqyU+WDu6SRgIqwvn/TKcbnvVqTM3Pp0Nw+zB0OPQq6skliaq5tCiITNvOan+XT8AU2NiGFOVT1gjxYCiTk6aZBjItGdNmq65Y2KO95fGLZIJNfls6hThpTwQnYMrcsjz+2BKJNZncpqVd7se3qhMH' \ --header 'X-Amz-Date: 20230215T051403Z' \ --header 'Authorization: AWS4-HMAC-SHA256 Credential=ASIARJV7TODSXT7CASUU/20230215/eu-west-1/execute-api/aws4_request, SignedHeaders=host;x-amz-access-token;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=f2f8b21db7867a69619f59c0822e95f7d013b032e5b3f7280a25e665e1d38511' \ --header 'Content-Type: application/json' \ --data-raw '{ "packages": [ { "height": { "dimensionUnit": "CM", "value": 20 }, "id": "1", "length": { "dimensionUnit": "CM", "value": 20 }, "packagedLineItems": [ { "lineItem": { "id": "0" }, "quantity": 1, "serialNumbers": [ { "value": "serialNumber", "type": "AWS_KMS" } ] }, { "lineItem": { "id": "1" }, "quantity": 1, "serialNumbers": [ { "value": "serialNumber", "type": "AWS_KMS" } ] } ], "weight": { "value": 20000, "weightUnit": "grams" }, "width": { "dimensionUnit": "CM", "value": 20 }, "hazmatLabels": [] } ] }'

 

Related content