OrderAgreement

Base OrderResponse example

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

{
  "OrderResponse": {
    "$": {
      "xmlns": "urn:oasis:names:specification:ubl:schema:xsd:OrderResponse-2",
      "xmlns:cac": "urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2",
      "xmlns:cbc": "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
    },
    "cbc:CustomizationID": [
      {
        "_": "urn:fdc:peppol.eu:poacc:trns:order_agreement:3"
      }
    ],
    "cbc:ProfileID": [
      {
        "_": "urn:fdc:peppol.eu:poacc:bis:order_agreement:3"
      }
    ],
    "cbc:ID": [
      {
        "_": "0263bf48-9a55-4d15-adf5-2c2921036d1c"
      }
    ],
    "cbc:SalesOrderID": [
      {
        "_": "101-111"
      }
    ],
    "cbc:IssueDate": [
      {
        "_": "2013-07-01"
      }
    ],
    "cbc:IssueTime": [
      {
        "_": "06:10:10"
      }
    ],
    "cbc:Note": [
      {
        "_": "We have a new phone number 33 44 55"
      }
    ],
    "cbc:DocumentCurrencyCode": [
      {
        "_": "EUR"
      }
    ],
    "cbc:CustomerReference": [
      {
        "_": "ABC-123"
      }
    ],
    "cac:OrderReference": [
      {
        "cbc:ID": [
          {
            "_": "11233"
          }
        ]
      }
    ],
    "cac:OriginatorDocumentReference": [
      {
        "cbc:ID": [
          {
            "_": "123456"
          }
        ]
      }
    ],
    "cac:AdditionalDocumentReference": [
      {
        "cbc:ID": [
          {
            "_": "147852"
          }
        ],
        "cbc:DocumentType": [
          {
            "_": "Timesheet"
          }
        ],
        "cac:Attachment": [
          {
            "cbc:EmbeddedDocumentBinaryObject": [
              {
                "_": "\n\t\t\t\tUjBsR09EbGhjZ0dTQUxNQUFBUUNBRU1tQ1p0dU1GUXhEUzhi",
                "$": {
                  "mimeCode": "image/tiff",
                  "filename": "hours-spend.csv"
                }
              }
            ],
            "cac:ExternalReference": [
              {
                "cbc:URI": [
                  {
                    "_": "http://www.example.com/index.html"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:Contract": [
      {
        "cbc:ID": [
          {
            "_": "CON-12345"
          }
        ]
      }
    ],
    "cac:SellerSupplierParty": [
      {
        "cac:Party": [
          {
            "cbc:EndpointID": [
              {
                "_": "7598000000128",
                "$": {
                  "schemeID": "0088"
                }
              }
            ],
            "cac:PartyIdentification": [
              {
                "cbc:ID": [
                  {
                    "_": "DK12345678",
                    "$": {
                      "schemeID": "0184"
                    }
                  }
                ]
              }
            ],
            "cac:PostalAddress": [
              {
                "cbc:StreetName": [
                  {
                    "_": "Storgt. 12"
                  }
                ],
                "cbc:AdditionalStreetName": [
                  {
                    "_": "4. etasje"
                  }
                ],
                "cbc:CityName": [
                  {
                    "_": "Oslo"
                  }
                ],
                "cbc:PostalZone": [
                  {
                    "_": "0585"
                  }
                ],
                "cbc:CountrySubentity": [
                  {
                    "_": "Region"
                  }
                ],
                "cac:AddressLine": [
                  {
                    "cbc:Line": [
                      {
                        "_": "Address Line 3"
                      }
                    ]
                  }
                ],
                "cac:Country": [
                  {
                    "cbc:IdentificationCode": [
                      {
                        "_": "NO"
                      }
                    ]
                  }
                ]
              }
            ],
            "cac:PartyLegalEntity": [
              {
                "cbc:RegistrationName": [
                  {
                    "_": "The Supplier AB"
                  }
                ],
                "cbc:CompanyID": [
                  {
                    "_": "123456789",
                    "$": {
                      "schemeID": "0082"
                    }
                  }
                ]
              }
            ],
            "cac:Contact": [
              {
                "cbc:Name": [
                  {
                    "_": "John Doe"
                  }
                ],
                "cbc:Telephone": [
                  {
                    "_": "11223344"
                  }
                ],
                "cbc:ElectronicMail": [
                  {
                    "_": "[email protected]"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:BuyerCustomerParty": [
      {
        "cac:Party": [
          {
            "cbc:EndpointID": [
              {
                "_": "7590000012347",
                "$": {
                  "schemeID": "0088"
                }
              }
            ],
            "cac:PartyIdentification": [
              {
                "cbc:ID": [
                  {
                    "_": "DK55412777",
                    "$": {
                      "schemeID": "0184"
                    }
                  }
                ]
              }
            ],
            "cac:PostalAddress": [
              {
                "cbc:StreetName": [
                  {
                    "_": "Sinsenveien 40"
                  }
                ],
                "cbc:AdditionalStreetName": [
                  {
                    "_": "Oppgang B"
                  }
                ],
                "cbc:CityName": [
                  {
                    "_": "Oslo"
                  }
                ],
                "cbc:PostalZone": [
                  {
                    "_": "0501"
                  }
                ],
                "cbc:CountrySubentity": [
                  {
                    "_": "Region"
                  }
                ],
                "cac:AddressLine": [
                  {
                    "cbc:Line": [
                      {
                        "_": "Address Line 3"
                      }
                    ]
                  }
                ],
                "cac:Country": [
                  {
                    "cbc:IdentificationCode": [
                      {
                        "_": "NO"
                      }
                    ]
                  }
                ]
              }
            ],
            "cac:PartyLegalEntity": [
              {
                "cbc:RegistrationName": [
                  {
                    "_": "City Hospital"
                  }
                ],
                "cbc:CompanyID": [
                  {
                    "_": "931186755",
                    "$": {
                      "schemeID": "0082"
                    }
                  }
                ]
              }
            ]
          }
        ],
        "cac:DeliveryContact": [
          {
            "cbc:Name": [
              {
                "_": "Peter Petersen"
              }
            ],
            "cbc:Telephone": [
              {
                "_": "22334455"
              }
            ],
            "cbc:ElectronicMail": [
              {
                "_": "[email protected]"
              }
            ]
          }
        ]
      }
    ],
    "cac:OriginatorCustomerParty": [
      {
        "cac:Party": [
          {
            "cac:PartyIdentification": [
              {
                "cbc:ID": [
                  {
                    "_": "DK55412777",
                    "$": {
                      "schemeID": "0184"
                    }
                  }
                ]
              }
            ],
            "cac:PartyName": [
              {
                "cbc:Name": [
                  {
                    "_": "Helseavdeling"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:AccountingCustomerParty": [
      {
        "cac:Party": [
          {
            "cac:PartyIdentification": [
              {
                "cbc:ID": [
                  {
                    "_": "DK55412777",
                    "$": {
                      "schemeID": "0184"
                    }
                  }
                ]
              }
            ],
            "cac:PartyName": [
              {
                "cbc:Name": [
                  {
                    "_": "Accounting"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:AllowanceCharge": [
      {
        "cbc:ChargeIndicator": [
          {
            "_": "true"
          }
        ],
        "cbc:AllowanceChargeReasonCode": [
          {
            "_": "ABK"
          }
        ],
        "cbc:AllowanceChargeReason": [
          {
            "_": "Miscellaneous services"
          }
        ],
        "cbc:Amount": [
          {
            "_": "2.00",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cac:TaxCategory": [
          {
            "cbc:ID": [
              {
                "_": "S"
              }
            ],
            "cbc:Percent": [
              {
                "_": "25"
              }
            ],
            "cac:TaxScheme": [
              {
                "cbc:ID": [
                  {
                    "_": "VAT"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "cbc:ChargeIndicator": [
          {
            "_": "false"
          }
        ],
        "cbc:AllowanceChargeReasonCode": [
          {
            "_": "95"
          }
        ],
        "cbc:AllowanceChargeReason": [
          {
            "_": "Discount"
          }
        ],
        "cbc:MultiplierFactorNumeric": [
          {
            "_": "10"
          }
        ],
        "cbc:Amount": [
          {
            "_": "3.25",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:BaseAmount": [
          {
            "_": "32.50",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cac:TaxCategory": [
          {
            "cbc:ID": [
              {
                "_": "S"
              }
            ],
            "cbc:Percent": [
              {
                "_": "25"
              }
            ],
            "cac:TaxScheme": [
              {
                "cbc:ID": [
                  {
                    "_": "VAT"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:TaxTotal": [
      {
        "cbc:TaxAmount": [
          {
            "_": "7.81",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cac:TaxSubtotal": [
          {
            "cbc:TaxableAmount": [
              {
                "_": "31.25",
                "$": {
                  "currencyID": "EUR"
                }
              }
            ],
            "cbc:TaxAmount": [
              {
                "_": "7.81",
                "$": {
                  "currencyID": "EUR"
                }
              }
            ],
            "cac:TaxCategory": [
              {
                "cbc:ID": [
                  {
                    "_": "S"
                  }
                ],
                "cbc:Percent": [
                  {
                    "_": "25"
                  }
                ],
                "cac:TaxScheme": [
                  {
                    "cbc:ID": [
                      {
                        "_": "VAT"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "cac:LegalMonetaryTotal": [
      {
        "cbc:LineExtensionAmount": [
          {
            "_": "32.5",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:TaxExclusiveAmount": [
          {
            "_": "31.25",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:TaxInclusiveAmount": [
          {
            "_": "39.06",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:AllowanceTotalAmount": [
          {
            "_": "3.25",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:ChargeTotalAmount": [
          {
            "_": "2.00",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:PrepaidAmount": [
          {
            "_": "10.00",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:PayableRoundingAmount": [
          {
            "_": "0.94",
            "$": {
              "currencyID": "EUR"
            }
          }
        ],
        "cbc:PayableAmount": [
          {
            "_": "30.00",
            "$": {
              "currencyID": "EUR"
            }
          }
        ]
      }
    ],
    "cac:OrderLine": [
      {
        "cac:LineItem": [
          {
            "cbc:ID": [
              {
                "_": "1"
              }
            ],
            "cbc:Note": [
              {
                "_": "Order line note text"
              }
            ],
            "cbc:Quantity": [
              {
                "_": "15",
                "$": {
                  "unitCode": "C62"
                }
              }
            ],
            "cbc:LineExtensionAmount": [
              {
                "_": "22.50",
                "$": {
                  "currencyID": "EUR"
                }
              }
            ],
            "cac:Delivery": [
              {
                "cbc:Quantity": [
                  {
                    "_": "15.00",
                    "$": {
                      "unitCode": "C62"
                    }
                  }
                ],
                "cac:PromisedDeliveryPeriod": [
                  {
                    "cbc:StartDate": [
                      {
                        "_": "2018-08-10"
                      }
                    ],
                    "cbc:StartTime": [
                      {
                        "_": "12:00:00"
                      }
                    ],
                    "cbc:EndDate": [
                      {
                        "_": "2018-08-12"
                      }
                    ],
                    "cbc:EndTime": [
                      {
                        "_": "12:00:00"
                      }
                    ]
                  }
                ]
              }
            ],
            "cac:Price": [
              {
                "cbc:PriceAmount": [
                  {
                    "_": "1.50",
                    "$": {
                      "currencyID": "EUR"
                    }
                  }
                ],
                "cbc:BaseQuantity": [
                  {
                    "_": "1",
                    "$": {
                      "unitCode": "C62"
                    }
                  }
                ],
                "cbc:PriceType": [
                  {
                    "_": "AAA"
                  }
                ],
                "cac:AllowanceCharge": [
                  {
                    "cbc:ChargeIndicator": [
                      {
                        "_": "false"
                      }
                    ],
                    "cbc:Amount": [
                      {
                        "_": "0.20",
                        "$": {
                          "currencyID": "EUR"
                        }
                      }
                    ],
                    "cbc:BaseAmount": [
                      {
                        "_": "1.70",
                        "$": {
                          "currencyID": "EUR"
                        }
                      }
                    ]
                  }
                ]
              }
            ],
            "cac:Item": [
              {
                "cbc:Description": [
                  {
                    "_": "Brown sauce - long description"
                  }
                ],
                "cbc:Name": [
                  {
                    "_": "Brown sauce"
                  }
                ],
                "cac:SellersItemIdentification": [
                  {
                    "cbc:ID": [
                      {
                        "_": "SN-33"
                      }
                    ]
                  }
                ],
                "cac:StandardItemIdentification": [
                  {
                    "cbc:ID": [
                      {
                        "_": "7400000001234",
                        "$": {
                          "schemeID": "0160"
                        }
                      }
                    ]
                  }
                ],
                "cac:ItemSpecificationDocumentReference": [
                  {
                    "cbc:ID": [
                      {
                        "_": "147852"
                      }
                    ],
                    "cbc:DocumentTypeCode": [
                      {
                        "_": "TRADE_ITEM_DESCRIPTION"
                      }
                    ],
                    "cbc:DocumentType": [
                      {
                        "_": "Timesheet"
                      }
                    ],
                    "cac:Attachment": [
                      {
                        "cbc:EmbeddedDocumentBinaryObject": [
                          {
                            "_": "\n\t\t\t\t\t\t\tUjBsR09EbGhjZ0dTQUxNQUFBUUNBRU1tQ1p0dU1GUXhEUzhi",
                            "$": {
                              "mimeCode": "image/tiff",
                              "filename": "hours-spend.csv"
                            }
                          }
                        ],
                        "cac:ExternalReference": [
                          {
                            "cbc:URI": [
                              {
                                "_": "http://www.example.com/index.html"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ],
                "cac:CommodityClassification": [
                  {
                    "cbc:ItemClassificationCode": [
                      {
                        "_": "12345678",
                        "$": {
                          "listID": "MP",
                          "listVersionID": "19.0501"
                        }
                      }
                    ]
                  }
                ],
                "cac:TransactionConditions": [
                  {
                    "cbc:ActionCode": [
                      {
                        "_": "CT"
                      }
                    ]
                  }
                ],
                "cac:ClassifiedTaxCategory": [
                  {
                    "cbc:ID": [
                      {
                        "_": "S"
                      }
                    ],
                    "cbc:Percent": [
                      {
                        "_": "25"
                      }
                    ],
                    "cac:TaxScheme": [
                      {
                        "cbc:ID": [
                          {
                            "_": "VAT"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "cac:AdditionalItemProperty": [
                  {
                    "cbc:ID": [
                      {
                        "_": "\n\t\t\t\t\t\t77e416eb-a363-4258-a04e-171d843a6460",
                        "$": {
                          "schemeDataURI": "https://define.cobuilder.no/77e416eb-a363-4258-a04e-171d843a6460/2022/",
                          "schemeID": "ISO22057",
                          "schemeVersionID": "2022"
                        }
                      }
                    ],
                    "cbc:Name": [
                      {
                        "_": "Length"
                      }
                    ],
                    "cbc:NameCode": [
                      {
                        "_": "test",
                        "$": {
                          "listID": "NN"
                        }
                      }
                    ],
                    "cbc:Value": [
                      {
                        "_": "30 mm"
                      }
                    ]
                  }
                ],
                "cac:Certificate": [
                  {
                    "cbc:ID": [
                      {
                        "_": "EU EcoLabel"
                      }
                    ],
                    "cbc:CertificateTypeCode": [
                      {
                        "_": "NA"
                      }
                    ],
                    "cbc:CertificateType": [
                      {
                        "_": "Environmental"
                      }
                    ],
                    "cbc:Remarks": [
                      {
                        "_": "Item labl value"
                      }
                    ],
                    "cac:IssuerParty": [
                      {
                        "cac:PartyName": [
                          {
                            "cbc:Name": [
                              {
                                "_": "Issuer party name"
                              }
                            ]
                          }
                        ]
                      }
                    ],
                    "cac:DocumentReference": [
                      {
                        "cbc:ID": [
                          {
                            "_": "http://www.label.eu/test/"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "cac:LineItem": [
          {
            "cbc:ID": [
              {
                "_": "2"
              }
            ],
            "cbc:Quantity": [
              {
                "_": "1",
                "$": {
                  "unitCode": "C62"
                }
              }
            ],
            "cbc:LineExtensionAmount": [
              {
                "_": "10",
                "$": {
                  "currencyID": "EUR"
                }
              }
            ],
            "cac:Price": [
              {
                "cbc:PriceAmount": [
                  {
                    "_": "10.00",
                    "$": {
                      "currencyID": "EUR"
                    }
                  }
                ]
              }
            ],
            "cac:Item": [
              {
                "cbc:Name": [
                  {
                    "_": "White sauce"
                  }
                ],
                "cac:SellersItemIdentification": [
                  {
                    "cbc:ID": [
                      {
                        "_": "SN-34"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}

Last updated

Was this helpful?