{{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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"data":[{"mittente":{"titolo":"mr","nome":"John","cognome":"Doe","dug":"Piazza","indirizzo":"Dante Alighieri","civico":"1","comune":"roma","cap":"00100","provincia":"RM","nazione":"IT","email":"john.doe@openapi.it"},"destinatari":[{"titolo":"mr","nome":"John","cognome":"Doe","dug":"Piazza","indirizzo":"Dante Alighieri","civico":"1","comune":"roma","cap":"00100","provincia":"RM","nazione":"IT","email":"john.doe@openapi.it"}],"documento":["Example document"],"opzioni":{"fronteretro":false,"colori":false,"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","jpg":"https://ws.ufficiopostale.com/Up/jpg/f7294e76871965ea206d560d77ff079e.jpg","pagine":1,"size":9350},"pricing":{"dettaglio":[{"codice_servizio":"IMBUST","descrizione_servizio":"Imbustamento","percentuale_iva":0,"quantita":2,"importo_unitario_totale":0,"importo_unitario_netto":0,"importo_unitario_iva":0}],"totale":{"importo_totale_netto":8.6,"importo_totale_iva":0,"importo_totale":8.6}},"lock":false,"confirmed_timestamp":1627649810,"id":"6103f712dd2507415c5db6d0"}],"success":true,"message":"","error":null}