UPS-API / api-documentation

MIT License
39 stars 19 forks source link

How does the API want the percentage sign encoded in payload? #144

Open nightcoding2021 opened 2 weeks ago

nightcoding2021 commented 2 weeks ago

I cannot work out how the percentage sign should be encoded for this API. This would be present, for example, in product names when populating customs documentation.

If the percentage sign % is passed as that in the payload, the API generates a misleading error stating authentication failed.

I've tried %25 but that isn't decoded when processed on the API.

To save further guessing, please can someone advise how they solved this?

UPSRahul commented 1 week ago

Hi, thank you for your comment. Can you please specify which API you are using?

nightcoding2021 commented 1 week ago

Shipping API

I'm trying to populate Description field in the International Forms. The entire API call errors out if a percentage sign is included.