getting two different json while using webhook and api

Akash2769
Visitor
1 0 0

Dear team, I am receiving two different JSON formats while using the API and webhook. Below are both JSON formats without value.(for customer privacy)

Webhook JSON
{"id":null,"admin_graphql_api_id":null,"app_id":null,"browser_ip":null,"buyer_accepts_marketing":null,"cancel_reason":null,"cancelled_at":null,"cart_token":null,"checkout_id":null,"checkout_token":null,"client_details":null,"closed_at":null,"confirmation_number":null,"confirmed":null,"contact_email":null,"created_at":null,"currency":null,"current_subtotal_price":null,"current_subtotal_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"current_total_additional_fees_set":null,"current_total_discounts":null,"current_total_discounts_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"current_total_duties_set":null,"current_total_price":null,"current_total_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"current_total_tax":null,"current_total_tax_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"customer_locale":null,"device_id":null,"discount_codes":[],"email":null,"estimated_taxes":null,"financial_status":null,"fulfillment_status":null,"landing_site":null,"landing_site_ref":null,"location_id":null,"merchant_of_record_app_id":null,"name":null,"note":null,"note_attributes":[],"number":null,"order_number":null,"order_status_url":null,"original_total_additional_fees_set":null,"original_total_duties_set":null,"payment_gateway_names":[],"phone":null,"po_number":null,"presentment_currency":null,"processed_at":null,"reference":null,"referring_site":null,"source_identifier":null,"source_name":null,"source_url":null,"subtotal_price":null,"subtotal_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"tags":null,"tax_exempt":null,"tax_lines":[],"taxes_included":null,"test":null,"token":null,"total_discounts":null,"total_discounts_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"total_line_items_price":null,"total_line_items_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"total_outstanding":null,"total_price":null,"total_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"total_shipping_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"total_tax":null,"total_tax_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"total_tip_received":null,"total_weight":null,"updated_at":null,"user_id":null,"billing_address":{"first_name":null,"address1":null,"phone":null,"city":null,"zip":null,"province":null,"country":null,"last_name":null,"address2":null,"company":null,"latitude":null,"longitude":null,"name":null,"country_code":null,"province_code":null},"customer":{"id":null,"email":null,"created_at":null,"updated_at":null,"first_name":null,"last_name":null,"state":null,"note":null,"verified_email":null,"multipass_identifier":null,"tax_exempt":null,"phone":null,"email_marketing_consent":null,"sms_marketing_consent":null,"tags":null,"currency":null,"accepts_marketing":null,"accepts_marketing_updated_at":null,"marketing_opt_in_level":null,"tax_exemptions":[],"admin_graphql_api_id":null,"default_address":{"id":null,"customer_id":null,"first_name":null,"last_name":null,"company":null,"address1":null,"address2":null,"city":null,"province":null,"country":null,"zip":null,"phone":null,"name":null,"province_code":null,"country_code":null,"country_name":null,"default":null}},"discount_applications":[],"fulfillments":[],"line_items":[{"id":null,"admin_graphql_api_id":null,"attributed_staffs":[],"fulfillable_quantity":null,"fulfillment_service":null,"fulfillment_status":null,"gift_card":null,"grams":null,"name":null,"price":null,"price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"product_exists":null,"product_id":null,"properties":[],"quantity":null,"requires_shipping":null,"sku":null,"taxable":null,"title":null,"total_discount":null,"total_discount_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"variant_id":null,"variant_inventory_management":null,"variant_title":null,"vendor":null,"tax_lines":[],"duties":[],"discount_allocations":[]}],"payment_terms":null,"refunds":[],"shipping_address":{"first_name":null,"address1":null,"phone":null,"city":null,"zip":null,"province":null,"country":null,"last_name":null,"address2":null,"company":null,"latitude":null,"longitude":null,"name":null,"country_code":null,"province_code":null},"shipping_lines":[{"id":null,"carrier_identifier":null,"code":null,"discounted_price":null,"discounted_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"phone":null,"price":null,"price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"requested_fulfillment_service_id":null,"source":null,"title":null,"tax_lines":[],"discount_allocations":[]}]}

API JSON
{"id":null,"admin_graphql_api_id":null,"app_id":null,"browser_ip":null,"buyer_accepts_marketing":null,"cancel_reason":null,"cancelled_at":null,"cart_token":null,"checkout_id":null,"checkout_token":null,"client_details":null,"closed_at":null,"confirmed":null,"created_at":null,"currency":null,"current_subtotal_price":null,"current_subtotal_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"current_total_additional_fees_set":null,"current_total_discounts":null,"current_total_discounts_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"current_total_duties_set":null,"current_total_price":null,"current_total_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"current_total_tax":null,"current_total_tax_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"customer_locale":null,"device_id":null,"discount_codes":[],"estimated_taxes":null,"financial_status":null,"fulfillment_status":null,"landing_site":null,"landing_site_ref":null,"location_id":null,"merchant_of_record_app_id":null,"name":null,"note":null,"note_attributes":[],"number":null,"order_number":null,"order_status_url":null,"original_total_additional_fees_set":null,"original_total_duties_set":null,"payment_gateway_names":[],"presentment_currency":null,"processed_at":null,"reference":null,"referring_site":null,"source_identifier":null,"source_name":null,"source_url":null,"subtotal_price":null,"subtotal_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"tags":null,"tax_lines":[],"taxes_included":null,"test":null,"token":null,"total_discounts":null,"total_discounts_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"total_line_items_price":null,"total_line_items_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"total_outstanding":null,"total_price":null,"total_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"total_shipping_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"total_tax":null,"total_tax_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"total_tip_received":null,"total_weight":null,"updated_at":null,"user_id":null,"billing_address":{"province":null,"country":null,"latitude":null,"longitude":null,"country_code":null,"province_code":null},"customer":{"id":null,"created_at":null,"updated_at":null,"state":null,"note":null,"verified_email":null,"multipass_identifier":null,"tax_exempt":null,"email_marketing_consent":null,"sms_marketing_consent":null,"tags":null,"currency":null,"accepts_marketing":null,"accepts_marketing_updated_at":null,"marketing_opt_in_level":null,"tax_exemptions":[],"admin_graphql_api_id":null,"default_address":{"id":null,"customer_id":null,"company":null,"province":null,"country":null,"province_code":null,"country_code":null,"country_name":null,"default":null}},"discount_applications":[],"fulfillments":[],"line_items":[{"id":null,"admin_graphql_api_id":null,"fulfillable_quantity":null,"fulfillment_service":null,"fulfillment_status":null,"gift_card":null,"grams":null,"name":null,"price":null,"price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"product_exists":null,"product_id":null,"properties":[],"quantity":null,"requires_shipping":null,"sku":null,"taxable":null,"title":null,"total_discount":null,"total_discount_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"variant_id":null,"variant_inventory_management":null,"variant_title":null,"vendor":null,"tax_lines":[],"duties":[],"discount_allocations":[]}],"payment_terms":null,"refunds":[],"shipping_address":{"province":null,"country":null,"company":null,"country_code":null,"province_code":null},"shipping_lines":[{"id":null,"carrier_identifier":null,"code":null,"delivery_category":null,"discounted_price":null,"discounted_price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"phone":null,"price":null,"price_set":{"shop_money":{"amount":null,"currency_code":null},"presentment_money":{"amount":null,"currency_code":null}},"requested_fulfillment_service_id":null,"source":null,"title":null,"tax_lines":[],"discount_allocations":[]}]}

Replies 0 (0)