ClubManager.Api

<back to all web services

Command.AddMembershipCommandRequest

Requires Authentication
The following routes are available for this service:
POST/api/Command/AddMembershipCommand
AddMembershipResult Parameters:
NameParameterData TypeRequiredDescription
MembershipIdformintNo
RecurrenceIdformint?No
HasRecurringPaymentsformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/Command/AddMembershipCommand HTTP/1.1 
Host: api.clubmanagercentral.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"MemberId":0,"UserId":0,"MembershipTypeId":0,"StartDate":"0001-01-01T00:00:00.0000000","PreviousMembershipAction":"Nothing","ExternallyCreated":false,"IsOnlineJoining":false,"MembershipType":{"BranchId":0,"StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","Length":0,"LengthPeriod":"Day","Payments":[{"Name":"String","PaymentType":"Deposit","Amount":0,"PaymentPeriod":"Single","DirectDebitPeriod":"Daily","Recurring":0,"StartingOffset":0,"StartingOffsetPeriod":"Day","StartDate":"0001-01-01T00:00:00.0000000","PaymentMethod":"0","AutoRecur":false,"ProRata":false,"ProRataAmount":0,"ProRataStartDate":"0001-01-01T00:00:00.0000000","ProRataPaymentMethod":"0","ProRataAddToFirstPayment":false,"ChargePerLicense":false}],"AddToBalance":0,"SessionsRemaining":0,"ClassesRemaining":0,"LicensesRemaining":0,"MultiSiteAccess":false,"MemberLimit":0,"Definition":"String","BookingAccessOnly":false},"CreateRecurringPaymentsOnly":false,"MembershipReviewAttributes":[{"CustomAttributeId":0,"CustomAttributeValueId":0,"InstanceId":0,"StoredValue":"String","TypeName":"String","ReadOnly":false}],"RegistrationAttributes":[{"CustomAttributeId":0,"CustomAttributeValueId":0,"InstanceId":0,"StoredValue":"String","TypeName":"String","ReadOnly":false}],"FeeRecurrenceDisabled":false,"Expired":false,"EndDate":"0001-01-01T00:00:00.0000000","RefererMemberId":0,"PromotionId":0,"RecurringAmount":0,"RecurringStartDate":"0001-01-01T00:00:00.0000000","PaymentMethodId":0,"BookingId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"MembershipId":0,"RecurrenceId":0,"HasRecurringPayments":false}