Cancel Membership
Cancel an active membership using this endpoint. You can provide a cancellation date, allowing the membership to run until that date, or cancel it immediately.
Path parameters
tenant
Your Entra Tenant ID. More details.
environment
Your Business Central Environment. More details.
company
Your Business Central Company. More details.
membershipId
Unique identifier for a membership.
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
x-api-version
Used for API versioning. More details.
Request
This endpoint expects an object.
optionId
Unique identifier for a membership alteration option.
documentNo
External identifier for the sales document.
documentDate
Specifies the date by which to base the cancel calculation on. This is NOT the date by which the cancel will actually take effect, and therefore you should not provide the periodEnd
date from Get Cancel Options. If left empty, the system will assume today.
Response
This endpoint returns an object.
membership
The MembershipLifecycleEntriesDTO is a composite type representing the timeline of a membership. It includes details when the membership was activated, renewed, upgraded, or extended.