Web service that allows you to pay bills, mav, rav, pago pa and car tax.
Method that allows you to request a payment. The result will be a url that will redirect you to the payment portal.
endpoint required | any Enum: 123 451 674 896 "rav" "mav" "pagopa" "bolloauto" Type of service requested |
email required | string <email> Default: "<email>" customer email |
cognome | string Default: "<string>" customer last name |
nome | string Default: "<string>" customer first name |
indirizzo | string Default: "<string>" customer address |
telefono | string Default: "<string>" customer phone |
importo required | number <= 2496.99 Default: "<number>" amount to be paid |
cap | string <= 5 characters Default: "<string>" customer zip code |
localita | string Default: "<string>" customer town |
provincia | string <= 2 characters Default: "<string>" customer province |
ccp required | string <= 12 characters Default: "<string>" postal account |
causale required | string Default: "<string>" causal |
object (Callback) |
object | |
success | boolean |
message | string |
error | integer |
{- "importo": 123.12,
- "ccp": "12324",
- "causale": "string",
- "callback": {
- "method": "POST",
- "field": "data",
- "headers": {
- "session_id": "oiwejdf89453urf945jfg"
}
}
}
{- "data": {
- "id": "6489ca34bf95b3541e0ccb25",
}, - "success": true,
- "message": "",
- "error": null
}
Method that allows you to see all your payment requests.
object (Get) | |
success | boolean |
message | string |
error | integer |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://ws.pagasubito.it/pay/"); 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": [
- {
- "id": "6481f66cf2129e73020e2e5d",
- "type": "pagopa",
- "importo": "",
- "timestamp": "1686238828014"
}, - {
- "id": "6481f5cbd503bfa6cf061192",
- "type": "mav",
- "importo": "123.12",
- "timestamp": "1686238667307"
}, - {
- "id": "6481f66cf2129e73020e2e5d",
- "type": "rav",
- "importo": "123.12",
- "timestamp": "1686238526070"
}, - {
- "id": "6481f506b5fc59ab15049fe4",
- "type": "896",
- "importo": "123.12",
- "timestamp": "1686238470629"
}
], - "success": true,
- "message": "",
- "error": null
}
Method that allows you to see the single request identified by the id. The 'report' field is entered only after finalizing the payment and contains data on the outcome of the payment.
id required | string Default: "<string>" Example: 64772d88496e98e849017aa8 Request id |
Get123-451-674-896 (object) or Getmav-rav (object) or Getpagopa (object) or Getbolloauto (object) | |
success | boolean |
message | string |
error | integer |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://ws.pagasubito.it/pay/%7Bid%7D"); 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": [
- {
- "id": "6481f4e11ca871c53c052bc1",
- "cognome": "",
- "nome": "",
- "indirizzo": "",
- "cap": "",
- "localita": "",
- "provincia": "",
- "telefono": "",
- "importo": "12312",
- "ccp": "218763",
- "causale": "causal",
- "type": "123",
- "timestamp": "1686238433199",
- "codice_bollettino": "",
- "callback": {
- "headers": {
- "session_id": "9834thjf9fhj8907yf4"
}, - "method": "POST",
- "field": "data",
- "data": { }
}, - "report": {
- "payment_status": "OK",
- "payment_id": "12020000340229",
- "payment_date": "2020-04-06 17:23:10",
- "total_amount": "126.12",
- "ccp": "218763",
- "bulletin_type": "123",
- "causal": "exemple causal",
- "operation_id": "111111",
- "code": ""
}
}
], - "success": true,
- "message": "",
- "error": null
}
Method that allows you to download the receipt identified by the ID. If the receipt exists a pdf file is returned.
id required | string Default: "<string>" Example: 64772d88496e98e849017aa8 Request id |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://ws.pagasubito.it/pay/%7Bid%7D/ricevuta"); 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);