{"id":94,"date":"2016-01-26T00:55:58","date_gmt":"2016-01-26T00:55:58","guid":{"rendered":"http:\/\/192.168.114.129\/?page_id=94"},"modified":"2023-06-24T11:10:36","modified_gmt":"2023-06-24T11:10:36","slug":"get-options","status":"publish","type":"page","link":"https:\/\/api-users.4over.com\/?page_id=94","title":{"rendered":"Retrieve Options"},"content":{"rendered":"<p>This route will return list of all Option Groups. Option Groups are consisted of entities such as Size, Stock, Runsizes, Coating, Colorspec and Turnaround-times as well as all bindery and finishing options such as Folding Options and so on. Each Option Group is a collection of such options. Therefore; Folding Option is a collection of all available Folding Options. <\/p>\n<h3>Resource URI<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nGET \/printproducts\/optiongroups                     \r\n<\/pre>\n<h3>Sample Request<\/h3>\n<p>html<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nhttps:\/\/api.4over.com\/printproducts\/optiongroups\r\n<\/pre>\n<h3>Sample Response<\/h3>\n<p>JSON<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n[\r\n  &quot;entities&quot;,\r\n  [\r\n    {\r\n      option_group_uuid: &quot;34f407f8-0b50-4227-9378-10fddefbe596&quot;,\r\n      option_group_name: &quot;Size&quot;,\r\n      option_group_description: &quot;Final width and height dimensions&quot;,\r\n      options: &quot;https:\/\/api.4over.com\/printproducts\/optiongroups\/34f407f8-0b50-4227-9378-10fddefbe596\/options&quot;\r\n    },\r\n    {\r\n      option_group_uuid: &quot;24865ffa-793d-43ea-b3b1-d1b5cf22268d&quot;,\r\n      option_group_name: &quot;Stock&quot;,\r\n      option_group_description: &quot;The substrate to be printed on&quot;,\r\n      options: &quot;https:\/\/api.4over.com\/printproducts\/optiongroups\/24865ffa-793d-43ea-b3b1-d1b5cf22268d\/options&quot;\r\n    },\r\n    {\r\n      option_group_uuid: &quot;26ca0df3-0682-4f37-8979-409868e2df2d&quot;,\r\n      option_group_name: &quot;Coating&quot;,\r\n      option_group_description: &quot;Coating options&quot;,\r\n      options: &quot;https:\/\/api.4over.com\/printproducts\/optiongroups\/26ca0df3-0682-4f37-8979-409868e2df2d\/options&quot;\r\n    },\r\n    {\r\n      option_group_uuid: &quot;38d33954-5a42-4112-a905-215eb827e62c&quot;,\r\n      option_group_name: &quot;Colorspec&quot;,\r\n      option_group_description: &quot;Print color options&quot;,\r\n      options: &quot;https:\/\/api.4over.com\/printproducts\/optiongroups\/38d33954-5a42-4112-a905-215eb827e62c\/options&quot;\r\n    },\r\n    {\r\n      option_group_uuid: &quot;87e09691-ef33-4cf4-8f17-48af06ce84f4&quot;,\r\n      option_group_name: &quot;Runsize&quot;,\r\n      option_group_description: &quot;The number of impressions to be printed&quot;,\r\n      options: &quot;https:\/\/api.4over.com\/printproducts\/optiongroups\/87e09691-ef33-4cf4-8f17-48af06ce84f4\/options&quot;\r\n    },\r\n    {\r\n      option_group_uuid: &quot;d365deb4-604c-4922-98dd-4956681db3fa&quot;,\r\n      option_group_name: &quot;Folding Options&quot;,\r\n      option_group_description: &quot;Folding Options&quot;,\r\n      options: &quot;https:\/\/api.4over.com\/printproducts\/optiongroups\/d365deb4-604c-4922-98dd-4956681db3fa\/options&quot;\r\n    },\r\n    ...\r\n  ]\r\n]\r\n<\/pre>\n<p>This route will return list of all Options in a specific Option Group. <\/p>\n<h3>Resource URI<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nGET \/printproducts\/optiongroups\/optiongroup_uuid\/options                     \r\n<\/pre>\n<h3>Input Parameters<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n@param optiongroup_uuid {uuid} The UUID of a Option Group.\r\n<\/pre>\n<h3>Sample Request<\/h3>\n<p>html<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nhttps:\/\/api.4over.com\/printproducts\/optiongroups\/d365deb4-604c-4922-98dd-4956681db3fa\/options\r\n<\/pre>\n<h3>Sample Response<\/h3>\n<p>JSON<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n[\r\n  {\r\n    option_uuid: &quot;7f9062f3-bd6e-4f7e-9934-8f7014391801&quot;,\r\n    option_name: &quot;100DB&quot;,\r\n    option_description: &quot;&quot;,\r\n    option_prices: &quot;https:\/\/api.4over.com\/printproducts\/optiongroups\/24865ffa-793d-43ea-b3b1-d1b5cf22268d\/options\/7f9062f3-bd6e-4f7e-9934-8f7014391801\/prices&quot;\r\n  },\r\n  {\r\n    option_uuid: &quot;3be06301-cd4f-47f7-a3d7-130aff944a49&quot;,\r\n    option_name: &quot;100GLB&quot;,\r\n    option_description: &quot;&quot;,\r\n    option_prices: &quot;https:\/\/api.4over.com\/printproducts\/optiongroups\/24865ffa-793d-43ea-b3b1-d1b5cf22268d\/options\/3be06301-cd4f-47f7-a3d7-130aff944a49\/prices&quot;\r\n  },\r\n  {\r\n    option_uuid: &quot;108654d1-9a11-449d-a835-f662c780c373&quot;,\r\n    option_name: &quot;100GLBUV&quot;,\r\n    option_description: &quot;&quot;,\r\n    option_prices: &quot;https:\/\/api.4over.com\/printproducts\/optiongroups\/24865ffa-793d-43ea-b3b1-d1b5cf22268d\/options\/108654d1-9a11-449d-a835-f662c780c373\/prices&quot;\r\n  },\r\n  {\r\n    option_uuid: &quot;6ef3ac86-0540-4936-8f72-172257b3be60&quot;,\r\n    option_name: &quot;100GLC&quot;,\r\n    option_description: &quot;&quot;,\r\n    option_prices: &quot;https:\/\/api.4over.com\/printproducts\/optiongroups\/24865ffa-793d-43ea-b3b1-d1b5cf22268d\/options\/6ef3ac86-0540-4936-8f72-172257b3be60\/prices&quot;\r\n  },\r\n  ...\r\n]\r\n<\/pre>\n<p>This route will return list of all Options associated to a specific product.<br \/>\nProduct specific option groups include Size, Stock, Coating, Colorspec, Runsize, Turnaround-times and any bindery\/finishing options available to the specified product.<br \/>\nProduct specific option groups have two important attributes called &#8220;minoccurs&#8221; and &#8220;maxoccurs&#8221;. These two attributes define if the option group is required or optional and what are the limitations. Attribute &#8220;minoccurs&#8221; defined minimum occurrence of the option group. If &#8220;minoccurs&#8221; is zero the option group is optional. If &#8220;minoccurs&#8221; is one at least one instance of the option group has to be selected.<br \/>\nOn the other hand, &#8220;maxoccurs&#8221; defines maximum occurance of the option group. The value of &#8220;maxoccurs&#8221; could be one or more. If an option group has &#8220;minoccurs&#8221;=1 and &#8220;maxoccurs&#8221;=1 then exactly one option has to be selected. Option groups such as Size, Stock, Coating, Colorspec, Runsize and Turnaround-times are examples of such option groups.<br \/>\nFinishing options such as Foldings and Scorings that may or may not be selected for a product would generally have &#8220;minoccurs&#8217;=0 and &#8220;maxoccurs&#8221;=1 or more than one. The value of &#8220;maxoccurs&#8221; is always equal or greater than &#8220;minoccurs&#8221;.  <\/p>\n<h3>Resource URI<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nGET \/printproducts\/products\/{product_uuid}\/optiongroups      \r\n<\/pre>\n<h3>Input Parameters<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n@param product_uuid {uuid} The UUID of product.\r\n<\/pre>\n<h3>Sample Request<\/h3>\n<p>html<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nhttps:\/\/api.4over.com\/printproducts\/products\/97797e2e-3e3b-429e-a38a-d5f8d8744de5\/optiongroups\r\n<\/pre>\n<h3>Sample Response<\/h3>\n<p>JSON<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n[\r\n  &quot;entities&quot;,\r\n  [\r\n    {\r\n      product_option_group_uuid: &quot;34f407f8-0b50-4227-9378-10fddefbe596&quot;,\r\n      product_option_group_name: &quot;Size&quot;,\r\n      minoccurs: &quot;1&quot;,\r\n      maxoccurs: &quot;1&quot;,\r\n      options: []\r\n    },\r\n    {\r\n      product_option_group_uuid: &quot;24865ffa-793d-43ea-b3b1-d1b5cf22268d&quot;,\r\n      product_option_group_name: &quot;Stock&quot;,\r\n      minoccurs: &quot;1&quot;,\r\n      maxoccurs: &quot;1&quot;,\r\n      options: []\r\n    },\r\n    {\r\n      product_option_group_uuid: &quot;26ca0df3-0682-4f37-8979-409868e2df2d&quot;,\r\n      product_option_group_name: &quot;Coating&quot;,\r\n      minoccurs: &quot;1&quot;,\r\n      maxoccurs: &quot;1&quot;,\r\n      options: []\r\n    },\r\n    {\r\n      product_option_group_uuid: &quot;38d33954-5a42-4112-a905-215eb827e62c&quot;,\r\n      product_option_group_name: &quot;Colorspec&quot;,\r\n      minoccurs: &quot;1&quot;,\r\n      maxoccurs: &quot;1&quot;,\r\n      options: []\r\n    },\r\n    {\r\n      product_option_group_uuid: &quot;87e09691-ef33-4cf4-8f17-48af06ce84f4&quot;,\r\n      product_option_group_name: &quot;Runsize&quot;,\r\n      minoccurs: &quot;1&quot;,\r\n      maxoccurs: &quot;1&quot;,\r\n      options: []\r\n    },\r\n    {\r\n      product_option_group_uuid: &quot;254afeea-1fd1-4efb-b5fb-c9c3bf4c13d2&quot;,\r\n      product_option_group_name: &quot;Bundling Options&quot;,\r\n      minoccurs: &quot;0&quot;,\r\n      maxoccurs: &quot;1&quot;,\r\n      options: [\r\n        {\r\n          option_uuid: &quot;58689abb-25c0-461c-a4c3-a80b627d6649&quot;,\r\n          option_name: &quot;No Bundling Services&quot;,\r\n          option_description: &quot;BUNDLING SERVICE&quot;,\r\n          option_prices: &quot;https:\/\/api.4over.com\/printproducts\/products\/97797e2e-3e3b-429e-a38a-d5f8d8744de5\/productoptiongroups\/254afeea-1fd1-4efb-b5fb-c9c3bf4c13d2\/options\/58689abb-25c0-461c-a4c3-a80b627d6649\/prices&quot;\r\n        },\r\n        {\r\n          option_uuid: &quot;e4577a52-3f44-4506-b5a0-d5ef86cef3d2&quot;,\r\n          option_name: &quot;Yes, Bundles of 100&quot;,\r\n          option_description: &quot;BUNDLING SERVICE&quot;,\r\n          option_prices: &quot;https:\/\/api.4over.com\/printproducts\/products\/97797e2e-3e3b-429e-a38a-d5f8d8744de5\/productoptiongroups\/254afeea-1fd1-4efb-b5fb-c9c3bf4c13d2\/options\/e4577a52-3f44-4506-b5a0-d5ef86cef3d2\/prices&quot;\r\n        },\r\n        {\r\n          option_uuid: &quot;5d566e05-ffea-4705-a23f-95bd227f1370&quot;,\r\n          option_name: &quot;Yes, Bundles of 50&quot;,\r\n          option_description: &quot;BUNDLING SERVICE&quot;,\r\n          option_prices: &quot;https:\/\/api.4over.com\/printproducts\/products\/97797e2e-3e3b-429e-a38a-d5f8d8744de5\/productoptiongroups\/254afeea-1fd1-4efb-b5fb-c9c3bf4c13d2\/options\/5d566e05-ffea-4705-a23f-95bd227f1370\/prices&quot;\r\n        }\r\n        ]\r\n      },\r\n      {\r\n        product_option_group_uuid: &quot;6a5ef04a-7143-444b-b4ed-f623204e7168&quot;,\r\n        product_option_group_name: &quot;Turnaround-times&quot;,\r\n        minoccurs: 1,\r\n        maxoccurs: 1,\r\n        options: []\r\n      }\r\n   ]\r\n]\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This route will return list of all Option Groups. Option Groups are consisted of entities such as Size, Stock, Runsizes, Coating, Colorspec and Turnaround-times as well as all bindery and finishing options such as Folding Options and so on. Each Option Group is a collection of such options. Therefore; Folding Option is a collection of [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":86,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-94","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/94","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=94"}],"version-history":[{"count":5,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/94\/revisions"}],"predecessor-version":[{"id":325,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/94\/revisions\/325"}],"up":[{"embeddable":true,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/86"}],"wp:attachment":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}