OrderChange

Base OrderChange example

Sample origin: https://github.com/OpenPEPPOL/poacc-upgrade-3/blob/master/rules/examples/OrderChange_Example.xml

{
  "OrderChange": {
    "$": {
      "xmlns": "urn:oasis:names:specification:ubl:schema:xsd:OrderChange-2",
      "xmlns:cac": "urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2",
      "xmlns:cbc": "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2",
      "xmlns:xs": "http://www.w3.org/2001/XMLSchema"
    },
    "cbc:CustomizationID": [
      {
        "_": "urn:fdc:peppol.eu:poacc:trns:order_change:3"
      }
    ],
    "cbc:ProfileID": [
      {
        "_": "urn:fdc:peppol.eu:poacc:bis:advanced_ordering:3"
      }
    ],
    "cbc:ID": [
      {
        "_": "Change-1"
      }
    ],
    "cbc:IssueDate": [
      {
        "_": "2022-02-01"
      }
    ],
    "cbc:SequenceNumberID": [
      {
        "_": "1"
      }
    ],
    "cbc:Note": [
      {
        "_": "Changes according to Order reponse"
      }
    ],
    "cbc:DocumentCurrencyCode": [
      {
        "_": "EUR"
      }
    ],
    "cac:ValidityPeriod": [
      {
        "cbc:EndDate": [
          {
            "_": "2022-03-01"
          }
        ]
      }
    ],
    "cac:OrderReference": [
      {
        "cbc:ID": [
          {
            "_": "Order-1"
          }
        ]
      }
    ],
    "cac:BuyerCustomerParty": [
      {
        "cac:Party": [
          {
            "cbc:EndpointID": [
              {
                "_": "7300010000001",
                "$": {
                  "schemeID": "0088"
                }
              }
            ],
            "cac:PartyIdentification": [
              {
                "cbc:ID": [
                  {
                    "_": "5541277710",
                    "$": {
                      "schemeID": "0007"
                    }
                  }
                ]
              }
            ],
            "cac:PartyName": [
              {
                "cbc:Name": [
                  {
                    "_": "City Hospital"
                  }
                ]
              }
            ],
            "cac:PartyLegalEntity": [
              {
                "cbc:RegistrationName": [
                  {
                    "_": "City Hospital 345433"
                  }
                ],
                "cbc:CompanyID": [
                  {
                    "_": "5541277710",
                    "$": {
                      "schemeID": "0007"
                    }
                  }
                ],
                "cac:RegistrationAddress": [
                  {
                    "cbc:CityName": [
                      {
                        "_": "Eurocity"
                      }
                    ],
                    "cac:Country": [
                      {
                        "cbc:IdentificationCode": [
                          {
                            "_": "SE"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ],
            "cac:Contact": [
              {
                "cbc:Name": [
                  {
                    "_": "Martin Foggerty"
                  }
                ],
                "cbc:Telephone": [
                  {
                    "_": "+46555785488"
                  }
                ],
                "cbc:ElectronicMail": [
                  {
                    "_": "[email protected]"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:SellerSupplierParty": [
      {
        "cac:Party": [
          {
            "cbc:EndpointID": [
              {
                "_": "7302347231110",
                "$": {
                  "schemeID": "0088"
                }
              }
            ],
            "cac:PartyIdentification": [
              {
                "cbc:ID": [
                  {
                    "_": "5546577791",
                    "$": {
                      "schemeID": "0007"
                    }
                  }
                ]
              }
            ],
            "cac:PostalAddress": [
              {
                "cbc:StreetName": [
                  {
                    "_": "Harbour street"
                  }
                ],
                "cbc:AdditionalStreetName": [
                  {
                    "_": "Dock 45"
                  }
                ],
                "cbc:CityName": [
                  {
                    "_": "Bergen"
                  }
                ],
                "cac:Country": [
                  {
                    "cbc:IdentificationCode": [
                      {
                        "_": "NO"
                      }
                    ]
                  }
                ]
              }
            ],
            "cac:PartyLegalEntity": [
              {
                "cbc:RegistrationName": [
                  {
                    "_": "The Supplier AB"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:Delivery": [
      {
        "cac:DeliveryLocation": [
          {
            "cac:Address": [
              {
                "cbc:StreetName": [
                  {
                    "_": "Lower street 5"
                  }
                ],
                "cbc:AdditionalStreetName": [
                  {
                    "_": "Reception"
                  }
                ],
                "cbc:CityName": [
                  {
                    "_": "Stockholm"
                  }
                ],
                "cbc:PostalZone": [
                  {
                    "_": "11120"
                  }
                ],
                "cac:AddressLine": [
                  {
                    "cbc:Line": [
                      {
                        "_": "Right"
                      }
                    ]
                  }
                ],
                "cac:Country": [
                  {
                    "cbc:IdentificationCode": [
                      {
                        "_": "SE"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ],
        "cac:RequestedDeliveryPeriod": [
          {
            "cbc:StartDate": [
              {
                "_": "2013-07-15"
              }
            ],
            "cbc:EndDate": [
              {
                "_": "2013-07-16"
              }
            ]
          }
        ],
        "cac:DeliveryParty": [
          {
            "cac:PartyName": [
              {
                "cbc:Name": [
                  {
                    "_": "Hospital Tourist Department"
                  }
                ]
              }
            ],
            "cac:Contact": [
              {
                "cbc:Name": [
                  {
                    "_": "John"
                  }
                ],
                "cbc:Telephone": [
                  {
                    "_": "+465558877523"
                  }
                ],
                "cbc:ElectronicMail": [
                  {
                    "_": "[email protected]"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:TaxTotal": [
      {
        "cbc:TaxAmount": [
          {
            "_": "100",
            "$": {
              "currencyID": "EUR"
            }
          }
        ]
      }
    ],
    "cac:AnticipatedMonetaryTotal": [
      {
        "cbc:LineExtensionAmount": [
          {
            "_": "500",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:TaxExclusiveAmount": [
          {
            "_": "500",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:TaxInclusiveAmount": [
          {
            "_": "600",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:PayableAmount": [
          {
            "_": "600",
            "$": {
              "currencyID": "EUR"
            }
          }
        ]
      }
    ],
    "cac:OrderLine": [
      {
        "cac:LineItem": [
          {
            "cbc:ID": [
              {
                "_": "1"
              }
            ],
            "cbc:LineStatusCode": [
              {
                "_": "3"
              }
            ],
            "cbc:Quantity": [
              {
                "_": "5",
                "$": {
                  "unitCode": "NAR"
                }
              }
            ],
            "cbc:LineExtensionAmount": [
              {
                "_": "200",
                "$": {
                  "currencyID": "EUR"
                }
              }
            ],
            "cac:Price": [
              {
                "cbc:PriceAmount": [
                  {
                    "_": "40",
                    "$": {
                      "currencyID": "EUR"
                    }
                  }
                ]
              }
            ],
            "cac:Item": [
              {
                "cbc:Name": [
                  {
                    "_": "Item 1"
                  }
                ],
                "cac:ClassifiedTaxCategory": [
                  {
                    "cbc:ID": [
                      {
                        "_": "S"
                      }
                    ],
                    "cbc:Percent": [
                      {
                        "_": "20"
                      }
                    ],
                    "cac:TaxScheme": [
                      {
                        "cbc:ID": [
                          {
                            "_": "VAT"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "cac:LineItem": [
          {
            "cbc:ID": [
              {
                "_": "2"
              }
            ],
            "cbc:LineStatusCode": [
              {
                "_": "3"
              }
            ],
            "cbc:Quantity": [
              {
                "_": "50",
                "$": {
                  "unitCode": "NAR"
                }
              }
            ],
            "cbc:LineExtensionAmount": [
              {
                "_": "300",
                "$": {
                  "currencyID": "EUR"
                }
              }
            ],
            "cac:Price": [
              {
                "cbc:PriceAmount": [
                  {
                    "_": "6",
                    "$": {
                      "currencyID": "EUR"
                    }
                  }
                ]
              }
            ],
            "cac:Item": [
              {
                "cbc:Name": [
                  {
                    "_": "Item 2"
                  }
                ],
                "cac:ClassifiedTaxCategory": [
                  {
                    "cbc:ID": [
                      {
                        "_": "S"
                      }
                    ],
                    "cbc:Percent": [
                      {
                        "_": "20"
                      }
                    ],
                    "cac:TaxScheme": [
                      {
                        "cbc:ID": [
                          {
                            "_": "VAT"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}

Last updated

Was this helpful?