Skip to main content

API Test Cases - F24 Orders

View as Markdown

This article provides a series of test cases for the APIs of the F24 Order Payments by Banca Sella.

TEST CASE 1​

API endpoints:

  • POST Create F24-Simple Order
  • POST Validate F24-Simple Order

Notes:

  • TARI (Waste Tax) - Article 1, paragraph 639, Law no. 147 of 27/12/2013
  • TARES - Article 14, Decree-Law no. 201 of 6/12/2011

Valid for natural persons

{
"executionDate": "2020-06-29",
"documentAmount": 150.80,
"currency": "EUR",
"payer": {
"name": "Mario",
"surname": "Rossi",
"fiscalCode": "RSSMRA80A01F205X",
"birthDate": "1980-01-01",
"birthPlace": "MILANO",
"birthProvince": "MI",
"sex": "M",
"address": {
"address": "VIA DEI FORI IMPERIALI 4",
"city": "ROMA",
"province": "RM"
}
},
"taxList": [
{
"section": "EL",
"taxCode": "3944",
"receiverCode": "D933",
"referenceMonth": "0104",
"referenceYear": "2018",
"taxAmount": 1
}
]
}

TEST CASE 2​

API endpoints:

  • POST Create F24-Simple Order
  • POST Validate F24-Simple Order

Notes:

  • IMU (Municipal Property Tax) - Penalties following tax assessment - Municipality

Valid for natural persons

{
"executionDate": "2020-06-29",
"documentAmount": 1,
"currency": "EUR",
"payer": {
"name": "Mario",
"surname": "Rossi",
"fiscalCode": "RSSMRA80A01F205X",
"birthDate": "1980-01-01",
"birthPlace": "MILANO",
"birthProvince": "MI",
"sex": "M",
"address": {
"address": "VIA DEI FORI IMPERIALI 4",
"city": "ROMA",
"province": "RM"
}
},
"taxList": [
{
"section": "EL",
"taxCode": "3924",
"receiverCode": "A849",
"isAmendment": false,
"isRealEstateVariation": false,
"isDeposit": true,
"isFinalPayment": false,
"realEstateCount": 2,
"referenceMonth": "",
"referenceYear": "2020",
"deductionAmount": 0,
"taxAmount": 150.80,
"compensationAmount": 0
}
]
}

TEST CASE 3​

API endpoints:

  • POST Create F24-Simple Order
  • POST Validate F24-Simple Order

Notes:

  • IRPEF (personal income tax) - First advance instalment

Valid for natural persons

{
"executionDate": "2020-06-29",
"documentAmount": 100,
"currency": "EUR",
"payer": {
"name": "Mario",
"surname": "Rossi",
"fiscalCode": "RSSMRA80A01F205X",
"birthDate": "1980-01-01",
"birthPlace": "MILANO",
"birthProvince": "MI",
"sex": "M",
"address": {
"address": "VIA DEI FORI IMPERIALI 4",
"city": "ROMA",
"province": "RM"
}
},
"taxList": [
{
"section": "ER",
"taxCode": "4033",
"referenceMonth": "0106",
"referenceYear": "2020",
"taxAmount": 100
}
]
}

TEST CASE 4​

API endpoints:

  • POST Create F24-Simple Order
  • POST Validate F24-Simple Order

Notes:

  • Regional surcharge on personal income tax (IRPEF)

Valid for natural persons

{
"executionDate": "2020-06-29",
"documentAmount": 100,
"currency": "EUR",
"payer": {
"name": "Mario",
"surname": "Rossi",
"fiscalCode": "RSSMRA80A01F205X",
"birthDate": "1980-01-01",
"birthPlace": "MILANO",
"birthProvince": "MI",
"sex": "M",
"address": {
"address": "VIA DEI FORI IMPERIALI 4",
"city": "ROMA",
"province": "RM"
}
},
"taxList": [
{
"section": "RG",
"taxCode": "3801",
"receiverCode": "08",
"referenceMonth": "0106",
"referenceYear": "2020",
"taxAmount": 100
}
]
}

TEST CASE 5​

API endpoints:

  • POST Create F24-Simple Order
  • POST Validate F24-Simple Order

