Companies

Postpone the visit

Moves the company's visit due date. Uses date when given, otherwise days from today (default 7).

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

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

datestringoptional
New date (YYYY-MM-DD).
daysintegeroptionaldefault: 7
Number of days.
notestringoptional
Reason.

Errors

HTTPerrorMeaning
403forbiddenYou may not see / edit this record.
404not_foundRecord not found.
Request
curl -X POST https://ornek.solk.app/api/v1/customers/31/postpone \
  -H "Authorization: Bearer $SOLK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "days": 14,
  "note": "Fabrika bakımda"
}'
Response
{
  "customer": {
    "active": true,
    "at_risk": false,
    "city": "Bursa",
    "currency": "EUR",
    "currency_default": "",
    "id": 31,
    "initials": "KP",
    "last_visit": null,
    "main_contact": {
      "email": "selin.kara@kuzeyplastik.com.tr",
      "name": "Selin Kara",
      "phone": "",
      "wa": ""
    },
    "name": "Kuzey Plastik Sanayi",
    "next_visit_due": "2026-10-16",
    "open_opps": 0,
    "owner": {
      "full_name": "Deniz Aksoy",
      "id": 1,
      "role": "admin",
      "role_label": "Yönetici",
      "username": "admin"
    },
    "pending_state": null,
    "period": 30,
    "phone": "+90 224 555 01 02",
    "potential_kg": null,
    "rid": "001QJi5Zr1Hk2VH",
    "sector": "Plastik",
    "status": "AC",
    "status_label": "Aktif Müşteri",
    "unit": "kg",
    "visit_overdue_days": -14,
    "visit_state": "ok"
  },
  "ok": true,
  "until": "2026-10-16"
}

Example responses were captured from a v22 installation running sample data; lists are shortened to two items.