When performing End of Day for the PB Shipping API - USPS carrier, the error "Bad Request" appears and the Manifest Scan Form is not generated. The diagnostics show the following errors:
"message": "Mismatch in partnerId for original transaction.",
"additionalInfo": "PackageId XXX, Mismatch in partnerId for original transaction."
"message": "Invalid parcelTrackingNumber in request.",
"additionalInfo": "PackageId XXX, Package not eligible for scanform."
Return Labels are included in the End of Day query, which causes it to fail to generate the manifest scan form.
The issue has been escalated. The current workaround is to process all shipments, perform End of Day, then process all return labels at a separate time. Note that End of Day is not required by the carrier.
UPDATED: June 15, 2021