POST api/RenewMembership
Processes and bills a membership renewal.
Request Information
URI Parameters
None.
Body Parameters
RenewMembershipRequestName | Description | Type | Additional information |
---|---|---|---|
SessionKey | string |
Required |
|
InterestList |
List of interest Id values, set bool value to true |
Dictionary of integer [key] and boolean [value] | |
RenewalStartDate | string | ||
AutoRenewal | boolean | ||
AddOnMemberships |
Collection of add-on memberships |
Collection of AddOnMembership | |
MembershipLevel |
Membership level value |
string |
Required |
MembershipAmount |
Amount of the membership donation |
decimal number |
Required |
AdditionalDonationFundId |
Tessitura fund for any additional donation |
integer | |
AdditionalDonationAmount |
Amount of the additional donation |
decimal number | |
string | |||
Phone | string | ||
AdditionalFirstName |
For optional second person |
string | |
AdditionalLastName |
For optional second person |
string | |
AdditionalEmail |
For optional second person |
string | |
FirstName | string | ||
LastName | string | ||
Address1 | string | ||
Address2 | string | ||
City | string | ||
StateId |
Two letter state value from CountriesStates method |
string | |
CountryId | integer | ||
PostalCode | string | ||
SourceId |
For optional source id that will be used for the membership purchase session |
integer |
Request Formats
application/json, text/json
Sample:
{ "SessionKey": "sample string 1", "InterestList": { "1": true, "3": true }, "RenewalStartDate": "sample string 2", "AutoRenewal": true, "AddOnMemberships": [ { "MembershipLevel": "sample string 1", "MembershipAmount": 2.0 }, { "MembershipLevel": "sample string 1", "MembershipAmount": 2.0 } ], "MembershipLevel": "sample string 4", "MembershipAmount": 5.0, "AdditionalDonationFundId": 6, "AdditionalDonationAmount": 7.0, "Email": "sample string 8", "Phone": "sample string 9", "AdditionalFirstName": "sample string 10", "AdditionalLastName": "sample string 11", "AdditionalEmail": "sample string 12", "FirstName": "sample string 13", "LastName": "sample string 14", "Address1": "sample string 15", "Address2": "sample string 16", "City": "sample string 17", "StateId": "sample string 18", "CountryId": 19, "PostalCode": "sample string 20", "SourceId": 21 }
application/xml, text/xml
Sample:
<RenewMembershipRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Contribution"> <Address1>sample string 15</Address1> <Address2>sample string 16</Address2> <City>sample string 17</City> <CountryId>19</CountryId> <FirstName>sample string 13</FirstName> <LastName>sample string 14</LastName> <PostalCode>sample string 20</PostalCode> <SourceId>21</SourceId> <StateId>sample string 18</StateId> <AdditionalDonationAmount>7</AdditionalDonationAmount> <AdditionalDonationFundId>6</AdditionalDonationFundId> <AdditionalEmail>sample string 12</AdditionalEmail> <AdditionalFirstName>sample string 10</AdditionalFirstName> <AdditionalLastName>sample string 11</AdditionalLastName> <Email>sample string 8</Email> <MembershipAmount>5</MembershipAmount> <MembershipLevel>sample string 4</MembershipLevel> <Phone>sample string 9</Phone> <AddOnMemberships> <AddOnMembership> <MembershipAmount>2</MembershipAmount> <MembershipLevel>sample string 1</MembershipLevel> </AddOnMembership> <AddOnMembership> <MembershipAmount>2</MembershipAmount> <MembershipLevel>sample string 1</MembershipLevel> </AddOnMembership> </AddOnMemberships> <AutoRenewal>true</AutoRenewal> <InterestList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfintboolean> <d2p1:Key>1</d2p1:Key> <d2p1:Value>true</d2p1:Value> </d2p1:KeyValueOfintboolean> <d2p1:KeyValueOfintboolean> <d2p1:Key>3</d2p1:Key> <d2p1:Value>true</d2p1:Value> </d2p1:KeyValueOfintboolean> </InterestList> <RenewalStartDate>sample string 2</RenewalStartDate> <SessionKey>sample string 1</SessionKey> </RenewMembershipRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
RenewMembershipResult object
ApiSuccessOfRenewMembershipResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean | ||
Data | RenewMembershipResult |
Response Formats
application/json
Sample:
{ "Success": true, "Data": { "MembershipDonationAdded": true, "AdditionalDonationAdded": true, "AutoRenewalPaymentSaved": true, "AddOnMembershipsAdded": [ { "MembershipLevel": "sample string 1", "MembershipAmount": 2.0 }, { "MembershipLevel": "sample string 1", "MembershipAmount": 2.0 } ], "MembershipPurchaseSessionKey": "pQcx6sGjO74dOGlc/OiqlC1e5DhtzDyUehCb2t/hrvqA5y+nSSX/7mdUzK2fr5iK3gWHknuAV6uhveQpvgiNaZhoNW38AcBgOT1Tw6NaBtg=", "TotalAmountAddedToCart": 5.0, "PurchaseCompleted": true, "OrderEmailSent": true, "OrderNumber": 8, "PrimaryAddressError": true, "NewSessionKey": "AWoj+quyVfutbLCMnDPn3liMpk7+8gwM1nWq4k4mS0LLR1XXjNRA6UaJMg28TwiCEsLdZiEJXlxZuMhrRtj1soybHHfy0a4rS20J2L/lYjzG/YrxoOGbq53zYGJzjhr9", "Error": [ "sample string 1", "sample string 2" ], "Status": "sample string 11", "Message": "sample string 12" } }
text/json
Sample:
{ "Success": true, "Data": { "MembershipDonationAdded": true, "AdditionalDonationAdded": true, "AutoRenewalPaymentSaved": true, "AddOnMembershipsAdded": [ { "MembershipLevel": "sample string 1", "MembershipAmount": 2.0 }, { "MembershipLevel": "sample string 1", "MembershipAmount": 2.0 } ], "MembershipPurchaseSessionKey": "r6Eq9kqBSd9/v5H8F4pUOCvUd5V+mz8LKcLOIvnrj9ou7hKSJQ/6qUA5+AkYPIRjPJkvYH/ONSfNLdyP6J0b7bP6wLrFl/mzjk2v8iqaVU8=", "TotalAmountAddedToCart": 5.0, "PurchaseCompleted": true, "OrderEmailSent": true, "OrderNumber": 8, "PrimaryAddressError": true, "NewSessionKey": "3xvEFdFEiq8Z0QdHXoEx3bAXkaSWwLVR/YwjdlzvQAE0ppgsUfEQoeyPIcfcg14eL4aEtbM/nQnfNVl+HPR6ot5xkpx+7Y4+GT0PMYcxQVHT3KYZYeGg6MMmboVCx9pH", "Error": [ "sample string 1", "sample string 2" ], "Status": "sample string 11", "Message": "sample string 12" } }
application/xml, text/xml
Sample:
<ApiSuccessOfRenewMembershipResultyx5QZ_PAX xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Api"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Contribution"> <Error xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Order"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </Error> <Message xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Order">sample string 12</Message> <NewSessionKey xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Order">sample string 10</NewSessionKey> <OrderEmailSent xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Order">true</OrderEmailSent> <OrderNumber xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Order">8</OrderNumber> <PrimaryAddressError xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Order">true</PrimaryAddressError> <PurchaseCompleted xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Order">true</PurchaseCompleted> <Status xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Order">sample string 11</Status> <d2p1:AddOnMembershipsAdded> <d2p1:AddOnMembership> <d2p1:MembershipAmount>2</d2p1:MembershipAmount> <d2p1:MembershipLevel>sample string 1</d2p1:MembershipLevel> </d2p1:AddOnMembership> <d2p1:AddOnMembership> <d2p1:MembershipAmount>2</d2p1:MembershipAmount> <d2p1:MembershipLevel>sample string 1</d2p1:MembershipLevel> </d2p1:AddOnMembership> </d2p1:AddOnMembershipsAdded> <d2p1:AdditionalDonationAdded>true</d2p1:AdditionalDonationAdded> <d2p1:AutoRenewalPaymentSaved>true</d2p1:AutoRenewalPaymentSaved> <d2p1:MembershipDonationAdded>true</d2p1:MembershipDonationAdded> <d2p1:MembershipPurchaseSessionKey>sample string 4</d2p1:MembershipPurchaseSessionKey> <d2p1:TotalAmountAddedToCart>5</d2p1:TotalAmountAddedToCart> </Data> </ApiSuccessOfRenewMembershipResultyx5QZ_PAX>