Base path:
/paper-channel-private/v1/b2bThis is an internal API. It is not exposed publicly and requires network-level access to the private Paper Channel service.Send a prepare request
POST /paper-channel-private/v1/b2b/paper-deliveries-prepare/{requestId}
Submit a preparation request for paper correspondence. Paper Channel validates the request synchronously and either:
- Returns
204— the service has accepted the request and will asynchronously resolve the final address (potentially querying pn-national-registries). - Returns
200— if the samerequestIdwas already processed, returns the latest update event.
Path parameters
Unique identifier for this prepare request. Used to correlate the asynchronous callback with the original request.
- Minimum length: 5
- Maximum length: 100
Request body
Must match the
requestId path parameter.Example: ABCD-HILM-YKWX-202202-1_rec0_try1Notification IUN (Identificativo Univoco Notifica), required for audit purposes.Example:
ABCD-HILM-YKWX-202202-1Timestamp of the request in UTC (ISO 8601 date-time format).
Proposed postal product type.Allowed values:
AR— Raccomandata Andata e Ritorno890— Recapito a norma della legge 890/1982RS— Raccomandata Semplice (per Avviso di mancato Recapito)
Print type requested from the consolidator.Examples:
BN_FRONTE, BN_FRONTE_RETRORecipient fiscal code. Used to query ANPR for a registered address. Also passed to couriers for value-added services.
Recipient type:
PF (natural person) or PG (legal entity).SafeStorage URLs for the documents to attach to the paper correspondence. Used to count the number of pages to print.
Address to attempt delivery at. May be omitted if only a fiscal code is provided.
When present, indicates that this request is a follow-up attempt to the request identified by this value.
Address discovered during a previous attempt. Same structure as
receiverAddress.Date and time the notification was created, in UTC.Example:
2022-07-27T12:22:33.444ZSet to
true if the notification is part of the RADD (Rete di Accesso Dedicata al Domicilio) pilot.Identifier of the sending Public Administration.
Responses
| Status | Meaning |
|---|---|
200 | The requestId was already processed. Returns the latest PaperChannelUpdate event. |
204 | New request accepted. Paper Channel will asynchronously resolve the address and push a PaperChannelUpdate via SQS. |
400 | Syntactic validation error. |
409 | A request with the same requestId but different parameters was already submitted. |
200 response — PaperChannelUpdate
The prepare phase event, when the update relates to address resolution.
The send phase event, when the update relates to dispatch status. See the send request section for
SendEvent field details.Identifier of the client that generated the request, when available.
Asynchronous callback
After a204 response, Paper Channel pushes one or more PaperChannelUpdate objects to an SQS queue associated with the caller. Poll GET prepare to check the current state, or consume updates from SQS.
Retrieve prepare status
GET /paper-channel-private/v1/b2b/paper-deliveries-prepare/{requestId}
Poll the current status of a previously submitted prepare request. Returns the latest PrepareEvent for that request.
Path parameters
The identifier of the prepare request to retrieve.
- Minimum length: 5
- Maximum length: 100
Responses
| Status | Meaning |
|---|---|
200 | Returns the current PrepareEvent. |
404 | No prepare request found for the given requestId. |
200 response — PrepareEvent
The request identifier.
Current status:
PROGRESS— address resolution is still in progressOK— address resolved and validatedKO— address resolution failed
Detail code for the status.
Event timestamp with timezone (ISO 8601).
Failure reason when
statusCode is KO:D00— address not foundD01— invalid addressD02— address matches the first-attempt address
Resolved recipient address. Present only when
statusCode is OK.The effective product type to use for the send phase.
SafeStorage file keys that replace the original F24 URL.
Attachment categorisation result. See POST prepare response for full field details.
Send a send request
POST /paper-channel-private/v1/b2b/paper-deliveries-send/{requestId}
Dispatch a paper correspondence that was previously prepared. Paper Channel validates the request against the stored requestId, then synchronously calls External Channel. On success it returns the delivery cost in eurocents, the page count, and the envelope weight.
If you submit multiple requests with the same requestId, the service returns the previously calculated result.
Path parameters
Identifier of the send request. Must correspond to a completed prepare request.
- Minimum length: 5
- Maximum length: 100
Request body
Must match the
requestId path parameter.Example: ABCD-HILM-YKWX-202202-1_rec0_try1Notification IUN, required for audit purposes.
Timestamp of the request in UTC (ISO 8601).
Identifier of the PA that requested delivery. Used to authorise retrieval of original paper documents by public administrations.Example:
00414580183Postal product type for this send request.Allowed values:
AR— Raccomandata nazionale Andata e Ritorno890— Recapito a norma della legge 890/1982RS— Raccomandata nazionale SempliceRIS— Raccomandata internazionale SempliceRIR— Raccomandata internazionale Andata e Ritorno
Print type: e.g.
BN_FRONTE, BN_FRONTE_RETRO.Recipient fiscal code.
PF or PG.Address to deliver to. Use the address returned by the prepare phase.
Return address for the sender. Same structure as
receiverAddress.Address for the acknowledgement of receipt (AR) document, if applicable. Same structure as
receiverAddress.SafeStorage URLs for the documents to attach to the correspondence.
Identifier of the sending Public Administration.
Responses
| Status | Meaning |
|---|---|
200 | Delivery registered with External Channel. Returns cost and envelope details. |
400 | Syntactic validation error. |
404 | The requestId was not found, or the CAP/zone does not exist or has been decommissioned. |
409 | A send request with this requestId already exists and cannot be overwritten. |
422 | Cost changed since the prepare phase. Re-run the prepare phase. |
200 response — SendResponse
Delivery cost in eurocents.
Number of pages in the postal shipment.
Envelope weight in grams.
Asynchronous callbacks
After a successful send, Paper Channel pushesPaperChannelUpdate objects containing SendEvent entries to SQS as the shipment progresses through the postal network. Poll GET send to check the current state.
Retrieve send status
GET /paper-channel-private/v1/b2b/paper-deliveries-send/{requestId}
Poll the current delivery status for a previously submitted send request. Returns the latest SendEvent for that request.
Path parameters
The identifier of the send request to retrieve.
- Minimum length: 5
- Maximum length: 100
Responses
| Status | Meaning |
|---|---|
200 | Returns the current SendEvent. |
404 | No send request found for the given requestId. |
200 response — SendEvent
The request identifier.
Current status:
PROGRESS— shipment update in transitOK— delivery completed successfullyKO— delivery failed
Delivery status code. Mirrors External Channel codes plus internal Paper Channel codes (
PNXXX).Format: statusDetail - [product] - [statusCode] - statusDescriptionCommon values:CON080— [ALL] [PROGRESS] Stampato ed ImbustatoRECRN001C— [AR] [OK] Consegnato - Fascicolo ChiusoRECRN002C— [AR] [KO] Mancata consegna - Fascicolo ChiusoRECAG001C— [890] [OK] Consegnato - Fascicolo ChiusoRECRS001C— [RS] [OK] Consegnato - Fascicolo ChiusoRECRI003C— [RIR] [OK] Consegnato - Fascicolo ChiusoRECRSI003C— [RIS] [OK] Consegnato - Fascicolo Chiuso
Human-readable description of the delivery status.Example:
Distacco d'ufficio 23L - Fascicolo ChiusoEvent timestamp with timezone (ISO 8601).
Tracking code for traceable postal products.Example:
123456789abcMandatory when
statusCode is KO. Reason for failed delivery:M01— recipient not found at addressM02— recipient deceasedM03— recipient unknownM04— recipient relocatedM05— delivery refusedM06— inaccurate addressM07— address does not existM08— address insufficientF01— theftF02— lossF03— deterioration
Documents produced during the postal process.
An updated address discovered during the delivery attempt.
Timestamp of the original client request (ISO 8601).