This API generates a single coversheet for a parcel, with support for Electronic Return Receipt (ERR) and other special services.
| format | string The file format of the coversheet. Default format is |
| size | string The size of the coversheet. Default size is |
| type required | string The type of the coversheet. |
| carrierAccountId required | string A unique identifier assigned to the specific carrier account. Its value can be referred from the response of |
| parcelType required | string Type of the parcel, such as Letter or Envelope. |
| serviceId required | string The unique identifier given to the carrier specific service, such as First Class Mail (FCM). It can be referred from response of |
required | Array of objects List of special services applied. |
required | object |
required | object |
required | object |
object | |
Array of objects Additional metadata that needs to be stored for this shipment can be added here. | |
object Contains additional reference fields that can be passed with an ERR request (single piece or batch). While USPS only accepts a single reference, these fields are used for internal tracking, exports, and reporting. |
The ERR coversheet has been successfully created.
Invalid request.
The request could not be authorized.
The request could not be completed due to an internal error.
{- "format": "PDF",
- "size": "6X9.5",
- "type": "COVERSHEET",
- "carrierAccountId": "JPZlE8DldKwx",
- "parcelType": "LGENV",
- "serviceId": "FCM",
- "specialServices": [
- {
- "specialServiceId": "Cert"
}, - {
- "specialServiceId": "ERR"
}
], - "fromAddress": {
- "name": "Ankush Monga",
- "addressLine1": "27 Waterview Dr",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "Shelton",
- "stateProvince": "CT",
- "postalCode": "06484-4361",
- "countryCode": "US",
- "phone": "203-555-1213",
- "company": "PB",
- "email": "testuser@gmail.com",
- "inductionPostalCode": "06905",
- "residential": true
}, - "parcel": {
- "weight": 0.1,
- "weightUnit": "OZ",
- "length": 1,
- "height": 1,
- "width": 0.1,
- "dimUnit": "IN"
}, - "toAddress": {
- "name": "test_user",
- "addressLine1": "27 Waterview Dr",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "Shelton",
- "stateProvince": "CT",
- "postalCode": "06484-4361",
- "countryCode": "US",
- "phone": "203-555-1213",
- "company": "PB",
- "email": "testuser@gmail.com",
- "residential": true
}, - "shipmentOptions": {
- "printCustomMessage": "thankyou",
- "addToManifest": true
}, - "metadata": [
- {
- "name": "costAccountName",
- "value": "cost account 123"
}
], - "shippingReferences": {
- "reference1": "reference1",
- "reference2": "reference2",
- "reference3": "reference3",
- "reference4": "reference4",
- "shipperReference": "Shipper123",
- "transportationReference": "TransRef2025",
- "shipperNotes": "Handle with care"
}
}{- "fromAddress": {
- "name": "Ankush Monga",
- "addressLine1": "27 Waterview Dr",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "Shelton",
- "stateProvince": "CT",
- "postalCode": "06484-4361",
- "countryCode": "US",
- "phone": "203-555-1213",
- "company": "PB",
- "email": "testuser@gmail.com",
- "inductionPostalCode": "06905",
- "residential": true
}, - "toAddress": {
- "name": "test_user",
- "addressLine1": "27 Waterview Dr",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "Shelton",
- "stateProvince": "CT",
- "postalCode": "06484-4361",
- "countryCode": "US",
- "phone": "203-555-1213",
- "company": "PB",
- "email": "testuser@gmail.com",
- "residential": true
}, - "labelLayout": [
- {
- "fileFormat": "PDF",
- "size": "6X9.5",
- "type": "COVERSHEET",
- "contentType": "URL",
}
], - "parcel": {
- "weight": 0.1,
- "weightUnit": "OZ",
- "length": 1,
- "height": 1,
- "width": 0.1,
- "dimUnit": "IN"
}, - "shipmentOptions": {
- "addToManifest": true,
- "printCustomMessage": "thankyou"
}, - "shipmentId": "670d1820222f6a010ab3152c",
- "parcelTrackingNumber": "9414809898643517885166",
- "rate": {
- "totalCarrierCharge": 8.97
}, - "correlationId": "65cc49aa8aeb46c1a77b1fc82a5ecba4"
}