title: Convert Map to Raw JSON convertion using java
body: <p>I have enabled webhook on Shopify. Shopify sends raw JSON in webhook response. Somehow it is converted to map and now I want to convert it back to raw JSON that Shopify sends for HMAC verification. Can someone help how it can be done in JAVA? What encoding is applied to data at Shopify end? </p>
  <p>Shopify Webhook JSON:</p>
  <pre><code>{&quot;id&quot;:4700248899822,&quot;admin_graphql_api_id&quot;:&quot;gid:\/\/shopify\/Order\/4700248899822&quot;,&quot;app_id&quot;:1758145,&quot;browser_ip&quot;:null,&quot;buyer_accepts_marketing&quot;:false,&quot;cancel_reason&quot;:null,&quot;cancelled_at&quot;:null,&quot;cart_token&quot;:null,&quot;checkout_id&quot;:null,&quot;checkout_token&quot;:null,&quot;closed_at&quot;:null,&quot;confirmed&quot;:true,&quot;contact_email&quot;:&quot;marcpids@gmail.com&quot;,&quot;created_at&quot;:&quot;2022-03-18T22:44:54+00:00&quot;,&quot;currency&quot;:&quot;GBP&quot;,&quot;current_subtotal_price&quot;:&quot;4924.99&quot;,&quot;current_subtotal_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4924.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4924.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;current_total_discounts&quot;:&quot;0.00&quot;,&quot;current_total_discounts_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;current_total_duties_set&quot;:null,&quot;current_total_price&quot;:&quot;4929.98&quot;,&quot;current_total_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4929.98&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4929.98&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;current_total_tax&quot;:&quot;0.00&quot;,&quot;current_total_tax_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;customer_locale&quot;:null,&quot;device_id&quot;:null,&quot;discount_codes&quot;:[],&quot;email&quot;:&quot;marcpids@gmail.com&quot;,&quot;estimated_taxes&quot;:false,&quot;financial_status&quot;:&quot;paid&quot;,&quot;fulfillment_status&quot;:null,&quot;gateway&quot;:&quot;manual&quot;,&quot;landing_site&quot;:null,&quot;landing_site_ref&quot;:null,&quot;location_id&quot;:null,&quot;name&quot;:&quot;27776&quot;,&quot;note&quot;:null,&quot;note_attributes&quot;:[],&quot;number&quot;:19545,&quot;order_number&quot;:20545,&quot;order_status_url&quot;:&quot;https:\/\/www.shop.co.uk\/60948381934\/orders\/fa7e0285eed82f571ad456ded44f697e\/authenticate?key=dcff94c973659a1be74fb3d0f59424fd&quot;,&quot;original_total_duties_set&quot;:null,&quot;payment_gateway_names&quot;:[&quot;manual&quot;],&quot;phone&quot;:null,&quot;presentment_currency&quot;:&quot;GBP&quot;,&quot;processed_at&quot;:&quot;2022-03-18T22:44:54+00:00&quot;,&quot;processing_method&quot;:&quot;&quot;,&quot;reference&quot;:null,&quot;referring_site&quot;:null,&quot;source_identifier&quot;:null,&quot;source_name&quot;:&quot;Matrixify App&quot;,&quot;source_url&quot;:null,&quot;subtotal_price&quot;:&quot;4924.99&quot;,&quot;subtotal_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4924.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4924.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;tags&quot;:&quot;payment:fully-paid&quot;,&quot;tax_lines&quot;:[],&quot;taxes_included&quot;:false,&quot;test&quot;:false,&quot;token&quot;:&quot;fa7e0285eed82f571ad456ded44f697e&quot;,&quot;total_discounts&quot;:&quot;0.00&quot;,&quot;total_discounts_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;total_line_items_price&quot;:&quot;4924.99&quot;,&quot;total_line_items_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4924.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4924.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;total_outstanding&quot;:&quot;0.00&quot;,&quot;total_price&quot;:&quot;4929.98&quot;,&quot;total_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4929.98&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4929.98&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;total_price_usd&quot;:&quot;6487.16&quot;,&quot;total_shipping_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;total_tax&quot;:&quot;0.00&quot;,&quot;total_tax_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;total_tip_received&quot;:&quot;0.00&quot;,&quot;total_weight&quot;:0,&quot;updated_at&quot;:&quot;2022-07-12T10:41:17+01:00&quot;,&quot;user_id&quot;:null,&quot;billing_address&quot;:{&quot;first_name&quot;:&quot;Mark&quot;,&quot;address1&quot;:&quot;Captains Row&quot;,&quot;phone&quot;:&quot;07989408757&quot;,&quot;city&quot;:&quot;Lymington&quot;,&quot;zip&quot;:&quot;SO41 9RR&quot;,&quot;province&quot;:&quot;England&quot;,&quot;country&quot;:&quot;United Kingdom&quot;,&quot;last_name&quot;:&quot;Pidsley&quot;,&quot;address2&quot;:null,&quot;company&quot;:null,&quot;latitude&quot;:50.7584704,&quot;longitude&quot;:-1.537493,&quot;name&quot;:&quot;Mark Pidsley&quot;,&quot;country_code&quot;:&quot;GB&quot;,&quot;province_code&quot;:&quot;ENG&quot;},&quot;customer&quot;:{&quot;id&quot;:6102973153518,&quot;email&quot;:&quot;marcpids@gmail.com&quot;,&quot;accepts_marketing&quot;:false,&quot;created_at&quot;:&quot;2022-03-18T03:18:48+00:00&quot;,&quot;updated_at&quot;:&quot;2022-07-12T10:41:17+01:00&quot;,&quot;first_name&quot;:&quot;Mark&quot;,&quot;last_name&quot;:&quot;Pidsley&quot;,&quot;orders_count&quot;:3,&quot;state&quot;:&quot;invited&quot;,&quot;total_spent&quot;:&quot;9896.94&quot;,&quot;last_order_id&quot;:4700248899822,&quot;note&quot;:null,&quot;verified_email&quot;:true,&quot;multipass_identifier&quot;:null,&quot;tax_exempt&quot;:false,&quot;phone&quot;:null,&quot;tags&quot;:&quot;first-order:fully-paid, Guest&quot;,&quot;last_order_name&quot;:&quot;27776&quot;,&quot;currency&quot;:&quot;GBP&quot;,&quot;accepts_marketing_updated_at&quot;:&quot;2022-03-18T03:18:48+00:00&quot;,&quot;marketing_opt_in_level&quot;:null,&quot;tax_exemptions&quot;:[],&quot;sms_marketing_consent&quot;:null,&quot;admin_graphql_api_id&quot;:&quot;gid:\/\/shopify\/Customer\/6102973153518&quot;,&quot;default_address&quot;:{&quot;id&quot;:7602051678446,&quot;customer_id&quot;:6102973153518,&quot;first_name&quot;:&quot;Mark&quot;,&quot;last_name&quot;:&quot;Pidsley&quot;,&quot;company&quot;:&quot;&quot;,&quot;address1&quot;:&quot;Captains Row&quot;,&quot;address2&quot;:&quot;&quot;,&quot;city&quot;:&quot;Lymington&quot;,&quot;province&quot;:&quot;England&quot;,&quot;country&quot;:&quot;United Kingdom&quot;,&quot;zip&quot;:&quot;SO41 9RR&quot;,&quot;phone&quot;:&quot;07989408757&quot;,&quot;name&quot;:&quot;Mark Pidsley&quot;,&quot;province_code&quot;:&quot;ENG&quot;,&quot;country_code&quot;:&quot;GB&quot;,&quot;country_name&quot;:&quot;United Kingdom&quot;,&quot;default&quot;:true}},&quot;discount_applications&quot;:[],&quot;fulfillments&quot;:[],&quot;line_items&quot;:[{&quot;id&quot;:12045659570414,&quot;admin_graphql_api_id&quot;:&quot;gid:\/\/shopify\/LineItem\/12045659570414&quot;,&quot;fulfillable_quantity&quot;:1,&quot;fulfillment_service&quot;:&quot;manual&quot;,&quot;fulfillment_status&quot;:null,&quot;gift_card&quot;:false,&quot;grams&quot;:0,&quot;name&quot;:&quot;Cube Stereo Hybrid 160 HPC SL 2022 Bosch - XL 55cm&quot;,&quot;price&quot;:&quot;4899.00&quot;,&quot;price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4899.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4899.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;product_exists&quot;:true,&quot;product_id&quot;:7570044977390,&quot;properties&quot;:[{&quot;name&quot;:&quot;Pre-Order&quot;,&quot;value&quot;:&quot;&quot;},{&quot;name&quot;:&quot;Frame Size (Check stock below)&quot;,&quot;value&quot;:&quot;55cm&quot;}],&quot;quantity&quot;:1,&quot;requires_shipping&quot;:true,&quot;sku&quot;:&quot;53710322&quot;,&quot;taxable&quot;:false,&quot;title&quot;:&quot;Cube Stereo Hybrid 160 HPC SL 2022 Bosch&quot;,&quot;total_discount&quot;:&quot;0.00&quot;,&quot;total_discount_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;variant_id&quot;:42482856460526,&quot;variant_inventory_management&quot;:&quot;shopify&quot;,&quot;variant_title&quot;:&quot;XL 55cm&quot;,&quot;vendor&quot;:&quot;&quot;,&quot;tax_lines&quot;:[],&quot;duties&quot;:[],&quot;discount_allocations&quot;:[]},{&quot;id&quot;:12045659603182,&quot;admin_graphql_api_id&quot;:&quot;gid:\/\/shopify\/LineItem\/12045659603182&quot;,&quot;fulfillable_quantity&quot;:1,&quot;fulfillment_service&quot;:&quot;manual&quot;,&quot;fulfillment_status&quot;:null,&quot;gift_card&quot;:false,&quot;grams&quot;:0,&quot;name&quot;:&quot;KMC Bosch Gen 4 38t Chainring (9mm Offset)&quot;,&quot;price&quot;:&quot;25.99&quot;,&quot;price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;25.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;25.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;product_exists&quot;:true,&quot;product_id&quot;:7569830576366,&quot;properties&quot;:[],&quot;quantity&quot;:1,&quot;requires_shipping&quot;:true,&quot;sku&quot;:&quot;BFCB45238&quot;,&quot;taxable&quot;:false,&quot;title&quot;:&quot;KMC Bosch Gen 4 38t Chainring (9mm Offset)&quot;,&quot;total_discount&quot;:&quot;0.00&quot;,&quot;total_discount_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;variant_id&quot;:42435842703598,&quot;variant_inventory_management&quot;:&quot;shopify&quot;,&quot;variant_title&quot;:null,&quot;vendor&quot;:&quot;&quot;,&quot;tax_lines&quot;:[],&quot;duties&quot;:[],&quot;discount_allocations&quot;:[]}],&quot;payment_terms&quot;:null,&quot;refunds&quot;:[],&quot;shipping_address&quot;:{&quot;first_name&quot;:&quot;Mark&quot;,&quot;address1&quot;:&quot;Captains Row&quot;,&quot;phone&quot;:&quot;07989408757&quot;,&quot;city&quot;:&quot;Lymington&quot;,&quot;zip&quot;:&quot;SO41 9RR&quot;,&quot;province&quot;:&quot;England&quot;,&quot;country&quot;:&quot;United Kingdom&quot;,&quot;last_name&quot;:&quot;Pidsley&quot;,&quot;address2&quot;:&quot;&quot;,&quot;company&quot;:&quot;&quot;,&quot;latitude&quot;:50.7584704,&quot;longitude&quot;:-1.537493,&quot;name&quot;:&quot;Mark Pidsley&quot;,&quot;country_code&quot;:&quot;GB&quot;,&quot;province_code&quot;:&quot;ENG&quot;},&quot;shipping_lines&quot;:[{&quot;id&quot;:3913660694766,&quot;carrier_identifier&quot;:null,&quot;code&quot;:&quot;UK E\u0026amp;W Zone A (Weight: 24.75kg)&quot;,&quot;delivery_category&quot;:null,&quot;discounted_price&quot;:&quot;4.99&quot;,&quot;discounted_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;phone&quot;:null,&quot;price&quot;:&quot;4.99&quot;,&quot;price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;requested_fulfillment_service_id&quot;:null,&quot;source&quot;:&quot;shopify&quot;,&quot;title&quot;:&quot;UK E\u0026amp;W Zone A (Weight: 24.75kg)&quot;,&quot;tax_lines&quot;:[],&quot;discount_allocations&quot;:[]}]}
  </code></pre>
  <p>JSON converted to map:  </p>
  <pre><code>{&quot;id&quot;:4700248899822,&quot;admin_graphql_api_id&quot;:&quot;gid://shopify/Order/4700248899822&quot;,&quot;app_id&quot;:1758145,&quot;browser_ip&quot;:null,&quot;buyer_accepts_marketing&quot;:false,&quot;cancel_reason&quot;:null,&quot;cancelled_at&quot;:null,&quot;cart_token&quot;:null,&quot;checkout_id&quot;:null,&quot;checkout_token&quot;:null,&quot;closed_at&quot;:null,&quot;confirmed&quot;:true,&quot;contact_email&quot;:&quot;marcpids@gmail.com&quot;,&quot;created_at&quot;:&quot;2022-03-18T22:44:54+00:00&quot;,&quot;currency&quot;:&quot;GBP&quot;,&quot;current_subtotal_price&quot;:&quot;4924.99&quot;,&quot;current_subtotal_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4924.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4924.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;current_total_discounts&quot;:&quot;0.00&quot;,&quot;current_total_discounts_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;current_total_duties_set&quot;:null,&quot;current_total_price&quot;:&quot;4929.98&quot;,&quot;current_total_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4929.98&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4929.98&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;current_total_tax&quot;:&quot;0.00&quot;,&quot;current_total_tax_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;customer_locale&quot;:null,&quot;device_id&quot;:null,&quot;discount_codes&quot;:[],&quot;email&quot;:&quot;marcpids@gmail.com&quot;,&quot;estimated_taxes&quot;:false,&quot;financial_status&quot;:&quot;paid&quot;,&quot;fulfillment_status&quot;:null,&quot;gateway&quot;:&quot;manual&quot;,&quot;landing_site&quot;:null,&quot;landing_site_ref&quot;:null,&quot;location_id&quot;:null,&quot;name&quot;:&quot;27776&quot;,&quot;note&quot;:null,&quot;note_attributes&quot;:[],&quot;number&quot;:19545,&quot;order_number&quot;:20545,&quot;order_status_url&quot;:&quot;https://www.shop.co.uk/60948381934/orders/fa7e0285eed82f571ad456ded44f697e/authenticate?key=dcff94c973659a1be74fb3d0f59424fd&quot;,&quot;original_total_duties_set&quot;:null,&quot;payment_gateway_names&quot;:[&quot;manual&quot;],&quot;phone&quot;:null,&quot;presentment_currency&quot;:&quot;GBP&quot;,&quot;processed_at&quot;:&quot;2022-03-18T22:44:54+00:00&quot;,&quot;processing_method&quot;:&quot;&quot;,&quot;reference&quot;:null,&quot;referring_site&quot;:null,&quot;source_identifier&quot;:null,&quot;source_name&quot;:&quot;Matrixify App&quot;,&quot;source_url&quot;:null,&quot;subtotal_price&quot;:&quot;4924.99&quot;,&quot;subtotal_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4924.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4924.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;tags&quot;:&quot;payment:fully-paid&quot;,&quot;tax_lines&quot;:[],&quot;taxes_included&quot;:false,&quot;test&quot;:false,&quot;token&quot;:&quot;fa7e0285eed82f571ad456ded44f697e&quot;,&quot;total_discounts&quot;:&quot;0.00&quot;,&quot;total_discounts_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;total_line_items_price&quot;:&quot;4924.99&quot;,&quot;total_line_items_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4924.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4924.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;total_outstanding&quot;:&quot;0.00&quot;,&quot;total_price&quot;:&quot;4929.98&quot;,&quot;total_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4929.98&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4929.98&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;total_price_usd&quot;:&quot;6487.16&quot;,&quot;total_shipping_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;total_tax&quot;:&quot;0.00&quot;,&quot;total_tax_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;total_tip_received&quot;:&quot;0.00&quot;,&quot;total_weight&quot;:0,&quot;updated_at&quot;:&quot;2022-07-12T10:41:17+01:00&quot;,&quot;user_id&quot;:null,&quot;billing_address&quot;:{&quot;first_name&quot;:&quot;Mark&quot;,&quot;address1&quot;:&quot;Captains Row&quot;,&quot;phone&quot;:&quot;07989408757&quot;,&quot;city&quot;:&quot;Lymington&quot;,&quot;zip&quot;:&quot;SO41 9RR&quot;,&quot;province&quot;:&quot;England&quot;,&quot;country&quot;:&quot;United Kingdom&quot;,&quot;last_name&quot;:&quot;Pidsley&quot;,&quot;address2&quot;:null,&quot;company&quot;:null,&quot;latitude&quot;:50.7584704,&quot;longitude&quot;:-1.537493,&quot;name&quot;:&quot;Mark Pidsley&quot;,&quot;country_code&quot;:&quot;GB&quot;,&quot;province_code&quot;:&quot;ENG&quot;},&quot;customer&quot;:{&quot;id&quot;:6102973153518,&quot;email&quot;:&quot;marcpids@gmail.com&quot;,&quot;accepts_marketing&quot;:false,&quot;created_at&quot;:&quot;2022-03-18T03:18:48+00:00&quot;,&quot;updated_at&quot;:&quot;2022-07-12T10:41:17+01:00&quot;,&quot;first_name&quot;:&quot;Mark&quot;,&quot;last_name&quot;:&quot;Pidsley&quot;,&quot;orders_count&quot;:3,&quot;state&quot;:&quot;invited&quot;,&quot;total_spent&quot;:&quot;9896.94&quot;,&quot;last_order_id&quot;:4700248899822,&quot;note&quot;:null,&quot;verified_email&quot;:true,&quot;multipass_identifier&quot;:null,&quot;tax_exempt&quot;:false,&quot;phone&quot;:null,&quot;tags&quot;:&quot;first-order:fully-paid, Guest&quot;,&quot;last_order_name&quot;:&quot;27776&quot;,&quot;currency&quot;:&quot;GBP&quot;,&quot;accepts_marketing_updated_at&quot;:&quot;2022-03-18T03:18:48+00:00&quot;,&quot;marketing_opt_in_level&quot;:null,&quot;tax_exemptions&quot;:[],&quot;sms_marketing_consent&quot;:null,&quot;admin_graphql_api_id&quot;:&quot;gid://shopify/Customer/6102973153518&quot;,&quot;default_address&quot;:{&quot;id&quot;:7602051678446,&quot;customer_id&quot;:6102973153518,&quot;first_name&quot;:&quot;Mark&quot;,&quot;last_name&quot;:&quot;Pidsley&quot;,&quot;company&quot;:&quot;&quot;,&quot;address1&quot;:&quot;Captains Row&quot;,&quot;address2&quot;:&quot;&quot;,&quot;city&quot;:&quot;Lymington&quot;,&quot;province&quot;:&quot;England&quot;,&quot;country&quot;:&quot;United Kingdom&quot;,&quot;zip&quot;:&quot;SO41 9RR&quot;,&quot;phone&quot;:&quot;07989408757&quot;,&quot;name&quot;:&quot;Mark Pidsley&quot;,&quot;province_code&quot;:&quot;ENG&quot;,&quot;country_code&quot;:&quot;GB&quot;,&quot;country_name&quot;:&quot;United Kingdom&quot;,&quot;default&quot;:true}},&quot;discount_applications&quot;:[],&quot;fulfillments&quot;:[],&quot;line_items&quot;:[{&quot;id&quot;:12045659570414,&quot;admin_graphql_api_id&quot;:&quot;gid://shopify/LineItem/12045659570414&quot;,&quot;fulfillable_quantity&quot;:1,&quot;fulfillment_service&quot;:&quot;manual&quot;,&quot;fulfillment_status&quot;:null,&quot;gift_card&quot;:false,&quot;grams&quot;:0,&quot;name&quot;:&quot;Cube Stereo Hybrid 160 HPC SL 2022 Bosch - XL 55cm&quot;,&quot;price&quot;:&quot;4899.00&quot;,&quot;price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4899.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4899.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;product_exists&quot;:true,&quot;product_id&quot;:7570044977390,&quot;properties&quot;:[{&quot;name&quot;:&quot;Pre-Order&quot;,&quot;value&quot;:&quot;&quot;},{&quot;name&quot;:&quot;Frame Size (Check stock below)&quot;,&quot;value&quot;:&quot;55cm&quot;}],&quot;quantity&quot;:1,&quot;requires_shipping&quot;:true,&quot;sku&quot;:&quot;53710322&quot;,&quot;taxable&quot;:false,&quot;title&quot;:&quot;Cube Stereo Hybrid 160 HPC SL 2022 Bosch&quot;,&quot;total_discount&quot;:&quot;0.00&quot;,&quot;total_discount_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;variant_id&quot;:42482856460526,&quot;variant_inventory_management&quot;:&quot;shopify&quot;,&quot;variant_title&quot;:&quot;XL 55cm&quot;,&quot;vendor&quot;:&quot;&quot;,&quot;tax_lines&quot;:[],&quot;duties&quot;:[],&quot;discount_allocations&quot;:[]},{&quot;id&quot;:12045659603182,&quot;admin_graphql_api_id&quot;:&quot;gid://shopify/LineItem/12045659603182&quot;,&quot;fulfillable_quantity&quot;:1,&quot;fulfillment_service&quot;:&quot;manual&quot;,&quot;fulfillment_status&quot;:null,&quot;gift_card&quot;:false,&quot;grams&quot;:0,&quot;name&quot;:&quot;KMC Bosch Gen 4 38t Chainring (9mm Offset)&quot;,&quot;price&quot;:&quot;25.99&quot;,&quot;price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;25.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;25.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;product_exists&quot;:true,&quot;product_id&quot;:7569830576366,&quot;properties&quot;:[],&quot;quantity&quot;:1,&quot;requires_shipping&quot;:true,&quot;sku&quot;:&quot;BFCB45238&quot;,&quot;taxable&quot;:false,&quot;title&quot;:&quot;KMC Bosch Gen 4 38t Chainring (9mm Offset)&quot;,&quot;total_discount&quot;:&quot;0.00&quot;,&quot;total_discount_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;0.00&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;variant_id&quot;:42435842703598,&quot;variant_inventory_management&quot;:&quot;shopify&quot;,&quot;variant_title&quot;:null,&quot;vendor&quot;:&quot;&quot;,&quot;tax_lines&quot;:[],&quot;duties&quot;:[],&quot;discount_allocations&quot;:[]}],&quot;payment_terms&quot;:null,&quot;refunds&quot;:[],&quot;shipping_address&quot;:{&quot;first_name&quot;:&quot;Mark&quot;,&quot;address1&quot;:&quot;Captains Row&quot;,&quot;phone&quot;:&quot;07989408757&quot;,&quot;city&quot;:&quot;Lymington&quot;,&quot;zip&quot;:&quot;SO41 9RR&quot;,&quot;province&quot;:&quot;England&quot;,&quot;country&quot;:&quot;United Kingdom&quot;,&quot;last_name&quot;:&quot;Pidsley&quot;,&quot;address2&quot;:&quot;&quot;,&quot;company&quot;:&quot;&quot;,&quot;latitude&quot;:50.7584704,&quot;longitude&quot;:-1.537493,&quot;name&quot;:&quot;Mark Pidsley&quot;,&quot;country_code&quot;:&quot;GB&quot;,&quot;province_code&quot;:&quot;ENG&quot;},&quot;shipping_lines&quot;:[{&quot;id&quot;:3913660694766,&quot;carrier_identifier&quot;:null,&quot;code&quot;:&quot;UK E&amp;amp;W Zone A (Weight: 24.75kg)&quot;,&quot;delivery_category&quot;:null,&quot;discounted_price&quot;:&quot;4.99&quot;,&quot;discounted_price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;phone&quot;:null,&quot;price&quot;:&quot;4.99&quot;,&quot;price_set&quot;:{&quot;shop_money&quot;:{&quot;amount&quot;:&quot;4.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;},&quot;presentment_money&quot;:{&quot;amount&quot;:&quot;4.99&quot;,&quot;currency_code&quot;:&quot;GBP&quot;}},&quot;requested_fulfillment_service_id&quot;:null,&quot;source&quot;:&quot;shopify&quot;,&quot;title&quot;:&quot;UK E&amp;amp;W Zone A (Weight: 24.75kg)&quot;,&quot;tax_lines&quot;:[],&quot;discount_allocations&quot;:[]}]}
  </code></pre>
  <p>HMAC verification code is correct. The problem is with the webhook body. I want to convert JSON to its original format that Shopify sends in the webhook</p>