POST api/Memberships/Resign

When a member leaves the club, you need call this method with the date the member resigns and an optional message/reason. It is not possible to delete memberships because the duration of the membership is used in other parts of the system.

Request Information

URI Parameters

None.

Body Parameters

MembershipResignDto
NameDescriptionTypeAdditional information
MembershipId

ID of the membership (Guid)

globally unique identifier

Required

ResignedDate

The date the member resigned from the membership

date

Required

ResignReason

Optional field for information about why a membership is ending.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "MembershipId": "a65c7092-9d4c-46cd-9c65-9fc84a77b10c",
  "ResignedDate": "2024-11-21T12:22:50.9172664+01:00",
  "ResignReason": "sample string 1"
}

application/xml, text/xml

Sample:
<MembershipResignDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <MembershipId>a65c7092-9d4c-46cd-9c65-9fc84a77b10c</MembershipId>
  <ResignReason>sample string 1</ResignReason>
  <ResignedDate>2024-11-21T12:22:50.9172664+01:00</ResignedDate>
</MembershipResignDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MembershipDto
NameDescriptionTypeAdditional information
MembershipId

ID of the membership (Guid)

globally unique identifier

None.

Name

Name of the membership

string

None.

MemberTypeId

ID of the membership type (Guid)

globally unique identifier

None.

SignupDate

The date the member signed up to the membership

date

None.

ResignedDate

The date the member resigned from the membership

date

None.

Response Formats

application/json, text/json

Sample:
{
  "MembershipId": "ebfe7dfc-e7bf-4258-a11c-1bed019317ff",
  "Name": "sample string 2",
  "MemberTypeId": "4c4a5ede-9dd8-4daa-9537-fe548f28d3b6",
  "SignupDate": "2024-11-21T12:22:50.9172664+01:00",
  "ResignedDate": "2024-11-21T12:22:50.9172664+01:00"
}

application/xml, text/xml

Sample:
<MembershipDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <MemberTypeId>4c4a5ede-9dd8-4daa-9537-fe548f28d3b6</MemberTypeId>
  <MembershipId>ebfe7dfc-e7bf-4258-a11c-1bed019317ff</MembershipId>
  <Name>sample string 2</Name>
  <ResignedDate>2024-11-21T12:22:50.9172664+01:00</ResignedDate>
  <SignupDate>2024-11-21T12:22:50.9172664+01:00</SignupDate>
</MembershipDto>