Covers all questions related to inventory management, order fulfillment, and shipping.
Our sandbox store is testing a custom carrier that was added through a callback URL. Shopify is able to retrieve the service names of the rates:
However it does not show the rates on the checkout screen, only giving me the backup rates instead:
The rates that are being retrieved are static test rates as of now, could that be the issue?
Hey @Phoenix4 - thanks for getting in touch. We may need a bit more information to dig into this further, but the first thing I would suggest if your app is set up correctly to receive the API calls from us at the callback URL is to check what rates are being sent back. Your app should be sending a callback response that looks something like this:
{
"rates": [ {
"service_name": "Bringg",
"total_price": 1000,
"description": "Bringg shipping rate"
}
]
}
If the info being sent to Shopify is correct, no worries. The next thing I'd take a look at would be the server-side settings for your app. I did some digging and found this thread here from another developer who encountered a similar issue and just needed to make some DNS adjustments. I don't think this is what's happening here if you are receiving the callbacks from Shopify, but it's good to check if you haven't already.
This is just some basic troubleshooting, but I have seen it come up before, If you've recently made changes to the callback server (adding new rates, etc.), try clearing the cache in your web browser or using an incognito/private browsing mode for testing. Sometimes it can just be the browser's cache that can cause the rates to display incorrectly. It's pretty rare, but I did want to mention that as a potential solution.
If you've verified all these steps and you're still facing issues, just let us know. If you can provide the full callback body (including headers, excluding any authentication/API password info, if possible) for the API call that should be sending the correct rates to Shopify, that would be helpful for further troubleshooting.
Hope this helps - feel free to reach back out here and we can definitely help out further if need be.
Al | Shopify Developer Support
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hey, thanks for replying.
So our app should be sending a callback response that looks like this:
{"rates":[{"service_name":"test overnight0","service_code":"test service code0","total_price":"3.50","description":"test description0","currency":"USD","min_delivery_date":"2023-04-13","max_delivery_date":"2023-04-15"},{"service_name":"test overnight1","service_code":"test service code1","total_price":"3.50","description":"test description1","currency":"USD","min_delivery_date":"2023-04-13","max_delivery_date":"2023-04-15"}]}
I tried your other troubleshooting steps of logging in incognito mode and checking the DNS but I still have this issue.