You are on page 1of 170

v3.1.

(Message Implementation Guideline)


Ver3.1.2

103 9

I
()()

v3.1.2

Ver 1.0
Ver 2.0
Ver 2.1
Ver 2.2

2005/11/01
2005/12/15
2006/01/20
2006/04/15

Ver 2.3

2006/05/30

Ver 2.4

2006/09/28

Ver 2.5

2007/01/19

Ver 2.6

2007/03/26

Role Group B2C

A1101 ( Extension)
B1101 /
( Extension) A0101 B0101
2 2 2 2
A0101B0101A1101B1101 Details
ProductItem
MG Line#1 Cardinality1..n1
12
01: ;02: ;03:
;04. ;05: ;06:

A0101 A1101 ()(SalesAmount)


(TaxAmount)(TotalAmount) XML Schema
int decimal
B0101 B1101 (TaxAmount)
(TotalAmount) XML Schema int decimal

3 RoleDescriptionType (Identifier)

B2B:/-(BAN)
B2C:-(BAN)- 10 0
3 RoleDescriptionType (Name)

B2B:/-
B2C:--
4
5(Year)(Month)(Day)
11(InvoiceNumber)(InvoiceDate)
(InvoiceTime)(TaxCenter)
(PermitDate)(PermitWord)(PermitNumber)

14,46(SequenceNumber)
(SequenceNumber)
24(Number)
(OriginalSequenceNumber)
(AllowanceSequenceNumber)
30(CancelInvoiceNumber)
(CancelTime)
II

()()

v3.1.2

Ver 2.7

Ver 2.8

32(CancelInvoiceNumber)
(ReceiveTime)
34(CancelTime)
36(ReceiveTime)
38(RejectTime)
40(RejectInvoiceNumber)
(ReceiveTime)
43(InvoiceNumber)(InvoiceTime)

54(Number)
(OriginalSequenceNumber)
(AllowanceSequenceNumber)
A0101Invoice / Amount / TaxAmount

A0101Invoice / Amount / TaxAmount

A1101Invoice / Amount / TaxAmount

2007/10/01

A1101Invoice / Amount / TaxAmount

A0201CancelInvoice / ReturnTaxDocumentNumber

11 43
3
18InvoiceConfirm 201
30CancelInvoice

11214351
3
XSDVersion
3RoleDescriptionType
(Name)B2C- 4 ASCII
2007/05/21
2 xsd:maxLength value="30"
xsd:maxLength value="40"
A0102 18InvoiceConfirm
(ReceiveDate) YYYYMMDD;
III

()()

v3.1.2

00990101
A0101 11Invoice/Main
(BuyerRemark)(PermitNumber)
2
A0101 16Invoice/Amount
(TaxType)(TaxType)
A1101 43Invoice/Main
(BuyerRemark)(PermitNumber)
2
A1101 48Invoice/Amount
(TaxType)(TaxType)
A0102 18InvoiceConfirm
(BuyerRemark) A0101 11
B0101 21Allowance/Main
(AllowanceDate)
(AllowanceDate) (AllowanceType) xsd:pattern
value="[12]"xsd:pattern value="[1-2]"
B0101 24Allowance/Details
(Amount)
(Tax)

(TaxType)(TaxType)
B1101 51Allowance/Main
(AllowanceDate)
(AllowanceDate) (AllowanceType) xsd:pattern
value="[12]"xsd:pattern value="[1-2]"
B1101 54Allowance/Details/ProductItem
54Allowance/Details
(Amount) 2(Amount2)

(Tax)

(TaxType)
(TaxType)
XXXXXXX XML Schema

YYYYMMDD
00990101 5
InvoiceConfirm CancelInvoice RejectInvoice
RejectInvoiceConfirm B2C:IDN
B2C: 10 0
Invoice/Main

Invoice/Amount
decimal long int long
Allowance/Amount
()
decimal long
(InvoiceNumberType) xsd:minLength
IV
()()

v3.1.2

Ver
2.8.1

2011/2/21

Ver
3.0

2011/8/12

Ver
3.0.1

2011/9/9

Ver
3.0.2

2012/12/24

value="10" 1 10
long
B-N XML SCHEMA
16InvoiceConfirm
201 200
Invoice
(M)(O) A0101A1101
: () A0101
A1101B0101B1101
A0101A1101B0101B1101 XSD
V2.1
DateTypeTimeType

TaxTypeEnum 4()
XSDVersion XML namespace
MessageTypeEnum ,
C0401 B2C C0501 B2C C0601 B2C
C0701 B2C
B2C MIG A0401/A0501/A0601
C0401/C0501/C0601
A0101B0101B0401A1101B1101
2 3
ProductItem 99 999
(Item)
SellerID BuyerID
B0101 InvoiceDate OriginalInvoiceDateInvoiceNumber
OriginalInvoiceNumber
MIG A0102
""
A0201A0501B0201B0501
A0202B0202 ReceiveDate CancelDateReceiveTime
CancelTime
B0401 InvoiceDate OriginalInvoiceDateInvoiceNumber
OriginalInvoiceNumber
B1101 InvoiceDate OriginalInvoiceDateInvoiceNumber
OriginalInvoiceNumber
B1401 InvoiceDate OriginalInvoiceDateInvoiceNumber
OriginalInvoiceNumber
C0701 1.0.5 VoidReason
MIG 3.0 MIG 3.0.1
B0102 AllowanceType
A0101, A401 0
MIG 3.0.1 MIG 3.0.2

C0401 CheckNumber
C0401 CarrierTypeCarrierId1CarrierId2

V
()()

v3.1.2

Ver
3.0.3

2013/5/30

E0401
E0402
E0501

1. 12 30
2. 15 26
3. 15 26
4. 40 80
5.
6. :
A0101 B2B
1.
2.
A0401 B2B ()
1.
2.
3.
4.
A0102
1.

Ver
3.1

2013/7/1

A1101 B2B ()
1. A1101 A0101
A1401 B2B ()
1. A1401 A0401
B1101 / (
Extension)
1. B1101 B0101
B1401 / (
Extension)
1. B1401 B0401
C0401 B2C
1.
2. Y ID
ID 0
ID
ID
3. 1
4.

VI

()()

v3.1.2

5. "
",
6.
7.
8. (InvoiceDate)(InvoiceTime)
(DateType)(TimeType)
C0501 B2C
1. 1
C0601 B2C
1. B2C
C0701 B2C
1. 1
D0501 B2C
1. 1
E0401

1. BranchTrack/Main

2. BranchTrackItem Cardinality 1..25000


E0402

1. BranchTrackBlank/Main

Ver
3.1.1

2014/3/20

MIG 3.1 MIG 3.1.1

BondedAreaEnum
1
1 7 4 (
)
2
2 7 7 (
)
3()
3: 28 1 1 4
()
BondedAreaEnum
A0102 B2B
A0401 B2B ()
(BAN):
B2B /-
B2C / 10 "0"
VII

()()

v3.1.2

A0101 B2B

A0401 B2B ()

B0101 /

B0401 /

C0401 B2C
1. AAAA
2. 1 0
3.
D0401 /

Ver
3.1.2

2014/9/25

MIG 3.1.1 MIG 3.1.2

InvoiceTypeEnum
07
08
104 1 1 07 08

VIII
()()

v3.1.2

.
.
.

.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.

............................................................................................... 1
.............................................................................................................................. 1
.............................................................................................................................. 1
.............................................................................................. 1
....................................................................................................... 3
.............................................................................................................. 3
.......................................................................................................... 4
.............................................................................................................. 4
........................................................................................................... 6
....................................................................................................... 8
RoleDescriptionType ................................................................................................... 9
MessageTypeEnum .................................................................................................... 10
InvoiceTypeEnum ...................................................................................................... 10
AllowanceNumberType ............................................................................................. 10
AllowanceTypeEnum................................................................................................. 10
BAN ........................................................................................................................... 11
BuyerRemarkEnum .................................................................................................... 11
CustomsClearanceMarkEnum ................................................................................... 11
InvoiceNumberType .................................................................................................. 11
DonateMarkEnum ...................................................................................................... 12
TaxTypeEnum ............................................................................................................ 12
CarrierTypeEnum....................................................................................................... 12
CurrencyCodeEnum ................................................................................................... 12
DateType .................................................................................................................... 17
TimeType ................................................................................................................... 17
BondedAreaEnum ...................................................................................................... 17
A0101 ................................................................................ 18
.................................................................................................................... 18
................................................................................................................ 19
................................................................................................................ 20
(Element)(Aggregate) ............................................ 21
A0102 ........................................................................ 26
.................................................................................................................... 26
................................................................................................................ 26
................................................................................................................ 26
(Element)(Aggregate) ............................................ 27
B0101 / ................................ 28
.................................................................................................................... 28
................................................................................................................ 29
................................................................................................................ 30
(Element)(Aggregate) ............................................ 31
B0102 / ................ 35
.................................................................................................................... 35
.................................................................................................................... 35
IX

()()

v3.1.2

.
................................................................................................................ 35
.
(Element)(Aggregate) ............................................ 36

A0201 ................................................................................. 37
.
.................................................................................................................... 37
.
................................................................................................................ 37
.
................................................................................................................ 37
.
(Element)(Aggregate) ............................................ 38

A0202 ................................................................. 39
.
.................................................................................................................... 39
.
................................................................................................................ 39
.
................................................................................................................ 39
.
(Element)(Aggregate) ............................................ 40
B0201 ..................................................................... 41
.
.................................................................................................................... 41
.
................................................................................................................ 41
.
................................................................................................................ 42
.
(Element)(Aggregate) ............................................ 42
B0202 ............................................................. 43
.
.................................................................................................................... 43
.
................................................................................................................ 43
.
................................................................................................................ 44
.
(Element)(Aggregate) ............................................ 44
A0301 () ...................................................................... 45
.
.................................................................................................................... 45
.
................................................................................................................ 45
.
................................................................................................................ 45
.
(Element)(Aggregate) ............................................ 46
A0302 () ...................................................... 47
.
.................................................................................................................... 47
.
................................................................................................................ 47
.
................................................................................................................ 47
.
(Element)(Aggregate) ............................................ 48
A0401 ................................................................ 49
.
.................................................................................................................... 49
.
................................................................................................................ 50
.
................................................................................................................ 51
.
(Element)(Aggregate) ............................................ 52
B0401 / ................ 58
.
.................................................................................................................... 58
.
................................................................................................................ 59
.
................................................................................................................ 60
.
(Element)(Aggregate) ............................................ 61
A0501 ................................................................. 64
.
.................................................................................................................... 64
.
................................................................................................................ 64
.
................................................................................................................ 64
X
()()

v3.1.2

.
(Element)(Aggregate) ............................................ 65
B0501 ..................................................... 66
.
.................................................................................................................... 66
.
................................................................................................................ 66
.
................................................................................................................ 67
.
(Element)(Aggregate) ............................................ 67
A0601 () ...................................................... 68
.
.................................................................................................................... 68
.
................................................................................................................ 68
.
................................................................................................................ 68
.
(Element)(Aggregate) ............................................ 69

C0401 ................................................................ 70
.
.................................................................................................................... 70
.
................................................................................................................ 71
.
................................................................................................................ 72
.
(Element)(Aggregate) ............................................ 74
C0501 ................................................................. 81
.
.................................................................................................................... 81
.
................................................................................................................ 81
.
................................................................................................................ 81
.
(Element)(Aggregate) ............................................ 82
C0701 ......................................................................... 83
.
.................................................................................................................... 83
.
................................................................................................................ 83
.
................................................................................................................ 83
.
(Element)(Aggregate) ............................................ 84
D0401 / ................ 85
.
.................................................................................................................... 85
.
................................................................................................................ 85
.
................................................................................................................ 86
.
(Element)(Aggregate) ............................................ 87
D0501 ..................................................... 90
.
.................................................................................................................... 90
.
................................................................................................................ 90
.
................................................................................................................ 90
.
(Element)(Aggregate) ............................................ 91
E0401 .................................................................................... 92
.
.................................................................................................................... 92
.
................................................................................................................ 92
.
................................................................................................................ 92
.
(Element)(Aggregate) ............................................ 93
E0402 ................................................................................ 96
.
.................................................................................................................... 96
.
................................................................................................................ 96
.
................................................................................................................ 96
.
(Element)(Aggregate) ............................................ 97
XI
()()

v3.1.2

E0501 ........................................................................ 99
.
.................................................................................................................... 99
.
................................................................................................................ 99
.
................................................................................................................ 99
.
(Element)(Aggregate) .......................................... 100
AXML Schema ......................................................................................... 101
B XML Schema ...................................................................................... 102
CA0101 XML Schema .......................................................................... 109
DA0102 XML Schema.................................................................. 114
EB0101 / XML Schema ......................... 115
FB0102 / XML Schema ........ 118
GA0201 XML Schema .......................................................................... 119
HA0202 XML Schema .......................................................... 120
IB0201 XML Schema ....................................................................... 121
JB0202 XML Schema ............................................................... 122
KA0301 () XML Schema ............................................................... 123
LA0302 () XML Schema ....................................................... 124
MA0401 XML Schema ......................................................... 125
NB0401 / XML Schema ......... 130
OA0501 XML Schema .......................................................... 133
PB0501 XML Schema.............................................. 135
QA0601 XML Schema .......................................................... 136
RC0401 B2C XML Schema .......................................................... 137
SC0501 B2C XML Schema .................................................. 142
TC0701 B2C XML Schema ................................................................. 143
UD0401 B2C / XML Schema ....... 144
VD0501 B2C XML Schema ............................................. 147
WE0401 XML Schema ..................................................................... 148
XE0402 XML Schema .................................................................. 150
YE0501 XML Schema .......................................................... 152

XII
()()

v3.1.2

1................................................................................................................... 2
2........................................................................................................................... 7
3RoleDescriptionType ........................................................................................... 9
4A0101 ................................................................................................................. 19
5Invoice ................................................................................................................ 21
6Invoice/Main ...................................................................................................... 22
7Invoice/Detail ..................................................................................................... 24
8Invoice/Amount ................................................................................................. 25
9A0102 ................................................................................................................. 26
10B0101 ............................................................................................................... 29
11Allowance ........................................................................................................ 31
12Allowance/Main ............................................................................................... 31
13Allowance/Details ............................................................................................ 32
14Allowance/Amount .......................................................................................... 33
15B0102 ............................................................................................................... 35
16A0201 ............................................................................................................... 37
17A0202 ............................................................................................................... 39
18B0201 ............................................................................................................... 41
19B0202 ............................................................................................................... 43
20A0301 ............................................................................................................... 45
21A0302 ............................................................................................................... 47
22A0401 ............................................................................................................... 50
23Invoice .............................................................................................................. 52
24Invoice/Main .................................................................................................... 53
25Invoice/Detail ................................................................................................... 55
26Invoice/Amount ............................................................................................... 56
27B0401 ............................................................................................................... 59
28Allowance ........................................................................................................ 61
29Allowance/Main ............................................................................................... 61
30Allowance/Details ............................................................................................ 62
31Allowance/Amount .......................................................................................... 63
32A0501 ............................................................................................................... 64
33B0501 ............................................................................................................... 66
34A0601 ............................................................................................................... 68
35C0401 ............................................................................................................... 71
36Invoice .............................................................................................................. 74
37Invoice/Main .................................................................................................... 75
38Invoice/Detail ................................................................................................... 78
XIII
()()

