This web service allows the delivery of postal products like Raccomandate, Telegrammi, Posta Prioritaria through Poste Italiane
message
and a data.wrong_fields: []
: each element of wrong_fields
is a string which indicates where the error was generated from. This makes it very easy to integrate in your front-end form, where you can highlight the wrong entriesReturns a list of prices for various kinds of services
object | |
success | boolean |
message | string |
error | any |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://ws.ufficiopostale.com/pricing/"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
OK
{- "data": [
- {
- "tipologia": "raccomandata",
- "prodotto": "raccomandata",
- "descrizione": "Raccomandata",
- "riferimento_prezzo": "pagina",
- "accetta_allegati": 1,
- "attivo": 1,
- "tariffe": [
- {
- "iva_tariffa_postale": 0,
- "iva_stampa_imbustamento": 0,
- "tipologia": "pagine",
- "da": 0,
- "a": 1,
- "tariffa_postale": 3.4,
- "zona": 0,
- "stampa": 0.1,
- "imbustamento": 0
}, - {
- "iva_tariffa_postale": 0,
- "iva_stampa_imbustamento": 0,
- "tipologia": "pagine",
- "da": 2,
- "a": 2,
- "tariffa_postale": 3.4,
- "zona": 0,
- "stampa": 0.2,
- "imbustamento": 0
}, - {
- "iva_tariffa_postale": 0,
- "iva_stampa_imbustamento": 0,
- "tipologia": "pagine",
- "da": 3,
- "a": 3,
- "tariffa_postale": 3.4,
- "zona": 0,
- "stampa": 0.3,
- "imbustamento": 0
}, - {
- "iva_tariffa_postale": 0,
- "iva_stampa_imbustamento": 0,
- "tipologia": "pagine",
- "da": 4,
- "a": 5,
- "tariffa_postale": 4.55,
- "zona": 0,
- "stampa": 0.3,
- "imbustamento": 0
}, - {
- "iva_tariffa_postale": 0,
- "iva_stampa_imbustamento": 0,
- "tipologia": "pagine",
- "da": 6,
- "a": 9,
- "tariffa_postale": 4.55,
- "zona": 0,
- "stampa": 0.35,
- "imbustamento": 0
}, - {
- "iva_tariffa_postale": 0,
- "iva_stampa_imbustamento": 0,
- "tipologia": "pagine",
- "da": 10,
- "a": 13,
- "tariffa_postale": 4.55,
- "zona": 0,
- "stampa": 0.4,
- "imbustamento": 0
}, - {
- "iva_tariffa_postale": 0,
- "iva_stampa_imbustamento": 0,
- "tipologia": "pagine",
- "da": 14,
- "a": 18,
- "tariffa_postale": 4.55,
- "zona": 0,
- "stampa": 0.45,
- "imbustamento": 0
}, - {
- "iva_tariffa_postale": 0,
- "iva_stampa_imbustamento": 0,
- "tipologia": "pagine",
- "da": 19,
- "a": 10000000,
- "tariffa_postale": 4.55,
- "zona": 0,
- "stampa": 0.45,
- "imbustamento": 0
}
], - "options": {
- "StampaColori": {
- "nome_option": "Stampa Colori",
- "nome_option_invio": "StampaColori",
- "prezzo_option": 0.8,
- "iva": 0,
- "attivo": 1
}, - "RicevutaRitorno": {
- "nome_option": "Ricevuta di Ritorno",
- "nome_option_invio": "RicevutaRitorno",
- "prezzo_option": 0.8,
- "iva": 0,
- "attivo": 1
}, - "FronteRetro": {
- "nome_option": "Stampa Fronte/Retro",
- "nome_option_invio": "FronteRetro",
- "prezzo_option": 0.3,
- "iva": 0,
- "attivo": 1
}
}, - "username": null
}
], - "success": true,
- "message": "",
- "error": null
}
cap | string Default: "<string>" Example: cap=05100 |
comune | string Default: "<string>" Example: comune=terni |
dug | string Default: "<string>" Example: dug=via |
data | Array of strings <= 2 items |
success | boolean |
message | string |
error | any |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://ws.ufficiopostale.com/indirizzi/?cap=05100&comune=terni&dug=via"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": [
- "string"
], - "success": true,
- "message": "string",
- "error": null
}
(denomiazioni urbanistiche generiche)
Array of objects[ items ] | |
success | boolean |
message | string |
error | any |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://ws.ufficiopostale.com/dug/"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": [
- {
- "codice_dug": "BGO",
- "dug": "Borgo"
}
], - "message": "1 Risultato",
- "success": true,
- "error": null
}
id required | string Default: "<string>" |
Array of objects[ items ] | |
success | boolean |
message | string |
error | any |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://ws.ufficiopostale.com/tracking/%7Bid%7D"); struct curl_slist *headers = NULL; headers =