POST | /api/Command/AddMembershipCommand |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
MembershipId | form | int | No | |
RecurrenceId | form | int? | No | |
HasRecurringPayments | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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: text/csv
Content-Type: text/csv
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: text/csv Content-Length: length {Unable to show example output for type 'AddMembershipResult' using the custom 'csv' filter}No parameterless constructor defined for this object.