v3.1.2

39Invoice/Amount ............................................................................................... 79
40C0501 ............................................................................................................... 81
41C0701 ............................................................................................................... 83
42D0401 ............................................................................................................... 85
43Allowance ........................................................................................................ 87
44Allowance/Main ............................................................................................... 87
45Allowance/Details ............................................................................................ 88
46Allowance/Amount .......................................................................................... 89
47D0501 ............................................................................................................... 90
48E0401 ............................................................................................................... 92
49BranchTrack ..................................................................................................... 93
50BranchTrack /Main .......................................................................................... 93
51BranchTrack/Details ........................................................................................ 94
52E0402 ............................................................................................................... 96
53BranchTrackBlank ........................................................................................... 97
54BranchTrackBlank/Main .................................................................................. 97
55BranchTrackBlank/Details ............................................................................... 98
56E0501 ............................................................................................................... 99
57InvoiceAssignNo ............................................................................................ 100

XIV
()()

v3.1.2

1 ............................................................................................................... 6
2RoleDescriptionType (Aggregate) ............................................................. 9
3RoleDescriptionType .......................................................................................... 9
4MessageTypeEnum ........................................................................................... 10
5InvoiceTypeEnum ............................................................................................. 10
6AllowanceNumberType .................................................................................... 10
7AllowanceTypeEnum ........................................................................................ 10
8BAN .................................................................................................................. 11
9BuyerRemarkEnum ........................................................................................... 11
10CustomsClearanceMarkEnum ........................................................................ 11
11InvoiceNumberType ....................................................................................... 11
12DonateMarkEnum ........................................................................................... 12
13TaxTypeEnum ................................................................................................. 12
14CarrierTypeEnum ............................................................................................ 12
15CurrencyCodeEnum ........................................................................................ 12
16DateType (Aggregate) ............................................................................ 17
17TimeType ........................................................................................................ 17
18InvoiceTypeEnum ........................................................................................... 17
19A0101 ............................................................................................................... 20
20Invoice (Aggregate) .......................................................................... 21
21Invoice/Main ............................................................................................ 23
22Invoice/Details (Aggregate) .............................................................. 24
23Invoice/Details/ProductItem .................................................................... 24
24Invoice/Amount ....................................................................................... 25
25A0102 ............................................................................................................... 26
26InvoiceConfirm ........................................................................................ 27
27B0101 ............................................................................................................... 30
28Allowance (Aggregate) ..................................................................... 31
29Allowance/Main ...................................................................................... 31
30Allowance/Details (Aggregate)......................................................... 32
31Allowance/Details/ProductItem ............................................................... 33
32Allowance/Amount .................................................................................. 33
33B0102 ............................................................................................................... 35
34AllowanceConfirm ........................................................................................... 36
35A0201 ............................................................................................................... 37
36CancelInvoice ........................................................................................... 38
37A0202 ............................................................................................................... 39
38CancelInvoiceConfirm ............................................................................. 40
39B0201 ............................................................................................................... 42
XV
()()

v3.1.2

40CancelAllowance ............................................................................................. 42
41B0202 ............................................................................................................... 44
42CancelAllowance ............................................................................................. 44
43A0301 ............................................................................................................... 45
44RejectInvoice ........................................................................................... 46
45A0302 ............................................................................................................... 47
46A0401 ............................................................................................................... 51
47Invoice (Aggregate) .......................................................................... 52
48Invoice/Main ............................................................................................ 54
49Invoice/Details (Aggregate) .............................................................. 55
50Invoice/Details/ProductItem .................................................................... 55
51Invoice/Amount (Aggregate) ............................................................ 56
52Invoice/Amount ....................................................................................... 56
53B0401 ............................................................................................................... 60
54Allowance (Aggregate) ..................................................................... 61
55Allowance/Main ...................................................................................... 61
56Allowance/Details (Aggregate)......................................................... 62
57Allowance/Details/ProductItem ............................................................... 62
58Allowance/Amount .................................................................................. 63
59A0501 ............................................................................................................... 64
60CancelInvoice ........................................................................................... 65
61B0501 ............................................................................................................... 67
62CancelAllowance ............................................................................................. 67
63A0601 ............................................................................................................... 68
64RejectInvoice ........................................................................................... 69
65C0401 ............................................................................................................... 72
66Invoice (Aggregate) .......................................................................... 74
67Invoice/Main ............................................................................................ 76
68Invoice/Details (Aggregate) .............................................................. 78
69Invoice/Details/ProductItem .................................................................... 78
70Invoice/Amount ....................................................................................... 79
71C0501 ............................................................................................................... 81
72CancelInvoice ........................................................................................... 82
73C0701 ............................................................................................................... 83
74VoidInvoice .............................................................................................. 84
75D0401 ............................................................................................................... 86
76Allowance (Aggregate) ..................................................................... 87
77Allowance/Main ...................................................................................... 87
78Allowance/Details (Aggregate)......................................................... 88
79Allowance/Details/ProductItem ............................................................... 88
XVI
()()

v3.1.2

80Allowance/Amount .................................................................................. 89
81D0501 ............................................................................................................... 90
82CancelAllowance ............................................................................................. 91
83E0401 ............................................................................................................... 92
84BranchTrack (Aggregate) ................................................................. 93
85BranchTrack/Main ................................................................................... 94
86BranchTrack/Details (Aggregate) ..................................................... 94
87BranchTrack/Details/ BranchTrackItem .................................................. 95
88E0402 ............................................................................................................... 96
89BranchTrackBlank (Aggregate) ........................................................ 97
90BranchTrackBlank/Main .......................................................................... 97
91BranchTrackBlank/Details (Aggregate) ........................................... 98
92BranchTrackBlank/Details/BranchTrackBlankItem ................................ 98
93E0501 ............................................................................................................... 99
94InvoiceAssignNo .................................................................................... 100

XVII
()()

v3.1


.
(Message Implementation Guideline MIG)
XML

XML XML
XML (
)
.

()

()
W3C
()

W3C

W3C

1
()()

v3.1

(Element)(Aggregate)
()

()
(Element)
(Aggregate)

()

() (Element)(Aggregate)

(Tag) XML
XML Schema
(M O )

2
()()

v3.1


.
XML Schema XML Schema DTD
XML
(elements)(attributes)
XML Schema
DTD
DTDXML
DTDXML


(namespace)

01

(<>0999
)
DTD10
XML Schema
XML
XML Schema 40DTD10
<>
dddd-ddd-dddd

3
()()

v3.1



(elements)
(Empty Element )
subwaytrain

.
XML Schema
( XML Schema AXML Schema )
() String
ISO/IEC 10646-2000
tabcarriage returnline fee
unicode (UTF-8,UTF-16) ISO/IEC 10646
() Decimal

() Long

-9223372036854775808 9223372036854775807
.
() Element

O(Optional)
XML Tag

4
()()

v3.1

() Aggregate

() Message

() Document

() Order

5
()()

v3.1

B2B

B2C

()A01
1
A0101

A
2
A0102

A
()A02
3
A0201

A
4
A0202

A
()A03
5
A0301 ()

A
6
A0302

A
()A04
7
A0401

A
()A05
8
A0501

A
()A06
9
A0601

A
()/()B01
10
B0101 /
/ /
B
11
B0102 / / /
B
()B02
12
B0201

B
13
B0202

B
()/()B04
14
B0401 / /

B
B05
15
B0501

B
()C04
16
C0401

C
()C05
17
C0501

C
()C07
18
C0701

C
()/()D04
19
D0401 /

D
()D05
20
D0501

D
E04
21
E0401

E
22
E0402

E
E05
23
E0501

E

6
()()

v3.1

7
()()

v3.1


(Aggregate)

RoleDescriptionType

MessageTypeEnum
InvoiceTypeEnum
AllowanceNumberType

AllowanceTypeEnum

BAN
BuyerRemarkEnum
CustomsClearanceMarkEnum
InvoiceNumberType
DonateMarkEnum
TaxTypeEnum
CarrierTypeEnum
CurrencyCodeEnum ISO 4217
DateType
UTC+8

TimeType
UTC+8

8
()()

v3.1

.RoleDescriptionType
()

3RoleDescriptionType

()
2RoleDescriptionType (Aggregate)

XML Schema

<xsd:group name="RoleDescriptionType">
(RoleDescriptionType)

(Identifier)

3RoleDescriptionType

XML Schema

type="BAN"

(Name)

xsd:string
xsd:minLength value="1"
xsd:maxLength value="60"

(Address)

(PersonInCharge)

(TelephoneNumber)

(FacsimileNumber)

xsd:string
xsd:maxLength value="100"
xsd:string
xsd:maxLength value="30"
xsd:string
xsd:maxLength value="26"
xsd:string
xsd:maxLength value="26"

60

100

30

26

26

B2B/-

B2C-
-
4
ASCII 2

9
()()

v3.1

(EmailAddress)

(CustomerNumber)

(RoleRemark)

xsd:string
xsd:maxLength value="80"
xsd:string
xsd:maxLength value="20"
xsd:string
xsd:length value="40"

80

20

40

.MessageTypeEnum
4MessageTypeEnum

XML Schema

xsd:string
A0101, A0102, A0201,

A0301, A0302, A0401,


(MessageTypeEnum) xsd:minLength value="5"
xsd:maxLength value="5"
A0601, B0101, B0102,
5
M
B0202, B0401, B0501,
C0501, C0701, D0401,
E0401, E0402, E0501

A0202,
A0501,
B0201,
C0401,
D0501,

.InvoiceTypeEnum
5InvoiceTypeEnum

XML Schema

xsd:string

(InvoiceTypeEnum) xsd:minLength value="2"


xsd:maxLength value="2"
xsd:pattern value="0[1-8]"
2

01
02
03
04
05
06
07

08

.AllowanceNumberType
6AllowanceNumberType

XML Schema

xsd:string

(AllowanceNumberType) xsd:minLength value="1"

16
xsd:maxLength value="16"

.AllowanceTypeEnum

7AllowanceTypeEnum
XML Schema

10
()()

v3.1

(AllowanceTypeEnum)

xsd:string
xsd:minLength value="1"
xsd:maxLength value="1"
xsd:pattern value="[1-2]"

1:;
2:

.BAN

(BAN)

8BAN
XML Schema

xsd:string
xsd:minLength value="0"
xsd:maxLength value="10"
10

B2B /
B2C
/ 10
"0"

.BuyerRemarkEnum
9BuyerRemarkEnum

XML Schema

xsd:string
1
xsd:minLength
value="1"
(BuyerRemarkEnum)
2
1
xsd:maxLength value="1"
3
xsd:pattern value="[1-4]"
4

.CustomsClearanceMarkEnum
10CustomsClearanceMarkEnum

XML Schema

xsd:string
1
xsd:minLength
value="1"
(CustomsClearanceMarkEnum)
2
1
xsd:maxLength value="1"
(
)

.InvoiceNumberType
11InvoiceNumberType

XML Schema

xsd:string

(InvoiceNumberType) xsd:minLength value="10"

xsd:maxLength value="10"
10
QQ12345678
<xsd:pattern value="[A-Z][A-Z][0-9][0-9]
[0-9][0-9][0-9][0-9][0-9][0-9]"/>

11
()()

v3.1

.DonateMarkEnum

(DonateMarkEnum)

12DonateMarkEnum

XML Schema

xsd:string
0
xsd:minLength value="1"
1
1
xsd:maxLength value="1"
xsd:pattern value="[0-1]"

. TaxTypeEnum
13TaxTypeEnum

XML Schema

1
xsd:string
(TaxTypeEnum)
2
xsd:minLength value="1"
3
xsd:maxLength value="1"
1
4()
xsd:pattern
9(
value="[1,2,3,4,9]"
)

. CarrierTypeEnum

(CarrierTypeEnum)

14CarrierTypeEnum
XML Schema

xsd:string

6
xsd:maxLength value="6"

. CurrencyCodeEnum
15CurrencyCodeEnum

XML Schema

AEDUnited Arab Emirates,


(CurrencyCodeEnum)
Dirhams
AFNAfghanistan, Afghanis
ALLAlbania, Leke
AMDArmenia, Drams
xsd:string
ANGNetherlands Antilles,
xsd:minLength value="3"
3
xsd:maxLength value="3"
Guilders (also called Florins)
AOAAngola, Kwanza
ARSArgentina, Pesos
AUDAustralia, Dollars
AWGAruba, Guilders (also
12
()()

v3.1

called Florins)
AZNAzerbaijan, New Manats
BAMBosnia and Herzegovina,
Convertible Marka
BBDBarbados, Dollars
BDTBangladesh, Taka
BGNBulgaria, Leva
BHDBahrain, Dinars
BIFBurundi, Francs
BMDBermuda, Dollars
BNDBrunei Darussalam,
Dollars
BOBBolivia, Bolivianos
BRLBrazil, Brazil Real
BSDBahamas, Dollars
BTNBhutan, Ngultrum
BWPBotswana, Pulas
BYRBelarus, Rubles
BZDBelize, Dollars
CADCanada, Dollars
CDFCongo/Kinshasa,
Congolese Francs
CHFSwitzerland, Francs
CLPChile, Pesos
CNYChina, Yuan Renminbi
COPColombia, Pesos
CRCCosta Rica, Colones
CUPCuba, Pesos
CVECape Verde, Escudos
CYPCyprus, Pounds (expires
2008-Jan-31)
CZKCzech Republic, Koruny
DJFDjibouti, Francs
DKKDenmark, Kroner
DOPDominican Republic, Pesos
DZDAlgeria, Algeria Dinars
EGPEgypt, Pounds
ERNEritrea, Nakfa
ETBEthiopia, Birr
EUREuro Member Countries,
Euro
FJDFiji, Dollars
FKPFalkland Islands
(Malvinas), Pounds
GBPUnited Kingdom, Pounds
GELGeorgia, Lari
GGPGuernsey, Pounds
13
()()

v3.1

GHSGhana, Cedis
GIPGibraltar, Pounds
GMDGambia, Dalasi
GNFGuinea, Francs
GTQGuatemala, Quetzales
GYDGuyana, Dollars
HKDHong Kong, Dollars
HNLHonduras, Lempiras
HRKCroatia, Kuna
HTGHaiti, Gourdes
HUFHungary, Forint
IDRIndonesia, Rupiahs
ILSIsrael, New Shekels
IMPIsle of Man, Pounds
INRIndia, Rupees
IQDIraq, Dinars
IRRIran, Rials
ISKIceland, Kronur
JEPJersey, Pounds
JMDJamaica, Dollars
JODJordan, Dinars
JPYJapan, Yen
KESKenya, Shillings
KGSKyrgyzstan, Soms
KHRCambodia, Riels
KMFComoros, Francs
KPWKorea (North), Won
KRWKorea (South), Won
KWDKuwait, Dinars
KYDCayman Islands, Dollars
KZTKazakhstan, Tenge
LAKLaos, Kips
LBPLebanon, Pounds
LKRSri Lanka, Rupees
LRDLiberia, Dollars
LSLLesotho, Maloti
LTLLithuania, Litai
LVLLatvia, Lati
LYDLibya, Dinars
MADMorocco, Dirhams
MDLMoldova, Lei
MGAMadagascar, Ariary
MKDMacedonia, Denars
MMKMyanmar (Burma), Kyats
MNTMongolia, Tugriks
MOPMacau, Patacas
14
()()

