Version 1.3
Change Since Version 1.1
Element / ChangeP30 / Addition of attribute period.
Change Since Version 1.2
Element / ChangeEmployer / This now supports new format registration numbers.
Document Type Definition
The P30 file should be a well formed XML document conforming to the Document Type Definition given here.
<!DOCTYPE P30File [
<!ELEMENT P30File (Employer, P30)>
<!ATTLIST P30File
formversionCDATA#REQUIRED
language (E|G) #REQUIRED
currency(E|P) #REQUIRED>
<!ELEMENT Employer EMPTY>
<!ATTLIST Employer
number CDATA #REQUIRED
nameCDATA #REQUIRED
address1CDATA #IMPLIED
address2CDATA #IMPLIED
address3CDATA #IMPLIED
contactCDATA #REQUIRED
phoneCDATA #IMPLIED>
<!ELEMENT P30 EMPTY>
<!ATTLIST P30
period (0|1)#REQUIRED
startCDATA#REQUIRED
PAYECDATA#REQUIRED
PRSICDATA#REQUIRED
type(0|1)#REQUIRED>
]>
Notes on Elements
The file will consist of a root P30File element.
P30File
The P30File element has the following attributes:
formversion / Numeric, required / Must be equal to ‘1’ for this version of the file format.language / E or G, required / Language through which the return is being filed:
- E for English, or
- G for Irish
currency / E or P, required / The currency through which the return is being filed:
- E for Euro, or
- P for Pounds
This should always be ‘E’ for Euro as ROS will not accept P30 Returns in Punt.
It then consists of one Employer and one P30 element.
Employer
The Employer element has the following attributes:
number / Alpha, required / The PPSN (RSI) number of the Employer (length 8 or 9).Required format is 7 numerics (including leading zeros) followed by one or two letters.
name / Alpha, required / The name of the Employer.
Up to and including 30 characters in length.
address1 / Alpha, optional / First Line of Address.
Up to and including 30 characters in length.
address2 / Alpha, optional / Second Line of Address.
Up to and including 30 characters in length.
address3 / Alpha, optional / Third Line of Address.
Up to and including 30 characters in length.
contact / Alpha, required / Contact Name.
Up to and including 20 characters in length.
phone / Numeric, optional / Contact Phone Number.
Up to and including 12 numerics in length (parentheses not required e.g. 016733533).
P30
The P30 element has the following attributes.
period / 0 or 1, required / Type of Period:- 0 for Monthly
- 1 for Quarterly
start / Date, required / Begin Date of the P30 Period (DD/MM/YYYY).
PAYE / Numeric, required / PAYE declared for the Return in Euro only. (No cent)
Maximum value of €499999999
PRSI / Numeric, optional / PRSI declared for the Return in Euro only. (No cent)
Maximum value of €499999999
type / 0 or 1, required / Type of P30 Return:
- 0 for an Original P30 Return
- 1 for a Supplementary P30 Return
EXAMPLE
<?xml version="1.0" encoding="UTF-8"?>
<P30File currency="E" formversion="1" language="E">
<Employer number="0086444V" name="Joe Bloggs" contact="Frank O’Brian" />
<P30 period="1" start="01/01/2003" PAYE="499999999" PRSI="499999999" type="0" />
</P30File>