Companies

Company location

v66: sets or clears (clear: true) the company's location. Admins or the company's owner. Distances in visits are measured to this point. The company card (GET /customers/{id}) carries geo (lat, lng, src — visit from the first visit with a location · manual, at), geo_can_set and the open check-in at this company checkin. Response: geo.

POST/api/v1/customers/{id}/geo

Authorization

Authorizationheaderrequired
Bearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Module: CustomersScope: crm.write

Path parameters

idintegerrequired
Company id.

Body application/json

lat / lngnumberoptional
Latitude, longitude (or geo_lat, geo_lng).
clearbooleanoptional
Clear the location.

Errors

HTTPerrorMeaning
400invalidMissing or invalid field (`message` explains).
403forbiddenYou may not see / edit this record.
404not_foundRecord not found.
Request
curl -X POST https://ornek.solk.app/api/v1/customers/{id}/geo \
  -H "Authorization: Bearer $SOLK_API_KEY"
Response