v3.1

MROMauritania, Ouguiyas
MTLMalta, Liri (expires
2008-Jan-31)
MURMauritius, Rupees
MVRMaldives (Maldive
Islands), Rufiyaa
MWKMalawi, Kwachas
MXNMexico, Pesos
MYRMalaysia, Ringgits
MZNMozambique, Meticais
NADNamibia, Dollars
NGNNigeria, Nairas
NIONicaragua, Cordobas
NOKNorway, Krone
NPRNepal, Nepal Rupees
NZDNew Zealand, Dollars
OMROman, Rials
PABPanama, Balboa
PENPeru, Nuevos Soles
PGKPapua New Guinea, Kina
PHPPhilippines, Pesos
PKRPakistan, Rupees
PLNPoland, Zlotych
PYGParaguay, Guarani
QARQatar, Rials
RONRomania, New Lei
RSDSerbia, Dinars
RUBRussia, Rubles
RWFRwanda, Rwanda Francs
SARSaudi Arabia, Riyals
SBDSolomon Islands, Dollars
SCRSeychelles, Rupees
SDGSudan, Pounds
SEKSweden, Kronor
SGDSingapore, Dollars
SHPSaint Helena, Pounds
SLLSierra Leone, Leones
SOSSomalia, Shillings
SPLSeborga, Luigini
SRDSuriname, Dollars
STDSao Tome and Principe,
Dobras
SVCEl Salvador, Colones
SYPSyria, Pounds
SZLSwaziland, Emalangeni
THBThailand, Baht
15
()()

v3.1

TJSTajikistan, Somoni
TMMTurkmenistan, Manats
TNDTunisia, Dinars
TOPTonga, Pa'anga
TRYTurkey, New Lira
TTDTrinidad and Tobago,
Dollars
TVDTuvalu, Tuvalu Dollars
TWDTaiwan, New Dollars
TZSTanzania, Shillings
UAHUkraine, Hryvnia
UGXUganda, Shillings
USDUnited States of America,
Dollars
UYUUruguay, Pesos
UZSUzbekistan, Sums
VEBVenezuela, Bolivares
(expires 2008-Jun-30)
VEFVenezuela, Bolivares
Fuertes
VNDViet Nam, Dong
VUVVanuatu, Vatu
WSTSamoa, Tala
XAFCommunaute Financiere
Africaine BEAC, Francs
XAGSilver, Ounces
XAUGold, Ounces
XCDEast Caribbean Dollars
XDRInternational Monetary
Fund (IMF) Special Drawing
Rights
XOFCommunaute Financiere
Africaine BCEAO, Francs
XPDPalladium Ounces
XPFComptoirs Francais du
Pacifique Francs
XPTPlatinum, Ounces
YERYemen, Rials
ZARSouth Africa, Rand
ZMKZambia, Kwacha
ZWDZimbabwe, Zimbabwe
Dollars

16
()()

v3.1

. DateType

(DateType)

16DateType (Aggregate)
XML Schema

xsd:string
UTC+8
xsd:minLength value="8"

xsd:maxLength value="8"

xsd:pattern
100
value="[0-9][0-9][0-9][0-9
0100
]
2011
((0[1-9]|1[0-2]))((0[1-9]|[1
-2][0-9])|(3[0-1]))"

. TimeType

(TimeType)

17TimeType
XML Schema

xsd:time

UTC+8

. BondedAreaEnum
18BondedAreaEnum

XML Schema

xsd:string

xsd:minLength value="1"
(BondedAreaEnum) xsd:maxLength value="1"
xsd:pattern value="[1-3]"
1

1
7 4
()
2
7 7
()
3:
28 1 1
4 (
)

:
1
7 4 7 1 2
2
3
28 1 1 4

17
()()

v3.1

A0101

A0101
.
B2B

18
()()

v3.1

A0101

4A0101

19
()()

v3.1

A0101

.
19A0101
MIG A0101
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

Invoice

|--Main

|--InvoiceNumber

|--InvoiceDate

|--InvoiceTime

|--Seller

|--Name

0..1

|--Address

10

0..1

|--PersonInCharge

11

0..1

|--TelephoneNumber

12

0..1

|--FacsimileNumber

13

0..1

|--EmailAddress

14

0..1

|--CustomerNumber

15

0..1

|--RoleRemark

16

|--Buyer

17

|--Identifier

18

|--Name

19

0..1

|--Address

20

0..1

|--PersonInCharge

21

0..1

|--TelephoneNumber

22

0..1

|--FacsimileNumber

23

0..1

|--EmailAddress

24

0..1

|--CustomerNumber

25

0..1

|--RoleRemark

26

0..1

|--CheckNumber

27

0..1

|--BuyerRemark

28

0..1

|--MainRemark

29

0..1

|--CustomsClearanceMark

30

0..1

|--Category

31

0..1

|--RelateNumber

32

|--InvoiceType

33

0..1

|--GroupMark

34

|--DonateMark

35

0..1

|--Attachment

Usage Note

|--Identifier

36

37

1..999

|--Details
|

|--ProductItem

38

|--Description

39

|--Quantity

40

0..1

|--Unit
20

()()

v3.1

A0101

41

|--UnitPrice

42

|--Amount

43

|--SequenceNumber

44

0..1

|--Remark

45

0..1

|--RelateNumber

46

|--Amount

47

|--SalesAmount

48

|--TaxType

49

|--TaxRate

50

|--TaxAmount

51

|--TotalAmount

52

0..1

|--DiscountAmount

53

0..1

|--OriginalCurrencyAmount

54

0..1

|--ExchangeRate

55

0..1

|--Currency

. (Element)(Aggregate)
()

Invoice

5Invoice

(Main)

(Details)

(Amount)

20Invoice(Aggregate)
XML Schema

<xsd:element name="Main" type="Main"/>

<xsd:element name="Details " type="Details"/>

<xsd:element name="Amount" type="Amount"/>

21
()()

v3.1

()

A0101

Invoice/Main

6Invoice/Main

22
()()

v3.1

A0101

21Invoice/Main

XML Schema

type="InvoiceNumberType
M
"
InvoiceNumberType
(InvoiceNumber)

type="DateType"
M
DateType
(InvoiceDate)

type="TimeType"
M
TimeType
(InvoiceTime)

xsd:group
M
ref="RoleDescriptionType"
RoleDescriptionType
(Seller)

xsd:group
M
ref="RoleDescriptionType"
RoleDescriptionType
(Buyer)

xsd:string
10 O
xsd:maxLength value="10"
(CheckNumber)

type="BuyerRemarkEnum"
O
BuyerRemarkEnum
(BuyerRemark)
xsd:string

xsd:maxLength
200 O
(MainRemark)
value="200"

type="CustomsClearanceM
O CustomsClearanceMarkEnum
(CustomsClearanceMark) arkEnum"

xsd:string
2
O
xsd:maxLength value="2"
(Category)

xsd:string
20 O
xsd:maxLength value="20"
(RelateNumber)

type="InvoiceTypeEnum"
M
InvoiceTypeEnum
(InvoiceType)

xsd:string
1
O *
xsd:length value="1"
(GroupMark)

type="DonateMarkEnum"
M
DonateMarkEnum
(Donate Mark)

xsd:base64binary
1048
O
minOccurs="0"
576
(Attachment)

23
()()

v3.1

()

A0101

Invoice/Details

7Invoice/Detail

22Invoice/Details(Aggregate)

XML Schema

<xsd:element name="ProductItem"
M
(ProductItem) maxOccurs="999">

(Description)

(Quantity)

(Unit)

(UnitPrice)

(Amount)

(SequenceNumber)

(Remark)

(RelateNumber)

23Invoice/Details/ProductItem
XML Schema

xsd:string
xsd:minLength value="1"
256
M
xsd:maxLength value="256"
xsd:decimal

xsd:string
maxLength value="6"

xsd:decimal

xsd:decimal

xsd:string
xsd:minLength value="1"
xsd:maxLength value="3"
xsd:string
maxLength value="40"
xsd:string
maxLength value="20"

40

20

24
()()

v3.1

()

A0101

Invoice/Amount

8Invoice/Amount

()
(SalesAmount)

24Invoice/Amount

XML Schema


()
xsd:long
M *

type="TaxTypeEnum"
M
TaxTypeEnum
5%
xsd:decimal
M
0.05
(
xsd:long
M
)1

xsd:long
M
*

xsd:long
O

(TaxType)

(TaxRate)

(TaxAmount)

(TotalAmount)

(DiscountAmount)

xsd:decimal
(OriginalCurrencyAmount)

xsd:decimal
(ExchangeRate)

(Currency)

O
O

type="CurrencyCodeEnum"

O
CurrencyCodeEnum

25
()()

v3.1

A0102

A0102
.
()
() B2B

9A0102

.
25A0102
MIG A0102 /
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

InvoiceConfirm

|--InvoiceNumber

|--InvoiceDate

|--BuyerId

|--SellerId

|--ReceiveDate

|--ReceiveTime

0..1

|--BuyerRemark

0..1

|--Remark

10

0..1

|--BondedAreaConfirm

Usage Note

26
()()

v3.1

A0102

. (Element)(Aggregate)
26InvoiceConfirm

XML Schema

(InvoiceNumber) type="InvoiceNumberType"
InvoiceNumberType
M

type="DateType"
M
(InvoiceDate)
DateType

BAN
type="BAN"
M
(BuyerId)

BAN
type="BAN"
M
(SellerId)

type="DateType"
M
(ReceiveDate)
DateType

type="TimeType"
M
(ReceiveTime)
TimeType

BuyerRemarkEnum
type="BuyerRemarkEnum"
O
(BuyerRemark)

xsd:string
200
O
xsd:maxLength value="200"
(Remark)



BondedAreaCodeEnum
type="BondedAreaCodeEnum"
O
(BondedAreaConf

irm)

27
()()

v3.1

B0101 /

B0101 /
.
B2B

28
()()

v3.1

B0101 /

10B0101

29
()()

v3.1

B0101 /

.
27B0101
MIG B0101 / |
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line #

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

Cardinality

1
1
1
1
1
1
1
0..1
0..1
0..1
0..1
0..1
0..1
1
1
1
0..1
0..1
0..1
0..1
0..1
0..1
1
0..1
1
1..999
1
1
0..1
1
1
0..1
1
1
1
1
1
1
1
1

Data Element

Usage Note

Allowance
|--Main
|
|--AllowanceNumber
|
|--AllowanceDate
|
|--Seller
|
|
|--Identifier
|
|
|--Name
|
|
|--Address
|
|
|--PersonInCharge
|
|
|--TelephoneNumber
|
|
|--FacsimileNumber
|
|
|--EmailAddress
|
|
|--CustomerNumber
|
|--Buyer
|
|
|--Identifier
|
|
|--Name
|
|
|--Address
|
|
|--PersonInCharge
|
|
|--TelephoneNumber
|
|
|--FacsimileNumber
|
|
|--EmailAddress
|
|
|--CustomerNumber
|
|--AllowanceType
|
|--Attachment
|--Details
|
|--ProductItem
|
|
|--OriginalInvoiceDate
|
|
|--OriginalInvoiceNumber
|
|
|--OriginalSequenceNumber
|
|
|--OriginalDescription
|
|
|--Quantity
|
|
|--Unit
|
|
|--UnitPrice
|
|
|--Amount
|
|
|--Tax
|
|
|--AllowanceSequenceNumber
|
|
|--TaxType
|--Amount
|
|--TaxAmount
|
|--TotalAmount
30

()()

v3.1

B0101 /

. (Element)(Aggregate)
()

Allowance

11Allowance

28Allowance(Aggregate)

(Main)

(Details)

(Amount)

()

XML Schema

<xsd:element name="Main" type="Main"/>

<xsd:element name="Details"
type="Details"/>
<xsd:element name="Amount"
type="Amount"/>

M
M

Allowance/Main

12Allowance/Main

29Allowance/Main

XML Schema

type="AllowanceNumberTy
(AllowanceNumber) pe"

type="DateType"

AllowanceNumberType

31
()()

v3.1

B0101 /

(AllowanceDate)

DateType

(Seller)

xsd:group
ref="RoleDescriptionType"

(Buyer)

xsd:group
ref="RoleDescriptionType"

type="AllowanceType"

(AllowanceType)

(Attachment)

()

xsd:base64binary

1048576

RoleDescriptionType

RoleDescriptionType

AllowanceType

Allowance/Details

13Allowance/Details

30Allowance/Details(Aggregate)

XML Schema
<xsd:element name="ProductItem"
(ProductItem) maxOccurs="999">

32
()()

v3.1

B0101 /

31Allowance/Details/ProductItem

XML Schema

(OriginalInvoiceDate)

type="DateType"

(OriginalInvoiceNumber)

type="InvoiceNumberTyp
e"

(OriginalSequenceNumber)

xsd:string
3
xsd:maxLength value="3"
xsd:string
xsd:minLength value="1"
256
xsd:maxLength
value="256"

(OriginalDescription)

(Quantity)

(Unit)

(UnitPrice)
()
(Amount)

xsd:decimal

xsd:decimal

xsd:decimal

xsd:string
(AllowanceSequenceNumber) xsd:maxLength value="3"

()

xsd:long

(TaxType)

DateType

InvoiceNumberType

xsd:string
xsd:maxLength value="6"

(Tax)

type="TaxType"

M
M

()

TaxTypeEnum

Allowance/Amount

14Allowance/Amount

32Allowance/Amount

(TaxAmount)
()
(TotalAmount)

XML Schema
xsd:long

xsd:long

33
()()

v3.1

B0101 /

34
()()

v3.1

B0102 /

B0102 /

.
B2B 2
()

()
()

()

15B0102

.
33B0102
MIG B0102 / |
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line #

Cardinality

Data Element

AllowanceConfirm

|--AllowanceNumber

|--AllowanceDate

Usage Note

35
()()

v3.1

B0102 /

|--BuyerId

|--SellerId

|--ReceiveDate

|--ReceiveTime

|--AllowanceType

0..1

|--Remark

. (Element)(Aggregate)

(AllowanceNumber)

(AllowanceDate)

(BuyerId)

(SellerId)

(ReceiveDate)

(ReceiveTime)

(AllowanceType)

(Remark)

34AllowanceConfirm
XML Schema

type="AllowanceNumberType
"

type="DateType"

type="BAN"

type="BAN"

type="DateType"

type="TimeType"

type="AllowanceType"

xsd:string
xsd:maxLength value="200"

200


AllowanceNumberType

DateType

BAN

BAN

DateType

TimeType

AllowanceType

36
()()

v3.1

A0201

A0201
.

B2B

16A0201

.
35A0201
MIG A0201 /
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

CancelInvoice

|--CancelInvoiceNumber

|--InvoiceDate

|--BuyerId

|--SellerId

|--CancelDate

|--CancelTime

|--CancelReason

0..1

|--ReturnTaxDocumentNumber

10

0..1

|--Remark

Usage Note

37
()()

v3.1

A0201

. (Element)(Aggregate)
36CancelInvoice

XML Schema

type="InvoiceNumberType"
M
(CancelInvoiceNumber)
InvoiceNumberType

type="DateType"
M
(InvoiceDate)
DateType

BAN
type="BAN"
M
(BuyerId)

BAN
type="BAN"
M
(SellerId)

