POST api/FinalizeNewMembership
Request Information
URI Parameters
None.
Body Parameters
FinalizeContributionRequestName | Description | Type | Additional information |
---|---|---|---|
PurchaseSessionKey | string |
Required |
|
AuthenticationSessionKey | string |
Required |
|
TransactionAmount | decimal number | ||
CreditCardNumber | string | ||
CreditCardName | string | ||
CreditCardCVV | string | ||
CreditCardExpirationMonth | integer |
Range: inclusive between 1 and 12 |
|
CreditCardExpirationYear | integer | ||
SourceId | integer | ||
PaymentId | integer |
Required |
|
CreditCardType | integer |
Required |
|
AuthorizationCode | string |
Required |
|
PaymentReference | string |
Required |
|
AccountId | integer |
Required |
Request Formats
application/json, text/json
Sample:
{ "PurchaseSessionKey": "sample string 1", "AuthenticationSessionKey": "sample string 2", "TransactionAmount": 3.0, "CreditCardNumber": "sample string 4", "CreditCardName": "sample string 5", "CreditCardCVV": "sample string 6", "CreditCardExpirationMonth": 7, "CreditCardExpirationYear": 8, "SourceId": 9, "PaymentId": 10, "CreditCardType": 11, "AuthorizationCode": "sample string 12", "PaymentReference": "sample string 13", "AccountId": 14 }
application/xml, text/xml
Sample:
<FinalizeContributionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Contribution"> <AccountId>14</AccountId> <AuthenticationSessionKey>sample string 2</AuthenticationSessionKey> <AuthorizationCode>sample string 12</AuthorizationCode> <CreditCardCVV>sample string 6</CreditCardCVV> <CreditCardExpirationMonth>7</CreditCardExpirationMonth> <CreditCardExpirationYear>8</CreditCardExpirationYear> <CreditCardName>sample string 5</CreditCardName> <CreditCardNumber>sample string 4</CreditCardNumber> <CreditCardType>11</CreditCardType> <PaymentId>10</PaymentId> <PaymentReference>sample string 13</PaymentReference> <PurchaseSessionKey>sample string 1</PurchaseSessionKey> <SourceId>9</SourceId> <TransactionAmount>3</TransactionAmount> </FinalizeContributionRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApiSuccessOfNewMembershipResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean | ||
Data | NewMembershipResult |
Response Formats
application/json
Sample:
{ "Success": true, "Data": { "SessionKey": "yrL2/847KBGM+O2REDJkApHqMBeiSMtn65FJv46W4C+ceQD16KgyK9jpxmNPaak34dZ3qBTDboe+bvuuGkhN2rJmCccHnbv+CfonRaKy5Dc=", "AccountRegistered": true, "MembershipDonationAdded": true, "AdditionalDonationAdded": true, "AutoRenewalPaymentSaved": true, "AddOnMembershipsAdded": [ { "MembershipLevel": "sample string 1", "MembershipAmount": 2.0 }, { "MembershipLevel": "sample string 1", "MembershipAmount": 2.0 } ], "MembershipPurchaseSessionKey": "C5eqoaCP35SLLC5q/MiPS5PV4IqfqEcvKKNmwN7dqADfY1V/iCjkRsz6jVn11TwKuQMIVoF8NKtDky+6XcxQafH6M5FVGuro3WUAeNhxeYU=", "TotalAmountAddedToCart": 7.0, "PurchaseCompleted": true, "OrderEmailSent": true, "OrderNumber": 10, "PrimaryAddressError": true, "NewSessionKey": "886bXdql3RAABWqE1FfF1KGxACPZxWkjLXL23DaEikcqLcI62M33UirUzZLy9Jl1S6DJwzq9qBP9vkkExFCkce7z8zqxTwplGm1BgKsNifxvIegB2ALcqij1OJ2tNuQP", "Error": [ "sample string 1", "sample string 2" ], "Status": "sample string 13", "Message": "sample string 14" } }
text/json
Sample:
{ "Success": true, "Data": { "SessionKey": "pH1ui7EnMU4oE6klvYqta0ZucyddWy1/9dVWBjcVeKIsee97wOgAUnnvTqPcy2GbTqKHv+UrJFc/bDOsnaI6bytbGyP/fBBqBdpk2ipq3PY=", "AccountRegistered": true, "MembershipDonationAdded": true, "AdditionalDonationAdded": true, "AutoRenewalPaymentSaved": true, "AddOnMembershipsAdded": [ { "MembershipLevel": "sample string 1", "MembershipAmount": 2.0 }, { "MembershipLevel": "sample string 1", "MembershipAmount": 2.0 } ], "MembershipPurchaseSessionKey": "DBYGEBWxTg9IxHFQ6R7pMh2N/CPcC8LvWznMoDNDtiXRm5dneZSixw81w78oG5kPjpLG5T5Qme3U7hIo0rNs27cN3uMnhFhJhTwBTYKU4ZY=", "TotalAmountAddedToCart": 7.0, "PurchaseCompleted": true, "OrderEmailSent": true, "OrderNumber": 10, "PrimaryAddressError": true, "NewSessionKey": "o2oYqmhbzreWU18XiwShgDqi4MFaE8vcM/YARoCgrsf/9WXTDVrBHHvqC1JfwFPgnWknqj3DDeHDrZrYwLYwsQWwnw8y7+0K/GVWRFbiHSPRVX1WPz0kf6NPRGHlE3Gz", "Error": [ "sample string 1", "sample string 2" ], "Status": "sample string 13", "Message": "sample string 14" } }
application/xml, text/xml
Sample:
<ApiSuccessOfNewMembershipResultyx5QZ_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 14</Message> <NewSessionKey xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Order">sample string 12</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">10</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 13</Status> <d2p1:AccountRegistered>true</d2p1:AccountRegistered> <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 6</d2p1:MembershipPurchaseSessionKey> <d2p1:SessionKey>sample string 1</d2p1:SessionKey> <d2p1:TotalAmountAddedToCart>7</d2p1:TotalAmountAddedToCart> </Data> </ApiSuccessOfNewMembershipResultyx5QZ_PAX>