{"id":2349,"date":"2020-09-24T12:31:57","date_gmt":"2020-09-24T12:31:57","guid":{"rendered":"https:\/\/support.itscope.hostpress.me\/?post_type=kb&#038;p=2349"},"modified":"2025-04-29T14:26:40","modified_gmt":"2025-04-29T12:26:40","slug":"structure-of-the-order-document-with-licensees","status":"publish","type":"kb","link":"https:\/\/guide.itscope.com\/en\/kb\/structure-of-the-order-document-with-licensees\/","title":{"rendered":"Structure of the ORDER document for an order involving licensees"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Structure of an order with a licensee<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>The same structure applies as described in the article &#8216;<a href=\"https:\/\/guide.itscope.com\/en\/kb\/structure-of-the-order-document-for-a-standard-purchase-order\/\">Structure of the ORDER document for a standard purchase order<\/a>&#8216;.<\/p>\n\n\n\n<p>For orders with licensee details we have provided the following additional structure for the OpenTrans ORDER:<\/p>\n\n\n\n<p>All orders containing licensee line items have one thing in common: customer data is required. In this case, the <strong>customer<\/strong> PARTY_ROLE is used to define the party.<\/p>\n\n\n\n<p>All required customer data, such as company name, contact person, addresses and contact email address, are defined in the <strong>customer<\/strong> party, e.g.:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;PARTY&gt;\n   &lt;ns2:PARTY_ID type=\"buyer_specific\"&gt;K100023&lt;\/ns2:PARTY_ID&gt;\n   &lt;PARTY_ROLE&gt;customer&lt;\/PARTY_ROLE&gt;\n   &lt;ADDRESS&gt;\n      &lt;ns2:NAME&gt;Examplecompany&lt;\/ns2:NAME&gt;\n      &lt;CONTACT_DETAILS&gt;\n  <strong>       &lt;ns2:CONTACT_NAME&gt;Doe&lt;\/ns2:CONTACT_NAME&gt;\n         &lt;ns2:FIRST_NAME&gt;John&lt;\/ns2:FIRST_NAME&gt;\n         &lt;ns2:PHONE&gt;030123456&lt;\/ns2:PHONE&gt;\n         &lt;ns2:EMAILS&gt;\n            &lt;ns2:EMAIL&gt;john.doe@examplecompany.com&lt;\/ns2:EMAIL&gt;\n         &lt;\/ns2:EMAILS&gt;<\/strong>\n      &lt;\/CONTACT_DETAILS&gt;\n      &lt;ns2:STREET&gt;12 Main Street&lt;\/ns2:STREET&gt;\n      &lt;ns2:ZIP&gt;1234&lt;\/ns2:ZIP&gt;\n      &lt;ns2:CITY&gt;Anytown&lt;\/ns2:CITY&gt;\n      &lt;ns2:COUNTRY&gt;USA&lt;\/ns2:COUNTRY&gt;\n      &lt;ns2:COUNTRY_CODED&gt;US&lt;\/ns2:COUNTRY_CODED&gt;\n      &lt;ns2:PHONE type=\"office\"&gt;+1 030\/123456&lt;\/ns2:PHONE&gt;\n      &lt;ns2:FAX type=\"office\"&gt;+1 030\/1234567&lt;\/ns2:FAX&gt;\n      &lt;ns2:URL&gt;www.examplecompany.com&lt;\/ns2:URL&gt;\n   &lt;\/ADDRESS&gt;\n&lt;\/PARTY&gt;<\/pre>\n\n\n\n<p>There may be multiple customer parties, as an order may contain multiple licensees, and each line item where a licensee is entered will have a reference to the customer party.<\/p>\n\n\n\n<p>For normal hardware orders, a CUSTOMER_ORDER_REFERENCE entry for each line item is not necessary. For items with a licensee, this is mandatory in order to define a reference to the customer party, e.g.:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;ORDER_ITEM&gt;\n   \u2026\n   &lt;CUSTOMER_ORDER_REFERENCE&gt;\n      &lt;!--Reference to the end customer party, for their contact details and email details --&gt;\n      &lt;CUSTOMER_IDREF type=\"buyer_specific\"&gt;K100023&lt;\/CUSTOMER_IDREF&gt;\n   &lt;\/CUSTOMER_ORDER_REFERENCE&gt;\n&lt;\/ORDER_ITEM&gt;<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Orders with ESD line items<\/h2>\n\n\n\n<p>In addition to the licensee data mentioned above, an ESD line item within an order must be identified using <meta charset=\"utf-8\">&lt;PRODUCT_TYPE&gt;esd&lt;\/PRODUCT_TYPE&gt;. This field can be determined by the <a href=\"https:\/\/guide.itscope.com\/en\/kb\/product-family\/\">product family (contractTypeId)<\/a> in the <a href=\"https:\/\/guide.itscope.com\/en\/kbtopic\/api-export-data-formats-product-data\/\">API\/export data formats<\/a>. The ESD email address is read directly from the customer party in the Contact_Details from the <meta charset=\"utf-8\">&lt;ns2:EMAIL&gt; XML field.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">   \n&lt;ORDER_ITEM&gt;\n   \u2026\n       &lt;PRODUCT_ID&gt;\n            &lt;ns2:SUPPLIER_PID type=\"supplier_specific\"&gt;Supplier product ID&lt;\/ns2:SUPPLIER_PID&gt;\n            ...\n            &lt;ns2:PRODUCT_TYPE&gt;esd&lt;\/ns2:PRODUCT_TYPE&gt;\n       &lt;\/PRODUCT_ID&gt;\n \u2026\n&lt;\/ORDER_ITEM&gt; <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Orders with service line items<\/h2>\n\n\n\n<p>Service products include eCare Packs, support, exchange and services such as: HP eCare Pack, Fujitsu Support Services, warranty, maintenance, Lenovo Carepacks. In addition to the licensee data mentioned above, a service line item within an order must be identified by <meta charset=\"utf-8\">&lt;PRODUCT_TYPE&gt;service&lt;\/PRODUCT_TYPE&gt;. The ProductType can be determined by the <a href=\"https:\/\/guide.itscope.com\/en\/kb\/product-family\/\">product family (contractTypeId)<\/a> in the <a href=\"https:\/\/guide.itscope.com\/en\/kbtopic\/api-export-data-formats-product-data\/\">API\/export data formats<\/a>. The customer email of the service recipient is read directly from the customer party in the Contact_Details from the XML field <meta charset=\"utf-8\">&lt;ns2:EMAIL&gt;. In addition, the full customer address and contact details are also transmitted from the customer party to the supplier. If required, the supplier can then pass on all the necessary data to the respective service provider.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">   \n&lt;ORDER_ITEM&gt;\n   \u2026\n       &lt;PRODUCT_ID&gt;\n            &lt;ns2:SUPPLIER_PID type=\"supplier_specific\"&gt;Supplier article number&lt;\/ns2:SUPPLIER_PID&gt;\n            ...\n            &lt;ns2:PRODUCT_TYPE&gt;service&lt;\/ns2:PRODUCT_TYPE&gt;\n       &lt;\/PRODUCT_ID&gt;\n \u2026\n&lt;\/ORDER_ITEM&gt; <\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Download examples<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">ESD orders<\/h3>\n\n\n\n<p><meta charset=\"utf-8\">The files are provided with HTML comments to better understand the <a href=\"https:\/\/guide.itscope.com\/en\/kb\/structure-of-the-order-document-with-licensees\/\">structure of an ORDER document<\/a>. These files are also valid as reference files for sending test ESD orders to the Partner Test Distributor (DistributorId 10000735), via the ITscope API method <strong><a href=\"https:\/\/guide.itscope.com\/en\/kb\/business-deals-send-method\/\">business\/deals\/send<\/a><\/strong>.<\/p>\n\n\n\n<p>Example_ESD_ORDER_Testdistributor_Bestellung_1Party_ESD_only.xml<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>One ESD item is ordered (ItemId1) for the customer K100023. The licensee data for the manufacturer can be read from the corresponding customer party in the respective LINE_ITEM, just as the required ESD email can be read from the contact data of the licensee in the field &lt;ns2:Email><\/li>\n<\/ul>\n\n\n\n<p>&nbsp;Example_ESD_ORDER_Testdistributor_Bestellung_1Party_ESD_and_Hardware.xml<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The order contains two line items,<\/li>\n\n\n\n<li>one ESD item is ordered (ItemId2) for the customer K100023. The licensee data for the manufacturer can be read from the corresponding customer party in the respective LINE_ITEM, just as the required ESD email can be read from the contact data of the licensee in the field &lt;ns2:Email><\/li>\n\n\n\n<li>one line item (ItemId1) is a hardware product, which in this case is sent via dropshipping (UDX.DROPSHIPMENT = true) to the delivery party. This line item <strong>does not<\/strong> contain a &lt;PRODUCT_TYPE> entry and also has <strong>no<\/strong> reference to a customer party.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Service and licence order<\/h3>\n\n\n\n<p>Example_Service_ORDER_Testdistributor_Bestellung.xml<\/p>\n\n\n\n<p>This is an order with a service line item.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Structure of an order with a licensee The same structure applies as described in the article &#8216;Structure of the ORDER document for a standard purchase order&#8216;. For orders with licensee &#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[183],"kbtag":[],"class_list":["post-2349","kb","type-kb","status-publish","hentry","kbtopic-api-orders-quotes"],"_links":{"self":[{"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/kb\/2349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/comments?post=2349"}],"version-history":[{"count":18,"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/kb\/2349\/revisions"}],"predecessor-version":[{"id":18612,"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/kb\/2349\/revisions\/18612"}],"wp:attachment":[{"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/media?parent=2349"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/kbtopic?post=2349"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/guide.itscope.com\/en\/wp-json\/wp\/v2\/kbtag?post=2349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}