type="DateType"
M
(CancelDate)
DateType

type="TimeType"
M
(CancelTime)
TimeType

xsd:string
20 M
(CancelReason)
xsd:maxLength value="20"

(ReturnTaxDocumentN
umber)

(Remark)

xsd:string
xsd:maxLength value="60"

60

xsd:string
xsd:maxLength
value="200"

200

38
()()

v3.1

A0202

A0202

.
()
() B2B

17A0202

.
37A0202
MIG A0202 /
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

CancelInvoiceConfirm

|--CancelInvoiceNumber

|--InvoiceDate

|--BuyerId

|--SellerId

|--CancelDate

|--CancelTime

0..1

Usage Note

|--Remark

39
()()

v3.1

A0202

. (Element)(Aggregate)
38CancelInvoiceConfirm

XML Schema

type="InvoiceNumberType"
M
(CancelInvoiceNumber)
InvoiceNumberType

type="DateType"
M
(InvoiceDate)
DateType

BAN
type="BAN"
M
(BuyerId)

BAN
type="BAN"
M
(SellerId)

type="DateType"
M
(CancelDate)
DateType

type="TimeType"
M
(CancelTime)
TimeType
xsd:string

xsd:maxLength
200 O
(Remark)
value="200"

40
()()

v3.1

B0201

B0201

B2B
.

18B0201

41
()()

v3.1

B0201

.
39B0201
MIG B0201 /
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line #

Cardinality

Data Element

CancelAllowance

|--CancelAllowanceNumber

|--AllowanceDate

|--BuyerId

|--SellerId

|--CancelDate

|--CancelTime

|--CancelReason

0..1

Usage Note

|--Remark

. (Element)(Aggregate)
40CancelAllowance

XML Schema


(CancelAllowanceNum type="AllowanceNumberType"
M AllowanceNumberType
ber)

type="DateType"
M
(AllowanceDate)
DateType

type="BAN"
M
(BuyerId)
BAN

type="BAN"
M
(SellerId)
BAN

type="DateType"
M
(CancelDate)
DateType

type="TimeType"
M
(CancelTime)
TimeType
xsd:string
20
M
xsd:maxLength value="20"
(CancelReason)

xsd:string
200
O
xsd:maxLength value="200"
(Remark)

42
()()

v3.1

B0202

B0202
.
()
()
B2B
.

19B0202

43
()()

v3.1

B0202

.
41B0202
MIG B0202 /
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line #

Cardinality

Data Element

CancelAllowanceConfirm

|--CancelAllowanceNumber

|--AllowanceDate

|--BuyerId

|--SellerId

|--CancelDate

|--CancelTime

0..1

Usage Note

|--Remark

. (Element)(Aggregate)

42CancelAllowance
XML Schema

(CancelAllowanceNum type="AllowanceNumberType"
ber)

type="DateType"
(AllowanceDate)

type="BAN"
(BuyerId)

type="BAN"
(SellerId)

type="DateType"
(CancelDate)

type="TimeType"
(CancelTime)

xsd:string
xsd:maxLength value="200"
(Remark)

M
M
M
M
M
M
200


AllowanceNumberType

DateType

BAN

BAN

DateType

TimeType

44
()()

v3.1

A0301 ()

A0301 ()

.
()
()
() B2B

20A0301

.
43A0301
MIG A0301 / ()
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

RejectInvoice

|--RejectInvoiceNumber

|--InvoiceDate

|--BuyerId

|--SellerId

|--RejectDate

|--RejectTime

|--RejectReason

0..1

Usage Note

|--Remark

45
()()

v3.1

A0301 ()

. (Element)(Aggregate)
44RejectInvoice

XML Schema


()

type="InvoiceNumberType"
M
(RejectInvoiceNumber)
InvoiceNumberType

type="DateType"
M
(InvoiceDate)
DateType

BAN
type="BAN"
M
(BuyerId)

BAN
type="BAN"
M
(SellerId)

()

type="DateType"
M
(RejectDate)
DateType
()

type="TimeType"
M
(RejectTime)
TimeType
()
xsd:string
20 M
xsd:maxLength value="20"
(RejectReason)
xsd:string

xsd:maxLength
200 O
(Remark)
value="200"

46
()()

v3.1

A0302 ()

A0302 ()

.
()()
()
B2B

21A0302

.
45A0302
MIG A0302 /()
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

RejectInvoiceConfirm

|--RejectInvoiceNumber

|--InvoiceDate

|--BuyerId

|--SellerId

|--RejectDate

|--RejectTime

0..1

Usage Note

|--Remark

47
()()

v3.1

A0302 ()

. (Element)(Aggregate)
16RejectInvoiceConfirm

XML Schema


()

type="InvoiceNumberType"
M
(RejectInvoiceNumber)
InvoiceNumberType

type="DateType"
M
(InvoiceDate)
DateType

BAN
type="BAN"
M
(BuyerId)

BAN
type="BAN"
M
(SellerId)

()

type="DateType"
M
(RejectDate)
DateType
()

type="TimeType"
M
(RejectTime)
TimeType
xsd:string

xsd:maxLength
200 O
(Remark)
value="200"

48
()()

v3.1

A0401

A0401
.

B2B

49
()()

v3.1

A0401

22A0401

50
()()

v3.1

A0401

.
46A0401
MIG A0401
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

Invoice

|--Main

|--InvoiceNumber

|--InvoiceDate

|--InvoiceTime

|--Seller

|--Identifier

|--Name

0..1

|--Address

10

0..1

|--PersonInCharge

11

0..1

|--TelephoneNumber

12

0..1

|--FacsimileNumber

13

0..1

|--EmailAddress

14

0..1

|--CustomerNumber

15

0..1

|--RoleRemark

16

|--Buyer

17

|--Identifier

18

|--Name

19

0..1

|--Address

20

0..1

|--PersonInCharge

21

0..1

|--TelephoneNumber

22

0..1

|--FacsimileNumber

23

0..1

|--EmailAddress

24

0..1

|--CustomerNumber

25

0..1

|--RoleRemark

26

0..1

|--CheckNumber

27

0..1

|--BuyerRemark

28

0..1

|--MainRemark

29

0..1

|--CustomsClearanceMark

30

0..1

|--Category

31

0..1

|--RelateNumber

32

|--InvoiceType

33

0..1

|--GroupMark

34

|--DonateMark

35

0..1

|--Attachment

36

37

1..999

|--ProductItem

38

|--Description

39

|--Quantity

40

0..1

|--Unit

41

|--UnitPrice

Usage Note

|--Details

51
()()

v3.1
42

A0401

|--Amount

43

|--SequenceNumber

44

0..1

|--Remark

45

0..1

|--RelateNumber

46

|--Amount

47

|--SalesAmount

48

|--TaxType

49

|--TaxRate

50

|--TaxAmount

51

|--TotalAmount

52

0..1

|--DiscountAmount

53

0..1

|--OriginalCurrencyAmount

54

0..1

|--ExchangeRate

55

0..1

56

0..1

|
|

|--Currency
|-- BondedAreaConfirm

. (Element)(Aggregate)
()

Invoice

23Invoice

(Main)

(Details)

(Amount)

47Invoice(Aggregate)
XML Schema

<xsd:element name="Main" type="Main"/>

<xsd:element name="Details " type="Details"/>

<xsd:element name="Amount" type="Amount"/>

52
()()

v3.1

()

A0401

Invoice/Main

24Invoice/Main

53
()()

v3.1

A0401

48Invoice/Main

XML Schema

type="InvoiceNumberType"
M InvoiceNumberType
(InvoiceNumber)

type="DateType"
M
DateType
(InvoiceDate)

type="TimeType"
M
TimeType
(InvoiceTime)

xsd:group
M RoleDescriptionType
ref="RoleDescriptionType"
(Seller)

xsd:group
M RoleDescriptionType
ref="RoleDescriptionType"
(Buyer)

xsd:string
10
O
xsd:maxLength value="10"
(CheckNumber)

type="BuyerRemarkEnum"
O BuyerRemarkEnum
(BuyerRemark)

xsd:string
200 O
xsd:maxLength value="200"
(MainRemark)

type="CustomsClearanceMa
O CustomsClearanceMarkEnum
(CustomsClearanceMark) rkEnum"

xsd:string
2
O
xsd:maxLength value="2"
(Category)

xsd:string
20
O
xsd:maxLength value="20"
(RelateNumber)

type="InvoiceTypeEnum"
M
InvoiceTypeEnum
(InvoiceType)

xsd:string
1
O *
xsd:length value="1"
(GroupMark)

type="DonateMarkEnum"
M
DonateMarkEnum
(Donate Mark)

type="BondedAreaCodeEnu

O BondedAreaCodeEnum
m"
(BondedAreaConfirm)

xsd:base64binary
1048
O
minOccurs="0"
576
(Attachment)

54
()()

v3.1

()

A0401

Invoice/Details

25Invoice/Detail

49Invoice/Details(Aggregate)

XML Schema

<xsd:element name="ProductItem"
M
(ProductItem) maxOccurs="999">

(Description)

(Quantity)

(Unit)

(UnitPrice)

(Amount)

(SequenceNumber)

(Remark)

(RelateNumber)

50Invoice/Details/ProductItem
XML Schema

xsd:string
256
M
maxLength value="256"
xsd:decimal

xsd:string
maxLength value="6"

xsd:decimal

xsd:decimal

xsd:string
maxLength value="3"
xsd:string
maxLength value="40"
xsd:string
maxLength value="20"

40

20

55
()()

v3.1

()

A0401

Invoice/Amount

26Invoice/Amount

51Invoice/Amount(Aggregate)

XML Schema

<xsd:element name="ProductItem"
M
(ProductItem) maxOccurs="999">

52Invoice/Amount

XML Schema

()
(SalesAmount)

xsd:long

(TaxType)

type="TaxTypeEnum"

(TaxRate)

xsd:decimal

(TaxAmount)

xsd:long

xsd:long

(
)
*

TaxTypeEnum

5%
0.05
(
)
2
*

56
()()

v3.1

A0401

(TotalAmount)

xsd:long
(DiscountAmount)

xsd:decimal
(OriginalCurrencyAmount)

xsd:decimal
(ExchangeRate)

(Currency)

O
O
O

type="CurrencyCodeEnum"

CurrencyCodeEnum

57
()()

v3.1

B0401 /

B0401 /

.
B2B

58
()()

v3.1

B0401 /

27B0401

59
()()

v3.1

B0401 /

.
53B0401
MIG B0401 / |
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line #

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

Cardinality

1
1
1
1
1
1
1
0..1
0..1
0..1
0..1
0..1
0..1
1
1
1
0..1
0..1
0..1
0..1
0..1
0..1
1
0..1
1
1..999
1
1
0..1
1
1
0..1
1
1
1
1
1
1
1
1

Data Element

Usage Note

Allowance
|--Main
|
|--AllowanceNumber
|
|--AllowanceDate
|
|--Seller
|
|
|--Identifier
|
|
|--Name
|
|
|--Address
|
|
|--PersonInCharge
|
|
|--TelephoneNumber
|
|
|--FacsimileNumber
|
|
|--EmailAddress
|
|
|--CustomerNumber
|
|--Buyer
|
|
|--Identifier
|
|
|--Name
|
|
|--Address
|
|
|--PersonInCharge
|
|
|--TelephoneNumber
|
|
|--FacsimileNumber
|
|
|--EmailAddress
|
|
|--CustomerNumber
|
|--AllowanceType
|
|--Attachment
|--Details
|
|--ProductItem
|
|
|--OriginalInvoiceDate
|
|
|--OriginalInvoiceNumber
|
|
|--OriginalSequenceNumber
|
|
|--OriginalDescription
|
|
|--Quantity
|
|
|--Unit
|
|
|--UnitPrice
|
|
|--Amount
|
|
|--Tax
|
|
|--AllowanceSequenceNumber
|
|
|--TaxType
|--Amounts
|
|--TaxAmount
|
|--TotalAmount
60

()()

v3.1

B0401 /

. (Element)(Aggregate)
()

Allowance

28Allowance

(Main)

(Details)

(Amount)

()

54Allowance(Aggregate)
XML Schema

<xsd:element name="Main" type="Main"/>


<xsd:element name="Details"
type="Details "/>
<xsd:element name="Amount"
type="Amount"/>

M
M
M

Allowance/Main

29Allowance/Main

55Allowance/Main

XML Schema

type="AllowanceNumberType"
M
AllowanceNumberType
(AllowanceNumber)

type="DateType"
M
61
()()

v3.1

B0401 /

(AllowanceDate)

(Seller)

xsd:group
ref="RoleDescriptionType"

(Buyer)

xsd:group
ref="RoleDescriptionType"

type="AllowanceType"

(AllowanceType)

(Attachment)

()

10485
76

xsd:base64binary

DateType

RoleDescriptionType

RoleDescriptionType

AllowanceType

Allowance/Details

30Allowance/Details

56Allowance/Details(Aggregate)

XML Schema

<xsd:element name="ProductItem"
M
(ProductItem) maxOccurs="999">

57Allowance/Details/ProductItem

XML Schema

type="DateType"
M
DateType
(OriginalInvoiceDate)

type="InvoiceNumberTyp
M
62
()()

v3.1

B0401 /

XML Schema

(OriginalInvoiceNumber)

e"

(OriginalSequenceNumber)

xsd:string
3
xsd:maxLength value="3"
xsd:string
xsd:maxLength
256
value="256"

(OriginalDescription)

(Quantity)

(Unit)

(UnitPrice)
()
(Amount)

xsd:decimal

xsd:decimal

xsd:decimal

xsd:string
(AllowanceSequenceNumber) xsd:maxLength value="3"

()

xsd:long

(TaxType)

InvoiceNumberType

xsd:string
xsd:maxLength value="6"

(Tax)

type="TaxType"

M
M

()


TaxTypeEnum

Allowance/Amount

31Allowance/Amount

58Allowance/Amount
XML Schema

(TaxAmount)
()
(TotalAmount)

xsd:long

xsd:long

63
()()

v3.1

A0501

A0501

B2B

32A0501

.
59A0501
MIG A0501 /
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

CancelInvoice

|--CancelInvoiceNumber

|--InvoiceDate

|--BuyerId

|--SellerId

|--CancelDate

|--CancelTime

|--CancelReason

0..1

|--ReturnTaxDocumentNumber

10

0..1

|--Remark

Usage Note

64
()()

v3.1

A0501

. (Element)(Aggregate)
60CancelInvoice

XML Schema

type="InvoiceNumberType"
M
(CancelInvoiceNumber)
InvoiceNumberType

type="DateType"
M
(InvoiceDate)
DateType

BAN
type="BAN"
M
(BuyerId)

BAN
type="BAN"
M
(SellerId)

type="DateType"
M
(CancelDate)
DateType

type="TimeType"
M
(CancelTime)
TimeType

xsd:string
20 M
(CancelReason)
xsd:maxLength value="20"

(ReturnTaxDocumentN
umber)

(Remark)

xsd:string
xsd:maxLength value="60"

60

xsd:string
xsd:maxLength
value="200"

200

65
()()

v3.1

B0501

B0501
.

B2B

33B0501

66
()()

v3.1

B0501

.
61B0501
MIG B0501 /
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line #

Cardinality

Data Element

CancelAllowance

|--CancelAllowanceNumber

|--AllowanceDate

