Update a company
tenantKeybearerAuthX-Tenant-Key<token>The public store key (pk_live_…). Required on every call.
AuthorizationBearer <token>A customer token from POST /v1/auth/login, or a merchant API key, on routes that need one.
id*integerX-Client-IP?stringOptional. IP address of the shopper (one IPv4/IPv6, no port, no list). Honoured only together with a valid X-Tenant-Secret; ignored otherwise. Used for rate limits and recorded with form submissions.
X-Tenant-Secret?stringOptional here. Server secret of the store: server-to-server only, never from a browser. Enables X-Client-IP.
application/json- body
POST merchant/crm/companies and PATCH merchant/crm/companies/{id}. The shape only; the CRM writer validates the values (a domain
another company owns, a free mail domain, an unknown size or stage, custom fields) with a 422
naming the field. domains replaces the whole list, first = primary.
name*stringlength <= 200domains?array<>|items <= 20phone?|length <= 32address_line_one?|length <= 255address_line_two?|length <= 255address_city?|length <= 120address_region?|length <= 120address_postcode?|length <= 16address_country?|2 <= length <= 2industry?|length <= 120size?|length <= 16owner_id?|1 <= valuelifecycle_stage?|length <= 64is_sole_trader?booleancustom_fields?array<string>Success.
application/json- response
data*curl -X PATCH 'https://api.elaraone.app/api/v1/merchant/crm/companies/0' \ -H 'X-Tenant-Key: pk_live_…' \ -H 'X-Tenant-Secret: your-server-secret' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'{ "data": { "id": 0, "name": "string", "domains": [ "string" ], "phone": "string", "address": { "line_one": "string", "line_two": "string", "city": "string", "region": "string", "postcode": "string", "country": "string" }, "industry": "string", "size": "string", "lifecycle_stage": "string", "owner_id": 0, "is_sole_trader": true, "custom_fields": "string", "created_at": "string", "updated_at": "string" }}