Bulk create/update companies from a CSV upload
POST/api/v1/pms/corporate/companies/upload-csv
Multipart/form-data upload, field name file. One row per approved domain; rows sharing a company are folded together. Download /sample for a template. Coupons are named by code (EBP10), pipe-separated for more than one. Writes are additive — the file's domains and coupons are added to whatever the company already holds, never replacing them, so re-uploading the same file changes nothing. The whole file is validated before anything is saved and every fault is reported with its spreadsheet row number.
Request
Responses
- 200
- 400
Import summary.
Empty file, wrong columns, or any row-level fault. Nothing was saved.