Create Company
/companiesAuthorization
cookieAuth In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/companies" \ -H "Content-Type: application/json" \ -d '{ "reference": "string", "name": "string", "country": "st", "defaultCurrency": "str", "timezone": "string" }'{ "property1": null, "property2": null}Create Commission Plan POST
Creates the scope target's next plan version. When the target already has an active plan, that version is retired in the same transaction; versions never change. Affiliate and special-link plans arrive with those records (not_available_yet). Cookie members require Hms-Company and Hms-Livemode; Idempotency-Key returns 400 invalid_request with idempotency_not_supported_for_member_routes. Bearer callers require Idempotency-Key. Agents cannot write affiliate records.
Create Customer Billing Link POST
Returns a hosted billing URL once. Requires a secret or restricted API key with customers:write. Publishable keys, agents, person/member sessions, OAuth and customer/embed sessions are refused. Links expire after 24 hours and exchange once. Replays return already_issued metadata without a URL. No return_url is supported.