goshippo / shippo-node-client

Shipping API Node.js library (USPS, FedEx, UPS and more)
https://goshippo.com/docs
MIT License
136 stars 54 forks source link

[Feature Request] Get parcel templates #73

Closed khacminh closed 2 years ago

khacminh commented 2 years ago

Currently, I cannot get the parcel templates created on my account. A workaround is I have to store them locally and update the template list manually. There is an issue reported on php library since 2016 (and closed). Please put this feature back to live

https://github.com/goshippo/shippo-php-client/issues/28

jfriedr commented 2 years ago

@khacminh this was just recently added.

https://goshippo.com/docs/reference#user-parcel-templates

khacminh commented 2 years ago

Hi @jfriedr

Thank you for your update.

I see that there are 3 redundant fields as image below:

image
jfriedr commented 2 years ago

@khacminh Is it redundant? If the user doesn't have the details saved in their original request then where else would it be displayed? Are you saying it would be in the package details in a rate/shipment request? If I'm missing something please let me know.

khacminh commented 2 years ago

@jfriedr

In the API document:

In the real response payload, I see that besides the provided fields, these fields were added without being mentioned in the document.

image