Corporate Companies
Partner companies, their approved email domains and the coupons their employees may use. The website verifies a guest's work email, resolves the domain here and unlocks the mapped coupons.
📄️ List / search companies (paginated)
Most-recently-updated first. Optional `q` matches the company name or any of its domains (case-insensitive substring); optional `status` filters exactly (ACTIVE / INACTIVE). 1-based `page`; defaults to `page=1&size=20`.
📄️ Create or update a company
Creates when `id` is blank; otherwise overwrites the existing company. `domains` and `couponIds` are replaced wholesale — send the full set the drawer is showing, not a delta. Domains are lower-cased and de-duplicated; a domain already approved for another company is rejected.
📄️ Resolve a work-email domain to its company
Accepts a bare domain (`deloitte.com`), an `@domain`, or a whole address — all resolve the same way. A domain belongs to exactly one company.
📄️ Get a company by id
Get a company by id
📄️ Delete a company
Removes the company along with its domains and coupon mappings. The coupons themselves are untouched.
📄️ Replace the coupons mapped to a company
What the Map Coupon dialog submits. The given set replaces whatever was mapped before.