Shopify Tracking Post inserting a tracking URL that is not Posted to Shopify

Highlighted
Shopify Partner
52 0 1

Hello,

 

I work for Ordoro which integrates with Shopify, and we have an issue. When we send tracking to Ordoro for amazon shipping orders, Ordoro sends those tracking numbers without a URL to link to for the tracking, because there is not tracking. For some reason Shopify is adding a link to these tracking numbers that we send to Shopify that links to DHL. Ordoro is NOT sending this information, so I was wondering if someone with technical knowledge could look into this issue

Ordoro Request to Shopify:


Request POST https://best-friends-by-sheri.myshopify.com/admin/api/2019-10/orders/2001865703481/fulfillments.json ==========
[2020-03-02T17:08:45.628621+00:00|81c75968-850f-43d3-9c63-26037a809f14|INFO|core|29] Headers: {'User-Agent': 'python-requests/2.18.4', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'X-Shopify-Access-Token': '80ddff72684300726fe4abc5d4c616be', 'Content-Type': 'application/json', 'Content-Length': '231'}
[2020-03-02T17:08:45.628712+00:00|81c75968-850f-43d3-9c63-26037a809f14|DEBUG|core|30] Body: {"fulfillment": {"line_items": [{"id": "4381682171961", "quantity": 1}], "tracking_company": "amazon_shipper", "tracking_number": "9261290986920100165813", "tracking_url": null, "notify_customer": true, "location_id": 12555485241}}
Shopify's response:

POST https://best-friends-by-sheri.myshopify.com/admin/api/2019-10/orders/2001865703481/fulfillments.json 201 (4.40 s) ==========
[2020-03-02T17:08:50.026634+00:00|81c75968-850f-43d3-9c63-26037a809f14|INFO|core|35] Headers: {'Date': 'Mon, 02 Mar 2020 17:08:50 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Set-Cookie': '__cfduid=da70c25ff3c7671656ca08e9cda1c2ad21583168925; expires=Wed, 01-Apr-20 17:08:45 GMT; path=/; domain=.myshopify.com; HttpOnly; SameSite=Lax', 'X-Sorting-Hat-PodId': '56', 'X-Sorting-Hat-ShopId': '12672499769', 'Referrer-Policy': 'origin-when-cross-origin', 'X-Frame-Options': 'DENY', 'X-ShopId': '12672499769', 'X-ShardId': '56', 'X-Stats-UserId': '', 'X-Stats-ApiClientId': '46122', 'X-Stats-ApiPermissionId': '97729577017', 'HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT': '12/80', 'X-Shopify-Shop-Api-Call-Limit': '12/80', 'X-Shopify-API-Version': '2019-10', 'Location': '/admin/orders/2001865703481/fulfillments/1881304498233', 'Strict-Transport-Security': 'max-age=7889238', 'X-Shopify-Stage': 'production', 'Content-Security-Policy': "default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.comhttps://cdn.shopify.cn https://checkout.shopifycs.com https://js-agent.newrelic.comhttps://bam.nr-data.net https://api.stripe.com https://mpsnare.iesnare.comhttps://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.comhttps://c.paypal.com https://maps.googleapis.com https://www.google-analytics.comhttps://v.shopify.com https://widget.intercom.io https://js.intercomcdn.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders%2Ffulfillments&source%5Bsection%5D=admin_api&source%5Buuid%5D=852e1a48-55a6-4d89-8a6f-2492be0735ee", 'X-Content-Type-Options': 'nosniff', 'X-Download-Options': 'noopen', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-XSS-Protection': '1; mode=block; report=/xss-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders%2Ffulfillments&source%5Bsection%5D=admin_api&source%5Buuid%5D=852e1a48-55a6-4d89-8a6f-2492be0735ee', 'X-Dc': 'gcp-us-central1,gcp-us-east1,gcp-us-east1', 'NEL': '{"report_to":"network-errors","max_age":2592000,"failure_fraction":0.01,"success_fraction":0.0001}, {"report_to":"network-errors","max_age":2592000,"failure_fraction":0.01,"success_fraction":0.0001}', 'Report-To': '{"group":"network-errors","max_age":2592000,"endpoints":[{"url":"https://monorail-edge.shopifycloud.com/v1/reports/nel/20190325/shopify"}]}, {"group":"network-errors","max_age":2592000,"endpoints":[{"url":"https://monorail-edge.shopifycloud.com/v1/reports/nel/20190325/shopify"}]}', 'X-Request-ID': '852e1a48-55a6-4d89-8a6f-2492be0735ee', 'CF-Cache-Status': 'DYNAMIC', 'Expect-CT': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', 'Alt-Svc': 'h3-27=":443"; ma=86400, h3-25=":443"; ma=86400, h3-24=":443"; ma=86400, h3-23=":443"; ma=86400', 'Server': 'cloudflare', 'CF-RAY': '56dcb8b969f7f5b9-SEA'}
[2020-03-02T17:08:50.026801+00:00|81c75968-850f-43d3-9c63-26037a809f14|DEBUG|core|36] Body: b'{"fulfillment":{"id":1881304498233,"order_id":2001865703481,"status":"success","created_at":"2020-03-02T09:08:46-08:00","service":"manual","updated_at":"2020-03-02T09:08:46-08:00","tracking_company":"amazon_shipper","shipment_status":null,"location_id":12555485241,"line_items":[{"id":4381682171961,"variant_id":11066758299705,"title":"Calming Shag Vegan Fur Donut Cuddler - 23\\"x23\\"","quantity":1,"sku":"DNT-SHG-TAU-2323-VP","variant_title":"Taupe","vendor":"Best Friends by Sheri","fulfillment_service":"manual","product_id":1211382759481,"requires_shipping":true,"taxable":true,"gift_card":false,"name":"Calming Shag Vegan Fur Donut Cuddler - 23\\"x23\\" - Taupe","variant_inventory_management":"shopify","properties":[],"product_exists":true,"fulfillable_quantity":0,"grams":907,"price":"34.95","total_discount":"0.00","fulfillment_status":"fulfilled","price_set":{"shop_money":{"amount":"34.95","currency_code":"USD"},"presentment_money":{"amount":"34.95","currency_code":"USD"}},"total_discount_set":{"shop_money":{"amount":"0.00","currency_code":"USD"},"presentment_money":{"amount":"0.00","currency_code":"USD"}},"discount_allocations":[{"amount":"1.75","discount_application_index":0,"amount_set":{"shop_money":{"amount":"1.75","currency_code":"USD"},"presentment_money":{"amount":"1.75","currency_code":"USD"}}}],"admin_graphql_api_id":"gid:\\/\\/shopify\\/LineItem\\/4381682171961","tax_lines":[]}],"tracking_number":"9261290986920100165813","tracking_numbers":["9261290986920100165813"],"tracking_url":"http:\\/\\/webtrack.dhlglobalmail.com\\/?trackingnumber=9261290986920100165813","tracking_urls":["http:\\/\\/webtrack.dhlglobalmail.com\\/?trackingnumber=9261290986920100165813"],"receipt":{},"name":"#B9293.1","admin_graphql_api_id":"gid:\\/\\/shopify\\/Fulfillment\\/1881304498233"}}'

