{{baseUrl}}/raccomandate_smart/
POST {{baseUrl}}/raccomandate_smart/
Send a Raccomandata Smart. 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 it for a later confirmation with a PATCH request, while you do custom logic with the response.
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>", "ar"=>"<boolean>", "document_has_covers"=>"<boolean>"}, "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>"}, "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>"}], "documento"=>["<string>", "<string>"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"data":[{"mittente":{"ragione_sociale":"Openapi SRL","civico":"221","comune":"roma","dug":"via","indirizzo":"Filippo tommaso marinetti","cap":"00143","provincia":"RM","nazione":"IT","email":"l.paderi@openapi.it","intestazione_completa":"Mario Rossi"},"destinatari":{"nome":"Mario","cognome":"Rossi","dug":"via","indirizzo":"Dante Alighieri","civico":"6","comune":"Roma","cap":"00143","provincia":"RM","nazione":"Italia","intestazione_completa":"Mario Rossi","zona":"AM","id":"xxxxxxxe557d71a5b600ee17d","state":"NEW"},"documento":["https://www.soundczech.cz/temp/lorem-ipsum.pdf"],"opzioni":{"fronteretro":false,"colori":false,"ar":true,"autoconfirm":false,"callback_url":"https://webhook.site/65639a84-77cb-42f2-a621-394921770497"},"prodotto":"raccomandata_smart","creation_timestamp":1687169678,"update_timestamp":1687169682,"username":"gcloud-tests@openapi.it","confirmed":false,"state":"NEW","documento_validato":{"pdf":"https://test.ws.ufficiopostale.com/Up/pdf/raccomandata_smartu6pccgbnFNeRA69t7hvPDOKMa.pdf","jpg":"https://test.ws.ufficiopostale.com/Up/jpg/raccomandata_smartu6pccgbnFNeRA69t7hvPDOKMa.jpg","filename":"raccomandata_smartu6pccgbnFNeRA69t7hvPDOKMa.pdf","pagine":2,"size":49553,"pricing":{"totale":{"importo_totale":0.58},"dettaglio":[{"codice_servizio":"STAMPA","descrizione_servizio":"Costo Stampa","importo_unitario_totale":0.28,"importo_unitario_netto":0.22,"importo_unitario_iva":0.06,"quantita":1},{"codice_servizio":"spedizione","descrizione_servizio":"Spedizione","importo_unitario_totale":0.3,"importo_unitario_netto":0.3,"importo_unitario_iva":0,"quantita":1}]},"id":"xxxxxxxe557d71a5b600ee13d"}}],"success":true,"message":"","error":null}