Describe the bug
When posting to https://api-cat.usps.com/labels/v3/label, the streetAddress and secondaryAddress fields in both the toAddress and fromAddress fields get swapped in the response. The label also reflects this swap. You can see this behavior in the example request: domesticlabel-v3-request.json
View the response and see that the streetAddress and secondaryAddress are swapped
Expected behavior
A scrubbed version of the streetAddress is returned in the streetAddress field as well as the secondaryAddress.
Additional context
The documentation specifies that the labelMetadata/labelAddress/streetAddress field is required, however, if no secondaryAddress was provided, streetAddress is not returned, only secondaryAddress with the data from streetAddress
Describe the bug When posting to https://api-cat.usps.com/labels/v3/label, the
streetAddress
andsecondaryAddress
fields in both thetoAddress
andfromAddress
fields get swapped in the response. The label also reflects this swap. You can see this behavior in the example request: domesticlabel-v3-request.jsonand response: domesticlabel-v3-response.json
To Reproduce Steps to reproduce the behavior:
domesticlable-v3-request.json
>streetAddress
andsecondaryAddress
are swappedExpected behavior A scrubbed version of the streetAddress is returned in the streetAddress field as well as the secondaryAddress.
Additional context The documentation specifies that the
labelMetadata/labelAddress/streetAddress
field is required, however, if nosecondaryAddress
was provided,streetAddress
is not returned, onlysecondaryAddress
with the data fromstreetAddress