POST api/FinalizeGiftMembership
Processes and bills a gift membership.
Request Information
URI Parameters
None.
Body Parameters
FinalizeContributionRequestName | Description | Type | Additional information |
---|---|---|---|
PurchaseSessionKey | string |
Required |
|
AuthenticationSessionKey | string |
Required |
|
TransactionAmount | decimal number | ||
CreditCardNumber | string | ||
CreditCardName |
Name on credit card |
string | |
CreditCardCVV | string | ||
CreditCardExpirationMonth | integer |
Range: inclusive between 1 and 12 |
|
CreditCardExpirationYear | integer | ||
SourceId |
For optional source id that will be used for the membership purchase session |
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
GiftMembershipResult object
ApiSuccessOfGiftMembershipResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean | ||
Data | GiftMembershipResult |
Response Formats
application/json
Sample:
{ "Success": true, "Data": { "MembershipDonationAdded": true, "AdditionalDonationAdded": true, "MembershipPurchaseSessionKey": "2ofn3ZpjSsSJqZrLExxTu92UP6RTOz1L9r403LOC0sLVt/xT8EQu7BEz8X9ymFIY2H68Ag/L97HwnMwGc63RV/FG+rufXo2dmaaUNnS8KTA=", "TotalAmountAddedToCart": 4.0, "PurchaseCompleted": true, "OrderEmailSent": true, "OrderNumber": 7, "PrimaryAddressError": true, "NewSessionKey": "Uc85Xira2CilMk8ydGTnShTHI71e1AzURN97S23UA2iH8Vuib0rt4XpxdFhjndG30oZoZYaqzuGZtSqP20+6uhzUgmfNwMxyrcMRxSs5RXc=", "Error": [ "sample string 1", "sample string 2" ], "Status": "sample string 10", "Message": "sample string 11" } }
text/json
Sample:
{ "Success": true, "Data": { "MembershipDonationAdded": true, "AdditionalDonationAdded": true, "MembershipPurchaseSessionKey": "yqIFkorh7T5Y0D1YH9GLzhmEkW/mvcg2TH52J6glFfSYezfOQlcaJzKLgMpvRhYN2PaA/vHTAgYLcJUTdxgGK/J1jkytqHGDyb54JcLmp+E=", "TotalAmountAddedToCart": 4.0, "PurchaseCompleted": true, "OrderEmailSent": true, "OrderNumber": 7, "PrimaryAddressError": true, "NewSessionKey": "AdLEVB7lte+QPejQCoYEJdx2WS7QwcQkF5JDuG/AJs2/ytp9PHGA7ewWbhdD5brN8oAR6USbBho+AaIJB4rZ0KGqh+yFxGjD+6cR0AoYpBY=", "Error": [ "sample string 1", "sample string 2" ], "Status": "sample string 10", "Message": "sample string 11" } }
application/xml, text/xml
Sample:
<ApiSuccessOfGiftMembershipResultyx5QZ_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 11</Message> <NewSessionKey xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Order">sample string 9</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">7</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 10</Status> <d2p1:AdditionalDonationAdded>true</d2p1:AdditionalDonationAdded> <d2p1:MembershipDonationAdded>true</d2p1:MembershipDonationAdded> <d2p1:MembershipPurchaseSessionKey>sample string 3</d2p1:MembershipPurchaseSessionKey> <d2p1:TotalAmountAddedToCart>4</d2p1:TotalAmountAddedToCart> </Data> </ApiSuccessOfGiftMembershipResultyx5QZ_PAX>