Skip to main content

Get ePostage rates

In this section, we will learn about how you can get the list of pricing for a job, below api will return all the pricing with respect to each ServiceType like FC, ERR, ERRSig, PMAIL and PRIL.

URL Config
Method: POST
Endpoint: https://api-stage.dps.io/api
APIVersion: v1
route: postage/ePostage-rates
Method
POST
URL
https://api-stage.dps.io/api/v1/postage/ePostage-rates
Request Headers
{
"Content-Type": "application/json",
"x-api-key": "<YOUR_API_KEY>",
}
Curl request
curl --location --request POST 'https://api-stage.dps.io/api/v1/postage/ePostage-rates' \
--header 'x-api-key: xxxxxxdfjbdjdfjdhfxxxxxxx'
--header 'Content-Type: application/json' \

--data-raw '{"DestinationZip": "93950",
"OriginZip": "93950",
"Weight": "10",
"PackageType": "USPS FLAT RATE BOX"
}'

or



--data-raw '{"DestinationZip": "93950",
"OriginZip": "93950",
"PackageType": "BOX OR RIGID PACKAGING",
"Weight": 18,
"Width": "18",
"Length": "18",
"Height": "4"
}'
Response Body
[
{
"Zone": "1",
"ServiceCode": "PMAIL",
"DisplayName": {
"name": "PRIORITY MAIL",
"info": "Includes Certificate of Mailing, USPS ( Proof of Delivery)"
},
"MailingService": "Priority Mail<sup>\\u00ae</sup>",
"CommercialRate": <CommercialRate>,
"RegularPrice": <RegularPrice>,
"Title": "Priority Mail Cubic",
"SpecialServices": [

],
"Container": "VARIABLE",
"DPSPrice": "<DPSPrice>",
"SpecialServiceTitle": "Free Tracking \\u2022 $100 insurance included",
"DeliveryEstimate": {
"MailClass": "2",
"CommitmentName": "1-Day",
"CommitmentTime": null,
"CommitmentSeq": "C0100",
"Location": {
"FacType": "POST OFFICE",
"Street": "680 LIGHTHOUSE AVE",
"City": "PACIFIC GROVE",
"State": "CA",
"ZIP": "93950",
"IsGuaranteed": "2",
"ScheduleDeliveryDate": "2023-11-30",
"CutOffTime": "1630"
},
"EstimateArrivalDate": "2023-11-29"
}
},
]
Note

ServiceCode the value of ServiceCode you need to pass to job API while creating a job as "PostageType"