Skip to main content

Get print2mail 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/print2mail-rates
query: PageCount=2&Color=Black_White&PrintOption=PrintTwoSide&ReturnEnvelope=false

Method
GET
URL
https://api-stage.dps.io/api/v1/postage/print2mail-rates?PageCount=2&Color=Black_White&PrintOption=PrintTwoSide&ReturnEnvelope=false
Request Headers
{
"Content-Type": "application/json",
"x-api-key": "<YOUR_API_KEY>",
}
Curl request
curl --location --request GET 'https://api-stage.dps.io/api/v1/postage/print2mail-rates?PageCount=2&Color=Black_White&PrintOption=PrintTwoSide&ReturnEnvelope=false' \
--header 'x-api-key: xxxxxxdfjbdjdfjdhfxxxxxxx'
Response Body
[
{
"StandardCost": 1.062,
"ProductionCost": 1.692,
"Total": 2.754,
"ServiceType": "FC",
"PageCount": 2,
"Color": "Color",
"COM": 1.5,
"PrintOption": "PrintOneSide",
"ReturnEnvelope": -1,
"Inclosure": false,
"DisplayName": "FIRST CLASS",
"Description": "Includes Certificate of Mailing"
},
...
]
Note

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