Logo
Openapi.it Public API Documentation

{{baseUrl}}/pec/:id/trasformazione

PATCH {{baseUrl}}/pec/:id/trasformazione

This method allows you to change the type of certified email. Only upgrades are allowed, for example from a STANDARD you can switch to a SILVER or GOLD one. Action not allowed for these two types of boxes: DOMICILIODIGITALE, PECMASSIVA.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

{ "data": { "casella_pec": "yourpec@testcert.legalmail.it", "tipo_casella": "GOLD", "tipo_cliente": "PV", "sottotipo_cliente": "", "sottotipo_cliente_altro": "", "nome_richiedente": "mario", "cognome_richiedente": "rossi", "email": "mail@domain.com", "telefono": "0548798569", "codice_fiscale_richiedente": "RSSXXXXXXXX56E", "data_nascita_richiedente": "11/04/1982", "sesso_richiedente": "M", "nazione_nascita_richiedente": "IT", "provincia_nascita_richiedente": "RM", "denominazione_titolare": "", "cf_piva_titolare": "", "indirizzo_titolare": "via verdi 20", "comune_titolare": "roma", "cap_titolare": "00042", "nazione_titolare": "IT", "provincia_titolare": "rm", "callback": { "url": "https://your_domain.it/your_callback.php", "field": "data", "method": "POST", "data": {} }, "dominio": "testcert.legalmail.it", "owner": "mail@domain.com", "timestamp": { "registrazione": 1615199724, "evasione": 1615199724, "scadenza": 1646391493, "ultima_modifica": 1615200175 }, "cellulare": "", "comune_nascita_richiedente": "", "cod_attivazione": "10174594", "uid": "MA178634", "conservazione": false, "data_attivazione": "20/04/2021", "data_scadenza": "20/04/2022", "descrizione": "yourpec@testcert.legalmail.it", "sms": true, "spazio_conservazione": 0, "spazio_disco": 2048, "spazio_storico": 13312, "stato": "evasa", "storico": true, "documenti_attivazione": [ "6045fdee3a716847a978a471_0_attivazione.pdf", "6045fdee3a716847a978a471_1_attivazione.pdf" ], "id": "6045fdee3a716847a978a471", "autorinnovo": false }, "success": true, "message": "", "error": null }



Curl
curl -X PATCH 'baseUrl/pec/:id/trasformazione' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"tipo_casella":"\u003cstring\u003e"}'

ENDPOINTS