Affiliate Shipment Id key update in shipment not visible even after 200 status

Hi Team,
Consider the following case:-

  1. A shipment was in placed state.[ 17095275754251056716]
  2. A updateShipmentStatus() is called with the following payload,
{"force_transition":false,"statuses":[{"status":"bag_confirmed","shipments":[{"identifier":"17095275754251056716","products":[]}],"exclude_bags_next_state":"bag_not_confirmed"}]}. 
  1. This results in state change bag_confirmed and state status is 200.
  2. Another updateShipmentStatus() is called with the following payload,
{"force_transition":false,"statuses":[{"status":"bag_invoiced","shipments":[{"identifier":"17095275754251056716","data_updates":{"products":[{"data":{"store_invoice_id":"jalooooo","meta":{"imei":""}}}],"entities":[{"data":{"store_invoice_id":"jalooooo","affiliate_shipment_id":"909099009900"}}]}}],"exclude_bags_next_state":"bag_not_confirmed"}]}.
  1. This results in state change bag_invoiced and state status is 200.
  2. But the bag_invoiced webhook payload doesn’t have the above set affiliate_shipment_id. NO KEYS ARE UPDATED in the webhook.

Shipment Webhook payload attached.

{
  "contains": [
    "shipment"
  ],
  "company_id": 4,
  "payload": {
    "shipment": {
      "restore_promos": {},
      "article_details": {
        "status": {
          "bag_invoiced": {
            "65015b1880bf73566501c4d0": {
              "uid": "65015b1880bf73566501c4d0",
              "bag_ids": [
                {
                  "bag_id": 95256,
                  "quantity": 1
                }
              ],
              "is_set": false,
              "quantity": 1,
              "reasons": {},
              "_id": "65015b1880bf73566501c4d0"
            }
          }
        }
      },
      "delivery_address": {
        "country": "India",
        "city": "MUMBAI",
        "latitude": 19.0653252,
        "address_category": "",
        "created_at": "2024-03-04T10:16:15+00:00",
        "uid": 25998,
        "updated_at": "2024-03-04T10:16:15+00:00",
        "country_phone_code": "+91",
        "id": "65e55208d31ab200aed47803",
        "state": "MAHARASHTRA",
        "landmark": "Town",
        "sector": "",
        "email": "commcheck4321@gmail.com",
        "longitude": 72.8423802,
        "area": "StreetNo.1",
        "pincode": "400001",
        "address": "Reliability Test Flat No. 001",
        "geo_location": {
          "latitude": 19.0653252,
          "longitude": 72.8423802
        },
        "address_type": "home",
        "address2": "",
        "contact_person": "Test Two",
        "address1": "Reliability Test Flat No. 001 StreetNo.1\nTown\nMUMBAI MAHARASHTRA 400001\nIndia",
        "area_code": "400001",
        "display_address": "Reliability Test Flat No. 001 StreetNo.1\nTown\nMUMBAI MAHARASHTRA 400001\nIndia",
        "delivery_address_id": 25998,
        "version": "1.0",
        "country_code": "91",
        "country_iso_code": "IN",
        "phone": "8093151099",
        "user_id": 2898,
        "name": "Test Two",
        "area_code_slug": "pincode",
        "state_code": ""
      },
      "dp_details": {
        "extension_id": null,
        "courier_partner_slug": null,
        "awb_no": null,
        "scheme_id": null,
        "name": null,
        "id": null,
        "eway_bill_id": null,
        "gst_tag": "sgst",
        "track_url": null
      },
      "delivery_partner_details": {
        "extension_id": null,
        "courier_partner_slug": null,
        "awb_no": null,
        "scheme_id": null,
        "name": null,
        "id": null,
        "eway_bill_id": null,
        "gst_tag": "sgst",
        "track_url": null
      },
      "billing_address": {
        "country": "India",
        "city": "MUMBAI",
        "latitude": 19.0653252,
        "address_category": "",
        "created_at": "2024-03-04 10:16:15",
        "uid": 25998,
        "updated_at": "2024-03-04 10:16:15",
        "country_phone_code": "+91",
        "id": "65e55208d31ab200aed47803",
        "state": "MAHARASHTRA",
        "landmark": "Town",
        "sector": "",
        "email": "commcheck4321@gmail.com",
        "longitude": 72.8423802,
        "area": "StreetNo.1",
        "pincode": "400001",
        "address": "Reliability Test Flat No. 001",
        "geo_location": {
          "latitude": 19.0653252,
          "longitude": 72.8423802
        },
        "address_type": "home",
        "address2": "",
        "contact_person": "Test Two",
        "address1": "Reliability Test Flat No. 001 StreetNo.1\nTown\nMUMBAI MAHARASHTRA 400001\nIndia",
        "area_code": "400001",
        "display_address": "Reliability Test Flat No. 001 StreetNo.1\nTown\nMUMBAI MAHARASHTRA 400001\nIndia",
        "delivery_address_id": 25998,
        "version": "1.0",
        "country_code": "91",
        "country_iso_code": "IN",
        "phone": "8093151099",
        "user_id": "65e551fd969a85b621d712c4",
        "name": "Test Two",
        "area_code_slug": "pincode",
        "state_code": ""
      },
      "affiliate_details": {
        "affiliate_store_id": "4",
        "affiliate_id": "64b002e1386bae58f856f06d",
        "shipment_meta": {
          "E-invoice_applicable_response": {
            "is_applicable": false,
            "message": "Shipment is not applicable for E-invoice generation as buyer GSTIN not present"
          },
          "delivery_slots": {},
          "vertical": "GROCERIES",
          "eligible_for_split": false,
          "fulfillment_tags": [],
          "debug_info": {
            "stormbreaker_uuid": ""
          },
          "is_export_shipment": false,
          "fulfill_virtual_invoice": true,
          "dp_id": null,
          "dp_options": {},
          "order_type": null,
          "sla": null,
          "weight": 50,
          "bag_weight": {
            "95256": 50
          },
          "fulfilment_priority_text": null,
          "courier_partners": [],
          "same_store_available": true,
          "external": {},
          "lock_data": {
            "lock_message": "",
            "mto": false,
            "locked": false
          },
          "is_self_ship": false,
          "store_invoice_updated_ts": "2024-04-01T10:26:06Z",
          "auto_trigger_dp_assignment_ACF": true,
          "is_international": false,
          "store_invoice_updated_date": "2024-04-01T15:56:06+00:00",
          "dp_sort_key": null,
          "shipment_type": "3P"
        },
        "company_affiliate_tag": "JioMart - Dev Env",
        "id": "64b002e1386bae58f856f06d",
        "affiliate_meta": {
          "is_priority": false,
          "box_type": null,
          "coupon_code": null,
          "size_level_total_qty": 1,
          "loyalty_discount": 0,
          "due_date": null,
          "fynd": {
            "fulfilment_identifier": "pulse",
            "fulfilment_identifiers_list": [
              "pulse"
            ]
          },
          "employee_discount": 0,
          "channel_order_id": null,
          "channel_shipment_id": null
        },
        "affiliate_order_id": "FY65E552160EBF669300",
        "affiliate_shipment_id": "17095275754251056716",
        "pdf_links": {
          "label_type": "fynd",
          "invoice_type": "fynd"
        },
        "config": {
          "owner": "c3d6c0dddf87cf00f870d853",
          "force_reassignment": false,
          "description": "India's online shopping destination for Mobiles, Electronics, Grocery, Fashion, Home & Kitchen, Furniture, Jewellery, Beauty, and more. Great Offers. Low Prices. Easy Returns. Pay on Delivery.",
          "secret": "_Sukryv0AC",
          "token": "sfq7J47X5",
          "dp_assignment": true,
          "createdAt": null,
          "meta": [],
          "app_company_id": 4,
          "name": "JioMart - Dev Env",
          "article_assignment": {
            "level": "multi-companies",
            "strategy": "optimal"
          },
          "order_source_domain": "jiomartplaypitcompany.jiox1.de",
          "id": "64b002e1386bae58f856f06d",
          "post_order_reassignment": true,
          "sales_channel_logo": "/jmrtz0/company/4/applications/64b002e1386bae58f856f06d/application/pictures/free-logo/original/LXMzeY_eh-JioMart-PlayPit-Company.png",
          "updatedAt": null
        },
        "affiliate_bag_id": "95256"
      },
      "payment_methods": {
        "COD": {
          "mode": "COD",
          "refund_by": "fynd",
          "amount": 28.5,
          "unique_identifier": "COD",
          "meta": {
            "merchant_code": "",
            "payment_identifier": "COD",
            "logo_url": {
              "small": "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jiox1/payments/original/C8phCcMjC-netbanking.png",
              "large": "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jiox1/payments/original/C8phCcMjC-netbanking.png"
            },
            "payment_gateway": "Fynd",
            "payment_id": "FY65E552160EBF669300",
            "id": null
          },
          "name": "COD",
          "collect_by": "fynd",
          "display_name": "COD"
        }
      },
      "transaction_meta": {
        "transaction_id": "TR65E552160E0624D1F8",
        "amount": 28.5,
        "payment_id": "TR65E552160E0624D1F8",
        "aggregator": "Fynd",
        "currency": "INR",
        "id": "TR65E552160E0624D1F8",
        "terminal_id": "None",
        "status": "complete",
        "unique_reference_number": "TR65E552160E0624D1F8"
      },
      "app_company_id": 4,
      "journey_type": "forward",
      "shipment_status": {
        "updated_ts": "2024-04-01T10:26:06Z",
        "state_type_mapping": {
          "operational": "bag_invoiced"
        },
        "current_shipment_status": "bag_invoiced",
        "created_ts": "2024-04-01T10:26:06Z",
        "bag_list": [
          "95256"
        ],
        "meta": {
          "estimated_sla_time": "2024-04-02T12:56:06.483427",
          "estimated_sla_ts": "2024-04-02T07:26:06Z",
          "request_meta": {},
          "state_manager_used": "entity"
        },
        "created_at": "2024-04-01T15:56:07+00:00",
        "id": 112486,
        "shipment_id": "17095275754251056716",
        "status_created_at": "2024-04-01T15:56:07+00:00",
        "status": "bag_invoiced"
      },
      "order": {
        "refund_by": "fynd",
        "affiliate_order_date": "2024-03-04T10:16:15+00:00",
        "fynd_order_id": "FY65E552160EBF669300",
        "meta": {
          "extra_meta": {},
          "ordering_store": 0,
          "platform_user_details": {
            "platform_user_last_name": "",
            "platform_user_employee_code": null,
            "platform_user_first_name": "",
            "platform_user_id": null
          },
          "mode": "live",
          "cart_id": 72055,
          "company_logo": "/jmrtz0/company/4/applications/64b002e1386bae58f856f06d/application/pictures/free-logo/original/LXMzeY_eh-JioMart-PlayPit-Company.png",
          "seller_details": {
            "country_code": "IN",
            "timezone": "Asia/Kolkata",
            "currency": {
              "symbol": "Rs.",
              "code": "INR",
              "name": "Indian Rupee"
            }
          },
          "currency": {
            "currency_name": "Indian Rupee",
            "currency_symbol": "₹",
            "currency_sub_unit": "Paisa",
            "currency_code": "INR"
          },
          "custom_meta": [],
          "order_child_entities": [
            "bag",
            "shipment"
          ],
          "order_type": "HomeDelivery",
          "conversion_rate": {
            "rates": {
              "INR": {
                "symbol": "₹",
                "name": "Indian Rupee",
                "value": 1,
                "sub_unit": "Paisa"
              }
            },
            "base": "INR",
            "timestamp": 1709510400000
          },
          "sales_channel_logo": "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jmrtz0/company/4/applications/64b002e1386bae58f856f06d/application/pictures/free-logo/original/LXMzeY_eh-JioMart-PlayPit-Company.png",
          "cart_object_id": "65e552021af8e284408931cd",
          "billing_staff_details": {
            "last_name": null,
            "id": null,
            "user": null,
            "first_name": null,
            "employee_code": null
          },
          "device_id": null,
          "transaction_data": {
            "transaction_id": "TR65E552160E0624D1F8",
            "amount": 28.5,
            "payment_id": "TR65E552160E0624D1F8",
            "aggregator": "Fynd",
            "currency": "INR",
            "id": "TR65E552160E0624D1F8",
            "terminal_id": "None",
            "status": "complete",
            "unique_reference_number": "TR65E552160E0624D1F8"
          },
          "currency_symbol": "₹",
          "mongo_cart_id": 72055,
          "staff": {},
          "custom_cart": {
            "cart_name": "Universal",
            "id": "64b147b36c554ba4caafb4ec",
            "cart_type": "universal"
          },
          "payment_type": "fynd",
          "employee_id": null,
          "files": [],
          "comment": "",
          "usable_credit_notes": [],
          "order_platform": "platform-site",
          "price_adjustment_applied": [],
          "order_tags": []
        },
        "collect_by": "fynd",
        "total_order_value": 28.5,
        "mode_of_payment": "ECOMM",
        "source": "uniket-desktop",
        "ordering_channel": "ECOMM",
        "affiliate_order_id": "FY65E552160EBF669300",
        "order_value": 28.5
      },
      "lock_status": false,
      "packaging_type": "default",
      "weight": {
        "unit": "gram",
        "value": 50
      },
      "shipment_id": "17095275754251056716",
      "parent_type": "",
      "application_id": "64b002e1386bae58f856f06d",
      "original_bag_list": [
        95256
      ],
      "payment_type": "fynd",
      "meta": {
        "E-invoice_applicable_response": {
          "is_applicable": false,
          "message": "Shipment is not applicable for E-invoice generation as buyer GSTIN not present"
        },
        "delivery_slots": {},
        "vertical": "GROCERIES",
        "eligible_for_split": false,
        "fulfillment_tags": [],
        "debug_info": {
          "stormbreaker_uuid": ""
        },
        "is_export_shipment": false,
        "fulfill_virtual_invoice": true,
        "dp_id": null,
        "dp_options": {},
        "order_type": null,
        "sla": null,
        "weight": 50,
        "bag_weight": {
          "95256": 50
        },
        "fulfilment_priority_text": null,
        "courier_partners": [],
        "same_store_available": true,
        "external": {},
        "lock_data": {
          "lock_message": "",
          "mto": false,
          "locked": false
        },
        "is_self_ship": false,
        "store_invoice_updated_ts": "2024-04-01T10:26:06Z",
        "auto_trigger_dp_assignment_ACF": true,
        "is_international": false,
        "store_invoice_updated_date": "2024-04-01T15:56:06+00:00",
        "dp_sort_key": null,
        "shipment_type": "3P"
      },
      "shipment_meta": {
        "E-invoice_applicable_response": {
          "is_applicable": false,
          "message": "Shipment is not applicable for E-invoice generation as buyer GSTIN not present"
        },
        "delivery_slots": {},
        "vertical": "GROCERIES",
        "eligible_for_split": false,
        "fulfillment_tags": [],
        "debug_info": {
          "stormbreaker_uuid": ""
        },
        "is_export_shipment": false,
        "fulfill_virtual_invoice": true,
        "dp_id": null,
        "dp_options": {},
        "order_type": null,
        "sla": null,
        "weight": 50,
        "bag_weight": {
          "95256": 50
        },
        "fulfilment_priority_text": null,
        "courier_partners": [],
        "same_store_available": true,
        "external": {},
        "lock_data": {
          "lock_message": "",
          "mto": false,
          "locked": false
        },
        "is_self_ship": false,
        "store_invoice_updated_ts": "2024-04-01T10:26:06Z",
        "auto_trigger_dp_assignment_ACF": true,
        "is_international": false,
        "store_invoice_updated_date": "2024-04-01T15:56:06+00:00",
        "dp_sort_key": null,
        "shipment_type": "3P"
      },
      "order_id": "FY65E552160EBF669300",
      "fyndstore_emp": {},
      "status": "bag_invoiced",
      "bag_status_history": [
        {
          "store_id": 4,
          "updated_ts": "2024-03-04T04:46:15Z",
          "reasons": [],
          "state_type": "operational",
          "created_at": "2024-03-04T10:16:16+00:00",
          "bag_state_mapper": {
            "app_facing": true,
            "is_active": true,
            "state_type": "operational",
            "name": "pending",
            "app_state_name": "pending",
            "app_display_name": "Pending",
            "id": 89,
            "display_name": "Pending",
            "journey_type": "forward",
            "notify_customer": true
          },
          "delivery_awb_number": null,
          "shipment_id": "17095275754251056716",
          "bag_id": 95256,
          "delivery_partner_id": null,
          "action_user": {},
          "updated_at": "2024-03-04T10:16:16+00:00",
          "created_ts": "2024-03-04T04:46:15Z",
          "state_id": 89,
          "id": 108219,
          "kafka_sync": false,
          "status": "pending"
        },
        {
          "store_id": 4,
          "updated_ts": "2024-03-04T04:46:16Z",
          "reasons": [],
          "state_type": "operational",
          "created_at": "2024-03-04T10:16:16+00:00",
          "bag_state_mapper": {
            "app_facing": true,
            "is_active": true,
            "state_type": "operational",
            "name": "placed",
            "app_state_name": "processing",
            "app_display_name": "Processing",
            "id": 1,
            "display_name": "Placed",
            "journey_type": "forward",
            "notify_customer": true
          },
          "delivery_awb_number": null,
          "shipment_id": "17095275754251056716",
          "bag_id": 95256,
          "delivery_partner_id": null,
          "action_user": {},
          "updated_at": "2024-03-04T10:16:16+00:00",
          "created_ts": "2024-03-04T04:46:16Z",
          "state_id": 1,
          "id": 108220,
          "kafka_sync": false,
          "status": "placed"
        },
        {
          "store_id": 4,
          "updated_ts": "2024-04-01T10:26:06Z",
          "reasons": [],
          "state_type": "operational",
          "created_at": "2024-04-01T15:56:06+00:00",
          "bag_state_mapper": {
            "app_facing": true,
            "is_active": true,
            "state_type": "operational",
            "name": "bag_confirmed",
            "app_state_name": "confirmed",
            "app_display_name": "Confirmed",
            "id": 2,
            "display_name": "Confirmed",
            "journey_type": "forward",
            "notify_customer": false
          },
          "delivery_awb_number": null,
          "shipment_id": "17095275754251056716",
          "bag_id": 95256,
          "delivery_partner_id": null,
          "action_user": {
            "order_role": "full_access",
            "user_id": "1740",
            "user_name": "65a0c5541ac69ebc15d522e6",
            "title": "Staff",
            "employee_code": ""
          },
          "updated_at": "2024-04-01T15:56:06+00:00",
          "created_ts": "2024-04-01T10:26:06Z",
          "state_id": 2,
          "id": 153117,
          "kafka_sync": false,
          "status": "bag_confirmed"
        },
        {
          "store_id": 4,
          "updated_ts": "2024-04-01T10:26:06Z",
          "reasons": [],
          "state_type": "operational",
          "created_at": "2024-04-01T15:56:07+00:00",
          "bag_state_mapper": {
            "app_facing": false,
            "is_active": true,
            "state_type": "operational",
            "name": "bag_invoiced",
            "app_state_name": "bag_invoiced",
            "app_display_name": "Bag Invoiced",
            "id": 91,
            "display_name": "Bag Invoiced",
            "journey_type": "forward",
            "notify_customer": false
          },
          "delivery_awb_number": null,
          "shipment_id": "17095275754251056716",
          "bag_id": 95256,
          "delivery_partner_id": null,
          "action_user": {},
          "updated_at": "2024-04-01T15:56:07+00:00",
          "created_ts": "2024-04-01T10:26:06Z",
          "state_id": 91,
          "id": 153118,
          "kafka_sync": false,
          "status": "bag_invoiced"
        }
      ],
      "cart_info": {
        "cart_id": "65e552021af8e284408931cd",
        "cart_uid": 72055
      },
      "shipment_quantity": 1,
      "ordering_store": {},
      "bags": [
        {
          "affiliate_bag_details": {
            "loyalty_discount": 0,
            "employee_discount": 0,
            "affiliate_meta": {
              "is_priority": false,
              "box_type": null,
              "coupon_code": null,
              "size_level_total_qty": 1,
              "loyalty_discount": 0,
              "due_date": null,
              "fynd": {
                "fulfilment_identifier": "pulse",
                "fulfilment_identifiers_list": [
                  "pulse"
                ]
              },
              "employee_discount": 0,
              "channel_order_id": null,
              "channel_shipment_id": null
            },
            "affiliate_order_id": "FY65E552160EBF669300",
            "affiliate_bag_id": "95256"
          },
          "item": {
            "image": [
              "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jmrtz0/products/pictures/item/free/270x0/r0DjIyHyw-syga-blue-grooming-kit-with-scissors-product-images-orvnctxaaco-p590490276-0-202108171150.jpg",
              "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jmrtz0/products/pictures/item/free/270x0/_inT13LFu-syga-blue-grooming-kit-with-scissors-product-images-orvnctxaaco-p590490276-1-202108171150.jpg",
              "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jmrtz0/products/pictures/item/free/270x0/eYZDnL3QD-syga-blue-grooming-kit-with-scissors-product-images-orvnctxaaco-p590490276-2-202108171150.jpg",
              "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jmrtz0/products/pictures/item/free/270x0/GXFG9Jt7L-syga-blue-grooming-kit-with-scissors-product-images-orvnctxaaco-p590490276-4-202108171150.jpg"
            ],
            "code": "RVNCTXAACO",
            "color": null,
            "gender": null,
            "department_id": 2,
            "l3_category_name": "Grooming Kits",
            "can_cancel": true,
            "l1_category": [
              "Mom & Baby Care"
            ],
            "can_return": true,
            "slug_key": "syga-blue-grooming-kit-with-scissors-set-of-4-7502530",
            "l2_category": [
              "Baby Grooming"
            ],
            "brand_id": 55,
            "l3_category": 2192,
            "size": "OS",
            "meta": {
              "departments": [
                2
              ],
              "tags": []
            },
            "last_updated_at": "2024-03-29T13:13:30+00:00",
            "name": "SYGA Blue Grooming Kit with Scissors (Set of 4)",
            "l1_category_id": 78,
            "webstore_product_url": null,
            "attributes": {
              "product-type": "nonfood",
              "food-type": "non-veg",
              "available-at-3p-seller": "False",
              "brand_name": "Reliance Retail",
              "availability-status": "A",
              "media": [],
              "searchable": "True",
              "visible-in-catalog": "True",
              "vertical-code": "GROCERIES",
              "is-returnable": "True",
              "sold-qty-for-rank": 1,
              "name": "SYGA Blue Grooming Kit with Scissors (Set of 4)",
              "seller-ids": [
                "1"
              ],
              "currency": "INR",
              "tag": "Trending",
              "status": "active"
            },
            "id": 7502530,
            "brand": "Reliance Retail",
            "l2_category_id": 390,
            "branch_url": null
          },
          "quantity": 1,
          "order_created": "2024-03-04T10:16:15+00:00",
          "gst_details": {
            "gstin_code": "27AALCA0442L1ZM",
            "cgst_gst_fee": "2.17",
            "gst_fee": 4.35,
            "cgst_tax_percentage": 9,
            "brand_calculated_amount": 28.5,
            "value_of_good": 24.15,
            "tax_collected_at_source": 0,
            "sgst_gst_fee": "2.17",
            "hsn_code": "85103000",
            "gst_tag": "SGST",
            "hsn_code_id": "65c9bad0a673e56c523dd0ab",
            "igst_tax_percentage": 0,
            "igst_gst_fee": "0",
            "gst_tax_percentage": 18,
            "is_default_hsn_code": false,
            "sgst_tax_percentage": 9
          },
          "current_operational_status": {
            "store_id": 4,
            "updated_ts": "2024-04-01T10:26:06Z",
            "reasons": [],
            "state_type": "operational",
            "created_at": "2024-04-01T15:56:07+00:00",
            "bag_state_mapper": {
              "app_facing": false,
              "is_active": true,
              "state_type": "operational",
              "name": "bag_invoiced",
              "app_state_name": "bag_invoiced",
              "app_display_name": "Bag Invoiced",
              "id": 91,
              "display_name": "Bag Invoiced",
              "journey_type": "forward",
              "notify_customer": false
            },
            "delivery_awb_number": null,
            "shipment_id": "17095275754251056716",
            "bag_id": 95256,
            "delivery_partner_id": null,
            "action_user": {},
            "updated_at": "2024-04-01T15:56:07+00:00",
            "created_ts": "2024-04-01T10:26:06Z",
            "state_id": 91,
            "id": 153118,
            "kafka_sync": false,
            "status": "bag_invoiced"
          },
          "applied_promos": [
            {
              "promotion_type": "custom",
              "amount": 1.5,
              "original_article_quantity": 1,
              "promotion_group": "limited_timer",
              "return_allowed": false,
              "promo_id": "6507072cbed484b018581e61",
              "cancellation_allowed": false,
              "free_quantity": 1,
              "discount_rules": [
                {
                  "type": "percentage",
                  "value": 5
                }
              ],
              "promotion_name": "Flat 2% Cashback Up To Rs100 On Your Next UPI Transaction. Valid Only Once On A Purchase Of Rs700 and above.",
              "ownership": {
                "payable_by": "",
                "payable_category": "seller"
              },
              "offer_description": "<p>Test</p>",
              "meta": {},
              "offer_label": "PDP Test Offer by Beer Team",
              "article_quantity": 1,
              "buy_rules": [
                {
                  "item_criteria": {
                    "item_department": [
                      2
                    ],
                    "item_id": [
                      7502530
                    ]
                  },
                  "cart_conditions": {}
                }
              ],
              "currency": {
                "symbol": "₹",
                "code": "INR"
              },
              "mrp_promotion": false
            }
          ],
          "article": {
            "code": "",
            "set": {},
            "is_set": false,
            "identifiers": {
              "sku_code": "RVNCTXAACO"
            },
            "weight": {
              "unit": "gram",
              "shipping": 50,
              "is_default": true
            },
            "expiration_date": "9998-01-30 23:59:00",
            "esp_modified": false,
            "tags": [
              "3P"
            ],
            "uid": "65015b1880bf73566501c4d0",
            "size": "OS",
            "seller_identifier": "RVNCTXAACO",
            "return_config": {
              "unit": "days",
              "returnable": true,
              "time": 3
            },
            "currency": {
              "code": "INR",
              "rate": 1
            },
            "_id": "65015b1880bf73566501c4d0",
            "raw_meta": null,
            "child_details": {},
            "dimensions": {
              "unit": "cm",
              "width": 10,
              "length": 15,
              "is_default": true,
              "height": 10
            }
          },
          "financial_breakup": [
            {
              "gst_fee": 4.35,
              "identifiers": {
                "sku_code": "RVNCTXAACO"
              },
              "brand_calculated_amount": 28.5,
              "discount": 10,
              "tax_collected_at_source": 0,
              "value_of_good": 24.15,
              "item_name": "SYGA Blue Grooming Kit with Scissors (Set of 4)",
              "hsn_code": "85103000",
              "gst_tag": "SGST",
              "tcs_percentage": 0,
              "size": "OS",
              "gst_tax_percentage": 18,
              "price_marked": 40,
              "total_units": 1
            }
          ],
          "bag_id": 95256,
          "payment_methods": {
            "COD": {
              "mode": "COD",
              "amount": 28.5
            }
          },
          "delivery_date": null,
          "entity_type": "bag",
          "line_number": 1,
          "meta": {
            "_custom_json": {
              "_display": []
            },
            "gift_card": {
              "is_gift_applied": false,
              "display_text": "",
              "gift_price": 0
            },
            "group_id": "",
            "delivery_charges_hsn_code": "996819",
            "country_of_origin": "India",
            "parent_docket_number": "170952757542510567161",
            "multi_quantity_bag_enabled": true,
            "partial_can_ret": false,
            "docket_number": "170952757542510567161"
          },
          "prices": {
            "amount_paid": 28.5,
            "added_to_fynd_cash": false,
            "cashback_applied": 0,
            "tcs_charge": 0,
            "applied_emi_discount": 0,
            "discount": 10,
            "value_of_good": 24.15,
            "tax_collected_at_source": 0,
            "coupon_effective_discount": 0,
            "price_effective": 30,
            "promotion_effective_discount": 1.5,
            "cod_charges": 0,
            "refund_amount": 28.5,
            "gst_tax_percentage": 18,
            "price_marked": 40,
            "gift_price": 0,
            "fynd_promotion_effective_discount": 0,
            "seller_promotion_effective_discount": 1.5,
            "amount_paid_roundoff": 28,
            "brand_calculated_amount": 28.5,
            "fynd_credits": 0,
            "coupon_value": 0,
            "cashback": 0,
            "refund_credit": 0,
            "tcs_percentage": 0,
            "transfer_price": 0,
            "delivery_charge": 0,
            "applied_instant_discount": 0,
            "amount_to_be_collected": 0
          },
          "brand": {
            "modified_on": "2023-08-08T18:02:11+00:00",
            "is_virtual_invoice": false,
            "created_on": "2023-08-03T20:01:32+00:00",
            "logo": "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jmrtz0/brands/pictures/square-logo/original/2_9fafl6b-Logo.png",
            "brand_name": "Reliance Retail",
            "id": 55,
            "credit_note_allowed": false
          },
          "status": {
            "can_be_cancelled": false,
            "enable_tracking": false,
            "is_returnable": false,
            "is_customer_return_allowed": false
          }
        }
      ],
      "payments": {
        "mode": "COD",
        "is_active": true,
        "logo": "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jiox1/payments/original/C8phCcMjC-netbanking.png",
        "display_priority": 1,
        "id": 1,
        "source": "",
        "display_name": "COD"
      },
      "merchant_id": "",
      "rto_address": {
        "country": "India",
        "pincode": "400093",
        "code": "HS-584c2",
        "store_address_json": {
          "country": "India",
          "city": "MUMBAI",
          "latitude": 19.0653252,
          "address_category": "store",
          "created_at": "2024-04-01 15:56:06",
          "updated_at": "2024-04-01 15:56:06",
          "country_phone_code": null,
          "state": "MAHARASHTRA",
          "landmark": "landmark",
          "sector": "",
          "email": "deepakbasumatary@gofynd.com",
          "longitude": 72.8423802,
          "area": "",
          "pincode": "400093",
          "address": "",
          "address_type": "store",
          "contact_person": "Deepak B",
          "address2": "test",
          "address1": "",
          "area_code": "",
          "display_address": "",
          "version": "1.0",
          "country_code": "IN",
          "country_iso_code": "IN",
          "phone": "919923473303",
          "name": "Deepak B",
          "area_code_slug": ""
        },
        "company_id": 4,
        "address2": "test",
        "city": "MUMBAI",
        "contact_person": "Deepak B",
        "address1": "",
        "display_address": "",
        "location_type": "high_street",
        "phone": "919923473303",
        "store_email": "deepakbasumatary@gofynd.com",
        "name": "JioMart PlayPit Company",
        "id": 4,
        "state": "MAHARASHTRA",
        "sector": ""
      },
      "store_invoice_id": "E00000004A000012",
      "company": {
        "modified_on": "2023-09-27T11:05:40+00:00",
        "business_country_currency": null,
        "company_type": "manufacturer-owner",
        "created_on": "2023-07-13T13:57:51+00:00",
        "meta": {
          "business_details": {},
          "address": [
            {
              "pincode": 400093,
              "country": "INDIA",
              "address_type": "registered",
              "address2": "",
              "city": "MUMBAI",
              "address1": "",
              "display_address": "",
              "latitude": 19.0759837,
              "country_code": "IN",
              "country_iso_code": "IN",
              "state": "MAHARASHTRA",
              "landmark": "",
              "longitude": 72.8776559
            },
            {
              "pincode": 400093,
              "country": "INDIA",
              "address_type": "registered",
              "address2": "",
              "city": "MUMBAI",
              "address1": "",
              "display_address": "",
              "latitude": 19.0759837,
              "country_code": "IN",
              "country_iso_code": "IN",
              "state": "MAHARASHTRA",
              "landmark": "",
              "longitude": 72.8776559
            }
          ],
          "stage": null,
          "business_info": "Play Pit Company",
          "documents": {
            "digital_signature": {
              "verified": true,
              "legal_name": "SHOPSENSE RETAIL TECHNOLOGIES LIMITED",
              "type": "digital_signature",
              "value": "SHOPSENSE RETAIL TECHNOLOGIES LIMITED",
              "url": "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jiox1/company/4/self/legal/documents/free/original/cBRp-6JbK-Mini-Robot.png"
            },
            "gst": {
              "verified": true,
              "legal_name": "SHOPSENSE RETAIL TECHNOLOGIES PRIVATE LIMITED",
              "type": "gst",
              "value": "27AALCA0442L1ZM",
              "url": "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jiox1/company/4/self/legal/documents/free/original/_RAvhsV52-logo_scrapingbot-bot-blue_bg-FitCircle.png"
            },
            "cin": {
              "verified": true,
              "legal_name": "JioMart PlayPit Company",
              "type": "cin",
              "value": "U52100MH2012PLC236314",
              "url": "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jiox1/company/4/self/legal/documents/free/original/5UiR6sCMh-Mini-Robot.png"
            },
            "pan": {
              "verified": true,
              "legal_name": "SHOPSENSE RETAIL TECHNOLOGIES PRIVATE LIMITED",
              "type": "pan",
              "value": "AALCA0442L",
              "url": "https://cdn.pixelbin.io/v2/jiomart-fynd/jio-np/wrkr/jiox1/company/4/self/legal/documents/free/original/nB4vn-JZz-logo_scrapingbot-bot-blue_bg-FitCircle.png"
            }
          },
          "contact_details": {
            "emails": [
              "deepakbasumatary@gofynd.com"
            ],
            "phone": [
              {
                "number": "9923473303",
                "country_code": 91
              }
            ]
          },
          "notification_emails": [
            "deepakbasumatary@gofynd.com"
          ]
        },
        "company_name": "JioMart PlayPit Company",
        "business_type": "Private",
        "business_country_timezone": "Asia/Kolkata",
        "pan_no": "AALCA0442L",
        "id": 4,
        "gst_number": "27AALCA0442L1ZM"
      },
      "prices": {
        "amount_paid": 28.5,
        "cashback_applied": 0,
        "tcs_charge": 0,
        "fynd_promotion_effective_discount": 0,
        "applied_emi_discount": 0,
        "seller_promotion_effective_discount": 1.5,
        "amount_paid_roundoff": 28,
        "discount": 10,
        "value_of_good": 24.15,
        "tax_collected_at_source": 0,
        "fynd_credits": 0,
        "coupon_value": 0,
        "cashback": 0,
        "cn_refund_amount": 0,
        "refund_credit": 0,
        "delivery_charge": 0,
        "price_effective": 30,
        "promotion_effective_discount": 1.5,
        "refund_amount": 28.5,
        "cod_charges": 0,
        "applied_instant_discount": 0,
        "price_marked": 40,
        "amount_to_be_collected": 0,
        "gift_price": 0
      },
      "shipment_gst": {
        "gstin_code": "27AALCA0442L1ZM",
        "gst_fee": 4.35,
        "brand_calculated_amount": 28.5,
        "value_of_good": 24.15,
        "tax_collected_at_source": 0
      },
      "fulfilling_store": {
        "pincode": "400093",
        "country": "India",
        "code": "HS-584c2",
        "address": "test, MUMBAI - 400093",
        "is_active": false,
        "store_address_json": {
          "country": "India",
          "city": "MUMBAI",
          "latitude": 19.0653252,
          "address_category": "store",
          "created_at": "2024-04-01 15:56:06",
          "updated_at": "2024-04-01 15:56:06",
          "country_phone_code": null,
          "state": "MAHARASHTRA",
          "landmark": "landmark",
          "sector": "",
          "email": "deepakbasumatary@gofynd.com",
          "longitude": 72.8423802,
          "area": "",
          "pincode": "400093",
          "address": "",
          "address_type": "store",
          "contact_person": "Deepak B",
          "address2": "test",
          "address1": "",
          "area_code": "",
          "display_address": "",
          "version": "1.0",
          "country_code": "IN",
          "country_iso_code": "IN",
          "phone": "919923473303",
          "name": "Deepak B",
          "area_code_slug": ""
        },
        "company_id": 4,
        "city": "MUMBAI",
        "contact_person": "Deepak B",
        "created_at": "2023-07-13T13:57:52+00:00",
        "packaging_material_count": 0,
        "location_type": "high_street",
        "tags": [
          "infibeam",
          "sale_point_3p",
          "vertical_books",
          "vertical_sportstoysluggage",
          "vertical_homeimprovement",
          "vertical_homeandkitchen",
          "vertical_furniture",
          "vertical_groceries",
          "vertical_fashion",
          "vertical_electronics",
          "vertical_craftsofindia"
        ],
        "is_archived": false,
        "updated_at": "2024-03-26T13:41:20+00:00",
        "phone": "919923473303",
        "fulfillment_channel": "pulse",
        "meta": {
          "ewaybill_portal_details": null,
          "credit_note": true,
          "auto_invoice": true,
          "stage": null,
          "documents": {
            "gst": {
              "verified": true,
              "legal_name": "SHOPSENSE RETAIL TECHNOLOGIES PRIVATE LIMITED",
              "type": "gst",
              "value": "27AALCA0442L1ZM",
              "url": null
            }
          },
          "timing": [
            {
              "closing": {
                "hour": 22,
                "minute": 0
              },
              "weekday": "monday",
              "opening": {
                "hour": 11,
                "minute": 0
              },
              "open": true
            },
            {
              "closing": {
                "hour": 22,
                "minute": 0
              },
              "weekday": "tuesday",
              "opening": {
                "hour": 11,
                "minute": 0
              },
              "open": true
            },
            {
              "closing": {
                "hour": 22,
                "minute": 0
              },
              "weekday": "wednesday",
              "opening": {
                "hour": 11,
                "minute": 0
              },
              "open": true
            },
            {
              "closing": {
                "hour": 22,
                "minute": 0
              },
              "weekday": "thursday",
              "opening": {
                "hour": 11,
                "minute": 0
              },
              "open": true
            },
            {
              "closing": {
                "hour": 22,
                "minute": 0
              },
              "weekday": "friday",
              "opening": {
                "hour": 11,
                "minute": 0
              },
              "open": true
            },
            {
              "closing": {
                "hour": 22,
                "minute": 0
              },
              "weekday": "saturday",
              "opening": {
                "hour": 11,
                "minute": 0
              },
              "open": true
            },
            {
              "closing": {
                "hour": 22,
                "minute": 0
              },
              "weekday": "sunday",
              "opening": {
                "hour": 11,
                "minute": 0
              },
              "open": true
            }
          ],
          "additional_contact_details": {
            "number": [
              "91 - 9923473303"
            ]
          },
          "product_return_config": {
            "on_same_store": true
          },
          "gst_credentials": {
            "e_invoice": {
              "enabled": false
            },
            "e_waybill": {
              "enabled": false
            }
          },
          "gst_number": "27AALCA0442L1ZM",
          "display_name": "JioMart PlayPit Company",
          "notification_emails": [
            "deepakbasumatary@gofynd.com"
          ]
        },
        "name": "JioMart PlayPit Company",
        "id": 4,
        "state": "MAHARASHTRA",
        "is_enabled_for_recon": false
      },
      "requested_dp_conf": {
        "ewbn": null,
        "awb_type": "express"
      },
      "company_id": 4,
      "coupon": {},
      "order_created": "2024-03-04T10:16:15+00:00",
      "shipment_value": 28.5,
      "credit_note_id": "",
      "einvoice_info": {},
      "previous_shipment_id": null,
      "label_url": "",
      "shipment_update_time": 1711967166.9765313,
      "no_of_bags_order": 1,
      "order_source": "uniket-desktop",
      "comment": "",
      "total_shipment_bags": 1,
      "user": {
        "gender": "male",
        "user_oid": "65e551fd969a85b621d712c4",
        "country_phone_code": "91",
        "meta": {
          "country_phone_code": "91"
        },
        "external_customer_id": null,
        "is_anonymous_user": false,
        "mobile": "4614207156",
        "last_name": "test",
        "id": 2898,
        "mongo_user_id": "65e551fd969a85b621d712c4",
        "first_name": "test",
        "email": "commcheck4321@gmail.com"
      }
    }
  },
  "event": {
    "referer": "jiox1.de",
    "trace_id": [
      "0000000000000000232b83598ca42add"
    ],
    "name": "shipment",
    "created_timestamp": 1711967167951,
    "id": "b3+r3YZeW3yhqiFr2PAEKco+T+i0xvpwYjKmb/sJqK0=",
    "type": "update",
    "category": "application",
    "version": "1"
  },
  "application_id": "64b002e1386bae58f856f06d"}

UPDATE: store_invoice_id is also not getting updated during bag_invoiced status change as well.