|--BuyerId

|--SellerId

|--CancelDate

|--CancelTime

|--CancelReason

0..1

Usage Note

|--Remark

. (Element)(Aggregate)

62CancelAllowance
XML Schema

(CancelAllowanceNum type="AllowanceNumberType"
ber)

type="DateType"
(AllowanceDate)

type="BAN"
(BuyerId)

type="BAN"
(SellerId)

type="DateType"
(CancelDate)

type="TimeType"
(CancelTime)
xsd:string
xsd:maxLength value="20"
(CancelReason)

xsd:string
xsd:maxLength value="200"
(Remark)

M
M
M
M
M
M
20

200


AllowanceNumberType

DateType

BAN

BAN

DateType

TimeType

67
()()

v3.1

A0601 ()

A0601 ()
.
()
()
() B2B

34A0601

.
63A0601
MIG A0601 / ()
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

RejectInvoice

|--RejectInvoiceNumber

|--InvoiceDate

|--BuyerId

|--SellerId

|--RejectDate

|--RejectTime

|--RejectReason

0..1

Usage Note

|--Remark

68
()()

v3.1

A0601 ()

. (Element)(Aggregate)
64RejectInvoice

XML Schema


()

type="InvoiceNumberType"
M
(RejectInvoiceNumber)
InvoiceNumberType

type="DateType"
M
(InvoiceDate)
DateType

BAN
type="BAN"
M
(BuyerId)

BAN
type="BAN"
M
(SellerId)

()

type="DateType"
M
(RejectDate)
DateType
()

type="TimeType"
M
(RejectTime)
TimeType
()
xsd:string
20 M
xsd:maxLength value="20"
(RejectReason)
xsd:string

xsd:maxLength
200 O
(Remark)
value="200"

69
()()

v3.1

C0401

C0401

B2C

70
()()

v3.1

C0401

35C0401

71
()()

v3.1

C0401

.
65C0401
MIG C0401
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

Usage Note

Invoice

|--Main

|--InvoiceNumber

|--InvoiceDate

|--InvoiceTime

|--Seller

|--Identifier

|--Name

0..1

|--Address

N/A

10

0..1

|--PersonInCharge

N/A

11

0..1

|--TelephoneNumber

N/A

12

0..1

|--FacsimileNumber

N/A

13

0..1

|--EmailAddress

N/A

14

0..1

|--CustomerNumber

N/A

15

0..1

|--RoleRemark

N/A

16

|--Buyer

17

|--Identifier

18

|--Name

19

0..1

|--Address

N/A

20

0..1

|--PersonInCharge

N/A

21

0..1

|--TelephoneNumber

N/A

22

0..1

|--FacsimileNumber

N/A

23

0..1

|--EmailAddress

N/A

24

0..1

|--CustomerNumber

N/A

25

0..1

|--RoleRemark

N/A

26

0..1

|--CheckNumber

N/A

27

0..1

|--BuyerRemark

N/A

28

0..1

|--MainRemark

N/A

29

0..1

|--CustomsClearanceMark

N/A

30

0..1

|--Category

N/A

31

0..1

|--RelateNumber

N/A

32

|--InvoiceType

33

0..1

|--GroupMark

34

|--DonateMark

35

0..1

|--CarrierType

N/A

36

0..1

|--CarrierId1

N/A

37

0..1

|--CarrierId2

N/A

38

|--PrintMark

39

0..1

|--NPOBAN

40

|--RandomNumber

N/A

N/A

72
()()

v3.1

C0401

41

|--Details

42

1..999

|--ProductItem

43

|--Description

44

|--Quantity

45

0..1

|--Unit

46

|--UnitPrice

47

|--Amount

48

|--SequenceNumber

49

0..1

|--Remark

N/A

50

0..1

|--RelateNumber

N/A

51

|--Amounts

52

|--SalesAmount

53

|--FreeTaxSalesAmount

54

|--ZeroTaxSalesAmount

55

|--TaxType

56

|--TaxRate

57

|--TaxAmount

58

|--TotalAmount

59

0..1

|--DiscountAmount

N/A

60

0..1

|--OriginalCurrencyAmount

N/A

61

0..1

|--ExchangeRate

N/A

62

0..1

|--Currency

N/A

N/A

tag Usage Note N/A tag xml


tag

73
()()

v3.1

C0401

. (Element)(Aggregate)
()

Invoice

36Invoice

(Main)

(Details)

(Amount)

66Invoice(Aggregate)
XML Schema

<xsd:element name="Main" type="Main"/>

<xsd:element name="Details " type="Details"/>

<xsd:element name="Amount" type="Amount"/>

74
()()

v3.1

()

C0401

Invoice/Main

37Invoice/Main
75
()()

v3.1

C0401

67Invoice/Main

XML Schema

type="InvoiceNumberType"
M InvoiceNumberType
(InvoiceNumber)

type="DateType"
M
DateType
(InvoiceDate)

type="TimeType"
M
TimeType
(InvoiceTime)

xsd:group
M RoleDescriptionType
ref="RoleDescriptionType"
(Seller)

xsd:group
M RoleDescriptionType
ref="RoleDescriptionType"
(Buyer)

xsd:string
1
O P
xsd:maxLength value="1"
(CheckNumber)

type="BuyerRemarkEnum"
O BuyerRemarkEnum
(BuyerRemark)

xsd:string
200 O
xsd:maxLength value="200"
(MainRemark)

type="CustomsClearanceMa
O CustomsClearanceMarkEnum
(CustomsClearanceMark) rkEnum"

xsd:string
2
O
xsd:maxLength value="2"
(Category)

xsd:string
20
O
xsd:maxLength value="20"
(RelateNumber)

type="InvoiceTypeEnum"
M
InvoiceTypeEnum
(InvoiceType)

xsd:string
1
O *
xsd:length value="1"
(GroupMark)

type="DonateMarkEnum"
M
DonateMarkEnum
(Donate Mark)
76
()()

v3.1

(CarrierType)

C0401

XML Schema

type="CarrierTypeEnum"

id
(CarrierId1)
xsd:string
xsd:maxLength value="64"

64

xsd:string
xsd:maxLength value="64"

64

xsd:string
xsd:minLength value="1"
xsd:maxLength value="1"
xsd:pattern value="[Y,N]"

id
(CarrierId2)

(PrintMark)

type="BAN"

CarrierTypeEnum

:AA0000,
()
(),
()

Y/NPrintMark Y
, ID,
ID
0

ID ID

BAN

77
()()

v3.1

C0401

XML Schema

3-7

(NPOBAN)

(RandomNumber)

()

xsd:string
xsd:minLength value="4"
xsd:maxLength value="4"
xsd:pattern value="[0-9,A]
[0-9,A] [0-9,A] [0-9,A]"

4
4

Invoice/Details

38Invoice/Detail

68Invoice/Details(Aggregate)

XML Schema

<xsd:element name="ProductItem"
M
(ProductItem) maxOccurs="999">

(Description)

(Quantity)

(Unit)

(UnitPrice)

(Amount)

69Invoice/Details/ProductItem
XML Schema

xsd:string
256
M
maxLength value="256"
xsd:decimal

xsd:string
maxLength value="6"

xsd:decimal

xsd:decimal

xsd:string
maxLength value="3"

78
()()

v3.1

(SequenceNumber)

(Remark)

(RelateNumber)

()

C0401

xsd:string
maxLength value="40"
xsd:string
maxLength value="20"

40

20

""

Invoice/Amount

39Invoice/Amount

70Invoice/Amount

XML Schema


()
()
(SalesAmount)
xsd:decimal
M *

()
(
(FreeTaxSalesAmount)
) 0
xsd:decimal
M
*

(
(
)
) 0
xsd:decimal
M
(ZeroTaxSalesAmount)
*

type="TaxTypeEnum"
M
TaxTypeEnum
(TaxType)

xsd:decimal
M 5%
(TaxRate)

79
()()

v3.1

C0401

XML Schema

(TaxAmount)

xsd:long

(TotalAmount)

xsd:long

0.05
(
)1
M
*

M *

xsd:long
(DiscountAmount)

xsd:decimal
(OriginalCurrencyAmount)

xsd:decimal
(ExchangeRate)

(Currency)

O
O

type="CurrencyCodeEnum"

O
CurrencyCodeEnum

80
()()

v3.1

C0501

C0501
.

B2C

40C0501

.
71C0501
MIG C0501 /
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

CancelInvoice

|--CancelInvoiceNumber

|--InvoiceDate

|--BuyerId

|--SellerId

|--CancelDate

|--CancelTime

|--CancelReason

0..1

|--ReturnTaxDocumentNumber

10

0..1

|--Remark

Usage Note

81
()()

v3.1

C0501

. (Element)(Aggregate)
72CancelInvoice

XML Schema

type="InvoiceNumberType"
M
(CancelInvoiceNumber)
InvoiceNumberType

type="DateType"
M
(InvoiceDate)
DateType

BAN
type="BAN"
M
(BuyerId)

BAN
type="BAN"
M
(SellerId)

type="DateType"
M
(CancelDate)
DateType

type="TimeType"
M
(CancelTime)
TimeType

xsd:string
20 M 1
(CancelReason)
xsd:maxLength value="20"

(ReturnTaxDocumentN
umber)

(Remark)

xsd:string
xsd:maxLength value="60"

60

xsd:string
xsd:maxLength
value="200"

200

82
()()

v3.1

C0701

C0701
.
B2C

41C0701

.
73C0701
MIG C0701 /
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

VoidInvoice

|--VoidInvoiceNumber

|--InvoiceDate

|--BuyerId

|--SellerId

|--VoidDate

|--VoidTime

|--VoidReason

0..1

Usage Note

|--Remark

83
()()

v3.1

C0701

. (Element)(Aggregate)

(VoidInvoiceNumber)

(InvoiceDate)

(BuyerId)

(SellerId)

(VoidDate)

(VoidTime)

(VoidReason)

(Remark)

74VoidInvoice

XML Schema

type="InvoiceNumberType"
M
InvoiceNumberType

type="DateType"
M
DateType
BAN
type="BAN"
M

BAN
type="BAN"
M

type="DateType"
M
DateType

type="TimeType"
M
TimeType
xsd:string
20 M 1
xsd:maxLength value="20"
xsd:string
xsd:maxLength
200 O
value="200"

84
()()

v3.1 D0401 /

D0401 /

.
B2C

42D0401

85
()()

v3.1

D0401 /

.
75D0401
MIG D0401 / |
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line #

Cardinality

Data Element

Allowance

|--Main

|--AllowanceNumber

|--AllowanceDate

|--Seller

|--Identifier

|--Name

0..1

|--Address

0..1

|--PersonInCharge

10

0..1

|--TelephoneNumber

11

0..1

|--FacsimileNumber

12

0..1

|--EmailAddress

13

0..1

|--CustomerNumber

14

|--Buyer

15

|--Identifier

16

|--Name

17

0..1

|--Address

18

0..1

|--PersonInCharge

19

0..1

|--TelephoneNumber

20

0..1

|--FacsimileNumber

21

0..1

|--EmailAddress

22

0..1

|--CustomerNumber

23

|--AllowanceType

24

0..1

|--Attachment

24

25

1..999

|--ProductItem

26

|--OriginalInvoiceDate

27

|--OriginalInvoiceNumber

28

0..1

|--OriginalSequenceNumber

29

|--OriginalDescription

30

|--Quantity

31

0..1

|--Unit

32

|--UnitPrice

33

|--Amount

34

|--Tax

35

|--AllowanceSequenceNumber

36

|--TaxType

37

|--Amount

38

|--TaxAmount

39

|--TotalAmount

Usage Note

|--Details

86
()()

v3.1

D0401 /

.(Element)(Aggregate)
()

Allowance

43Allowance

(Main)

(Details)

(Amount)

()

76Allowance(Aggregate)
XML Schema

<xsd:element name="Main" type="Main"/>


<xsd:element name="Details"
type="Details"/>
<xsd:element name="Amount"
type="Amount "/>

M
M
M

Allowance/Main

44Allowance/Main

77Allowance/Main

XML Schema

type="AllowanceNumberType"
M
AllowanceNumberType
(AllowanceNumber)

type="DateType"
M
DateType
(AllowanceDate)

xsd:group
M
87
()()

v3.1

D0401 /

(Seller)

ref="RoleDescriptionType"

(Buyer)

xsd:group
ref="RoleDescriptionType"

type="AllowanceType"

(AllowanceType)

(Attachment)

()

10485
76

xsd:base64binary

RoleDescriptionType

RoleDescriptionType

AllowanceType

Allowance/Details

45Allowance/Details

78Allowance/Details(Aggregate)

XML Schema

<xsd:element name="ProductItem"
M
(ProductItem) maxOccurs="999">

79Allowance/Details/ProductItem

XML Schema

type="DateType"
M
DateType
(OriginalInvoiceDate)

type="InvoiceNumberTyp
M InvoiceNumberType
e"
(OriginalInvoiceNumber)

xsd:string
3
O
xsd:maxLength
value="3"

(OriginalSequenceNumber)
88
()()

v3.1

D0401 /

XML Schema
xsd:string
xsd:maxLength
value="256"

(OriginalDescription)

(Quantity)

(Unit)

(UnitPrice)
()
(Amount)

256

xsd:decimal
6

xsd:decimal

xsd:decimal

xsd:long

xsd:string
(AllowanceSequenceNumber) xsd:maxLength value="3"

(TaxType)

xsd:string
xsd:maxLength value="6"

(Tax)

()

type="TaxType"

M
M

()


TaxTypeEnum

Allowance/Amount

46Allowance/Amount

80Allowance/Amount
XML Schema

(TaxAmount)
()
(TotalAmount)

xsd:long

xsd:long

89
()()

v3.1

D0501

D0501
.
B2C

47D0501

.
81D0501
MIG D0501 /
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line #

Cardinality

Data Element

CancelAllowance

|--CancelAllowanceNumber

|--AllowanceDate

|--BuyerId

|--SellerId

|--CancelDate

|--CancelTime

|--CancelReason

0..1

Usage Note

|--Remark

90
()()

v3.1

D0501

. (Element)(Aggregate)

82CancelAllowance
XML Schema

(CancelAllowanceNum type="AllowanceNumberType"
ber)

type="DateType"
(AllowanceDate)

type="BAN"
(BuyerId)

type="BAN"
(SellerId)

type="DateType"
(CancelDate)

type="TimeType"
(CancelTime)
xsd:string
xsd:maxLength value="20"
(CancelReason)

xsd:string
xsd:maxLength value="200"
(Remark)

M
M
M
M
M
M
20

200


AllowanceNumberType

DateType

BAN

BAN

DateType

TimeType
1

91
()()

v3.1.1

E0401

E0401

.
()

BranchTrack/Main

48E0401

.
83E0401
MIG E0401
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

BranchTrack

|--Main

Usage Note

92
()()

v3.1.1

E0401

|--HeadBan

|--BranchBan

|-- YearMonth

|-- InvoiceTrack

|-- InvoiceBeginNo

|-- InvoiceEndNo

|-- InvoiceType

10

|--Details

11

1.25000

|--BranchTrackItem

12

|--InvoiceBeginNo

13

|-- InvoiceEndNo

14

|-- InvoiceBooklet

. (Element)(Aggregate)
()

BranchTrack

49BranchTrack

(Main)

(Details)

()

