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 562

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! [email protected] 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.