This operation generates rate Shop for a specified shipment without generating the labels.
object (fromAddressV2) The complete address of the Sender. Read: How to create Defaults.
The Request Body → Default ID → Location ID
Note: | |
required | object (toAddressV2) The complete address of the Recipient or Department (in case if the address is not pointed to any individual recipient). |
required | object (parcelV2) The details of the Parcel. |
object (SpecialService) | |
| parcelType required | string Parcel type for a single-parcel request. |
| rateShopBy required | string RateShop, which is attached to an Enterprise or Location, is done through four approaches: by Carrier, by RateGroup, by RuleSet and by ShipViaCode. |
object Specifies the carrier and service configuration used for rate retrieval in Rate Shipment V2 This object enables the following use cases:
| |
object There are two options of delivery: deliverBy and useBestNextDate, where customer can schedule the delivery date in deliverBy. |
Rate Shop has been generated successfully.
Invalid request.
The request could not be authorized.
The request could not be completed due to an internal error.
{- "fromAddress": {
- "name": "Sender Name",
- "addressLine1": "1600 Amphitheatre Parkway",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "company": "PB",
- "email": "testuser@gmail.com",
- "phone": "6502530000",
- "cityTown": "Mountain View",
- "stateProvince": "CA",
- "postalCode": "94043",
- "inductionPostalCode": "06905",
- "countryCode": "US",
- "residential": true
}, - "toAddress": {
- "name": "Recipient Name",
- "addressLine1": "350 Fifth Avenue",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "New York",
- "stateProvince": "NY",
- "postalCode": "10118",
- "countryCode": "US",
- "company": "PB",
- "phone": "2127363100",
- "email": "recipient@gmail.com",
- "residential": true,
- "isPOBox": true
}, - "parcel": {
- "length": 2,
- "width": 1,
- "height": 1,
- "dimUnit": "IN",
- "weightUnit": "OZ",
- "weight": 2,
- "packageValue": 2
}, - "specialServices": {
- "inputParameters": [
- {
- "name": "INPUT_VALUE",
- "value": "100"
}
], - "specialserviceId": "Ins"
}, - "parcelType": "PKG",
- "rateShopBy": "carrier",
- "byCarrier": {
- "carrierAccountId": "JjjbmYyAz9B3",
- "carrier": "Fedex",
- "service": "3DA"
}, - "deliveryOption": {
- "deliverBy": "2024-03-20",
- "useBestNextDate": false
}
}{- "parcel": {
- "length": 2,
- "height": 1,
- "width": 1,
- "dimUnit": "IN",
- "weightUnit": "OZ",
- "weight": 2,
- "packageValue": 2
}, - "rate": [
- {
- "baseCharge": 41.65,
- "carrier": "usps",
- "carrierAccount": "vpjoz235J1Wp",
- "deliveryCommitment": {
- "additionalDetails": "Tue, Aug 19 by 6:00 PM",
- "estimatedDeliveryDateTime": "2025-08-19 18:00:00.000",
- "guarantee": "FULL",
- "maxEstimatedNumberOfDays": "1",
- "minEstimatedNumberOfDays": "1"
}, - "parcelType": "PKG",
- "rateTypeId": "CONTRACT_RATES",
- "serviceId": "EM",
- "totalCarrierCharge": 41.65,
- "destinationZone": "8",
- "isHazmat": true
}, - {
- "baseCharge": 47.8,
- "carrier": "usps",
- "carrierAccount": "vpjoz235J1Wp",
- "deliveryCommitment": {
- "additionalDetails": "Tue, Aug 19 by 6:00 PM",
- "estimatedDeliveryDateTime": "2025-08-19 18:00:00.000",
- "guarantee": "FULL",
- "maxEstimatedNumberOfDays": "1",
- "minEstimatedNumberOfDays": "1"
}, - "parcelType": "PKG",
- "rateTypeId": "RETAIL",
- "serviceId": "EM",
- "totalCarrierCharge": 47.8,
- "destinationZone": "8",
- "isHazmat": true
}
], - "fromAddress": {
- "name": "Sender Name",
- "addressLine1": "1600 Amphitheatre Parkway",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "company": "PB",
- "email": "testuser@gmail.com",
- "phone": "6502530000",
- "cityTown": "Mountain View",
- "stateProvince": "CA",
- "postalCode": "94043",
- "inductionPostalCode": "06905",
- "countryCode": "US",
- "residential": true
}, - "toAddress": {
- "name": "Recipient Name",
- "addressLine1": "350 Fifth Avenue",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "New York",
- "stateProvince": "NY",
- "postalCode": "10118",
- "countryCode": "US",
- "company": "PB",
- "phone": "332 555-1212",
- "email": "recipient@gmail.com",
- "residential": true,
- "isPOBox": true
}, - "shipmentOptions": { },
- "references": { }
}