{{baseUrl}}/prioritarie/

POST {{baseUrl}}/prioritarie/

Send a priority mail. 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 mail for a later confirmation with a PATCH request, while you do custom logic with the response. Check the IdRicevuta field in the recipient object if you need the tracking number

Request Body

{"opzioni"=>{"fronteretro"=>"<boolean>", "colori"=>"<boolean>", "autoconfirm"=>"<boolean>", "ricevuta"=>"<boolean>", "documento_validato_basicauth"=>{"username"=>"<string>", "password"=>"<string>"}, "callback_url"=>"<string>", "callback_field"=>"<string>", "headers"=>{"key"=>"<string>"}, "timestamp_invio"=>"<integer>"}, "destinatari"=>[{"cap"=>"<string>", "civico"=>"<string>", "cognome"=>"<string>", "comune"=>"<string>", "dug"=>"<string>", "indirizzo"=>"<string>", "nazione"=>"<string>", "nome"=>"<string>", "provincia"=>"<string>", "titolo"=>"<string>", "ragione_sociale"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "co"=>"<string>"}, {"cap"=>"<string>", "civico"=>"<string>", "cognome"=>"<string>", "comune"=>"<string>", "dug"=>"<string>", "indirizzo"=>"<string>", "nazione"=>"<string>", "nome"=>"<string>", "provincia"=>"<string>", "titolo"=>"<string>", "ragione_sociale"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "co"=>"<string>"}], "mittente"=>{"titolo"=>"<string>", "cap"=>"<string>", "comune"=>"<string>", "dug"=>"<string>", "indirizzo"=>"<string>", "nazione"=>"<string>", "nome"=>"<string>", "cognome"=>"<string>", "ragione_sociale"=>"<string>", "civico"=>"<string>", "provincia"=>"<string>", "email"=>"<string>"}, "documento"=>["<string>", "<string>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;data&quot;:[{&quot;mittente&quot;:{&quot;titolo&quot;:&quot;mr&quot;,&quot;nome&quot;:&quot;John&quot;,&quot;cognome&quot;:&quot;Doe&quot;,&quot;dug&quot;:&quot;Piazza&quot;,&quot;indirizzo&quot;:&quot;Dante Alighieri&quot;,&quot;civico&quot;:&quot;1&quot;,&quot;comune&quot;:&quot;roma&quot;,&quot;cap&quot;:&quot;00100&quot;,&quot;provincia&quot;:&quot;RM&quot;,&quot;nazione&quot;:&quot;IT&quot;,&quot;email&quot;:&quot;john.doe@openapi.it&quot;},&quot;destinatari&quot;:[{&quot;titolo&quot;:&quot;mr&quot;,&quot;nome&quot;:&quot;John&quot;,&quot;cognome&quot;:&quot;Doe&quot;,&quot;dug&quot;:&quot;Piazza&quot;,&quot;indirizzo&quot;:&quot;Dante Alighieri&quot;,&quot;civico&quot;:&quot;1&quot;,&quot;comune&quot;:&quot;roma&quot;,&quot;cap&quot;:&quot;00100&quot;,&quot;provincia&quot;:&quot;RM&quot;,&quot;nazione&quot;:&quot;IT&quot;,&quot;email&quot;:&quot;john.doe@openapi.it&quot;}],&quot;documento&quot;:[&quot;Example document&quot;],&quot;opzioni&quot;:{&quot;fronteretro&quot;:false,&quot;colori&quot;:false,&quot;autoconfirm&quot;:true,&quot;timestamp_invio&quot;:1627649810},&quot;prodotto&quot;:&quot;raccomandata&quot;,&quot;creation_timestamp&quot;:1627649809,&quot;update_timestamp&quot;:1627649810,&quot;username&quot;:&quot;john.doe@openapi.it&quot;,&quot;confirmed&quot;:true,&quot;state&quot;:&quot;CONFIRMED&quot;,&quot;documento_validato&quot;:{&quot;pdf&quot;:&quot;https://ws.ufficiopostale.com/Up/pdf/f7294e76871965ea206d560d77ff079e.pdf&quot;,&quot;jpg&quot;:&quot;https://ws.ufficiopostale.com/Up/jpg/f7294e76871965ea206d560d77ff079e.jpg&quot;,&quot;pagine&quot;:1,&quot;size&quot;:9350},&quot;pricing&quot;:{&quot;dettaglio&quot;:[{&quot;codice_servizio&quot;:&quot;IMBUST&quot;,&quot;descrizione_servizio&quot;:&quot;Imbustamento&quot;,&quot;percentuale_iva&quot;:0,&quot;quantita&quot;:2,&quot;importo_unitario_totale&quot;:0,&quot;importo_unitario_netto&quot;:0,&quot;importo_unitario_iva&quot;:0}],&quot;totale&quot;:{&quot;importo_totale_netto&quot;:8.6,&quot;importo_totale_iva&quot;:0,&quot;importo_totale&quot;:8.6}},&quot;lock&quot;:false,&quot;confirmed_timestamp&quot;:1627649810,&quot;id&quot;:&quot;6103f712dd2507415c5db6d0&quot;}],&quot;success&quot;:true,&quot;message&quot;:&quot;&quot;,&quot;error&quot;:null}