Shopify Custom shipping api not sending data to callback url

Marvin1
Shopify Partner
5 0 0

HI There
We created a custom shipping private app using this api request https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/carrierservice ........its created successfully and available in admin panel as well. (Check Attached screenshot)

And here is api response from shopify which proves that custom shipping service is created successfully
{
"id": 33121468490,
"name": "Vanna Carrier",
"active": true,
"service_discovery": true,
"carrier_service_type": "api",
"admin_graphql_api_id": "gid:\/\/shopify\/DeliveryCarrierService\/33121468490",
"format": "json",
"callback_url": "http:\/\/madwine.com\/workscripts\/gso.php"
}

But problem is while checking out from frontend it never calls this callback url that we supplied while creating this carrier service http://madwine.com/workscripts/gso.php we do have logging enabled on this url so anything that comes logs but it seems like request from shopify never comes to our callback url

 

Response from our callback url 

{"rates":[{"service_name":"Endertech Overnight","description":"Service insurance included","service_code":"ETON","total_price":"000","currency":"USD","min_delivery_date":"2020-08-28 11:34:01 +0000","max_delivery_date":"2020-08-29 11:34:01 +0000"},{"service_name":"Endertech Regular","description":"Service insurance includ","service_code":"ETREG","total_price":"000","currency":"USD","min_delivery_date":"2020-08-30 11:34:01 +0000","max_delivery_date":"2020-09-03 11:34:01 +0000"}]}

 

 

 

Screen Shot 2020-08-27 at 5.45.49 PM.png

0 Likes
_JB
Shopify Staff
Shopify Staff
750 86 163

Hey @Marvin1,

If you haven't already, double check the address that's being used to test, and make sure the products in your cart are assigned to the shipping zone with your app rates. If you're still seeing an issue, please  provide a checkout id where you've seen the issue previously, or a shop id from a shop where this issue is present. I can use that to test further and hopefully spot the issue.

JB | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me 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

0 Likes