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
GET /printproducts/products/{product_uuid}/quantitydiscounts
Input Parameters
@param product_uuid {uuid} UUID of a Product.
Sample Request URI
html
https://api.4over.com/printproducts/products/86bf5654-4d7a-4032-aece-7692e02425cb/quantitydiscounts
The response contains the product details including product, runsize, colorspec and the range of set-numbers where discount applies to.
Sample Response
JSON
[ "entities", [ { quantity_discount_percentage: "0.07", quantity_discount_uuid: "9e0becb5-f1ff-47f7-9403-bbbb74e0c93f", quantity: "4-9", runsizeid: "52e3d710-0e8f-4d4d-8560-7d4d8655be69", runsize: "1000", colorspec_uuid: "32d3c223-f82c-492b-b915-ba065a00862f", colorspec: "4/0", product_uuid: "86bf5654-4d7a-4032-aece-7692e02425cb", product_code: "14PT-BCMATT-3.5X4" }, { quantity_discount_percentage: "0.07", quantity_discount_uuid: "6003cbb7-9a1b-405b-8331-a386411e0fa0", quantity: "4-9", runsizeid: "52e3d710-0e8f-4d4d-8560-7d4d8655be69", runsize: "1000", colorspec_uuid: "2fd6ad29-756c-4927-a66f-b0c0116e31f9", colorspec: "4/1", product_uuid: "86bf5654-4d7a-4032-aece-7692e02425cb", product_code: "14PT-BCMATT-3.5X4" }, { quantity_discount_percentage: "0.07", quantity_discount_uuid: "4131845e-ad11-40f9-892c-bf3e0e4524e3", quantity: "4-9", runsizeid: "52e3d710-0e8f-4d4d-8560-7d4d8655be69", runsize: "1000", colorspec_uuid: "13abbda7-1d64-4f25-8bb2-c179b224825d", colorspec: "4/4", product_uuid: "86bf5654-4d7a-4032-aece-7692e02425cb", product_code: "14PT-BCMATT-3.5X4" }, ... ] ]
A specific Quantity Discount can be requested by providing runsize_uuid, colorspec_uuid and quantity in the querystring.
Resource URI
GET /printproducts/products/{product_uuid}/quantitydiscounts?runsize_uuid={runsize_uuid}&colorspec_uuid={colorspecuuid}&qty={set-count}
Input Parameters
@param product_uuid {uuid} UUID of a Product. @param runsize_uuid {uuid} UUID of a Runsize. @param colorspec_uuid {uuid} UUID of a Colorspec. @param set_count {integer} Number of sets Quantity Discount to be applied.
Sample Request URI
html
https://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
The response contains the product details including product, runsize, colorspec and the range of set-numbers where discount applies to.
Sample Response
JSON
[ "entities", [ { quantity_discount_percentage: "0.07", quantity_discount_uuid: "9e0becb5-f1ff-47f7-9403-bbbb74e0c93f", quantity: "4-9", runsizeid: "52e3d710-0e8f-4d4d-8560-7d4d8655be69", runsize: "1000", colorspec_uuid: "32d3c223-f82c-492b-b915-ba065a00862f", colorspec: "4/0", product_uuid: "86bf5654-4d7a-4032-aece-7692e02425cb", product_code: "14PT-BCMATT-3.5X4" } ]