{"id":88,"date":"2016-01-26T00:53:27","date_gmt":"2016-01-26T00:53:27","guid":{"rendered":"http:\/\/192.168.114.129\/?page_id=88"},"modified":"2023-06-24T11:10:36","modified_gmt":"2023-06-24T11:10:36","slug":"get-quantity-discounts","status":"publish","type":"page","link":"https:\/\/api-users.4over.com\/?page_id=88","title":{"rendered":"Retrieve Quantity Discounts"},"content":{"rendered":"<p>Quantity Discount service provides details of discounts applied to multiple set orders. Quantity discounts apply only to orders with multiple sets where all sets have the same product, runsize, colorspec and turnaround time. <\/p>\n<h3>Resource URI<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nGET \/printproducts\/products\/{product_uuid}\/quantitydiscounts  \r\n<\/pre>\n<h3>Input Parameters<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n@param product_uuid {uuid} UUID of a Product.\r\n<\/pre>\n<h3>Sample Request URI<\/h3>\n<p>html<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nhttps:\/\/api.4over.com\/printproducts\/products\/86bf5654-4d7a-4032-aece-7692e02425cb\/quantitydiscounts \r\n<\/pre>\n<p>The response contains the product details including product, runsize, colorspec and the range of set-numbers where discount applies to.<\/p>\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      quantity_discount_percentage: &quot;0.07&quot;,\r\n      quantity_discount_uuid: &quot;9e0becb5-f1ff-47f7-9403-bbbb74e0c93f&quot;,\r\n      quantity: &quot;4-9&quot;,\r\n      runsizeid: &quot;52e3d710-0e8f-4d4d-8560-7d4d8655be69&quot;,\r\n      runsize: &quot;1000&quot;,\r\n      colorspec_uuid: &quot;32d3c223-f82c-492b-b915-ba065a00862f&quot;,\r\n      colorspec: &quot;4\/0&quot;,\r\n      product_uuid: &quot;86bf5654-4d7a-4032-aece-7692e02425cb&quot;,\r\n      product_code: &quot;14PT-BCMATT-3.5X4&quot;\r\n    },\r\n    {\r\n      quantity_discount_percentage: &quot;0.07&quot;,\r\n      quantity_discount_uuid: &quot;6003cbb7-9a1b-405b-8331-a386411e0fa0&quot;,\r\n      quantity: &quot;4-9&quot;,\r\n      runsizeid: &quot;52e3d710-0e8f-4d4d-8560-7d4d8655be69&quot;,\r\n      runsize: &quot;1000&quot;,\r\n      colorspec_uuid: &quot;2fd6ad29-756c-4927-a66f-b0c0116e31f9&quot;,\r\n      colorspec: &quot;4\/1&quot;,\r\n      product_uuid: &quot;86bf5654-4d7a-4032-aece-7692e02425cb&quot;,\r\n      product_code: &quot;14PT-BCMATT-3.5X4&quot;\r\n    },\r\n    {\r\n      quantity_discount_percentage: &quot;0.07&quot;,\r\n      quantity_discount_uuid: &quot;4131845e-ad11-40f9-892c-bf3e0e4524e3&quot;,\r\n      quantity: &quot;4-9&quot;,\r\n      runsizeid: &quot;52e3d710-0e8f-4d4d-8560-7d4d8655be69&quot;,\r\n      runsize: &quot;1000&quot;,\r\n      colorspec_uuid: &quot;13abbda7-1d64-4f25-8bb2-c179b224825d&quot;,\r\n      colorspec: &quot;4\/4&quot;,\r\n      product_uuid: &quot;86bf5654-4d7a-4032-aece-7692e02425cb&quot;,\r\n      product_code: &quot;14PT-BCMATT-3.5X4&quot;\r\n    },\r\n    ...\r\n  ]\r\n]\r\n<\/pre>\n<p>A specific Quantity Discount can be requested by providing runsize_uuid, colorspec_uuid and quantity in the querystring. <\/p>\n<h3>Resource URI<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nGET \/printproducts\/products\/{product_uuid}\/quantitydiscounts?runsize_uuid={runsize_uuid}&amp;colorspec_uuid={colorspecuuid}&amp;qty={set-count}\r\n<\/pre>\n<h3>Input Parameters<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n@param product_uuid {uuid} UUID of a Product.\r\n@param runsize_uuid {uuid} UUID of a Runsize.\r\n@param colorspec_uuid {uuid} UUID of a Colorspec.\r\n@param set_count {integer} Number of sets Quantity Discount to be applied.\r\n<\/pre>\n<h3>Sample Request URI<\/h3>\n<p>html<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nhttps:\/\/api.4over.com\/printproducts\/products\/86bf5654-4d7a-4032-aece-7692e02425cb\/quantitydiscounts?runsize_uuid=52e3d710-0e8f-4d4d-8560-7d4d8655be69&colorspec_uuid=32d3c223-f82c-492b-b915-ba065a00862f&qty=5\r\n<\/pre>\n<p>The response contains the product details including product, runsize, colorspec and the range of set-numbers where discount applies to.<\/p>\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      quantity_discount_percentage: &quot;0.07&quot;,\r\n      quantity_discount_uuid: &quot;9e0becb5-f1ff-47f7-9403-bbbb74e0c93f&quot;,\r\n      quantity: &quot;4-9&quot;,\r\n      runsizeid: &quot;52e3d710-0e8f-4d4d-8560-7d4d8655be69&quot;,\r\n      runsize: &quot;1000&quot;,\r\n      colorspec_uuid: &quot;32d3c223-f82c-492b-b915-ba065a00862f&quot;,\r\n      colorspec: &quot;4\/0&quot;,\r\n      product_uuid: &quot;86bf5654-4d7a-4032-aece-7692e02425cb&quot;,\r\n      product_code: &quot;14PT-BCMATT-3.5X4&quot;\r\n    }\r\n]    \r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Quantity Discount service provides details of discounts applied to multiple set orders. Quantity discounts apply only to orders with multiple sets where all sets have the same product, runsize, colorspec and turnaround time. Resource URI Input Parameters Sample Request URI html The response contains the product details including product, runsize, colorspec and the range of [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":86,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-88","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/88","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=88"}],"version-history":[{"count":5,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/88\/revisions"}],"predecessor-version":[{"id":1045,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/88\/revisions\/1045"}],"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=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}