A code that identifies the country.
納入先の住所の国コード。


About

Syntax binding
ubl:Invoice / cac:Delivery / cac:DeliveryLocation / cac:Address / cac:Country / cbc:IdentificationCode
Restricted Syntax Cardinality
1..1
Example
JP
UBL 2.1
XPath
/ Invoice / cac:Delivery / cac:DeliveryLocation / cac:Address / cac:Country / cbc:IdentificationCode
Occurrence
0..1
Datatype
CountryIdentification_CodeType
UBL Definition
A code signifying this country.
Namespace
cbc urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2

Semantic

Business Term

Deliver to country code

納入先国コード
ID
ibt-080
Description
A code that identifies the country.
納入先の住所の国コード。
Cardinality
Semantic datatype
Code

Code list(s)

ISO3166
ISO 3166-1:Alpha2 Country codes

VERSION 1.0 RULES

Unchanged
Same as 0.9.3

VERSION 0.9.3 RULES
JP PINT 0.9.3 Shared rules
ibr-057(fatal)
Unchanged
Same as 0.9.2
ibr-cl-14(fatal)
Changed Message
[ibr-cl-14]-Country codes (ibt-040, ibt-055, ibt-069, ibt-080, ibt-175) in an invoice MUST be coded using ISO code list 3166-1
context
cac:Country/cbc:IdentificationCode
test
(
  (
    not(contains(normalize-space(.), ' ')) and
    contains(' 1A AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XI YE YT ZA ZM ZW ',
      concat(' ', normalize-space(.), ' ')
    )
  )
)

VERSION 0.9.2 RULE
JP PINT 0.9.2 Shared rule
ibr-057(fatal)
Still valid
[ibr-057]-Each Deliver to address (ibg-15) MUST contain a Deliver to country code (ibt-080).
context
cac:Delivery/cac:DeliveryLocation/cac:Address
test
exists(cac:Country/cbc:IdentificationCode)
Code list rule (Shared rule)
ibr-cl-14 (fatal)
[ibr-cl-14]-Country codes in an invoice MUST be coded using ISO code list 3166-1
Context
cac:Country/cbc:IdentificationCode
Test
(
  (
    not(contains(normalize-space(.), ' ')) and
    contains(' 1A AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XI YE YT ZA ZM ZW ',
      concat(' ', normalize-space(.), ' ')
    )
  )
)

JP PINT 0.9 RULES (Obsoleted)
Shared Rule (0.9)
ibr-57(fatal)
[ibr-57]-Each Deliver to address (ibg-15) shall contain a Deliver to country code (ibt-080).
Context
cac:Delivery/cac:DeliveryLocation/cac:Address
Test
exists(cac:Country/cbc:IdentificationCode)
EN16931 model bound to UBL rules
BR-57 (fatal)
Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).
context
cac:Delivery/cac:DeliveryLocation/cac:Address
test
exists(cac:Country/cbc:IdentificationCode)
BR-IC-12 (fatal)
In an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the Deliver to country code (BT-80) shall not be blank.
context
/ubl:Invoice |
/cn:CreditNote
test
(exists(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) =
    'K']) and
  (string-length(cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode) >1)) or
(
  not(
    cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) =
    'K']
  )
)