Skip to content
Developer

Cancellation Terms

CRM2 EndpointsCRM / Cancellation Terms

Preview the cancellation terms for a product (or the club default when no product is given).

GET/api/crm/cancellation_terms

Query parameters

productIdintegerPredefinedBillingItem id. Omitted = club default from settings.
receivedAtstringDate the cancellation was received, defaults to today. Accepts d.m.Y or Y-m-d.
countintegerHow many upcoming term dates to return (1-24, default 4).

Responses

200Resolved cancellation rule and the next allowed end dates

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/crm/cancellation_terms \
  --header 'x-iw-jwt-token: <TOKEN>'

Cancellation terms for the memberships a member actually holds.

GET/api/cp/self_service/cancellation_terms

Deliberately takes no product: the products are derived from the person's active memberships, so a member cannot read the terms of an arbitrary product.

Query parameters

personIdintegerPerson in the current account. Defaults to the person of the session.
receivedAtstringDate the cancellation was received, defaults to today. Accepts d.m.Y or Y-m-d.
countintegerHow many upcoming term dates to return (1-24, default 4).

Responses

200Terms per active membership, plus the term that governs leaving the club

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/cp/self_service/cancellation_terms \
  --header 'x-iw-jwt-token: <TOKEN>'