{{baseUrl}}/posta_massiva/
POST {{baseUrl}}/posta_massiva/
Send a posta_massiva. 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>", "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":{"nome":"Mario","email":"john.doe@openapi.it","cognome":"Rossi","dug":"via","indirizzo":"Dante Alighieri","civico":"1","comune":"Roma","cap":"00100","provincia":"RM","nazione":"IT","intestazione_completa":"Mario Rossi"},"destinatari":{"nome":"Mario","email":"mario@openapi.com","cognome":"Rossi","dug":"via","indirizzo":"Morandi","civico":"6","comune":"Roma","cap":"00101","provincia":"RM","nazione":"IT","intestazione_completa":"Mario Rossi","id":"xxxxxxxe557d71a5b600ee17d","state":"NEW"},"documento":["Example document"],"opzioni":{"fronteretro":false,"colori":true,"autoconfirm":false},"prodotto":"posta_massiva","creation_timestamp":1687169678,"update_timestamp":1687169682,"username":"gcloud-tests@openapi.it","confirmed":false,"state":"CONFIRMED","documento_validato":{"pdf":"https://test.ws.ufficiopostale.com/Up/pdf/posta_massivaCw4wGmsHe9ddsD2RAB2ZyMdUm.pdf","jpg":"https://test.ws.ufficiopostale.com/Up/jpg/posta_massivaCw4wGmsHe9ddsD2RAB2ZyMdUm.jpg","filename":"posta_massivaCw4wGmsHe9ddsD2RAB2ZyMdUm.pdf","pagine":1,"size":6849,"pricing":{"totale":{"importo_totale":0.74},"dettaglio":[{"codice_servizio":"STAMPA","descrizione_servizio":"Costo Stampa","importo_unitario_totale":0.29,"importo_unitario_netto":0.23,"importo_unitario_iva":0.06,"quantita":1},{"codice_servizio":"spedizione","descrizione_servizio":"Spedizione","importo_unitario_totale":0.45,"importo_unitario_netto":0.45,"importo_unitario_iva":0,"quantita":1}]},"id":"xxxxxxxe557d71a5b600ee13d"}}],"success":true,"message":"","error":null}