Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Carrier Service Max length

Carrier Service Max length

Sudhendra
Shopify Partner
1 0 0

Hello All,

What is the maximum limit of the description field of Callback URL response: Printing sample callback url response below:

{
   "rates": [
       {
           "service_name": "canadapost-overnight",
           "service_code": "ON",
           "total_price": "1295",
           "description": "This is the fastest option by far",
           "currency": "CAD",
           "min_delivery_date": "2013-04-12 14:48:45 -0400",
           "max_delivery_date": "2013-04-12 14:48:45 -0400"
       },
       {
           "service_name": "fedex-2dayground",
           "service_code": "2D",
           "total_price": "2934",
           "currency": "USD",
           "min_delivery_date": "2013-04-12 14:48:45 -0400",
           "max_delivery_date": "2013-04-12 14:48:45 -0400"
       },
       {
           "service_name": "fedex-priorityovernight",
           "service_code": "1D",
           "total_price": "3587",
           "currency": "USD",
           "min_delivery_date": "2013-04-12 14:48:45 -0400",
           "max_delivery_date": "2013-04-12 14:48:45 -0400"
       }
   ]
}
                    

 

Replies 2 (2)

HunkyBill
Shopify Partner
4853 60 571

When you did tests, what limit did you run into? Since the description is shown to customers on the store, anything > 256 characters would likely be considered too much, but it could in fact be much less. How much did you manage to cram in before it bombed?

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
joose
Shopify Partner
26 1 12

What are the max sizes for those fields? https://shopify.dev/api/admin-rest/2021-10/resources/carrierservice#top does not specify the field max sizes.