{"inputSchema":{"type":"object","properties":{"unit_prices":{"type":"array","items":{"type":"integer","minimum":0,"maximum":10000000},"maxItems":50,"minItems":1},"group":{"type":"integer","minimum":2,"maximum":25},"free":{"type":"integer","minimum":1,"maximum":24}},"required":["unit_prices","group","free"],"additionalProperties":false},"outputSchema":{"type":"object","required":["measured_at","source","data","limitations"],"properties":{"measured_at":{"type":"string"},"source":{"type":"object","required":["reference","retrieved_at"],"properties":{"reference":{"type":"string"},"retrieved_at":{"type":"string"}}},"data":{"type":"object","properties":{"free_units":{"type":"integer"},"saving":{"type":"integer"},"payable":{"type":"integer"}},"required":["free_units","saving","payable"]},"limitations":{"type":"string"}}},"requestExample":{"unit_prices":[255,339,339],"group":3,"free":1},"usageGuide":["Integer minor units, one currency. Retail examples are historical GBP observations, CC BY 4.0. Promotion, discount and deposit terms are supplied for the calculation.","Example prices and units adapted from https://doi.org/10.24432/C5BW33."],"outputExample":{"measured_at":"2026-11-25T23:48:39.823Z","source":{"reference":"Buyer-supplied basket. Example unit prices: D. Chen, Online Retail.","retrieved_at":"2026-11-25T23:48:39.823Z"},"data":{"free_units":1,"saving":255,"payable":678},"limitations":"Integer minor units, one currency. Retail examples are historical GBP observations, CC BY 4.0. Promotion, discount and deposit terms are supplied for the calculation."},"tags":["basket price","checkout calculation","merchant offers","discount check"],"price_usdc":"0.005"}