Creating a Private App for shipping rate estimation

Solved
mirakyanmartin
Tourist
6 2 0

Hey, app devs!

We are trying to create a private app that would connect to our custom backend to estimate shipping rates.

For that we have

  • Created a Private App and called it "Shipment Integration"

  • Gave it the "Read and modify shipping" permissions under "Admin API Permissions"

Yet, afterward, we cannot find our app in the "Add rate" section (Settings -> Shipping and delivery -> Shipping -> Manage rates -> Add rate -> Use carrier or app to calculate rates -> Select the "Shipment Integration" app we created). The "Shipment Integration" app does not show up in the dropdown.

3210e2ef-8bea-43d3-82b4-3c6f0281436b.jpg

Am I missing something or should I do something with the app itself before adding it in "Add rate"?

 

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
310 42 53

Hey @mirakyanmartin 

This is what you are looking for: https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/carrierservice

Kevin_A | 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
mirakyanmartin
Tourist
6 2 0

This is an accepted solution.

Eventually, I found what I was missing.

You need to first create a "Carrier service" through a POST request and only afterward it will be displayed in the dropdown.

 

A POST request to /carrier_services.json

{
  "carrier_service": {
    "name": "Shipping Rate Provider",
    "callback_url": "....",
    "service_discovery": true,
    "carrier_service_type": "api",
    "format": "json",
    "active": true
  }
}

 

0 Likes