84BranchTrack(Aggregate)
XML Schema

<xsd:element name="Main" type="Main"/>

<xsd:element name="Details " type="Details"/>

BranchTrack /Main

50BranchTrack /Main

93
()()

v3.1.1

(HeadBan)

(BranchBan)

(InvoiceType)

(YearMonth)

(InvoiceTrack)

(InvoiceBeginNo)

(InvoiceEndNo)

()

E0401

85BranchTrack/Main

XML Schema

type="BAN"
M
BAN

type="BAN"
M
BAN

type="InvoiceTypeEnum"
M
InvoiceTypeEnum
:
xsd:string
10202( 10201~10202)
xsd:minLength value="5"
10204( 10203~10204)
xsd:maxLength value="5"
5 M 10206( 10205~10206)
xsd:pattern
10208( 10207~10208)
value="\d{3}0[2|4|6|8]|\d{3
10210( 10209~10210)
}1[0|2]"
10212( 10211~10212)
xsd:string
xsd:minLength value="2"
xsd:maxLength value="2" 2 M ()
xsd:pattern
value="[A-Z]{2}"
xsd:string
8
xsd:minLength value="8"
8 M
xsd:maxLength value="8"

xsd:pattern value="\d{8}"
xsd:string
8
xsd:minLength value="8"
8 M
xsd:maxLength value="8"

xsd:pattern value="\d{8}"

BranchTrack/Details

51BranchTrack/Details

86BranchTrack/Details(Aggregate)
XML Schema

<xsd:element name="BranchTrackItem"
(BranchTrackI
tem)

94
()()

v3.1.1

E0401

87BranchTrack/Details/ BranchTrackItem

XML Schema

xsd:string
xsd:minLength

8
value="8"xsd:maxLength
8
M
(InvoiceBeginNo) value="8"
xsd:pattern value="\d{8}"
xsd:string
xsd:minLength

8
value="8"xsd:maxLength
8
M
(InvoiceEndNo)
value="8"
xsd:pattern value="\d{8}"
xsd: long

M
(InvoiceBooklet) xsd:totalDigits value="10"
xsd:minInclusive value="0"

95
()()

v3.1

E0402

E0402

.

BranchTrackBlank/Main

52E0402

.
88E0402
MIG E0402
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

BranchTrackBlank

|--Main

|-- HeadBan

|-- BranchBan

|-- InvoiceType

|-- YearMonth

|-- InvoiceTrack

Usage Note

96
()()

v3.1

E0402

|--Details

10

1.10000

|-- BranchTrackBlankItem

12

|--InvoiceBeginNo

13

|-- InvoiceEndNo

. (Element)(Aggregate)
()

BranchTrackBlank

53BranchTrackBlank

(Main)

(Details)

()

89BranchTrackBlank(Aggregate)
XML Schema

<xsd:element name="Main" type="Main"/>

<xsd:element name="Details " type="Details"/>

BranchTrackBlank/Main

54BranchTrackBlank/Main

(HeadBan)

(BranchBan)

(InvoiceType)

90BranchTrackBlank/Main

XML Schema

type="BAN"
M
BAN

type="BAN"
M
BAN

type="InvoiceTypeEnum"
M
InvoiceTypeEnum
xsd:string
5 M :
97

()()

v3.1

(YearMonth)

(InvoiceTrack)

E0402

XML Schema

xsd:minLength value="5"
xsd:maxLength value="5"
xsd:pattern
value="\d{3}0[2|4|6|8]|\d{3
}1[0|2]"
xsd:string
xsd:minLength value="2"
xsd:maxLength value="2"
xsd:pattern
value="[A-Z]{2}"

10202( 10201~10202)
10204( 10203~10204)
10206( 10205~10206)
10208( 10207~10208)
10210( 10209~10210)
10212( 10211~10212)

M ()

() BranchTrackBlank/Details

55BranchTrackBlank/Details

91BranchTrackBlank/Details(Aggregate)
XML Schema

<xsd:element name=" BranchTrackBlankItem"


(BranchTrackI
tem)

92BranchTrackBlank/Details/BranchTrackBlankItem

XML Schema

xsd:string

xsd:minLength value="8"
8
8
M
(InvoiceBeginNo) xsd:maxLength value="8"
xsd:pattern value="\d{8}"
xsd:string

xsd:minLength value="8"
8
8
M
xsd:maxLength value="8"
(InvoiceEndNo)
xsd:pattern value="\d{8}"

98
()()

v3.1

E0501

E0501

56E0501

.
93E0501
MIG E0501
Legend:
Data Grouping/Header Tag - Does not contain information
MG Line # Cardinality

Data Element

|--Ban

|-- InvoiceType

|-- YearMonth

|-- InvoiceTrack

|-- InvoiceBeginNo

|-- InvoiceEndNo

|-- InvoiceBooklet

Usage Note

InvoiceAssignNo

99
()()

v3.1

E0501

. (Element)(Aggregate)
()

InvoiceAssignNo

57InvoiceAssignNo

(Ban)

(InvoiceType)

(YearMonth)

(InvoiceTrack)

(InvoiceBeginNo)

(InvoiceEndNo)

(InvoiceBooklet)

94InvoiceAssignNo

XML Schema

type="BAN"
M
BAN

type="InvoiceTypeEnum"
M
InvoiceTypeEnum
:
xsd:string
10202( 10201~10202)
xsd:minLength value="5"
10204( 10203~10204)
xsd:maxLength value="5"
5 M 10206( 10205~10206)
xsd:pattern
10208( 10207~10208)
value="\d{3}0[2|4|6|8]|\d{3
10210( 10209~10210)
}1[0|2]"
10212( 10211~10212)
xsd:string
xsd:minLength value="2"
xsd:maxLength value="2" 2 M ()
xsd:pattern
value="[A-Z]{2}"
xsd:string
xsd:minLength value="8"
8 M 8
xsd:maxLength value="8"
xsd:pattern value="\d{8}"
xsd:string
xsd:minLength value="8"
8 M 8
xsd:maxLength value="8"
xsd:pattern value="\d{8}"
xsd: long
xsd:totalDigits value="10"
M
xsd:minInclusive
value="0"
100

()()

v3.1

AXML Schema

AXML Schema

http://www.w3.org/TR/xmlschema-2/

101
()()

v3.1

B XML Schema

B XML Schema
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:group name="RoleDescriptionType">
<xsd:sequence>
<xsd:element name="Identifier">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:minLength value="8"/>
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Name">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="60"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Address" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="100"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="PersonInCharge" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="TelephoneNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="26"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="FacsimileNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="26"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="EmailAddress" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="80"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="CustomerNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
102
()()

v3.1

B XML Schema

</xsd:simpleType>
</xsd:element>
<xsd:element name="RoleRemark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:group>
<xsd:simpleType name="MessageTypeEnum">
<xsd:restriction base="xsd:string">
<xsd:minLength value="5"/>
<xsd:maxLength value="5"/>
<xsd:enumeration value="A0101"/>
<xsd:enumeration value="A0102"/>
<xsd:enumeration value="A0201"/>
<xsd:enumeration value="A0202"/>
<xsd:enumeration value="A0301"/>
<xsd:enumeration value="A0302"/>
<xsd:enumeration value="A0401"/>
<xsd:enumeration value="A0501"/>
<xsd:enumeration value="A0601"/>
<xsd:enumeration value="B0101"/>
<xsd:enumeration value="B0102"/>
<xsd:enumeration value="B0201"/>
<xsd:enumeration value="B0202"/>
<xsd:enumeration value="B0401"/>
<xsd:enumeration value="B0501"/>
<xsd:enumeration value="C0401"/>
<xsd:enumeration value="C0501"/>
<xsd:enumeration value="C0701"/>
<xsd:enumeration value="D0401"/>
<xsd:enumeration value="D0501"/>
<xsd:enumeration value="E0401"/>
<xsd:enumeration value="E0402"/>
<xsd:enumeration value="E0501"/>
<!-- A0101. -->
<!-- A0102. -->
<!-- A0201. -->
<!-- A0202. -->
<!-- A0301. -->
<!-- A0302. -->
<!-- A0401. -->
<!-- A0501. -->
<!-- A0601. -->
<!-- B0101. -->
<!-- B0102. -->
<!-- B0201. -->
<!-- B0202. -->
<!-- B0401. -->
<!-- B0501. -->
<!-- C0401. -->
<!-- C0501. -->
<!-- C0701. -->
<!-- D0401. -->
<!-- D0501. -->
<!-- E0401. -->
<!-- E0402. -->
103
()()

v3.1

B XML Schema

<!-- E0501. -->


</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="InvoiceNumberType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="10"/>
<xsd:maxLength value="10"/>
<xsd:pattern value="[A-Z]{2}\d{8}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="AllowanceNumberType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="16"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="AllowanceTypeEnum">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="1"/>
<xsd:enumeration value="1"/>
<xsd:enumeration value="2"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="BAN">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
<xsd:minLength value="0"/>
</xsd:restriction>
</xsd:simpleType>
<!-- BuyerRemark () -->
<xsd:simpleType name="BuyerRemarkEnum">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="1"/>
<xsd:enumeration value="1"/>
<xsd:enumeration value="2"/>
<xsd:enumeration value="3"/>
<xsd:enumeration value="4"/>
</xsd:restriction>
</xsd:simpleType>
<!-- CustomsClearanceMark () -->
<xsd:simpleType name="CustomsClearanceMarkEnum">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="1"/>
<xsd:enumeration value="1"/>
<xsd:enumeration value="2"/>
</xsd:restriction>
</xsd:simpleType>
<!-- InvoiceType () -->
<xsd:simpleType name="InvoiceTypeEnum">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="2"/>
<xsd:minLength value="2"/>
<xsd:enumeration value="01"/>
<xsd:enumeration value="02"/>
<xsd:enumeration value="03"/>
<xsd:enumeration value="04"/>
<xsd:enumeration value="05"/>
<xsd:enumeration value="06"/>
<xsd:enumeration value="07"/>
<xsd:enumeration value="08"/>
104
()()

v3.1

B XML Schema

</xsd:restriction>
</xsd:simpleType>
<!-- DonateMark () -->
<xsd:simpleType name="DonateMarkEnum">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="1"/>
<xsd:minLength value="1"/>
<xsd:enumeration value="0"/>
<xsd:enumeration value="1"/>
</xsd:restriction>
</xsd:simpleType>
<!-- TaxType () -->
<xsd:simpleType name="TaxTypeEnum">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="1"/>
<xsd:minLength value="1"/>
<xsd:enumeration value="1"/>
<xsd:enumeration value="2"/>
<xsd:enumeration value="3"/>
<xsd:enumeration value="4"/>
<xsd:enumeration value="9"/>
</xsd:restriction>
</xsd:simpleType>
<!-- -->
<xsd:simpleType name="CarrierTypeEnum">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="6"/>
<xsd:enumeration value="....."/>
<xsd:enumeration value="....."/>
</xsd:restriction>
</xsd:simpleType>
<!-- ISO 4217 Currency Code List -->
<xsd:simpleType name="CurrencyCodeEnum">
<xsd:restriction base="xsd:string">
<xsd:minLength value="3"/>
<xsd:maxLength value="3"/>
<xsd:pattern value=""/>
<xsd:enumeration value="AED"/>
<xsd:enumeration value="AFN"/>
<xsd:enumeration value="ALL"/>
<xsd:enumeration value="AMD"/>
<xsd:enumeration value="ANG"/>
<xsd:enumeration value="AOA"/>
<xsd:enumeration value="ARS"/>
<xsd:enumeration value="AUD"/>
<xsd:enumeration value="AWG"/>
<xsd:enumeration value="AZN"/>
<xsd:enumeration value="BAM"/>
<xsd:enumeration value="BBD"/>
<xsd:enumeration value="BDT"/>
<xsd:enumeration value="BGN"/>
<xsd:enumeration value="BHD"/>
<xsd:enumeration value="BIF"/>
<xsd:enumeration value="BMD"/>
<xsd:enumeration value="BND"/>
<xsd:enumeration value="BOB"/>
<xsd:enumeration value="BRL"/>
<xsd:enumeration value="BSD"/>
<xsd:enumeration value="BTN"/>
<xsd:enumeration value="BWP"/>
<xsd:enumeration value="BYR"/>
105
()()

v3.1

B XML Schema

<xsd:enumeration value="BZD"/>
<xsd:enumeration value="CAD"/>
<xsd:enumeration value="CDF"/>
<xsd:enumeration value="CHF"/>
<xsd:enumeration value="CLP"/>
<xsd:enumeration value="CNY"/>
<xsd:enumeration value="COP"/>
<xsd:enumeration value="CRC"/>
<xsd:enumeration value="CUP"/>
<xsd:enumeration value="CVE"/>
<xsd:enumeration value="CYP"/>
<xsd:enumeration value="CZK"/>
<xsd:enumeration value="DJF"/>
<xsd:enumeration value="DKK"/>
<xsd:enumeration value="DOP"/>
<xsd:enumeration value="DZD"/>
<xsd:enumeration value="EGP"/>
<xsd:enumeration value="ERN"/>
<xsd:enumeration value="ETB"/>
<xsd:enumeration value="EUR"/>
<xsd:enumeration value="FJD"/>
<xsd:enumeration value="FKP"/>
<xsd:enumeration value="GBP"/>
<xsd:enumeration value="GEL"/>
<xsd:enumeration value="GGP"/>
<xsd:enumeration value="GHS"/>
<xsd:enumeration value="GIP"/>
<xsd:enumeration value="GMD"/>
<xsd:enumeration value="GNF"/>
<xsd:enumeration value="GTQ"/>
<xsd:enumeration value="GYD"/>
<xsd:enumeration value="HKD"/>
<xsd:enumeration value="HNL"/>
<xsd:enumeration value="HRK"/>
<xsd:enumeration value="HTG"/>
<xsd:enumeration value="HUF"/>
<xsd:enumeration value="IDR"/>
<xsd:enumeration value="ILS"/>
<xsd:enumeration value="IMP"/>
<xsd:enumeration value="INR"/>
<xsd:enumeration value="IQD"/>
<xsd:enumeration value="IRR"/>
<xsd:enumeration value="ISK"/>
<xsd:enumeration value="JEP"/>
<xsd:enumeration value="JMD"/>
<xsd:enumeration value="JOD"/>
<xsd:enumeration value="JPY"/>
<xsd:enumeration value="KES"/>
<xsd:enumeration value="KGS"/>
<xsd:enumeration value="KHR"/>
<xsd:enumeration value="KMF"/>
<xsd:enumeration value="KPW"/>
<xsd:enumeration value="KRW"/>
<xsd:enumeration value="KWD"/>
<xsd:enumeration value="KYD"/>
<xsd:enumeration value="KZT"/>
<xsd:enumeration value="LAK"/>
<xsd:enumeration value="LBP"/>
<xsd:enumeration value="LKR"/>
<xsd:enumeration value="LRD"/>
<xsd:enumeration value="LSL"/>
<xsd:enumeration value="LTL"/>
<xsd:enumeration value="LVL"/>
106
()()

v3.1

B XML Schema

