Advertisement
xxZeus

shopify sample curl adapter

Jan 18th, 2023
1,040
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 18.04 KB | None | 0 0
  1. curl --location --request POST 'http://127.0.0.1:8000/webhook.handle_shopify/' \
  2. --header 'X-Shopify-Hmac-SHA256: xyz' \
  3. --header 'X-Shopify-Shop-Domain: team-8331.myshopify.com' \
  4. --header 'x-shopify-topic: orders/create' \
  5. --header 'x-limechat-access-token: a1' \
  6. --header 'Content-Type: application/json' \
  7. --data-raw '{
  8.    "id": 4439976804396,
  9.    "name": "#BVL222236405",
  10.    "note": null,
  11.    "tags": "IN-TRANSIT, Zecpe - COD",
  12.    "test": false,
  13.    "email": "sagasdargujral@yahoo.com",
  14.    "phone": null,
  15.    "token": "d5f7a646d13c0b89c472d8b65bc57545",
  16.    "app_id": 7969013761,
  17.    "number": 235405,
  18.    "gateway": "manual",
  19.    "refunds": [],
  20.    "user_id": null,
  21.    "currency": "INR",
  22.    "customer": {
  23.        "id": 6147919642668,
  24.        "note": null,
  25.        "tags": "",
  26.        "email": "sagargujral@yahoo.com",
  27.        "phone": "+919999472271",
  28.        "state": "disabled",
  29.        "currency": "INR",
  30.        "last_name": "Gujral",
  31.        "created_at": "2022-11-26T11:13:48+05:30",
  32.        "first_name": "Sagar",
  33.        "tax_exempt": false,
  34.        "updated_at": "2022-12-08T02:20:59+05:30",
  35.        "tax_exemptions": [],
  36.        "verified_email": true,
  37.        "default_address": {
  38.            "id": 7462392594476,
  39.            "zip": "110027",
  40.            "city": "Delhi",
  41.            "name": "Sagar Gujral",
  42.            "phone": "9999472271",
  43.            "company": null,
  44.            "country": "India",
  45.            "default": true,
  46.            "address1": "2/233 subash nagar new delhi",
  47.            "address2": null,
  48.            "province": "Delhi",
  49.            "last_name": "Gujral",
  50.            "first_name": "Sagar",
  51.            "customer_id": 6147919642668,
  52.            "country_code": "IN",
  53.            "country_name": "India",
  54.            "province_code": "DL"
  55.        },
  56.        "accepts_marketing": true,
  57.        "admin_graphql_api_id": "gid://shopify/Customer/6147919642668",
  58.        "multipass_identifier": null,
  59.        "sms_marketing_consent": {
  60.            "state": "not_subscribed",
  61.            "opt_in_level": "single_opt_in",
  62.            "consent_updated_at": null,
  63.            "consent_collected_from": "OTHER"
  64.        },
  65.        "marketing_opt_in_level": "single_opt_in",
  66.        "email_marketing_consent": {
  67.            "state": "subscribed",
  68.            "opt_in_level": "single_opt_in",
  69.            "consent_updated_at": "2022-11-26T11:13:48+05:30"
  70.        },
  71.        "accepts_marketing_updated_at": "2022-11-26T11:13:48+05:30"
  72.    },
  73.    "closed_at": null,
  74.    "confirmed": true,
  75.    "device_id": null,
  76.    "reference": null,
  77.    "tax_lines": [
  78.        {
  79.            "rate": 0.18,
  80.            "price": "90.46",
  81.            "title": "IGST",
  82.            "price_set": {
  83.                "shop_money": {
  84.                    "amount": "90.46",
  85.                    "currency_code": "INR"
  86.                },
  87.                "presentment_money": {
  88.                    "amount": "90.46",
  89.                    "currency_code": "INR"
  90.                }
  91.            },
  92.            "channel_liable": false
  93.        }
  94.    ],
  95.    "total_tax": "90.46",
  96.    "browser_ip": null,
  97.    "cart_token": null,
  98.    "created_at": "2022-12-08T02:20:58+05:30",
  99.    "line_items": [
  100.        {
  101.            "id": 11189476425772,
  102.            "sku": "8906150341425",
  103.            "name": "Mens’ Body Parfum Deo Gift Set",
  104.            "grams": 0,
  105.            "price": "543.00",
  106.            "title": "Mens’ Body Parfum Deo Gift Set",
  107.            "duties": [],
  108.            "vendor": "Bella Vita Luxury",
  109.            "taxable": true,
  110.            "quantity": 1,
  111.            "gift_card": false,
  112.            "price_set": {
  113.                "shop_money": {
  114.                    "amount": "543.00",
  115.                    "currency_code": "INR"
  116.                },
  117.                "presentment_money": {
  118.                    "amount": "543.00",
  119.                    "currency_code": "INR"
  120.                }
  121.            },
  122.            "tax_lines": [
  123.                {
  124.                    "rate": 0.18,
  125.                    "price": "82.83",
  126.                    "title": "IGST",
  127.                    "price_set": {
  128.                        "shop_money": {
  129.                            "amount": "82.83",
  130.                            "currency_code": "INR"
  131.                        },
  132.                        "presentment_money": {
  133.                            "amount": "82.83",
  134.                            "currency_code": "INR"
  135.                        }
  136.                    },
  137.                    "channel_liable": false
  138.                }
  139.            ],
  140.            "product_id": 6880124141612,
  141.            "properties": [],
  142.            "variant_id": 40436988641324,
  143.            "variant_title": "",
  144.            "product_exists": true,
  145.            "total_discount": "0.00",
  146.            "origin_location": {
  147.                "id": 3160359534636,
  148.                "zip": "122008",
  149.                "city": "Gurugram",
  150.                "name": "Bella Vita Luxury",
  151.                "address1": "417 Udyog Vihar Phase 4 Road Udyog Vihar Sector 20",
  152.                "address2": "",
  153.                "country_code": "IN",
  154.                "province_code": "HR"
  155.            },
  156.            "requires_shipping": true,
  157.            "fulfillment_status": "fulfilled",
  158.            "total_discount_set": {
  159.                "shop_money": {
  160.                    "amount": "0.00",
  161.                    "currency_code": "INR"
  162.                },
  163.                "presentment_money": {
  164.                    "amount": "0.00",
  165.                    "currency_code": "INR"
  166.                }
  167.            },
  168.            "fulfillment_service": "manual",
  169.            "admin_graphql_api_id": "gid://shopify/LineItem/11189476425772",
  170.            "destination_location": {
  171.                "id": 3393567948844,
  172.                "zip": "110027",
  173.                "city": "Delhi",
  174.                "name": "Sagar Gujral",
  175.                "address1": "2/233 subash nagar new delhi",
  176.                "address2": "",
  177.                "country_code": "IN",
  178.                "province_code": "DL"
  179.            },
  180.            "discount_allocations": [],
  181.            "fulfillable_quantity": 0,
  182.            "variant_inventory_management": null
  183.        }
  184.    ],
  185.    "source_url": null,
  186.    "updated_at": "2022-12-10T14:01:43+05:30",
  187.    "checkout_id": 26370950823980,
  188.    "location_id": null,
  189.    "source_name": "7969013761",
  190.    "total_price": "593.00",
  191.    "cancelled_at": "sagta",
  192.    "fulfillments": [
  193.        {
  194.            "id": 3990766616620,
  195.            "name": "#BVL222236405.1",
  196.            "status": "success",
  197.            "receipt": {},
  198.            "service": "manual",
  199.            "order_id": 4439976804396,
  200.            "created_at": "2022-12-08T19:10:42+05:30",
  201.            "line_items": [
  202.                {
  203.                    "id": 11189476425772,
  204.                    "sku": "8906150341425",
  205.                    "name": "Mens’ Body Parfum Deo Gift Set",
  206.                    "grams": 0,
  207.                    "price": "543.00",
  208.                    "title": "Mens’ Body Parfum Deo Gift Set",
  209.                    "duties": [],
  210.                    "vendor": "Bella Vita Luxury",
  211.                    "taxable": true,
  212.                    "quantity": 1,
  213.                    "gift_card": false,
  214.                    "price_set": {
  215.                        "shop_money": {
  216.                            "amount": "543.00",
  217.                            "currency_code": "INR"
  218.                        },
  219.                        "presentment_money": {
  220.                            "amount": "543.00",
  221.                            "currency_code": "INR"
  222.                        }
  223.                    },
  224.                    "tax_lines": [
  225.                        {
  226.                            "rate": 0.18,
  227.                            "price": "82.83",
  228.                            "title": "IGST",
  229.                            "price_set": {
  230.                                "shop_money": {
  231.                                    "amount": "82.83",
  232.                                    "currency_code": "INR"
  233.                                },
  234.                                "presentment_money": {
  235.                                    "amount": "82.83",
  236.                                    "currency_code": "INR"
  237.                                }
  238.                            },
  239.                            "channel_liable": false
  240.                        }
  241.                    ],
  242.                    "product_id": 6880124141612,
  243.                    "properties": [],
  244.                    "variant_id": 40436988641324,
  245.                    "variant_title": "",
  246.                    "product_exists": true,
  247.                    "total_discount": "0.00",
  248.                    "origin_location": {
  249.                        "id": 3160359534636,
  250.                        "zip": "122008",
  251.                        "city": "Gurugram",
  252.                        "name": "Bella Vita Luxury",
  253.                        "address1": "417 Udyog Vihar Phase 4 Road Udyog Vihar Sector 20",
  254.                        "address2": "",
  255.                        "country_code": "IN",
  256.                        "province_code": "HR"
  257.                    },
  258.                    "requires_shipping": true,
  259.                    "fulfillment_status": "fulfilled",
  260.                    "total_discount_set": {
  261.                        "shop_money": {
  262.                            "amount": "0.00",
  263.                            "currency_code": "INR"
  264.                        },
  265.                        "presentment_money": {
  266.                            "amount": "0.00",
  267.                            "currency_code": "INR"
  268.                        }
  269.                    },
  270.                    "fulfillment_service": "manual",
  271.                    "admin_graphql_api_id": "gid://shopify/LineItem/11189476425772",
  272.                    "destination_location": {
  273.                        "id": 3393567948844,
  274.                        "zip": "110027",
  275.                        "city": "Delhi",
  276.                        "name": "Sagar Gujral",
  277.                        "address1": "2/233 subash nagar new delhi",
  278.                        "address2": "",
  279.                        "country_code": "IN",
  280.                        "province_code": "DL"
  281.                    },
  282.                    "discount_allocations": [],
  283.                    "fulfillable_quantity": 0,
  284.                    "variant_inventory_management": null
  285.                }
  286.            ],
  287.            "updated_at": "2022-12-10T14:01:43+05:30",
  288.            "location_id": 62665195564,
  289.            "tracking_url": "https://shiprocket.co/tracking/19041371968036",
  290.            "tracking_urls": [
  291.                "https://shiprocket.co/tracking/19041371968036"
  292.            ],
  293.            "origin_address": {},
  294.            "shipment_status": "delivered",
  295.            "tracking_number": "19041371968036",
  296.            "tracking_company": "Delhivery Surface",
  297.            "tracking_numbers": [
  298.                "19041371968036"
  299.            ],
  300.            "admin_graphql_api_id": "gid://shopify/Fulfillment/3990766616620"
  301.        }
  302.    ],
  303.    "landing_site": null,
  304.    "order_number": 236405,
  305.    "processed_at": "2022-12-08T02:20:58+05:30",
  306.    "total_weight": 0,
  307.    "cancel_reason": null,
  308.    "contact_email": "sagargujral@yahoo.com",
  309.    "payment_terms": null,
  310.    "total_tax_set": {
  311.        "shop_money": {
  312.            "amount": "90.46",
  313.            "currency_code": "INR"
  314.        },
  315.        "presentment_money": {
  316.            "amount": "90.46",
  317.            "currency_code": "INR"
  318.        }
  319.    },
  320.    "checkout_token": "f3beb0bc48b9c2b7f9ad3b8fe7f25c27",
  321.    "client_details": {
  322.        "browser_ip": null,
  323.        "user_agent": null,
  324.        "session_hash": null,
  325.        "browser_width": null,
  326.        "browser_height": null,
  327.        "accept_language": null
  328.    },
  329.    "discount_codes": [],
  330.    "referring_site": null,
  331.    "shipping_lines": [
  332.        {
  333.            "id": 3763289554988,
  334.            "code": "custom",
  335.            "phone": null,
  336.            "price": "50.00",
  337.            "title": "Cash on Delivery",
  338.            "source": "shopify",
  339.            "price_set": {
  340.                "shop_money": {
  341.                    "amount": "50.00",
  342.                    "currency_code": "INR"
  343.                },
  344.                "presentment_money": {
  345.                    "amount": "50.00",
  346.                    "currency_code": "INR"
  347.                }
  348.            },
  349.            "tax_lines": [
  350.                {
  351.                    "rate": 0.18,
  352.                    "price": "7.63",
  353.                    "title": "IGST",
  354.                    "price_set": {
  355.                        "shop_money": {
  356.                            "amount": "7.63",
  357.                            "currency_code": "INR"
  358.                        },
  359.                        "presentment_money": {
  360.                            "amount": "7.63",
  361.                            "currency_code": "INR"
  362.                        }
  363.                    },
  364.                    "channel_liable": false
  365.                }
  366.            ],
  367.            "discounted_price": "50.00",
  368.            "delivery_category": null,
  369.            "carrier_identifier": null,
  370.            "discount_allocations": [],
  371.            "discounted_price_set": {
  372.                "shop_money": {
  373.                    "amount": "50.00",
  374.                    "currency_code": "INR"
  375.                },
  376.                "presentment_money": {
  377.                    "amount": "50.00",
  378.                    "currency_code": "INR"
  379.                }
  380.            },
  381.            "requested_fulfillment_service_id": null
  382.        }
  383.    ],
  384.    "subtotal_price": "543.00",
  385.    "taxes_included": true,
  386.    "billing_address": {
  387.        "zip": "110027",
  388.        "city": "Delhi",
  389.        "name": "Sagar Gujral",
  390.        "phone": "9999472271",
  391.        "company": null,
  392.        "country": "India",
  393.        "address1": "2/233 subash nagar new delhi",
  394.        "address2": null,
  395.        "latitude": 28.6355846,
  396.        "province": "Delhi",
  397.        "last_name": "Gujral",
  398.        "longitude": 77.1119868,
  399.        "first_name": "Sagar",
  400.        "country_code": "IN",
  401.        "province_code": "DL"
  402.    },
  403.    "customer_locale": "en",
  404.    "estimated_taxes": false,
  405.    "note_attributes": [
  406.        {
  407.            "name": "",
  408.            "value": ""
  409.        }
  410.    ],
  411.    "total_discounts": "0.00",
  412.    "total_price_set": {
  413.        "shop_money": {
  414.            "amount": "593.00",
  415.            "currency_code": "INR"
  416.        },
  417.        "presentment_money": {
  418.            "amount": "593.00",
  419.            "currency_code": "INR"
  420.        }
  421.    },
  422.    "total_price_usd": "7.20",
  423.    "financial_status": "done",
  424.    "landing_site_ref": null,
  425.    "order_status_url": "https://bellavitaluxury.co.in/56192565292/orders/d5f7a646d13c0b89c472d8b65bc57545/authenticate?key=726e5376d0ef8b607f4c5c5cebdaead8",
  426.    "shipping_address": {
  427.        "zip": "110027",
  428.        "city": "Delhi",
  429.        "name": "Sagar Gujral",
  430.        "phone": "9999472271",
  431.        "company": null,
  432.        "country": "India",
  433.        "address1": "2/233 subash nagar new delhi",
  434.        "address2": null,
  435.        "latitude": 28.6355846,
  436.        "province": "Delhi",
  437.        "last_name": "Gujral",
  438.        "longitude": 77.1119868,
  439.        "first_name": "Sagar",
  440.        "country_code": "IN",
  441.        "province_code": "DL"
  442.    },
  443.    "current_total_tax": "90.46",
  444.    "processing_method": "manual",
  445.    "source_identifier": null,
  446.    "total_outstanding": "593.00",
  447.    "fulfillment_status": "fulfilled",
  448.    "subtotal_price_set": {
  449.        "shop_money": {
  450.            "amount": "543.00",
  451.            "currency_code": "INR"
  452.        },
  453.        "presentment_money": {
  454.            "amount": "543.00",
  455.            "currency_code": "INR"
  456.        }
  457.    },
  458.    "total_tip_received": "0.00",
  459.    "current_total_price": "593.00",
  460.    "total_discounts_set": {
  461.        "shop_money": {
  462.            "amount": "0.00",
  463.            "currency_code": "INR"
  464.        },
  465.        "presentment_money": {
  466.            "amount": "0.00",
  467.            "currency_code": "INR"
  468.        }
  469.    },
  470.    "admin_graphql_api_id": "gid://shopify/Order/4439976804396",
  471.    "presentment_currency": "INR",
  472.    "current_total_tax_set": {
  473.        "shop_money": {
  474.            "amount": "90.46",
  475.            "currency_code": "INR"
  476.        },
  477.        "presentment_money": {
  478.            "amount": "90.46",
  479.            "currency_code": "INR"
  480.        }
  481.    },
  482.    "discount_applications": [],
  483.    "payment_gateway_names": [
  484.        "manual"
  485.    ],
  486.    "current_subtotal_price": "543.00",
  487.    "total_line_items_price": "543.00",
  488.    "buyer_accepts_marketing": true,
  489.    "current_total_discounts": "0.00",
  490.    "current_total_price_set": {
  491.        "shop_money": {
  492.            "amount": "593.00",
  493.            "currency_code": "INR"
  494.        },
  495.        "presentment_money": {
  496.            "amount": "593.00",
  497.            "currency_code": "INR"
  498.        }
  499.    },
  500.    "current_total_duties_set": null,
  501.    "total_shipping_price_set": {
  502.        "shop_money": {
  503.            "amount": "50.00",
  504.            "currency_code": "INR"
  505.        },
  506.        "presentment_money": {
  507.            "amount": "50.00",
  508.            "currency_code": "INR"
  509.        }
  510.    },
  511.    "original_total_duties_set": null,
  512.    "current_subtotal_price_set": {
  513.        "shop_money": {
  514.            "amount": "543.00",
  515.            "currency_code": "INR"
  516.        },
  517.        "presentment_money": {
  518.            "amount": "543.00",
  519.            "currency_code": "INR"
  520.        }
  521.    },
  522.    "total_line_items_price_set": {
  523.        "shop_money": {
  524.            "amount": "543.00",
  525.            "currency_code": "INR"
  526.        },
  527.        "presentment_money": {
  528.            "amount": "543.00",
  529.            "currency_code": "INR"
  530.        }
  531.    },
  532.    "current_total_discounts_set": {
  533.        "shop_money": {
  534.            "amount": "0.00",
  535.            "currency_code": "INR"
  536.        },
  537.        "presentment_money": {
  538.            "amount": "0.00",
  539.            "currency_code": "INR"
  540.        }
  541.    }
  542. }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement