Solved

Shopify POS not displaying custom rates from Carrier Service

dionysio
Shopify Partner
1 0 0

Hello everyone,

 

we're developing an app which has a carrier service returning same day rates. The app works well in our web dev store, but once I tried the checkout flow in the Shopify POS, the rates are not being displayed. I can see in our server logs, we're getting called and we respond successfully. Are there any gotchas that we missed? Are there possibly some character limits?

 

Here's our sample response:

{
    "rates": [
        {
            "currency": "USD",
            "max_delivery_date": "2022-12-14 20:00:00 +0000",
            "min_delivery_date": "2022-12-14 17:00:00 +0000",
            "phone_required": true,
            "service_code": "auto_dispatch|863662501|9e6e9248-95c9-4e9b-a0f0-e6e5dd6cf429",
            "service_name": "1. Same Day (5 PM - 8 PM)",
            "total_price": 700.0
        },
        {
            "currency": "USD",
            "max_delivery_date": "2022-12-14 23:00:00 +0000",
            "min_delivery_date": "2022-12-14 20:00:00 +0000",
            "phone_required": true,
            "service_code": "auto_dispatch|863662501|c5e5a756-d840-4ae3-9089-b0d24b003353",
            "service_name": "2. Same Day (8 PM - 11 PM)",
            "total_price": 700.0
        }
    ]
}

  

I was testing this on Android Shopify POS app version 7.12.1 (build 30523)

Accepted Solution (1)
hates
Shopify Partner
7 1 4

This is an accepted solution.

Hi,

I solved this issue myself. It is causing from following parameter:

"phone_required": true,

 You must send "phone_required": false then everything works like a charm.

 

Best Regards.

View solution in original post

Replies 3 (3)

hates
Shopify Partner
7 1 4

Hi,

we have a same problem on IOS Buy sdk, is there any solution?

Liquidator3358
Explorer
44 1 15

Per the usual, not a single word on this from Shopify.  There are threads littered with similar postings and often times, they fall completely on deaf ears.  With shipping and logistics being such an integral part of eCommerce, and with brokers/carriers expanding their tech stack into easily accessible APIs, you would think Shopify would be all over this stuff.

hates
Shopify Partner
7 1 4

This is an accepted solution.

Hi,

I solved this issue myself. It is causing from following parameter:

"phone_required": true,

 You must send "phone_required": false then everything works like a charm.

 

Best Regards.