<xsd:enumeration value="LYD"/>
<xsd:enumeration value="MAD"/>
<xsd:enumeration value="MDL"/>
<xsd:enumeration value="MGA"/>
<xsd:enumeration value="MKD"/>
<xsd:enumeration value="MMK"/>
<xsd:enumeration value="MNT"/>
<xsd:enumeration value="MOP"/>
<xsd:enumeration value="MRO"/>
<xsd:enumeration value="MTL"/>
<xsd:enumeration value="MUR"/>
<xsd:enumeration value="MVR"/>
<xsd:enumeration value="MWK"/>
<xsd:enumeration value="MXN"/>
<xsd:enumeration value="MYR"/>
<xsd:enumeration value="MZN"/>
<xsd:enumeration value="NAD"/>
<xsd:enumeration value="NGN"/>
<xsd:enumeration value="NIO"/>
<xsd:enumeration value="NOK"/>
<xsd:enumeration value="NPR"/>
<xsd:enumeration value="NZD"/>
<xsd:enumeration value="OMR"/>
<xsd:enumeration value="PAB"/>
<xsd:enumeration value="PEN"/>
<xsd:enumeration value="PGK"/>
<xsd:enumeration value="PHP"/>
<xsd:enumeration value="PKR"/>
<xsd:enumeration value="PLN"/>
<xsd:enumeration value="PYG"/>
<xsd:enumeration value="QAR"/>
<xsd:enumeration value="RON"/>
<xsd:enumeration value="RSD"/>
<xsd:enumeration value="RUB"/>
<xsd:enumeration value="RWF"/>
<xsd:enumeration value="SAR"/>
<xsd:enumeration value="SBD"/>
<xsd:enumeration value="SCR"/>
<xsd:enumeration value="SDG"/>
<xsd:enumeration value="SEK"/>
<xsd:enumeration value="SGD"/>
<xsd:enumeration value="SHP"/>
<xsd:enumeration value="SLL"/>
<xsd:enumeration value="SOS"/>
<xsd:enumeration value="SPL"/>
<xsd:enumeration value="SRD"/>
<xsd:enumeration value="STD"/>
<xsd:enumeration value="SVC"/>
<xsd:enumeration value="SYP"/>
<xsd:enumeration value="SZL"/>
<xsd:enumeration value="THB"/>
<xsd:enumeration value="TJS"/>
<xsd:enumeration value="TMM"/>
<xsd:enumeration value="TND"/>
<xsd:enumeration value="TOP"/>
<xsd:enumeration value="TRY"/>
<xsd:enumeration value="TTD"/>
<xsd:enumeration value="TVD"/>
<xsd:enumeration value="TWD"/>
<xsd:enumeration value="TZS"/>
<xsd:enumeration value="UAH"/>
<xsd:enumeration value="UGX"/>
<xsd:enumeration value="USD"/>
107
()()

v3.1

B XML Schema

<xsd:enumeration value="UYU"/>
<xsd:enumeration value="UZS"/>
<xsd:enumeration value="VEB"/>
<xsd:enumeration value="VEF"/>
<xsd:enumeration value="VND"/>
<xsd:enumeration value="VUV"/>
<xsd:enumeration value="WST"/>
<xsd:enumeration value="XAF"/>
<xsd:enumeration value="XAG"/>
<xsd:enumeration value="XAU"/>
<xsd:enumeration value="XCD"/>
<xsd:enumeration value="XDR"/>
<xsd:enumeration value="XOF"/>
<xsd:enumeration value="XPD"/>
<xsd:enumeration value="XPF"/>
<xsd:enumeration value="XPT"/>
<xsd:enumeration value="YER"/>
<xsd:enumeration value="ZAR"/>
<xsd:enumeration value="ZMK"/>
<xsd:enumeration value="ZWD"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="DateType">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[0-9][0-9][0-9][0-9]((0[1-9]|1[0-2]))((0[1-9]|[1-2][0-9])|(3[0-1]))"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="TimeType">
<xsd:restriction base="xsd:time"/>
</xsd:simpleType>
<!-- BondedAreaConfirm () -->
<xsd:simpleType name="BondedAreaEnum">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="1"/>
<xsd:minLength value="1"/>
<xsd:enumeration value="1"/>
<xsd:enumeration value="2"/>
<xsd:enumeration value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>

108
()()

v3.1

CA0101 XML Schema

CA0101 XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:A0101:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:A0101:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- A0101-->
<xsd:element name="Invoice">
<xsd:complexType>
<xsd:sequence>
<!-- Main -->
<xsd:element name="Main" type="Main"/>
<!-- Details -->
<xsd:element name="Details" type="Details"/>
<!-- Amount -->
<xsd:element name="Amount" type="Amount"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:complexType name="Main">
<xsd:sequence>
<!-- -->
<xsd:element name="InvoiceNumber" type="InvoiceNumberType"/>
<!-- -->
<xsd:element name="InvoiceDate" type="DateType"/>
<!-- -->
<xsd:element name="InvoiceTime" type="TimeType" />
<!-- -->
<xsd:element name="Seller">
<xsd:complexType mixed="false">
<xsd:group ref="RoleDescriptionType"/>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:element name="Buyer">
<xsd:complexType mixed="false">
<xsd:group ref="RoleDescriptionType"/>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:element name="CheckNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="BuyerRemark" type="BuyerRemarkEnum" minOccurs="0"/>
<!-- -->
<xsd:element name="MainRemark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="CustomsClearanceMark" type="CustomsClearanceMarkEnum"
109
()()

v3.1

CA0101 XML Schema

minOccurs="0"/>
<!-- -->
<xsd:element name="Category" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="RelateNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="InvoiceType" type="InvoiceTypeEnum"/>
<!-- -->
<xsd:element name="GroupMark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[*]"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="DonateMark" type="DonateMarkEnum"/>
<!-- -->
<xsd:element name="Attachment" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:base64Binary">
<xsd:maxLength value="1048576"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Details">
<xsd:sequence>
<xsd:element name="ProductItem" minOccurs="1" maxOccurs="999">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="Description">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="256"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Quantity">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
110
()()

v3.1

CA0101 XML Schema

</xsd:element>
<!-- -->
<xsd:element name="Unit" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="6"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="UnitPrice">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Amount">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SequenceNumber">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<!-- -->
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="RelateNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Amount">
<xsd:sequence>
<!-- () -->
111
()()

v3.1

CA0101 XML Schema

<xsd:element name="SalesAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="TaxType" type="TaxTypeEnum"/>
<!-- -->
<xsd:element name="TaxRate">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="6"/>
<xsd:fractionDigits value="4"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="TaxAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="TotalAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="DiscountAmount" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="OriginalCurrencyAmount" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="ExchangeRate" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="13"/>
<xsd:fractionDigits value="4"/>
112
()()

v3.1

CA0101 XML Schema

<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Currency" type="CurrencyCodeEnum" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>

113
()()

v3.1

DA0102 XML Schema

DA0102 XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:A0102:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:A0102:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : A0102 -->
<xsd:element name="InvoiceConfirm">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="InvoiceNumber" type="InvoiceNumberType"/>
<!-- -->
<xsd:element name="InvoiceDate" type="DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="ReceiveDate" type="DateType"/>
<!-- -->
<xsd:element name="ReceiveTime" type="TimeType"/>
<!-- -->
<xsd:element name="BuyerRemark" type="BuyerRemarkEnum" minOccurs="0"/>
<!-- -->
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="BondedAreaConfirm" type="BondedAreaEnum" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

114
()()

v3.1

EB0101 / XML Schema

EB0101 / XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:B0101:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:B0101:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : B0101 -->
<xsd:element name="Allowance">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Main" type="Main"/>
<xsd:element name="Details" type="Details"/>
<xsd:element name="Amount" type="Amount"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:complexType name="Main">
<xsd:sequence>
<!-- -->
<xsd:element name="AllowanceNumber" type="AllowanceNumberType"/>
<!-- -->
<xsd:element name="AllowanceDate" type="DateType"/>
<!-- -->
<xsd:element name="Seller">
<xsd:complexType mixed="false">
<xsd:group ref="RoleDescriptionType"/>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:element name="Buyer">
<xsd:complexType mixed="false">
<xsd:group ref="RoleDescriptionType"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="AllowanceType" type="AllowanceTypeEnum"/>
<xsd:element name="Attachment" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:base64Binary">
<xsd:maxLength value="1048576"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Details">
<xsd:sequence>
<xsd:element name="ProductItem" minOccurs="1" maxOccurs="999">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="OriginalInvoiceDate" type="DateType"/>
<!-- -->
<xsd:element name="OriginalInvoiceNumber" type="InvoiceNumberType"/>
<!--- -->
<xsd:element name="OriginalSequenceNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="3"/>
</xsd:restriction>
115
()()

v3.1

EB0101 / XML Schema

</xsd:simpleType>
</xsd:element>
<!-- -->
<!-- -->
<xsd:element name="OriginalDescription">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="256"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Quantity">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Unit" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="6"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="UnitPrice">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- () -->
<xsd:element name="Amount">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Tax">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="AllowanceSequenceNumber">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="3"/>
<xsd:minLength value="1"/>
</xsd:restriction>
116
()()

v3.1

EB0101 / XML Schema

</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="TaxType">
<xsd:simpleType>
<xsd:restriction base="TaxTypeEnum">
<xsd:length value="1"/>
<xsd:pattern value="[1-3]"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Amount">
<xsd:sequence>
<!-- -->
<xsd:element name="TaxAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- () -->
<xsd:element name="TotalAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>

117
()()

v3.1

FB0102 / XML Schema

FB0102 / XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:B0102:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:B0102:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- B0102-->
<xsd:element name="AllowanceConfirm">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="AllowanceNumber" type="AllowanceNumberType"/>
<!-- -->
<xsd:element name="AllowanceDate" type="DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="ReceiveDate" type="DateType"/>
<!-- -->
<xsd:element name="ReceiveTime" type="TimeType"/>
<!-- -->
<xsd:element name="AllowanceType" type="AllowanceTypeEnum"/>
<!-- -->
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

118
()()

v3.1

GA0201 XML Schema

GA0201 XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:A0201:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:A0201:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : A0201 -->
<xsd:element name="CancelInvoice">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="CancelInvoiceNumber" type="InvoiceNumberType"/>
<!-- -->
<xsd:element name="InvoiceDate" type="DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="CancelDate" type="DateType"/>
<!-- -->
<xsd:element name="CancelTime" type="TimeType"/>
<!-- -->
<xsd:element name="CancelReason">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ReturnTaxDocumentNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="60"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
119
()()

v3.1

HA0202 XML Schema

HA0202 XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:A0202:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:A0202:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : A0202 -->
<xsd:element name="CancelInvoiceConfirm">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="CancelInvoiceNumber" type="InvoiceNumberType"/>
<!-- -->
<xsd:element name="InvoiceDate" type="DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="CancelDate" type="DateType"/>
<!-- -->
<xsd:element name="CancelTime" type="TimeType"/>
<!-- -->
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

120
()()

v3.1

IB0201 XML Schema

IB0201 XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:B0201:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:B0201:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : B0201-->
<xsd:element name="CancelAllowance">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="CancelAllowanceNumber" type="AllowanceNumberType"/>
<!-- -->
<xsd:element name="AllowanceDate" type="DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="CancelDate" type="DateType"/>
<!-- -->
<xsd:element name="CancelTime" type="TimeType"/>
<!-- -->
<xsd:element name="CancelReason">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

121
()()

v3.1

JB0202 XML Schema

JB0202 XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:B0202:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:B0202:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : B0202-->
<xsd:element name="CancelAllowanceConfirm">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="CancelAllowanceNumber" type="AllowanceNumberType"/>
<!-- -->
<xsd:element name="AllowanceDate" type="DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="CancelDate" type="DateType"/>
<!-- -->
<xsd:element name="CancelTime" type="TimeType"/>
<!-- -->
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

122
()()

v3.1

KA0301 () XML Schema

KA0301 () XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:A0301:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:A0301:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : A0301 -->
<xsd:element name="RejectInvoice">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="RejectInvoiceNumber" type="InvoiceNumberType"/>
<!-- -->
<xsd:element name="InvoiceDate" type="DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="RejectDate" type="DateType"/>
<!-- -->
<xsd:element name="RejectTime" type="TimeType"/>
<!-- -->
<xsd:element name="RejectReason">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

123
()()

v3.1

LA0302 () XML Schema

LA0302 () XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:A0302:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:A0302:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- A0302 -->
<xsd:element name="RejectInvoiceConfirm">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="RejectInvoiceNumber" type="InvoiceNumberType"/>
<!-- -->
<xsd:element name="InvoiceDate" type="DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="RejectDate" type="DateType"/>
<!-- -->
<xsd:element name="RejectTime" type="TimeType"/>
<!-- -->
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

124
()()

v3.1

MA0401 XML Schema

MA0401 XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:A0401:3.1"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:A0401:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- A0401-->
<xsd:element name="Invoice">
<xsd:complexType>
<xsd:sequence>
<!-- Main -->
<xsd:element name="Main" type="Main"/>
<!-- Details -->
<xsd:element name="Details" type="Details"/>
<!-- Amount -->
<xsd:element name="Amount" type="Amount"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:complexType name="Main">
<xsd:sequence>
<!-- -->
<xsd:element name="InvoiceNumber" type="InvoiceNumberType"/>
<!-- -->
<xsd:element name="InvoiceDate" type="DateType"/>
<!-- -->
<xsd:element name="InvoiceTime" type="TimeType"/>
<!-- -->
<xsd:element name="Seller">
<xsd:complexType mixed="false">
<xsd:group ref="RoleDescriptionType"/>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:element name="Buyer">
<xsd:complexType mixed="false">
<xsd:group ref="RoleDescriptionType"/>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:element name="CheckNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="BuyerRemark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="BuyerRemarkEnum">
<xsd:maxLength value="1"/>
</xsd:restriction>
125
()()

v3.1

MA0401 XML Schema

</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="MainRemark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="CustomsClearanceMark" type="CustomsClearanceMarkEnum"
minOccurs="0"/>
<!-- -->
<xsd:element name="Category" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="RelateNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="InvoiceType" type="InvoiceTypeEnum"/>
<!-- -->
<xsd:element name="GroupMark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[*]"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="DonateMark" type="DonateMarkEnum"/>
<!---->
<xsd:element name="BondedAreaConfirm" type="BondedAreaEnum" minOccurs="0"/>

<!-- -->
<xsd:element name="Attachment" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:base64Binary">
<xsd:maxLength value="1048576"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Details">
<xsd:sequence>
<xsd:element name="ProductItem" minOccurs="1" maxOccurs="999">
126
()()

v3.1

MA0401 XML Schema

<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="Description">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="256"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Quantity">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Unit" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="6"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="UnitPrice">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Amount">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SequenceNumber">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
127
()()

v3.1

MA0401 XML Schema

<xsd:element name="Remark" minOccurs="0">


<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="RelateNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Amount">
<xsd:sequence>
<!-- () -->
<xsd:element name="SalesAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="TaxType" type="TaxTypeEnum"/>
<!-- -->
<xsd:element name="TaxRate">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="6"/>
<xsd:fractionDigits value="4"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="TaxAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="TotalAmount">
<xsd:simpleType>
128
()()

v3.1

MA0401 XML Schema

<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="DiscountAmount" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="OriginalCurrencyAmount" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="ExchangeRate" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="13"/>
<xsd:fractionDigits value="4"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Currency" type="CurrencyCodeEnum" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>

129
()()

v3.1

NB0401 / XML Schema

