Logo
Openapi.it Public API Documentation

{{baseUrl}}/raccomandate/

POST {{baseUrl}}/raccomandate/

Send a Raccomandata. You should provide information about the sender and the receiver(s) in the post body. Additionally, the autoconfirm parameter can be set to false to save the Raccomandata for a later confirmation with a PATCH request, while you do custom logic with the response. Check the NumeroRaccomandata field in the recipient object if you need the tracking number

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status Created

{ "data": [ { "mittente": { "titolo": "mr", "nome": "Mario", "cognome": "Rossi", "dug": "Via", "indirizzo": "Dante Alighieri", "civico": "1", "comune": "Roma", "cap": "00100", "provincia": "RM", "nazione": "IT", "email": "john.doe@openapi.it" }, "destinatari": [ { "nome": "Mario", "cognome": "Rossi", "co": "OPENAPI SRL", "dug": "via", "indirizzo": "Dante Alighieri", "civico": "6", "comune": "Roma", "cap": "00101", "provincia": "RE", "nazione": "IT", "id": "6103f711dd2507415c5db6ce", "state": "NEW" }, { "nome": "Mario", "cognome": "Rossi", "co": "OPENAPI SRL", "dug": "piazza", "indirizzo": "San Giovanni", "civico": "6", "comune": "roma", "cap": "00100", "provincia": "RM", "nazione": "IT", "id": "6103f711dd2507415c5db6cf", "state": "NEW" } ], "documento": [ "Example document" ], "opzioni": { "fronteretro": false, "colori": false, "ar": { "titolo": "mr", "nome": "Mario", "cognome": "Rossi", "dug": "Via", "indirizzo": "Dante Alighieri", "civico": "1", "comune": "Roma", "cap": "00100", "provincia": "RM", "nazione": "IT", "email": "john.doe@openapi.it" }, "autoconfirm": true, "timestamp_invio": 1627649810 }, "prodotto": "raccomandata", "creation_timestamp": 1627649809, "update_timestamp": 1627649810, "username": "john.doe@openapi.it", "confirmed": true, "state": "CONFIRMED", "documento_validato": { "pdf": "https://ws.ufficiopostale.com/Up/pdf/f7294e76871965ea206d560d77ff079e.pdf", "jp
Curl
curl -X POST 'baseUrl/raccomandate/' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"opzioni":{"fronteretro":"\u003cboolean\u003e","colori":"\u003cboolean\u003e","autoconfirm":"\u003cboolean\u003e","ricevuta":"\u003cboolean\u003e","documento_validato_basicauth":{"username":"\u003cstring\u003e","password":"\u003cstring\u003e"},"callback_url":"\u003cstring\u003e","callback_field":"\u003cstring\u003e","headers":{"key":"\u003cstring\u003e"},"timestamp_invio":"\u003cinteger\u003e","ar":"\u003cboolean\u003e"},"mittente":{"titolo":"\u003cstring\u003e","cap":"\u003cstring\u003e","comune":"\u003cstring\u003e","dug":"\u003cstring\u003e","indirizzo":"\u003cstring\u003e","nazione":"\u003cstring\u003e","nome":"\u003cstring\u003e","cognome":"\u003cstring\u003e","ragione_sociale":"\u003cstring\u003e","civico":"\u003cstring\u003e","provincia":"\u003cstring\u003e","email":"\u003cstring\u003e"},"destinatari":[{"cap":"\u003cstring\u003e","civico":"\u003cstring\u003e","cognome":"\u003cstring\u003e","comune":"\u003cstring\u003e","dug":"\u003cstring\u003e","indirizzo":"\u003cstring\u003e","nazione":"\u003cstring\u003e","nome":"\u003cstring\u003e","provincia":"\u003cstring\u003e","titolo":"\u003cstring\u003e","ragione_sociale":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"co":"\u003cstring\u003e"},{"cap":"\u003cstring\u003e","civico":"\u003cstring\u003e","cognome":"\u003cstring\u003e","comune":"\u003cstring\u003e","dug":"\u003cstring\u003e","indirizzo":"\u003cstring\u003e","nazione":"\u003cstring\u003e","nome":"\u003cstring\u003e","provincia":"\u003cstring\u003e","titolo":"\u003cstring\u003e","ragione_sociale":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"co":"\u003cstring\u003e"}],"documento":["\u003cstring\u003e","\u003cstring\u003e"]}'

ENDPOINTS