{"openapi":"3.0.0","info":{"description":"This API will return POS Daily Product Ranking by Sales or Volume data fromi Aramark's Enterprise POS.\n\n\nThe base endpoint URL for this API in production is:\n`https://marko.aramark.net/v1/pos/daily/product`.\n\n\nFor testing the API with the \"Try\" tool on this page or in your app, use either our testing server \"qa-marko\" or our development server \"dev-marko\".\n","version":"1.0.0-oas3","title":"POS Daily Product Ranking"},"security":[{"apiKey":[]}],"paths":{"/sales_rank/{org_value}":{"get":{"summary":"POS product rankings by sales","description":"Returns POS Daily Product Rankings by Sales\n\n![This endpoint is in production](/themes/portal/images/statuspngs/statusprod.png)\n","operationId":"getDailySalesRank","tags":["Sales Ranking"],"parameters":[{"$ref":"#/components/parameters/orgValueParam"},{"$ref":"#/components/parameters/startDateParam"},{"$ref":"#/components/parameters/rankParam"},{"$ref":"#/components/parameters/hierarchyParam"},{"$ref":"#/components/parameters/pageParam"},{"$ref":"#/components/parameters/sizeParam"},{"$ref":"#/components/parameters/bypassCacheParam"},{"$ref":"#/components/parameters/smokeParam"}],"responses":{"200":{"description":"Product ranking results of sales","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"ENUM 'Success', 'Error' or 'Not Found'","default":"Success"},"count":{"type":"string","description":"Number of records returned","default":"0"},"page":{"type":"string","description":"Page number of result set","default":"1"},"size":{"type":"string","description":"Number of records returned with the result set","default":"50"},"family_rank":{"type":"array","items":{"$ref":"#/components/schemas/sales_rank"}}}}}}},"404":{"description":"Requested resource does not exist."},"405":{"description":"HTTP Verb / Operation not supported"}}}},"/volume_rank/{org_value}":{"get":{"summary":"POS product rankings by volume","description":"Returns ALL POS Daily Product Ranking by Volume\n\n![This endpoint is in production](/themes/portal/images/statuspngs/statusprod.png)\n","operationId":"getDailyVolumeRank","tags":["Volume Ranking"],"parameters":[{"$ref":"#/components/parameters/orgValueParam"},{"$ref":"#/components/parameters/startDateParam"},{"$ref":"#/components/parameters/rankParam"},{"$ref":"#/components/parameters/hierarchyParam"},{"$ref":"#/components/parameters/pageParam"},{"$ref":"#/components/parameters/sizeParam"},{"$ref":"#/components/parameters/bypassCacheParam"},{"$ref":"#/components/parameters/smokeParam"}],"responses":{"200":{"description":"Product ranking results of volume","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"ENUM 'Success', 'Error' or 'Not Found'","default":"Success"},"count":{"type":"string","description":"Number of records returned","default":"0"},"page":{"type":"string","description":"Page number of result set","default":"1"},"size":{"type":"string","description":"Number of records returned with the result set","default":"50"},"family_rank":{"type":"array","items":{"$ref":"#/components/schemas/volume_rank"}}}}}}},"404":{"description":"Requested resource does not exist."},"405":{"description":"HTTP Verb / Operation not supported"}}}}},"servers":[{"url":"https://qa-marko.aramark.net/v1/pos/daily/product","description":"Testing server"},{"url":"https://dev-marko.aramark.net/v1/pos/daily/product","description":"Development server"}],"components":{"parameters":{"orgValueParam":{"in":"path","name":"org_value","description":"Aramark Organization code for rollup","required":true,"schema":{"type":"string"}},"startDateParam":{"in":"query","name":"start_date","description":"Calendar date for daily transactions. \"mm/dd/yyyy\"","required":true,"schema":{"type":"string"}},"rankParam":{"in":"query","name":"rank","description":"Number of Highest Rank to Return. (range 1-20 or \"ALL\")","required":false,"schema":{"type":"string","default":5}},"hierarchyParam":{"in":"query","name":"hierarchy","description":"Product hierarchy to group ranking by","required":false,"schema":{"type":"string","enum":["FAMILY","DEPARTMENT"]}},"pageParam":{"in":"query","name":"page","description":"Page number of result set","required":false,"schema":{"type":"string","default":1}},"sizeParam":{"in":"query","name":"size","description":"Number of records to be returned in each page of result set","required":false,"schema":{"type":"string","default":50}},"bypassCacheParam":{"in":"header","name":"bypass-cache","description":"This HTTP Header variable will bypass cache","schema":{"type":"string","enum":["true","false"],"default":"false"}},"smokeParam":{"in":"header","name":"smoke","description":"When set to 'true' this HTTP header variable will route the API call to the Integration testing environment. Only applicable in QA.","schema":{"type":"string","enum":["true","false"]}}},"securitySchemes":{"apikey":{"type":"apiKey","in":"header","name":"apikey","description":"This HTTP Header variable will verify security"}},"schemas":{"sales_rank":{"type":"object","properties":{"calendar_date":{"type":"string","description":"Date or transactional rollup"},"product_family":{"type":"string","description":"Name of Aramark Product Family [Only applicable if hierarchy=family]"},"product_department":{"type":"string","description":"Name of Aramark Product Department [Only applicable if hierarchy=department]"},"product":{"type":"string","description":"Name of Aramark POS Product"},"total_items_sold":{"type":"number","description":"Number of Items sold"},"total_sales":{"type":"number","description":"Total sales"},"rank":{"type":"number","description":"Product rank number returned by operations based on total sales"}}},"volume_rank":{"type":"object","properties":{"calendar_date":{"type":"string","description":"Date or transactional rollup"},"product_family":{"type":"string","description":"Name of Aramark Product Family [Only applicable if hierarchy=family]"},"product_department":{"type":"string","description":"Name of Aramark Product Department [Only applicable if hierarchy=department]"},"product":{"type":"string","description":"Name of Aramark POS Product"},"total_items_sold":{"type":"number","description":"Number of Items sold"},"total_sales":{"type":"number","description":"Total sales"},"rank":{"type":"number","description":"Product rank number returned by operations based on total volume"}}}}}}