Expense collection response
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "requests": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "protocol_id": "string",
- "esito_chiamata": 0,
- "request_type": "inserimento",
- "responses": [
- {
- "id": 0,
- "code": "string",
- "description": "string",
- "type": "string",
- "received_at": "2019-08-24T14:15:22Z"
}
], - "requested_at": "2019-08-24T14:15:22Z"
}
], - "codice_fiscale_proprietario": "string",
- "codice_fiscale_cittadino": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "amount": "string"
}
]
The new Expense resource
opzionale1 | string Field currently used by users who:
|
opzionale2 | string |
opzionale3 | string |
cf_proprietario required | string Tax code of the structure or of the professional. |
codice_regione | string The 3 chars region code, see the list https://sistemats1.sanita.finanze.it/portale/documents/20182/34254/allegato%2Btecnico%2BTS-CNS%2Bex%2BDL%2B78-2010_v22-06-12.pdf/2ef2b969-879c-64f5-2b0a-8bce9877c08f (this is not needed for professionals). |
codice_asl | string The 3 chars ASL code (this is not needed for professionals). |
codice_ssa | string The 5 or 6 chars SSA code (this is not needed for professionals). |
partita_iva | string VAT number of the pharmacy/facility or doctor issuing the tax document. |
data_emissione required | string Date of issue of the "fiscal document" relating to the expenditure incurred by the citizen in yyyy-mm-dd format. |
dispositivo required | string Sequential number of the device generating the document. A device is defined as the sequence of the cash register used by merchants issuing commercial documents; for the issuance of invoices or tax receipts the field takes the recommended value = 1. |
numero_documento_fiscale required | string Identification number of the document issued. Unique within of the date. It is unique by day (receipts) or by year (invoice). |
Array of objects (Spesa) | |
data_pagamento required | string Date of payment pertaining to the 'tax document' issued in yyyy-mm-dd format. It must be on or after the issue date and it can only be earlier than the issue date if the advance payment flag is set to 1 (and in any case not less than 2015-01-01). |
flag_pagamento_anticipato | integer The field must be set to "1" to indicate payment of the expenditure incurred by the citizen on a date before the date of issue of the "tax document'. |
cf_cittadino | string Citizen's tax code taken from the Tessera Sanitaria card. |
pagamento_tracciato required | string The field describes the payment method and accepts the values SI/NO:
|
tipo_documento required | string Type of document certifying payment of the service or of the health care item:
|
flag_opposizione required | integer Indicates the citizen's wish not to allow the expenditure data to be sent to the Revenue Agency for the purpose of preparing the Precompiled declaration:
|
Expense resource created
Invalid input
Resource not found
{- "opzionale1": "string",
- "opzionale2": "string",
- "opzionale3": "string",
- "cf_proprietario": "string",
- "codice_regione": "string",
- "codice_asl": "string",
- "codice_ssa": "string",
- "partita_iva": "string",
- "data_emissione": "string",
- "dispositivo": "string",
- "numero_documento_fiscale": "string",
- "spesa": [
- {
- "tipo_spesa": "string",
- "flag_tipo_spesa": 0,
- "importo": 0,
- "aliquota_iva": 0,
- "natura_iva": "string"
}
], - "data_pagamento": "string",
- "flag_pagamento_anticipato": 0,
- "cf_cittadino": "string",
- "pagamento_tracciato": "string",
- "tipo_documento": "string",
- "flag_opposizione": 0
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "outcome": "string",
- "messages": [
- {
- "code": "string",
- "description": "string",
- "type": "string"
}
], - "protocol": "string"
}
Expense resource response
Resource not found
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "requests": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "protocol_id": "string",
- "esito_chiamata": 0,
- "request_type": "inserimento",
- "responses": [
- {
- "id": 0,
- "code": "string",
- "description": "string",
- "type": "string",
- "received_at": "2019-08-24T14:15:22Z"
}
], - "requested_at": "2019-08-24T14:15:22Z"
}
], - "codice_fiscale_proprietario": "string",
- "codice_fiscale_cittadino": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "amount": "string"
}
The updated Expense resource
opzionale1 | string Field currently used by users who:
|
opzionale2 | string |
opzionale3 | string |
cf_proprietario required | string Tax code of the structure or of the professional. |
codice_regione | string The 3 chars region code, see the list https://sistemats1.sanita.finanze.it/portale/documents/20182/34254/allegato%2Btecnico%2BTS-CNS%2Bex%2BDL%2B78-2010_v22-06-12.pdf/2ef2b969-879c-64f5-2b0a-8bce9877c08f (this is not needed for professionals). |
codice_asl | string The 3 chars ASL code (this is not needed for professionals). |
codice_ssa | string The 5 or 6 chars SSA code (this is not needed for professionals). |
partita_iva | string VAT number of the pharmacy/facility or doctor issuing the tax document. |
data_emissione required | string Date of issue of the "fiscal document" relating to the expenditure incurred by the citizen in yyyy-mm-dd format. |
dispositivo required | string Sequential number of the device generating the document. A device is defined as the sequence of the cash register used by merchants issuing commercial documents; for the issuance of invoices or tax receipts the field takes the recommended value = 1. |
numero_documento_fiscale required | string Identification number of the document issued. Unique within of the date. It is unique by day (receipts) or by year (invoice). |
Array of objects (Spesa) | |
data_pagamento required | string Date of payment pertaining to the 'tax document' issued in yyyy-mm-dd format. It must be on or after the issue date and it can only be earlier than the issue date if the advance payment flag is set to 1 (and in any case not less than 2015-01-01). |
flag_pagamento_anticipato | integer The field must be set to "1" to indicate payment of the expenditure incurred by the citizen on a date before the date of issue of the "tax document'. |
cf_cittadino | string Citizen's tax code taken from the Tessera Sanitaria card. |
pagamento_tracciato required | string The field describes the payment method and accepts the values SI/NO:
|
tipo_documento required | string Type of document certifying payment of the service or of the health care item:
|
flag_opposizione required | integer Indicates the citizen's wish not to allow the expenditure data to be sent to the Revenue Agency for the purpose of preparing the Precompiled declaration:
|
Expense resource updated
Invalid input
Resource not found
{- "opzionale1": "string",
- "opzionale2": "string",
- "opzionale3": "string",
- "cf_proprietario": "string",
- "codice_regione": "string",
- "codice_asl": "string",
- "codice_ssa": "string",
- "partita_iva": "string",
- "data_emissione": "string",
- "dispositivo": "string",
- "numero_documento_fiscale": "string",
- "spesa": [
- {
- "tipo_spesa": "string",
- "flag_tipo_spesa": 0,
- "importo": 0,
- "aliquota_iva": 0,
- "natura_iva": "string"
}
], - "data_pagamento": "string",
- "flag_pagamento_anticipato": 0,
- "cf_cittadino": "string",
- "pagamento_tracciato": "string",
- "tipo_documento": "string",
- "flag_opposizione": 0
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "outcome": "string",
- "messages": [
- {
- "code": "string",
- "description": "string",
- "type": "string"
}
], - "protocol": "string"
}
The new Expense resource
Expense resource created
Invalid input
Resource not found
{- "dispositivo": "string",
- "num_documento": "string",
- "importo": 0
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "outcome": "string",
- "messages": [
- {
- "code": "string",
- "description": "string",
- "type": "string"
}
], - "protocol": "string"
}