{"openapi":"3.1.0","info":{"title":"Pricemend Policy API","description":"Retailer return windows, price-adjustment rules and statutory consumer rights, as a REST API.\n\nGive it a retailer and a purchase date and it returns the last day the shopper can act, how many\ndays are left, and whether the retailer refunds a price drop (`remedy: adjust`) or only accepts a\nreturn (`remedy: return`).\n\nPolicy data for 579 retailers across 20 countries: the United States, Canada, the United Kingdom, Spain, the United Arab Emirates, Saudi Arabia, Egypt, India, Australia, Germany, France, Italy, the Netherlands, Sweden, Poland, Ireland, Switzerland, New Zealand, Singapore and Japan. Every record carries a `confidence`\nvalue saying how the number was obtained (`confirmed`, `declared`, `archived`,\n`no_window_published`, `statutory`, `sourced`, `unsourced`, `unchecked`), the sentence it came\nfrom where there is one, and the date that sentence was read. A field the retailer did not state\ncomes back empty rather than filled in from what a window usually is.\n\nAuth: `Authorization: Bearer pm_live_...`. Without a key, 25 calls a day from an\naddress are answered, with full records for 23 example stores (`GET /v1/examples`) and\nnames only for the rest. A free 14-day trial key (200 calls, any 50 stores) is\nself-serve at https://pricemend.com/dashboard. Paid plans read every store, one record per call;\nthe caching and retention terms are at https://pricemend.com/terms#api.\n\nThere is also an MCP server for agents at https://pricemend.com/mcp, under the same rule.","version":"1.0.0","contact":{"name":"Pricemend","url":"https://pricemend.com/","email":"api@pricemend.com"},"license":{"name":"Commercial","url":"https://pricemend.com/terms"}},"paths":{"/v1":{"get":{"summary":"V1 Root","description":"What this API is and how to use it. Open, so anyone evaluating it can look first.","operationId":"v1_root_v1_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/coverage":{"get":{"summary":"V1 Coverage","description":"Open, like /v1: someone deciding whether to make a key wants to see what it would cover.","operationId":"v1_coverage_v1_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/countries":{"get":{"summary":"V1 Countries","description":"The statutory consumer right in every country the corpus covers, cited to the law.\n\nOutside the United States this is often stronger than anything the shop offers, and it is\nthe part most products get wrong.","operationId":"v1_countries_v1_countries_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/price-adjustment":{"get":{"summary":"V1 Price Adjustment","description":"The shops that refund the difference when a price drops after you buy.\n\nA slice of the same corpus rather than new data, and it exists because this is a different\nquestion from \"how long do I have to return it\". A price-drop refund service does not care\nabout the return window at all: it needs to know which shops pay the difference, within how\nmany days, and whether the shop limits it to one claim per item. Asking that question of\nGET /v1/retailers means pulling every record and filtering client side on a field whose name\nyou would have to already know.\n\nShops that do NOT adjust are worth returning too, with adjusts=false: for those the remedy is\nto return the item and buy it again inside the return window, which is a real answer and the\none a shopper can act on. So the response carries both the window and the drop rules.","operationId":"v1_price_adjustment_v1_price_adjustment_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/retailers":{"get":{"summary":"V1 Retailers","description":"Every retailer record, filterable by country, remedy, confidence and whether its live\nprice can be read.\n\nUse `remedy=adjust` for the shops that refund a price drop, and `confidence=confirmed` to\ntake only records quoted from the retailer's own page.","operationId":"v1_retailers_v1_retailers_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"name":"remedy","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remedy"}},{"name":"confidence","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence"}},{"name":"price_checkable","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Price Checkable"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/examples":{"get":{"summary":"V1 Examples","description":"The stores anyone can read in full, with no key. Each is a complete record: the same shape,\nprovenance and quote every other store returns on a paid plan.","operationId":"v1_examples_v1_examples_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/retailers/{retailer_id}":{"get":{"summary":"V1 Retailer","description":"One retailer's record.\n\n`format=ucp` returns the same reading shaped as UCP's dev.ucp.shopping.policy.return extension,\nwith our provenance beside it rather than inside it. See app/ucp.py for which fields are\ndeliberately left out and why. Opt-in rather than the default because the extension is still on\nthe spec's draft branch and has not been in a tagged release.\n\nThe other query parameters are optional and the response without them is exactly what it has\nalways been. A few shops publish no single window, only a table by product category, and for those the\nplain response carries `categories_available` and a null `window_days`, because inventing a\nnumber there would be the one piece of data in this corpus that is actively wrong. Pass\n`category=` to get that row's window and its quote, or `categories=true` for the whole table.","operationId":"v1_retailer_v1_retailers__retailer_id__get","parameters":[{"name":"retailer_id","in":"path","required":true,"schema":{"type":"string","title":"Retailer Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"categories","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Categories"}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/search":{"get":{"summary":"V1 Search","description":"Find a retailer by name when you have what a user typed rather than an id.\n\nMatches partial and misspelled names, so \"best buy\", \"bestbuy\" and \"Best Buy Co\" all\nresolve. Returns the ids to pass to the other endpoints.","operationId":"v1_search_v1_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deadline":{"get":{"summary":"V1 Deadline","description":"The one call that matters: the last day this shopper can act on this purchase.\n\nGive it a retailer id and a purchase date. It returns the deadline as a date, how many\ndays are left, whether the window has already expired, and whether the remedy is `adjust`\n(the shop refunds the difference on its own price drop) or `return` (it does not, so the\nmove is to return the item and buy it again at the lower price). `member=true` applies the\nlonger window some shops give account holders; `channel=in_store` applies the in-store\npolicy where it differs from the online one.","operationId":"v1_deadline_v1_deadline_get","parameters":[{"name":"store","in":"query","required":true,"schema":{"type":"string","title":"Store"}},{"name":"purchased","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Purchased"}},{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"online","title":"Channel"}},{"name":"member","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Member"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dataset":{"get":{"summary":"V1 Dataset","description":"The corpus in bulk for a licensee, a representative sample for everyone else.\n\nThe sample rather than a 403 because the people who hit this endpoint without a licence are\nmostly evaluating, and an evaluator who can see the schema and the provenance is closer to\nbuying than one who got a refusal. The counts in the sample describe the whole corpus, so the\nresponse says plainly what is being withheld and how to get it.","operationId":"v1_dataset_v1_dataset_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/usage":{"get":{"summary":"V1 Usage","operationId":"v1_usage_v1_usage_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"servers":[{"url":"https://pricemend.com"}],"externalDocs":{"description":"API reference","url":"https://pricemend.com/v1"}}