POST api/FinalizeDonateSimple
Request Information
URI Parameters
None.
Body Parameters
FinalizeDonationSimpleRequestName | 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:
<FinalizeDonationSimpleRequest 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> </FinalizeDonationSimpleRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApiSuccessOfDonationSimpleResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean | ||
Data | DonationSimpleResult |
Response Formats
application/json
Sample:
{ "Success": true, "Data": { "SessionKey": "d85Pg6nvcYUruQ8zg7oi7cSoKXTISqoYvbqV3fHIJYpUC5JIoQvfDeWiUJWEN8mAC6NepPNDaCidSqvXO9hShC5zKPYuGTmsZ0TyMBQK3kM=", "DonationAdded": true, "AccountRegistered": true, "DonationPurchaseSessionKey": "weMw6J3ahZSciC2kaD1iUtEHGe8gsiFlf/6cJt6OJ5RuatvSZhT6G7JhSolYSW68ahgyQkqJzaIn++RvdlzUellMO1/RPbdBnOrEJgDmUms=", "TotalAmountAddedToCart": 5.0, "PurchaseCompleted": true, "OrderEmailSent": true, "OrderNumber": 8, "PrimaryAddressError": true, "NewSessionKey": "B3Y1ycu2Zyeh/hW5NmUkQ4xZ1cIyPlUL1A5Lk+r3BiRMNj8edCoQHwdjUoHPdgPV9yKyCVFIBWkK8FIZA7JjTA4tXZ8+JKzOFf6sz07tHMeRQzSpPxsUfEqP2svs0CrH", "Error": [ "sample string 1", "sample string 2" ], "Status": "sample string 11", "Message": "sample string 12" } }
text/json
Sample:
{ "Success": true, "Data": { "SessionKey": "oNi+IaG3KniyDI6t0OjJ/xSgbG5UBZfHgKiWus5ZRq0gOKGYlYvAUWzvlL3XyUsyhRyBkZxj+eKrxEDqE5Je00wtKELCFlTQgEQEGS0+kyA=", "DonationAdded": true, "AccountRegistered": true, "DonationPurchaseSessionKey": "rPqsshSw5+52VYrCcuhtAJ9QyEkMRqrO7XXTg+hMpRKRvwpx6C5XccPec+xXJP+dXYYtOrB8D5YeBwu4Djmxg4RQM2eDpHwHNXIWXVbp8Nc=", "TotalAmountAddedToCart": 5.0, "PurchaseCompleted": true, "OrderEmailSent": true, "OrderNumber": 8, "PrimaryAddressError": true, "NewSessionKey": "2dsw+Zh2A53eKwCucCxnytZLxU1hz9yJXYwJOFuPGyNyaUiX+4OrIBT7tHBggtOcSq7gbTYCVEnq0Yr86IGVuCdiBUpyeS3nYcbK1qjgvxJyZatyvWGPNKucYs2swOYz", "Error": [ "sample string 1", "sample string 2" ], "Status": "sample string 11", "Message": "sample string 12" } }
application/xml, text/xml
Sample:
<ApiSuccessOfDonationSimpleResultyx5QZ_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:AccountRegistered>true</d2p1:AccountRegistered> <d2p1:DonationAdded>true</d2p1:DonationAdded> <d2p1:DonationPurchaseSessionKey>sample string 4</d2p1:DonationPurchaseSessionKey> <d2p1:SessionKey>sample string 1</d2p1:SessionKey> <d2p1:TotalAmountAddedToCart>5</d2p1:TotalAmountAddedToCart> </Data> </ApiSuccessOfDonationSimpleResultyx5QZ_PAX>