NB0401 / XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:B0401:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:B0401:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : B0401 -->
<xsd:element name="Allowance">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Main" type="Main"/>
<xsd:element name="Details" type="Details"/>
<xsd:element name="Amount" type="Amount"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:complexType name="Main">
<xsd:sequence>
<!-- -->
<xsd:element name="AllowanceNumber" type="AllowanceNumberType"/>
<!-- -->
<xsd:element name="AllowanceDate" type="DateType"/>
<!-- -->
<xsd:element name="Seller">
<xsd:complexType mixed="false">
<xsd:group ref="RoleDescriptionType"/>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:element name="Buyer">
<xsd:complexType mixed="false">
<xsd:group ref="RoleDescriptionType"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="AllowanceType" type="AllowanceTypeEnum"/>
<xsd:element name="Attachment" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:base64Binary">
<xsd:maxLength value="1048576"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Details">
<xsd:sequence>
<xsd:element name="ProductItem" minOccurs="1" maxOccurs="999">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="OriginalInvoiceDate" type="DateType"/>
<!-- -->
<xsd:element name="OriginalInvoiceNumber" type="InvoiceNumberType"/>
<!--- -->
<xsd:element name="OriginalSequenceNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="3"/>
130
()()

v3.1

NB0401 / XML Schema

</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<!-- -->
<xsd:element name="OriginalDescription">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="256"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Quantity">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Unit" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="6"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="UnitPrice">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- () -->
<xsd:element name="Amount">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Tax">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="AllowanceSequenceNumber">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="3"/>
<xsd:minLength value="1"/>
131
()()

v3.1

NB0401 / XML Schema

</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="TaxType">
<xsd:simpleType>
<xsd:restriction base="TaxTypeEnum">
<xsd:length value="1"/>
<xsd:pattern value="[1-3]"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Amount">
<xsd:sequence>
<!-- -->
<xsd:element name="TaxAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- () -->
<xsd:element name="TotalAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>

132
()()

v3.1

OA0501 XML Schema

OA0501 XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:A0501:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:A0501:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : A0501 -->
<xsd:element name="CancelInvoice">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="CancelInvoiceNumber" type="InvoiceNumberType"/>
<!-- -->
<xsd:element name="InvoiceDate" type="DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="CancelDate" type="DateType"/>
<!-- -->
<xsd:element name="CancelTime" type="TimeType"/>
<!-- -->
<xsd:element name="CancelReason">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="ReturnTaxDocumentNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="60"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
133
()()

v3.1

OA0501 XML Schema

</xsd:complexType>
</xsd:element>
</xsd:schema>

134
()()

v3.1

PB0501 XML Schema

PB0501 XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:B0501:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:B0501:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : B0501-->
<xsd:element name="CancelAllowance">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="CancelAllowanceNumber" type="AllowanceNumberType"/>
<!-- -->
<xsd:element name="AllowanceDate" type="DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="BAN">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="CancelDate" type="DateType"/>
<!-- -->
<xsd:element name="CancelTime" type="TimeType"/>
<!-- -->
<xsd:element name="CancelReason">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

135
()()

v3.1

QA0601 XML Schema

QA0601 XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:A0601:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:A0601:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : A0601 -->
<xsd:element name="RejectInvoice">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="RejectInvoiceNumber" type="InvoiceNumberType"/>
<!-- -->
<xsd:element name="InvoiceDate" type="DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="RejectDate" type="DateType"/>
<!-- -->
<xsd:element name="RejectTime" type="xsd:time"/>
<!-- -->
<xsd:element name="RejectReason">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

136
()()

v3.1

RC0401 B2C XML Schema

RC0401 B2C XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:C0401:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:C0401:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- C0401-->
<xsd:element name="Invoice">
<xsd:complexType>
<xsd:sequence>
<!-- Main -->
<xsd:element name="Main" type="Main"/>
<!-- Details -->
<xsd:element name="Details" type="Details"/>
<!-- Amount -->
<xsd:element name="Amount" type="Amount"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:complexType name="Main">
<xsd:sequence>
<!-- -->
<xsd:element name="InvoiceNumber" type="InvoiceNumberType"/>
<!-- -->
<xsd:element name="InvoiceDate" type=" DateType"/>
<!-- -->
<xsd:element name="InvoiceTime" type=" TimeType"/>
<!-- -->
<xsd:element name="Seller">
<xsd:complexType mixed="false">
<xsd:group ref="RoleDescriptionType"/>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:element name="Buyer">
<xsd:complexType mixed="false">
<xsd:group ref="RoleDescriptionType"/>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:element name="CheckNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="BuyerRemark" type="BuyerRemarkEnum" minOccurs="0"/>
<!-- -->
<xsd:element name="MainRemark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
137
()()

v3.1

RC0401 B2C XML Schema

<xsd:element name="CustomsClearanceMark" type="CustomsClearanceMarkEnum"


minOccurs="0"/>
<!-- -->
<xsd:element name="Category" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="RelateNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="InvoiceType" type="InvoiceTypeEnum"/>
<!-- -->
<xsd:element name="GroupMark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[*]"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="DonateMark" type="DonateMarkEnum"/>
<!-- -->
<xsd:element name="CarrierType" type="CarrierTypeEnum" minOccurs="0"/>
<!-- Id -->
<xsd:element name="CarrierId1" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="64"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- Id2 -->
<xsd:element name="CarrierId2" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="64"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="PrintMark">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="1"/>
<xsd:pattern value="[YN]"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="NPOBAN" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
138
()()

v3.1

RC0401 B2C XML Schema

</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="RandomNumber">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="4"/>
<xsd:pattern value="[0-9][0-9][0-9][0-9]|AAAA"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Details">
<xsd:sequence>
<xsd:element name="ProductItem" minOccurs="1" maxOccurs="999">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="Description">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="256"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Quantity">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Unit" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="6"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="UnitPrice">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Amount">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
139
()()

v3.1

RC0401 B2C XML Schema

</xsd:element>
<!-- -->
<xsd:element name="SequenceNumber">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="RelateNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Amount">
<xsd:sequence>
<!-- () -->
<xsd:element name="SalesAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- () -->
<xsd:element name="FreeTaxSalesAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- () -->
<xsd:element name="ZeroTaxSalesAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="TaxType" type="TaxTypeEnum"/>
140
()()

v3.1

RC0401 B2C XML Schema

<!-- -->
<xsd:element name="TaxRate">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="6"/>
<xsd:fractionDigits value="4"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="TaxAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="TotalAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="DiscountAmount" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="OriginalCurrencyAmount" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="ExchangeRate" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="13"/>
<xsd:fractionDigits value="4"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Currency" type="CurrencyCodeEnum" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
141
()()

v3.0.3

SC0501 B2C XML Schema

SC0501 B2C XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:C0501:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:C0501:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : C0501 -->
<xsd:element name="CancelInvoice">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="CancelInvoiceNumber" type="InvoiceNumberType"/>
<!-- -->
<xsd:element name="InvoiceDate" type=" DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="CancelDate" type="DateType"/>
<!-- -->
<xsd:element name="CancelTime" type="TimeType"/>
<xsd:element name="CancelReason">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
<xsd:minLength value="1"/>
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ReturnTaxDocumentNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="60"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
142
()()

v3.0.3

TC0701 B2C XML Schema

TC0701 B2C XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:C0701:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:C0701:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : C0701 -->
<xsd:element name="VoidInvoice">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="VoidInvoiceNumber" type="InvoiceNumberType"/>
<!-- -->
<xsd:element name="InvoiceDate" type=" DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="VoidDate" type="DateType"/>
<!-- -->
<xsd:element name="VoidTime" type="TimeType"/>
<!-- -->
<xsd:element name="VoidReason">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
<xsd:minLength value="1"/>
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

143
()()

v3.1
Schema

UD0401 B2C / XML

UD0401 B2C / XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:D0401:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:D0401:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : D0401 -->
<xsd:element name="Allowance">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Main" type="Main"/>
<xsd:element name="Details" type="Details"/>
<xsd:element name="Amount" type="Amount"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:complexType name="Main">
<xsd:sequence>
<!-- -->
<xsd:element name="AllowanceNumber" type="AllowanceNumberType"/>
<!-- -->
<xsd:element name="AllowanceDate" type="DateType"/>
<!-- -->
<xsd:element name="Seller">
<xsd:complexType mixed="false">
<xsd:group ref="RoleDescriptionType"/>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:element name="Buyer">
<xsd:complexType mixed="false">
<xsd:group ref="RoleDescriptionType"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="AllowanceType" type="AllowanceTypeEnum"/>
<xsd:element name="Attachment" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:base64Binary">
<xsd:maxLength value="1048576"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Details">
<xsd:sequence>
<xsd:element name="ProductItem" minOccurs="1" maxOccurs="999">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="OriginalInvoiceDate" type="DateType"/>
<!-- -->
<xsd:element name="OriginalInvoiceNumber" type="InvoiceNumberType"/>
<!--- -->
<xsd:element name="OriginalSequenceNumber" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="3"/>
</xsd:restriction>
144
()()

v3.1
Schema

UD0401 B2C / XML

</xsd:simpleType>
</xsd:element>
<!-- -->
<!-- -->
<xsd:element name="OriginalDescription">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="256"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Quantity">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Unit" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="6"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="UnitPrice">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- () -->
<xsd:element name="Amount">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="20"/>
<xsd:fractionDigits value="7"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="Tax">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="AllowanceSequenceNumber">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="3"/>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
145
()()

v3.1
Schema

UD0401 B2C / XML

</xsd:element>
<!-- -->
<xsd:element name="TaxType">
<xsd:simpleType>
<xsd:restriction base="TaxTypeEnum">
<xsd:length value="1"/>
<xsd:pattern value="[1-3]"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Amount">
<xsd:sequence>
<!-- -->
<xsd:element name="TaxAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- () -->
<xsd:element name="TotalAmount">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="12"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>

146
()()

v3.1

VD0501B2C XML Schema

VD0501 B2C XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:D0501:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:D0501:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- : D0501-->
<xsd:element name="CancelAllowance">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="CancelAllowanceNumber" type="AllowanceNumberType"/>
<!-- mod:date=>DateType -->
<xsd:element name="AllowanceDate" type="DateType"/>
<!-- -->
<xsd:element name="BuyerId">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="SellerId">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="CancelDate" type="DateType"/>
<!-- -->
<xsd:element name="CancelTime" type="TimeType"/>
<!-- -->
<xsd:element name="CancelReason">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
<xsd:minLength value="1"/>
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Remark" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

147
()()

v3.1

WE0401 XML Schema

WE0401 XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:E0401:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:E0401:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- E0401-->
<xsd:element name="BranchTrack">
<xsd:complexType>
<xsd:sequence>
<!-- Main -->
<xsd:element name="Main" type="Main"/>
<!-- Details -->
<xsd:element name="Details" type="Details"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:complexType name="Main">
<xsd:sequence>
<!---->
<xsd:element name="HeadBan" type="BAN"/>
<!---->
<xsd:element name="BranchBan" type="BAN"/>
<!---->
<xsd:element name="InvoiceType" type="InvoiceTypeEnum"/>
<!---->
<xsd:element name="YearMonth" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="5"/>
<xsd:maxLength value="5"/>
<xsd:pattern value="\d{3}0[2|4|6|8]|\d{3}1[0|2]"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!---->
<xsd:element name="InvoiceTrack" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="2"/>
<xsd:maxLength value="2"/>
<xsd:pattern value="[A-Z]{2}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!---->
<xsd:element name="InvoiceBeginNo" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="8"/>
<xsd:maxLength value="8"/>
<xsd:pattern value="\d{8}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!---->
<xsd:element name="InvoiceEndNo" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="8"/>
148
()()

v3.1

WE0401 XML Schema

<xsd:maxLength value="8"/>
<xsd:pattern value="\d{8}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Details">
<xsd:sequence>
<xsd:element name="BranchTrackItem" minOccurs="1" maxOccurs="25000">
<xsd:complexType>
<xsd:sequence>
<!---->
<xsd:element name=" InvoiceBeginNo" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="8"/>
<xsd:maxLength value="8"/>
<xsd:pattern value="\d{8}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!---->
<xsd:element name="InvoiceEndNo" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="8"/>
<xsd:maxLength value="8"/>
<xsd:pattern value="\d{8}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="InvoiceBooklet" >
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="10"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>

149
()()

v3.0.0

XE0402 XML Schema

XE0402 XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="urn:GEINV:eInvoiceMessage:E0402:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GEINV:eInvoiceMessage:E0402:3.1" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="GenericType_3.1.xsd"/>
<!-- E0402-->
<xsd:element name="BranchTrackBlank">
<xsd:complexType>
<xsd:sequence>
<!-- Main -->
<xsd:element name="Main" type="Main"/>
<!-- Details -->
<xsd:element name="Details" type="Details"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- -->
<xsd:complexType name="Main">
<xsd:sequence>
<!---->
<xsd:element name="HeadBan" type="BAN"/>
<!---->
<xsd:element name=" BranchBan" type="BAN"/>
<!---->
<xsd:element name="InvoiceType" type="InvoiceTypeEnum"/>
<!---->
<xsd:element name="YearMonth" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="5"/>
<xsd:maxLength value="5"/>
<xsd:pattern value="\d{3}0[2|4|6|8]|\d{3}1[0|2]"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!---->
<xsd:element name="InvoiceTrack" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="2"/>
<xsd:maxLength value="2"/>
<xsd:pattern value="[A-Z]{2}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- -->
<xsd:complexType name="Details">
<xsd:sequence>
<xsd:element name=" BranchTrackBlankItem" minOccurs="1" maxOccurs="10000">
<xsd:complexType>
<xsd:sequence>
<!-- -->
<xsd:element name="InvoiceBeginNo" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="8"/>
<xsd:maxLength value="8"/>
<xsd:pattern value="\d{8}"/>
150
()()

v3.0.0

XE0402 XML Schema

</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="InvoiceEndNo" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="8"/>
<xsd:maxLength value="8"/>
<xsd:pattern value="\d{8}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>

151
()()

v3.0.0

YE0501 XML Schema

YE0501 XML Schema


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns=" urn:GEINV:E0501:3.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="
urn:GEINV:E0501:3.1" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:include schemaLocation=" GenericResult_3.1.xsd"/>
<!--:E0501 -->
<xsd:element name="InvoiceAssignNo">
<xsd:complexType>
<xsd:sequence>
<!---->
<xsd:element name="Ban" type="BAN"/>
<!---->
<xsd:element name="InvoiceType" type="InvoiceTypeEnum"/>
<!---->
<xsd:element name="YearMonth" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="5"/>
<xsd:maxLength value="5"/>
<xsd:pattern value="\d{3}0[2|4|6|8]|\d{3}1[0|2]"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!---->
<xsd:element name="InvoiceTrack" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="2"/>
<xsd:maxLength value="2"/>
<xsd:pattern value="[A-Z]{2}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!---->
<xsd:element name=" InvoiceBeginNo" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="8"/>
<xsd:maxLength value="8"/>
<xsd:pattern value="\d{8}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!---->
<xsd:element name="InvoiceEndNo" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="8"/>
<xsd:maxLength value="8"/>
<xsd:pattern value="\d{8}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<!-- -->
<xsd:element name="InvoiceBooklet" >
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="10"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
152
()()

v3.0.0

YE0501 XML Schema

</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

153
()()