I have created a shipping service using shopify's carrier service API. I am getting rates on the checkout pages. But for some of the case, rates are not appearing. I am unable to to track why its happening. How can i access the error logs generated by shopify while calling my rates endpoint. How can i test this endpoint?
How do you know a rate not showing is not your error? If you can generate a checkout where the rate you generate is legit and returned, but then not displayed by Shopify, you've stumbled across something alright, but otherwise, are you sure you're not:
In my experience with that API, almost all complaints of no rates are due to those. The other problems were due to misconfigured servers.
Yes, I am using PHP library to register carrier service with the shopify store. I am using this library. and the code for the registering the carrier service is as follow.
$carrier_service = $shopify('POST /admin/carrier_services.json', array(), array
'carrier_service' => array
"name" => $service_name,
"callback_url" => $clburl,
"format" => "json",
"service_discovery" => "true"
I hope this helps you. If not, Make sure that the scope of your app are proper i.e it includes registring carrier service or the store on which you are trying to register the service has carrier service enabled. Check shopify plans for this.
Can you please help me out .I have to change the order payment status through ajax . In frontend i have create a from where i have inserted order id, status and i have to update that in back end order section with changed status and can you please help me how to work with php in shopify .
Please reply as ASAP .