Context
PT
/ubl:Invoice/cac:AccountingCustomerParty
VRBL-Invoice-PT-SAF-T-1p0 - Buyer
Portugal |
VRBL-Invoice-PT-SAF-T-1p0
| Context ID | INV0394 |
| Usage | M |
Description
Group for buyer details.
Child elements
| Usage | Element | Description | Cardinality |
|---|---|---|---|
| - | cbc:AdditionalAccountID |
Buyer Additional Account ID
An identifier for the customer's account, assigned by a third party. |
0..n |
| O | cbc:SupplierAssignedAccountID |
Buyer Supplier Assigned Account ID
An identifier for the customer's account, assigned by the supplier. |
0..1 |
| M | cac:Party |
Buyer Party
The customer party itself. |
0..1 |
Details
Example: VRBL_BASIC_CREDIT_NOTE.xml
<ubl:Invoice>
<!-- ... omitted for readability -->
<cac:AccountingCustomerParty>
<cbc:SupplierAssignedAccountID>Desconhecido</cbc:SupplierAssignedAccountID>
<cac:Party>
<cbc:WebsiteURI>https://customer.com/</cbc:WebsiteURI>
<cac:PartyIdentification>
<cbc:ID>987354</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>Customer</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:Floor>5</cbc:Floor>
<cbc:StreetName>Rua xpto 2</cbc:StreetName>
<cbc:BuildingNumber>BN3</cbc:BuildingNumber>
<cbc:CityName>Amadora</cbc:CityName>
<cbc:PostalZone>2610-011</cbc:PostalZone>
<cbc:CountrySubentity>Amadora</cbc:CountrySubentity>
<cbc:Region>Lisboa</cbc:Region>
<cac:Country>
<cbc:IdentificationCode>PT</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID schemeID="VRBL:PT:TAX">PT987654321</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Customer Registration Name</cbc:RegistrationName>
<cbc:CompanyID schemeID="0105">PT987654321</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:Name>Fulano de Tal</cbc:Name>
<cbc:Telephone>+351 912 345 678</cbc:Telephone>
<cbc:Telefax>+351 912 345 677</cbc:Telefax>
<cbc:ElectronicMail>fulano.detal@ecosio.com</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<!-- ... omitted for readability -->
</ubl:Invoice>
Rules
| Rule ID | Error Message |
|---|---|
| VRBL-INV-PT-SAF-T-1p0-10 | When Self-Billing is indicated, the Buyer Additional Account ID must exist within the Buyer. |
| VRBL-INV-PT-SAF-T-1p0-47 | The value of the Buyer Additional Account ID Scheme ID must be contained in PT SAF-T Additional Account ID Code List [VRBL-CL-PT-AdditionalAccountIDCode] (prefixed by 'VRBL:PT:'). |
| VRBL-INV-PT-SAF-T-1p0-9 | The Buyer Supplier Assigned Account ID must exist within the Buyer. |