CreditNote

Base CreditNote example

Sample origin: https://github.com/OpenPEPPOL/peppol-bis-invoice-3/blob/master/rules/examples/base-creditnote-correction.xml

{
  "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"
    },
    "cbc:CustomizationID": [
      {
        "_": "urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0"
      }
    ],
    "cbc:ProfileID": [
      {
        "_": "urn:fdc:peppol.eu:2017:poacc:billing:01:1.0"
      }
    ],
    "cbc:ID": [
      {
        "_": "Snippet1"
      }
    ],
    "cbc:IssueDate": [
      {
        "_": "2017-11-13"
      }
    ],
    "cbc:CreditNoteTypeCode": [
      {
        "_": "381"
      }
    ],
    "cbc:Note": [
      {
        "_": "Please note we have a new phone number: 22 22 22 22"
      }
    ],
    "cbc:DocumentCurrencyCode": [
      {
        "_": "EUR"
      }
    ],
    "cbc:AccountingCost": [
      {
        "_": "4025:123:4343"
      }
    ],
    "cbc:BuyerReference": [
      {
        "_": "0150abc"
      }
    ],
    "cac:BillingReference": [
      {
        "cac:InvoiceDocumentReference": [
          {
            "cbc:ID": [
              {
                "_": "Snippet1"
              }
            ]
          }
        ]
      }
    ],
    "cac:AccountingSupplierParty": [
      {
        "cac:Party": [
          {
            "cbc:EndpointID": [
              {
                "_": "9482348239847239874",
                "$": {
                  "schemeID": "0088"
                }
              }
            ],
            "cac:PartyIdentification": [
              {
                "cbc:ID": [
                  {
                    "_": "99887766"
                  }
                ]
              }
            ],
            "cac:PartyName": [
              {
                "cbc:Name": [
                  {
                    "_": "SupplierTradingName Ltd."
                  }
                ]
              }
            ],
            "cac:PostalAddress": [
              {
                "cbc:StreetName": [
                  {
                    "_": "Main street 1"
                  }
                ],
                "cbc:AdditionalStreetName": [
                  {
                    "_": "Postbox 123"
                  }
                ],
                "cbc:CityName": [
                  {
                    "_": "London"
                  }
                ],
                "cbc:PostalZone": [
                  {
                    "_": "GB 123 EW"
                  }
                ],
                "cac:Country": [
                  {
                    "cbc:IdentificationCode": [
                      {
                        "_": "GB"
                      }
                    ]
                  }
                ]
              }
            ],
            "cac:PartyTaxScheme": [
              {
                "cbc:CompanyID": [
                  {
                    "_": "GB1232434"
                  }
                ],
                "cac:TaxScheme": [
                  {
                    "cbc:ID": [
                      {
                        "_": "VAT"
                      }
                    ]
                  }
                ]
              }
            ],
            "cac:PartyLegalEntity": [
              {
                "cbc:RegistrationName": [
                  {
                    "_": "SupplierOfficialName Ltd"
                  }
                ],
                "cbc:CompanyID": [
                  {
                    "_": "GB983294"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:AccountingCustomerParty": [
      {
        "cac:Party": [
          {
            "cbc:EndpointID": [
              {
                "_": "FR23342",
                "$": {
                  "schemeID": "0002"
                }
              }
            ],
            "cac:PartyIdentification": [
              {
                "cbc:ID": [
                  {
                    "_": "FR23342",
                    "$": {
                      "schemeID": "0002"
                    }
                  }
                ]
              }
            ],
            "cac:PartyName": [
              {
                "cbc:Name": [
                  {
                    "_": "BuyerTradingName AS"
                  }
                ]
              }
            ],
            "cac:PostalAddress": [
              {
                "cbc:StreetName": [
                  {
                    "_": "Hovedgatan 32"
                  }
                ],
                "cbc:AdditionalStreetName": [
                  {
                    "_": "Po box 878"
                  }
                ],
                "cbc:CityName": [
                  {
                    "_": "Stockholm"
                  }
                ],
                "cbc:PostalZone": [
                  {
                    "_": "456 34"
                  }
                ],
                "cac:Country": [
                  {
                    "cbc:IdentificationCode": [
                      {
                        "_": "SE"
                      }
                    ]
                  }
                ]
              }
            ],
            "cac:PartyTaxScheme": [
              {
                "cbc:CompanyID": [
                  {
                    "_": "SE4598375937"
                  }
                ],
                "cac:TaxScheme": [
                  {
                    "cbc:ID": [
                      {
                        "_": "VAT"
                      }
                    ]
                  }
                ]
              }
            ],
            "cac:PartyLegalEntity": [
              {
                "cbc:RegistrationName": [
                  {
                    "_": "Buyer Official Name"
                  }
                ],
                "cbc:CompanyID": [
                  {
                    "_": "39937423947",
                    "$": {
                      "schemeID": "0183"
                    }
                  }
                ]
              }
            ],
            "cac:Contact": [
              {
                "cbc:Name": [
                  {
                    "_": "Lisa Johnson"
                  }
                ],
                "cbc:Telephone": [
                  {
                    "_": "23434234"
                  }
                ],
                "cbc:ElectronicMail": [
                  {
                    "_": "[email protected]"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:Delivery": [
      {
        "cbc:ActualDeliveryDate": [
          {
            "_": "2017-11-01"
          }
        ],
        "cac:DeliveryLocation": [
          {
            "cbc:ID": [
              {
                "_": "9483759475923478",
                "$": {
                  "schemeID": "0088"
                }
              }
            ],
            "cac:Address": [
              {
                "cbc:StreetName": [
                  {
                    "_": "Delivery street 2"
                  }
                ],
                "cbc:AdditionalStreetName": [
                  {
                    "_": "Building 56"
                  }
                ],
                "cbc:CityName": [
                  {
                    "_": "Stockholm"
                  }
                ],
                "cbc:PostalZone": [
                  {
                    "_": "21234"
                  }
                ],
                "cac:Country": [
                  {
                    "cbc:IdentificationCode": [
                      {
                        "_": "SE"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ],
        "cac:DeliveryParty": [
          {
            "cac:PartyName": [
              {
                "cbc:Name": [
                  {
                    "_": "Delivery party Name"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:PaymentMeans": [
      {
        "cbc:PaymentMeansCode": [
          {
            "_": "30",
            "$": {
              "name": "Credit transfer"
            }
          }
        ],
        "cbc:PaymentID": [
          {
            "_": "Snippet1"
          }
        ],
        "cac:PayeeFinancialAccount": [
          {
            "cbc:ID": [
              {
                "_": "IBAN32423940"
              }
            ],
            "cbc:Name": [
              {
                "_": "AccountName"
              }
            ],
            "cac:FinancialInstitutionBranch": [
              {
                "cbc:ID": [
                  {
                    "_": "BIC324098"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:PaymentTerms": [
      {
        "cbc:Note": [
          {
            "_": "Payment within 10 days, 2% discount"
          }
        ]
      }
    ],
    "cac:AllowanceCharge": [
      {
        "cbc:ChargeIndicator": [
          {
            "_": "true"
          }
        ],
        "cbc:AllowanceChargeReason": [
          {
            "_": "Insurance"
          }
        ],
        "cbc:Amount": [
          {
            "_": "25",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cac:TaxCategory": [
          {
            "cbc:ID": [
              {
                "_": "S"
              }
            ],
            "cbc:Percent": [
              {
                "_": "25.0"
              }
            ],
            "cac:TaxScheme": [
              {
                "cbc:ID": [
                  {
                    "_": "VAT"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:TaxTotal": [
      {
        "cbc:TaxAmount": [
          {
            "_": "331.25",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cac:TaxSubtotal": [
          {
            "cbc:TaxableAmount": [
              {
                "_": "1325",
                "$": {
                  "currencyID": "EUR"
                }
              }
            ],
            "cbc:TaxAmount": [
              {
                "_": "331.25",
                "$": {
                  "currencyID": "EUR"
                }
              }
            ],
            "cac:TaxCategory": [
              {
                "cbc:ID": [
                  {
                    "_": "S"
                  }
                ],
                "cbc:Percent": [
                  {
                    "_": "25.0"
                  }
                ],
                "cac:TaxScheme": [
                  {
                    "cbc:ID": [
                      {
                        "_": "VAT"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:LegalMonetaryTotal": [
      {
        "cbc:LineExtensionAmount": [
          {
            "_": "1300",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:TaxExclusiveAmount": [
          {
            "_": "1325",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:TaxInclusiveAmount": [
          {
            "_": "1656.25",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:ChargeTotalAmount": [
          {
            "_": "25",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:PayableAmount": [
          {
            "_": "1656.25",
            "$": {
              "currencyID": "EUR"
            }
          }
        ]
      }
    ],
    "cac:CreditNoteLine": [
      {
        "cbc:ID": [
          {
            "_": "1"
          }
        ],
        "cbc:CreditedQuantity": [
          {
            "_": "7",
            "$": {
              "unitCode": "DAY"
            }
          }
        ],
        "cbc:LineExtensionAmount": [
          {
            "_": "2800",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:AccountingCost": [
          {
            "_": "Konteringsstreng"
          }
        ],
        "cac:OrderLineReference": [
          {
            "cbc:LineID": [
              {
                "_": "123"
              }
            ]
          }
        ],
        "cac:Item": [
          {
            "cbc:Description": [
              {
                "_": "Description of item"
              }
            ],
            "cbc:Name": [
              {
                "_": "item name"
              }
            ],
            "cac:StandardItemIdentification": [
              {
                "cbc:ID": [
                  {
                    "_": "21382183120983",
                    "$": {
                      "schemeID": "0088"
                    }
                  }
                ]
              }
            ],
            "cac:OriginCountry": [
              {
                "cbc:IdentificationCode": [
                  {
                    "_": "NO"
                  }
                ]
              }
            ],
            "cac:CommodityClassification": [
              {
                "cbc:ItemClassificationCode": [
                  {
                    "_": "09348023",
                    "$": {
                      "listID": "SRV"
                    }
                  }
                ]
              }
            ],
            "cac:ClassifiedTaxCategory": [
              {
                "cbc:ID": [
                  {
                    "_": "S"
                  }
                ],
                "cbc:Percent": [
                  {
                    "_": "25.0"
                  }
                ],
                "cac:TaxScheme": [
                  {
                    "cbc:ID": [
                      {
                        "_": "VAT"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ],
        "cac:Price": [
          {
            "cbc:PriceAmount": [
              {
                "_": "400",
                "$": {
                  "currencyID": "EUR"
                }
              }
            ]
          }
        ]
      },
      {
        "cbc:ID": [
          {
            "_": "2"
          }
        ],
        "cbc:CreditedQuantity": [
          {
            "_": "-3",
            "$": {
              "unitCode": "DAY"
            }
          }
        ],
        "cbc:LineExtensionAmount": [
          {
            "_": "-1500",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cac:OrderLineReference": [
          {
            "cbc:LineID": [
              {
                "_": "123"
              }
            ]
          }
        ],
        "cac:Item": [
          {
            "cbc:Description": [
              {
                "_": "Description 2"
              }
            ],
            "cbc:Name": [
              {
                "_": "item name 2"
              }
            ],
            "cac:StandardItemIdentification": [
              {
                "cbc:ID": [
                  {
                    "_": "21382183120983",
                    "$": {
                      "schemeID": "0088"
                    }
                  }
                ]
              }
            ],
            "cac:OriginCountry": [
              {
                "cbc:IdentificationCode": [
                  {
                    "_": "NO"
                  }
                ]
              }
            ],
            "cac:CommodityClassification": [
              {
                "cbc:ItemClassificationCode": [
                  {
                    "_": "09348023",
                    "$": {
                      "listID": "SRV"
                    }
                  }
                ]
              }
            ],
            "cac:ClassifiedTaxCategory": [
              {
                "cbc:ID": [
                  {
                    "_": "S"
                  }
                ],
                "cbc:Percent": [
                  {
                    "_": "25.0"
                  }
                ],
                "cac:TaxScheme": [
                  {
                    "cbc:ID": [
                      {
                        "_": "VAT"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ],
        "cac:Price": [
          {
            "cbc:PriceAmount": [
              {
                "_": "500",
                "$": {
                  "currencyID": "EUR"
                }
              }
            ]
          }
        ]
      }
    ]
  }
}

Last updated

Was this helpful?