http://apps.shopify.com/ordoro- Automated Dropshipping, Easy Shipping Labels (USPS, Fedex, UPS) and Powerful Inventory Management for Shopify stores
0 Likes
Highlighted
Shopify Expert
229 28 35

Hey,

 

this is because Shopify determines automatically the tracking company based on the tracking number. See API description in here.

 

Capture.PNG

We help you achieve your Goals! Visit us on: Webmefy.com
0 Likes
Highlighted
Shopify Partner
52 0 1

So why is it when I test this with our test account, that no URL link is applied?

 

****************************************** 'Shopify Request' ******************************************
[2020-03-10T15:00:53.708887+00:00|7d9292c0-074d-4bda-863e-197708ec6525|INFO|core|28] ========== Request POST https://bashirian-koch8708.myshopify.com/admin/api/2019-10/orders/2086929760358/fulfillments.json ==========
[2020-03-10T15:00:53.709009+00:00|7d9292c0-074d-4bda-863e-197708ec6525|INFO|core|29] Headers: {'User-Agent': 'python-requests/2.18.4', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'X-Shopify-Access-Token': '2075aee048657f7583bc3e0776679682', 'Content-Type': 'application/json', 'Content-Length': '217'}
[2020-03-10T15:00:53.709071+00:00|7d9292c0-074d-4bda-863e-197708ec6525|DEBUG|core|30] Body: {"fulfillment": {"line_items": [{"id": "4580737024102", "quantity": 1}], "tracking_company": "amazon_shipper", "tracking_number": "A1001231231", "tracking_url": null, "notify_customer": true, "location_id": 33150401}}

 

 

