Base path:
/paper-channel-private/v2Note that this endpoint is on v2, not v1. The path is /paper-channel-private/v2/tenders/{tenderId}/cost/calculate.This is an internal API. It is not exposed publicly and requires network-level access to the private Paper Channel service.Calculate shipment cost
POST /paper-channel-private/v2/tenders/{tenderId}/cost/calculate
Submit a cost simulation request. Paper Channel validates the input parameters, looks up the rate applicable to the given tenderId, product, and geokey, applies the page-weight model, and returns the calculated cost in eurocents.
Path parameters
Identifier of the tender (contratto postale) whose rates to use for the calculation.
- Minimum length: 5
- Maximum length: 100
Request body
Postal product type.Allowed values:
AR— Raccomandata nazionale Andata e RitornoRS— Raccomandata nazionale Semplice890— Recapito a norma della legge 890/1982RIR— Raccomandata internazionale Andata e RitornoRIS— Raccomandata internazionale Semplice
ARDestination postal code (CAP) for domestic deliveries, or foreign country identifier for international deliveries.Example:
00184 (Rome, domestic), DE (Germany, international)Number of sides (faces) that make up the document. Used together with
isReversePrinter to calculate the number of physical sheets and the resulting envelope weight.Example: 5Set to
true if the document is printed double-sided (fronte-retro). When true, every two sides produce one printed sheet, halving the sheet count compared to single-sided printing.Weight of a single sheet in grams. Used to calculate the total envelope weight when a precise weight model is required.Example:
15Responses
| Status | Meaning |
|---|---|
200 | Calculation succeeded. Returns the cost in eurocents. |
400 | Syntactic validation error in the request body. |
404 | No tender found for the given tenderId. |
200 response — ShipmentCalculateResponse
Calculated shipment cost in eurocents.Example:
350 (= €3.50)How the cost is calculated
Paper Channel applies the following logic:- Resolves the rate table for the given
tenderId. - Selects the rate row matching
productandgeokey. - Calculates the number of printed sheets from
numSidesandisReversePrinter. - Applies the
pageWeight(or a default if omitted) to compute the envelope weight bracket. - Looks up the cost for that weight bracket in the rate table.
The cost returned is a simulation based on the current tender configuration. The actual cost charged during a send request may differ if the tender rates change between simulation and send.