Postmates integration with Shopify Shipping/Carrier services

两盒软妹~` 提交于 2019-12-08 14:50:28

The Shopify API's carrier service resource (http://docs.shopify.com/api/carrierservice) is indeed the solution you're looking for.

Whenever a customer of your Shopify store is placing an order during checkout, after he has entered his billing & shipping address, Shopify can send a rate request to the carrier service you have registered. This post request contains all data about the items in cart and the customer.

Your carrier service app needs to accept this POST request, calculate the corresponding shipping rates - in your case by yet another API call to the Postmates API - and then return a JSON response in the format that Shopify defines in the docs. If all goes well, the shipping rate(s) your app has returned will then be shown in the checkout.

You can code your app such that for the cities that Postmates doesn't support, your carrier service will return no rates.

We've built such an integration with Shippo (https://apps.shopify.com/shippo), supporting many other carriers. Let me know if you need further help.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!