How a get a shop's package size setting through graphql API?

New Member
2 0 0

Hi,

I'm building a embed APP for a carrier, on the setting, the shop can set up package size so we can choose it when printing a label, but how can we get it through graphql API?

I found there is a object "BoxDimensions", is it something we can use, I can't find any resource which  contain this object.

 

thanks,

Pengyi

0 Likes
Shopify Staff
Shopify Staff
1028 68 135

Hey there, 

 

Resources such as this one are documented for when someone needs to pass it to us in each case that I've seen, though admittedly I'm not sure of the context in which someone would use BoxDimensions off-hand. Unfortunately though, it isn't something that can be queried directly. 

 

I'm not sure what your final plan is for your application, but it may be worthwhile to consider having your users provide their own package dimensions to you instead.

1 Like
New Member
2 0 0

Hi Josh,

Thank you for the reply!

Customer can add package size on Setting->Shipping->Packages, so when they print a label, they just need choose it.

It's fine if we can't use it through APIs or any other ways, it's easy to add a similar feature, it's just not a good user experience.

 

Pengyi

 

 

0 Likes