Response POST https://bashirian-koch8708.myshopify.com/admin/api/2019-10/orders/2086929760358/fulfillments.json 201 (1.07 s) ==========
[2020-03-10T15:00:54.784883+00:00|7d9292c0-074d-4bda-863e-197708ec6525|INFO|core|35] Headers: {'Date': 'Tue, 10 Mar 2020 15:00:54 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Set-Cookie': '__cfduid=dae850cfd6c8ef25ff7abe5fbe31409561583852453; expires=Thu, 09-Apr-20 15:00:53 GMT; path=/; domain=.myshopify.com; HttpOnly; SameSite=Lax', 'X-Sorting-Hat-PodId': '101', 'X-Sorting-Hat-ShopId': '1252542', 'Referrer-Policy': 'origin-when-cross-origin', 'X-Frame-Options': 'DENY', 'X-ShopId': '1252542', 'X-ShardId': '101', 'X-Stats-UserId': '', 'X-Stats-ApiClientId': '80492', 'X-Stats-ApiPermissionId': '180133265510', 'HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT': '1/40', 'X-Shopify-Shop-Api-Call-Limit': '1/40', 'X-Shopify-API-Version': '2019-10', 'Location': '/admin/orders/2086929760358/fulfillments/1977494044774', 'Strict-Transport-Security': 'max-age=7889238', 'X-Request-Id': '750ca83a-feb5-425d-b14a-a6dbd58829db', 'X-Shopify-Stage': 'production', 'Content-Security-Policy': "default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopify.cn https://checkout.shopifycs.com https://js-agent.newrelic.com https://bam.nr-data.net https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v.shopify.com https://widget.intercom.io https://js.intercomcdn.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders%2Ffulfillments&source%5Bsection%5D=admin_api&source%5Buuid%5D=750ca83a-feb5-425d-b14a-a6dbd58829db", 'X-Content-Type-Options': 'nosniff', 'X-Download-Options': 'noopen', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-XSS-Protection': '1; mode=block; report=/xss-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders%2Ffulfillments&source%5Bsection%5D=admin_api&source%5Buuid%5D=750ca83a-feb5-425d-b14a-a6dbd58829db', 'X-Dc': 'gcp-us-central1,gcp-us-central1', 'NEL': '{"report_to":"network-errors","max_age":2592000,"failure_fraction":0.01,"success_fraction":0.0001}', 'Report-To': '{"group":"network-errors","max_age":2592000,"endpoints":[{"url":"https://monorail-edge.shopifycloud.com/v1/reports/nel/20190325/shopify"}]}', 'CF-Cache-Status': 'DYNAMIC', 'Expect-CT': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', 'Alt-Svc': 'h3-27=":443"; ma=86400, h3-25=":443"; ma=86400, h3-24=":443"; ma=86400, h3-23=":443"; ma=86400', 'Server': 'cloudflare', 'CF-RAY': '571de86bece3f54d-SEA'}
[2020-03-10T15:00:54.784980+00:00|7d9292c0-074d-4bda-863e-197708ec6525|DEBUG|core|36] Body: b'{"fulfillment":{"id":1977494044774,"order_id":2086929760358,"status":"success","created_at":"2020-03-10T11:00:54-04:00","service":"manual","updated_at":"2020-03-10T11:00:54-04:00","tracking_company":"amazon_shipper","shipment_status":null,"location_id":33150401,"line_items":[{"id":4580737024102,"variant_id":1098792677,"title":"Dark Crystal DVD","quantity":1,"sku":"darkcrystal-dvd","variant_title":null,"vendor":"Shopify","fulfillment_service":"manual","product_id":418976477,"requires_shipping":true,"taxable":true,"gift_card":false,"name":"Dark Crystal DVD","variant_inventory_management":"shopify","properties":[],"product_exists":true,"fulfillable_quantity":0,"grams":1000,"price":"45.00","total_discount":"0.00","fulfillment_status":"fulfilled","price_set":{"shop_money":{"amount":"45.00","currency_code":"CAD"},"presentment_money":{"amount":"45.00","currency_code":"CAD"}},"total_discount_set":{"shop_money":{"amount":"0.00","currency_code":"CAD"},"presentment_money":{"amount":"0.00","currency_code":"CAD"}},"discount_allocations":[],"admin_graphql_api_id":"gid:\\/\\/shopify\\/LineItem\\/4580737024102","tax_lines":[]}],"tracking_number":"A1001231231","tracking_numbers":["A1001231231"],"tracking_url":null,"tracking_urls":[],"receipt":{},"name":"#2158.1","admin_graphql_api_id":"gid:\\/\\/shopify\\/Fulfillment\\/1977494044774"}}'

 

http://apps.shopify.com/ordoro- Automated Dropshipping, Easy Shipping Labels (USPS, Fedex, UPS) and Powerful Inventory Management for Shopify stores
0 Likes
Highlighted
Shopify Expert
229 28 35

The tracking number used on the test env is a different one, so Shopify cannot sort it as a DHL one... If you try with the same tracking number, then you should see the same behaviour.

We help you achieve your Goals! Visit us on: Webmefy.com
0 Likes