POST api/Membership/CreateMembership
Request Information
URI Parameters
None.
Body Parameters
ApiMembershipName | Description | Type | Additional information |
---|---|---|---|
MembershipNumber | string |
Matching regular expression pattern: ^[0-9]*$ |
|
OriginalJoinYear | string |
Matching regular expression pattern: ^[0-9]*$ |
|
OriginalEffectiveDate | string |
None. |
|
ExpirationDate | string |
None. |
|
ServiceLevel | string |
None. |
|
MembershipStatus | string |
None. |
|
Transfer | ApiTransfer |
None. |
|
Donor | ApiDonor |
None. |
|
Payment | Payment |
None. |
|
Address | ApiAddress |
None. |
|
Members | Collection of ApiMember |
None. |
|
FormattedFullMembershipNumber | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "MembershipNumber": "sample string 1", "OriginalJoinYear": "sample string 2", "OriginalEffectiveDate": "sample string 3", "ExpirationDate": "sample string 4", "ServiceLevel": "sample string 5", "MembershipStatus": "sample string 6", "Transfer": { "AssociateId": "sample string 1", "MembershipNumber": "sample string 2", "ServiceLevel": "sample string 3", "ExpirationDate": "sample string 4", "Status": "sample string 5", "YearJoinedAAA": "sample string 6", "MembershipNumber16": "sample string 7", "PaidThruDate": "sample string 8" }, "Donor": { "FirstName": "sample string 1", "LastName": "sample string 2", "Address": { "Address1": "sample string 1", "Address2": "sample string 2", "City": "sample string 3", "State": "sample string 4", "Zip": "sample string 5", "SameAddress": true, "OverrideFlag": true }, "Email": { "EmailAddress": "sample string 1", "EmailType": "sample string 2" }, "StartDate": "sample string 3", "SendCode": "sample string 4", "MembershipNumber16": "sample string 5", "Recurring": "sample string 6", "DonorId": "sample string 7" }, "Payment": { "PriorityCode": "sample string 1", "SalesRep": "sample string 2", "MembershipNumber": "sample string 3", "CardHolderName": "sample string 4", "CardNumber": "sample string 5", "ExpirationDate": "sample string 6", "CVV": "sample string 7", "CCType": "sample string 8", "PaymentAmt": 9.0, "AutoRenew": true, "BillingAddress": { "Address1": "sample string 1", "Address2": "sample string 2", "City": "sample string 3", "State": "sample string 4", "Zip": "sample string 5", "SameAddress": true, "OverrideFlag": true }, "Promotion": { "PromoCode": "sample string 1" } }, "Address": { "Address1": "sample string 1", "Address2": "sample string 2", "City": "sample string 3", "State": "sample string 4", "Zip": "sample string 5", "SameAddress": true, "OverrideFlag": true }, "Members": [ { "AssociateId": "sample string 1", "FullName": "sample string 2", "AmountDue": "sample string 3", "MembershipIDNumber": "sample string 4", "Prefix": "sample string 5", "FirstName": "sample string 6", "MiddleName": "sample string 7", "LastName": "sample string 8", "Suffix": "sample string 9", "Relation": "sample string 10", "MemberStatus": "sample string 11", "MemberType": "sample string 12", "DateOfBirth": "sample string 13", "Email": { "EmailAddress": "sample string 1", "EmailType": "sample string 2" }, "Phone": { "PhoneNumber": "sample string 1", "PhoneType": "sample string 2" }, "Address": { "Address1": "sample string 1", "Address2": "sample string 2", "City": "sample string 3", "State": "sample string 4", "Zip": "sample string 5", "SameAddress": true, "OverrideFlag": true }, "YearJoinedAAA": "sample string 14" }, { "AssociateId": "sample string 1", "FullName": "sample string 2", "AmountDue": "sample string 3", "MembershipIDNumber": "sample string 4", "Prefix": "sample string 5", "FirstName": "sample string 6", "MiddleName": "sample string 7", "LastName": "sample string 8", "Suffix": "sample string 9", "Relation": "sample string 10", "MemberStatus": "sample string 11", "MemberType": "sample string 12", "DateOfBirth": "sample string 13", "Email": { "EmailAddress": "sample string 1", "EmailType": "sample string 2" }, "Phone": { "PhoneNumber": "sample string 1", "PhoneType": "sample string 2" }, "Address": { "Address1": "sample string 1", "Address2": "sample string 2", "City": "sample string 3", "State": "sample string 4", "Zip": "sample string 5", "SameAddress": true, "OverrideFlag": true }, "YearJoinedAAA": "sample string 14" } ], "FormattedFullMembershipNumber": "sample string 1" }
application/xml, text/xml
Sample:
<ApiMembership xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AAAMembershipAPI.ViewModels"> <Address> <Address1>sample string 1</Address1> <Address2>sample string 2</Address2> <City>sample string 3</City> <OverrideFlag>true</OverrideFlag> <SameAddress>true</SameAddress> <State>sample string 4</State> <Zip>sample string 5</Zip> </Address> <Donor> <Address> <Address1>sample string 1</Address1> <Address2>sample string 2</Address2> <City>sample string 3</City> <OverrideFlag>true</OverrideFlag> <SameAddress>true</SameAddress> <State>sample string 4</State> <Zip>sample string 5</Zip> </Address> <DonorId>sample string 7</DonorId> <Email> <EmailAddress>sample string 1</EmailAddress> <EmailType>sample string 2</EmailType> </Email> <FirstName>sample string 1</FirstName> <LastName>sample string 2</LastName> <MembershipNumber16>sample string 5</MembershipNumber16> <Recurring>sample string 6</Recurring> <SendCode>sample string 4</SendCode> <StartDate>sample string 3</StartDate> </Donor> <ExpirationDate>sample string 4</ExpirationDate> <Members> <ApiMember> <Address> <Address1>sample string 1</Address1> <Address2>sample string 2</Address2> <City>sample string 3</City> <OverrideFlag>true</OverrideFlag> <SameAddress>true</SameAddress> <State>sample string 4</State> <Zip>sample string 5</Zip> </Address> <AmountDue>sample string 3</AmountDue> <AssociateId>sample string 1</AssociateId> <DateOfBirth>sample string 13</DateOfBirth> <Email> <EmailAddress>sample string 1</EmailAddress> <EmailType>sample string 2</EmailType> </Email> <FirstName>sample string 6</FirstName> <FullName>sample string 2</FullName> <LastName>sample string 8</LastName> <MemberStatus>sample string 11</MemberStatus> <MemberType>sample string 12</MemberType> <MembershipIDNumber>sample string 4</MembershipIDNumber> <MiddleName>sample string 7</MiddleName> <Phone> <PhoneNumber>sample string 1</PhoneNumber> <PhoneType>sample string 2</PhoneType> </Phone> <Prefix>sample string 5</Prefix> <Relation>sample string 10</Relation> <Suffix>sample string 9</Suffix> <YearJoinedAAA>sample string 14</YearJoinedAAA> </ApiMember> <ApiMember> <Address> <Address1>sample string 1</Address1> <Address2>sample string 2</Address2> <City>sample string 3</City> <OverrideFlag>true</OverrideFlag> <SameAddress>true</SameAddress> <State>sample string 4</State> <Zip>sample string 5</Zip> </Address> <AmountDue>sample string 3</AmountDue> <AssociateId>sample string 1</AssociateId> <DateOfBirth>sample string 13</DateOfBirth> <Email> <EmailAddress>sample string 1</EmailAddress> <EmailType>sample string 2</EmailType> </Email> <FirstName>sample string 6</FirstName> <FullName>sample string 2</FullName> <LastName>sample string 8</LastName> <MemberStatus>sample string 11</MemberStatus> <MemberType>sample string 12</MemberType> <MembershipIDNumber>sample string 4</MembershipIDNumber> <MiddleName>sample string 7</MiddleName> <Phone> <PhoneNumber>sample string 1</PhoneNumber> <PhoneType>sample string 2</PhoneType> </Phone> <Prefix>sample string 5</Prefix> <Relation>sample string 10</Relation> <Suffix>sample string 9</Suffix> <YearJoinedAAA>sample string 14</YearJoinedAAA> </ApiMember> </Members> <MembershipNumber>sample string 1</MembershipNumber> <MembershipStatus>sample string 6</MembershipStatus> <OriginalEffectiveDate>sample string 3</OriginalEffectiveDate> <OriginalJoinYear>sample string 2</OriginalJoinYear> <Payment> <AutoRenew>true</AutoRenew> <BillingAddress> <Address1>sample string 1</Address1> <Address2>sample string 2</Address2> <City>sample string 3</City> <OverrideFlag>true</OverrideFlag> <SameAddress>true</SameAddress> <State>sample string 4</State> <Zip>sample string 5</Zip> </BillingAddress> <CCType>sample string 8</CCType> <CVV>sample string 7</CVV> <CardHolderName>sample string 4</CardHolderName> <CardNumber>sample string 5</CardNumber> <ExpirationDate>sample string 6</ExpirationDate> <MembershipNumber>sample string 3</MembershipNumber> <PaymentAmt>9</PaymentAmt> <PriorityCode>sample string 1</PriorityCode> <Promotion> <PromoCode>sample string 1</PromoCode> </Promotion> <SalesRep>sample string 2</SalesRep> </Payment> <ServiceLevel>sample string 5</ServiceLevel> <Transfer> <AssociateId>sample string 1</AssociateId> <ExpirationDate>sample string 4</ExpirationDate> <MembershipNumber>sample string 2</MembershipNumber> <MembershipNumber16>sample string 7</MembershipNumber16> <PaidThruDate>sample string 8</PaidThruDate> <ServiceLevel>sample string 3</ServiceLevel> <Status>sample string 5</Status> <YearJoinedAAA>sample string 6</YearJoinedAAA> </Transfer> </ApiMembership>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.