USPS / api-examples

87 stars 19 forks source link

Labels api example requests don't work. #9

Open MangaOtaku opened 1 year ago

MangaOtaku commented 1 year ago

The current curl examples do not work for the labels/v1/return-label requests. The responses are 400 - Missing Required Fields.

Could you update them for whatever changed, or fix the api to actually return a useful error message?

curl --location --request POST 'https://api-cat.usps.com/labels/v1/return-label' --header 'accept: multipart/mixed' --header 'authorization: Bearer xxxxxxxxxxxx' --header 'Content-Type: application/json' --data-binary '@/path/to/request.json'