Notes:

  • TARI (Waste Tax) - Article 1, paragraph 639, Law no. 147 of 27/12/2013
  • TARES - Article 14, Decree-Law no. 201 of 6/12/2011

Valid for legal persons

{
"executionDate": "2020-06-29",
"documentAmount": 120.5,
"currency": "EUR",
"operationCode": "123456789012345678",
"payer": {
"businessName": "FABRICK SPA",
"fiscalCode": "02654890025",
"birthDate": "",
"birthPlace": "",
"birthProvince": "",
"sex": "",
"address": {
"address": "VIA DEI FORI IMPERIALI 4",
"city": "ROMA",
"province": "RM"
}
},
"payerAgent": null,
"taxList": [
{
"section": "EL",
"taxCode": "3944",
"receiverCode": "D933",
"isAmendment": false,
"isRealEstateVariation": false,
"isDeposit": false,
"isFinalPayment": false,
"realEstateCount": 1,
"referenceMonth": "0104",
"referenceYear": "2018",
"deductionAmount": 0,
"taxAmount": 120.5,
"compensationAmount": 0
}
]
}

TEST CASE 6​

API endpoints:

  • POST Create F24 Order
  • POST Validate F24 Order

Notes:

  • Penalty on the municipal IRPEF surcharge - Voluntary correction (ravvedimento)

Valid for natural persons

{
"executionDate": "2020-06-29",
"documentAmount": 1200.80,
"currency": "EUR",
"operationCode": "",
"isDifferentYear": false,
"payer": {
"name": "Mario",
"surname": "Rossi",
"businessName": "",
"fiscalCode": "RSSMRA80A01F205X",
"birthDate": "1980-01-01",
"birthPlace": "MILANO",
"birthProvince": "MI",
"sex": "M",
"address": {
"address": "VIA DEI FORI IMPERIALI 4",
"city": "ROMA",
"province": "RM"
}
},
"taxes": {
"imu": {
"officeCode": "",
"deedCode": "",
"taxList": [
{
"taxCode": "8926",
"receiverCode": "H501",
"referenceYear": "2020",
"taxAmount": 1200.80
}
]
}
}
}

TEST CASE 7​

API endpoints:

  • POST Create F24 Order
  • POST Validate F24 Order

Notes:

  • IRPEF (personal income tax) - Balance payment

Valid for legal persons

{
"executionDate": "2020-06-29",
"documentAmount": 125,
"currency": "EUR",
"operationCode": "",
"isDifferentYear": false,
"payer": {
"businessName": "FABRICK SPA",
"fiscalCode": "02654890025",
"birthDate": "",
"birthPlace": "",
"birthProvince": "",
"sex": "",
"address": {
"address": "VIA DEI FORI IMPERIALI 4",
"city": "ROMA",
"province": "RM"
}
},
"payerAgent": null,
"taxes": {
"erario": {
"officeCode": "",
"deedCode": "",
"taxList": [
{
"taxCode": "4001",
"referenceMonth": "0101",
"referenceYear": "2018",
"taxAmount": 125,
"compensationAmount": null
}
]
}
}
}

TEST CASE 8​

API endpoints:

  • POST Create F24 Order
  • POST Validate F24 Order

Notes:

  • Mandatory contributions - INPGI Separate Management Scheme (Gestione Separata) - Article 1, paragraph 80, letter a), Law no. 247/2007

Valid for legal persons

{
"executionDate": "2020-06-29",
"documentAmount": 450,
"currency": "EUR",
"operationCode": "",
"isDifferentYear": false,
"payer": {
"businessName": "FABRICK SPA",
"fiscalCode": "02654890025",
"birthDate": "",
"birthPlace": "",
"birthProvince": "",
"sex": "",
"address": {
"address": "VIA DEI FORI IMPERIALI 4",
"city": "ROMA",
"province": "RM"
}
},
"payerAgent": null,
"taxes": {
"otherTaxes": {
"officeCode": "",
"deedCode": "",
"taxList": [
{
"taxCode": "CGS1",
"institutionCode": "P",
"identificationCode": "00130",
"referenceMonth": "03",
"referenceYear": "2020",
"taxAmount": 450
}
]
}
}
}