<?xml version="1.0" encoding="UTF-8"?>
<CreditNote xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
    xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
    xmlns="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2">

<!-- 

A valid Singapore credit note.

-->

	<cbc:UBLVersionID>2.1</cbc:UBLVersionID>
	<cbc:CustomizationID>urn:peppol:pint:billing-1@sg-1</cbc:CustomizationID> <!-- BT-24 -->
	<cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID> <!-- BT-23 -->
	<cbc:ID>F012345</cbc:ID> <!-- BT-1 -->
	<cbc:UUID>2523149b-cb40-4b32-9004-debca57b80ee</cbc:UUID> 
	<cbc:IssueDate>2020-05-27</cbc:IssueDate> <!-- BT-2 -->
	<cbc:CreditNoteTypeCode>381</cbc:CreditNoteTypeCode> <!-- BT-3 -->
	<cbc:Note>This is a credit note example Reason for the credit goes here</cbc:Note> <!-- BT-22 -->
	<cbc:DocumentCurrencyCode>SGD</cbc:DocumentCurrencyCode> <!-- BT-5 -->
	<cbc:BuyerReference>IMDA1-Infocomm Media Devt Authority</cbc:BuyerReference> <!-- BT-10 -->
    <cac:BillingReference>
        <cac:InvoiceDocumentReference>
            <cbc:ID>INV0001</cbc:ID>
        </cac:InvoiceDocumentReference>
    </cac:BillingReference>
	<cac:AccountingSupplierParty>
		<cac:Party>
			<cbc:EndpointID schemeID="0195">SGUEN200212345Z</cbc:EndpointID> <!-- BT-49, BT-49-1 -->
			<cac:PartyIdentification>
				<cbc:ID schemeID="0035">345KS5324</cbc:ID> <!-- BT-46, BT-46-1 -->
			</cac:PartyIdentification>
			<cac:PostalAddress>
				<cbc:StreetName>Central road 56</cbc:StreetName> <!-- BT-50 -->
				<cbc:AdditionalStreetName>Second floor</cbc:AdditionalStreetName> <!-- BT-51 -->
				<cbc:CityName>Singapore</cbc:CityName> <!-- BT-52 -->
				<cbc:PostalZone>101</cbc:PostalZone> <!-- BT-53 -->
				<cbc:CountrySubentity>Singapore</cbc:CountrySubentity> <!-- BT-54 -->
				<cac:Country>
					<cbc:IdentificationCode>SG</cbc:IdentificationCode> <!-- BT-55 -->
				</cac:Country>
			</cac:PostalAddress>
			<cac:PartyTaxScheme>
				<cbc:CompanyID>M2-7654321-K</cbc:CompanyID> <!-- BT-31 -->
				<cac:TaxScheme>
					<cbc:ID>GST</cbc:ID> <!-- BT-31, qualifier -->
				</cac:TaxScheme>
			</cac:PartyTaxScheme>			
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>IMDA</cbc:RegistrationName> <!-- BT-45 -->
				<cbc:CompanyID>200212345Z</cbc:CompanyID> <!-- BT-30 -->
			</cac:PartyLegalEntity>
			<cac:Contact>
				<cbc:Name>John Doe</cbc:Name> <!-- BT-56 -->
			</cac:Contact>
		</cac:Party>
	</cac:AccountingSupplierParty>
	<cac:AccountingCustomerParty>
		<cac:Party>
			<cbc:EndpointID schemeID="0195">SGUEN200254321Z</cbc:EndpointID> <!-- BT-34, BT-34-1 -->
			<cac:PostalAddress>
				<cbc:StreetName>Mainstreet 112</cbc:StreetName> <!-- BT-35 -->
				<cbc:AdditionalStreetName>Building 3</cbc:AdditionalStreetName> <!-- BT-36 -->
				<cbc:CityName>Singapore</cbc:CityName> <!-- BT-37 -->
				<cbc:PostalZone>1000</cbc:PostalZone> <!-- BT-38 -->
				<cbc:CountrySubentity>Singapore</cbc:CountrySubentity> <!-- BT-39 -->
				<cac:Country>
					<cbc:IdentificationCode>SG</cbc:IdentificationCode> <!-- BT-40 -->
				</cac:Country>
			</cac:PostalAddress>
			<cac:PartyTaxScheme>
				<cbc:CompanyID>MR85004322</cbc:CompanyID> <!-- BT-31 -->
				<cac:TaxScheme>
					<cbc:ID>GST</cbc:ID> <!-- BT-31, qualifier -->
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>Gallery Photo Supplier</cbc:RegistrationName> <!-- BT-27 -->
				<cbc:CompanyID>C19002826A</cbc:CompanyID>
			</cac:PartyLegalEntity>
			<cac:Contact>
				<cbc:ElectronicMail>peter@seller.org</cbc:ElectronicMail> <!-- BT-43 -->
			</cac:Contact>
		</cac:Party>
	</cac:AccountingCustomerParty>
	<cac:AllowanceCharge>
		<cbc:ChargeIndicator>true</cbc:ChargeIndicator> <!-- UBL qualifier -->
		<cbc:AllowanceChargeReasonCode>DL</cbc:AllowanceChargeReasonCode> <!-- BT-98, BT-105 -->
		<cbc:AllowanceChargeReason>Transport cost</cbc:AllowanceChargeReason> <!-- BT-97, BT-104 -->
		<cbc:Amount currencyID="SGD">2300.00</cbc:Amount> <!-- BT-92, BT-99 -->
		<cac:TaxCategory>
			<cbc:ID>SR</cbc:ID> <!-- BT-95, BT-102 -->
				<cbc:Percent>7</cbc:Percent> <!-- BT-96, BT-103  -->
			<cac:TaxScheme>
				<cbc:ID>GST</cbc:ID>
			</cac:TaxScheme>
		</cac:TaxCategory>
	</cac:AllowanceCharge>
	<cac:TaxTotal>
		<cbc:TaxAmount currencyID="SGD">1624.00</cbc:TaxAmount> <!-- BT-110 -->
		<cac:TaxSubtotal>
			<cbc:TaxableAmount currencyID="SGD">23200.00</cbc:TaxableAmount> <!-- BT-116 -->
			<cbc:TaxAmount currencyID="SGD">1624.00</cbc:TaxAmount> <!-- BT-117 -->
			<cac:TaxCategory>
				<cbc:ID>SR</cbc:ID> <!-- BT-118 -->
				<cbc:Percent>7</cbc:Percent> <!-- BT-119 -->
				<cac:TaxScheme>
					<cbc:ID>GST</cbc:ID> <!-- BT-118, qualifier -->
				</cac:TaxScheme>
			</cac:TaxCategory>
		</cac:TaxSubtotal>
	</cac:TaxTotal>
	<cac:LegalMonetaryTotal>
		<cbc:LineExtensionAmount currencyID="SGD">20900.00</cbc:LineExtensionAmount> <!-- BT-106 -->
		<cbc:TaxExclusiveAmount currencyID="SGD">23200.00</cbc:TaxExclusiveAmount> <!-- BT-109 -->
		<cbc:TaxInclusiveAmount currencyID="SGD">24824.00</cbc:TaxInclusiveAmount> <!-- BT-112 -->
		<cbc:ChargeTotalAmount currencyID="SGD">2300</cbc:ChargeTotalAmount> <!-- BT-108 -->
		<cbc:PayableAmount currencyID="SGD">24824.00</cbc:PayableAmount> <!-- BT-115 -->
	</cac:LegalMonetaryTotal>
	<cac:CreditNoteLine>
		<cbc:ID>1</cbc:ID> <!-- BT-126 -->
		<cbc:CreditedQuantity unitCode="H87">10</cbc:CreditedQuantity> <!-- BT-130, BT-129 -->
		<cbc:LineExtensionAmount currencyID="SGD">900.00</cbc:LineExtensionAmount> <!-- BT-131 -->
		<cac:OrderLineReference>
			<cbc:LineID>2</cbc:LineID> <!-- BT-132 -->
		</cac:OrderLineReference>
		<cac:Item>
			<cbc:Name>Yashica MG2</cbc:Name> <!-- BT-153 -->
			<cac:SellersItemIdentification>
				<cbc:ID>Item1</cbc:ID> <!-- BT-155 -->
			</cac:SellersItemIdentification>
			<cac:ClassifiedTaxCategory>
				<cbc:ID>SR</cbc:ID> <!-- BT-151 -->
				<cbc:Percent>7</cbc:Percent> <!-- BT-152 -->
				<cac:TaxScheme>
					<cbc:ID>GST</cbc:ID>
				</cac:TaxScheme>
			</cac:ClassifiedTaxCategory>
		</cac:Item>
		<cac:Price>
			<cbc:PriceAmount currencyID="SGD">90.00</cbc:PriceAmount> <!-- BT-146 -->
		</cac:Price>
	</cac:CreditNoteLine>
	<cac:CreditNoteLine>
		<cbc:ID>2</cbc:ID> <!-- BT-126 -->
		<cbc:CreditedQuantity unitCode="H87">20</cbc:CreditedQuantity> <!-- BT-130, BT-129 -->
		<cbc:LineExtensionAmount currencyID="SGD">20000.00</cbc:LineExtensionAmount> <!-- BT-131 -->
		<cac:OrderLineReference>
			<cbc:LineID>1</cbc:LineID> <!-- BT-132 -->
		</cac:OrderLineReference>	
		<cac:Item>
			<cbc:Name>Pentax Z-1 Body</cbc:Name> <!-- BT-153 -->
			<cac:SellersItemIdentification>
				<cbc:ID>Item2</cbc:ID> <!-- BT-155 -->
			</cac:SellersItemIdentification>
			<cac:ClassifiedTaxCategory>
				<cbc:ID>SR</cbc:ID> <!-- BT-151 -->
				<cbc:Percent>7</cbc:Percent> <!-- BT-152 -->
				<cac:TaxScheme>
					<cbc:ID>GST</cbc:ID>
				</cac:TaxScheme>
			</cac:ClassifiedTaxCategory>
			</cac:Item>
		<cac:Price>
			<cbc:PriceAmount currencyID="SGD">1000.00</cbc:PriceAmount> <!-- BT-146 -->
		</cac:Price>
	</cac:CreditNoteLine>
</CreditNote>