POST api/DonateSimple
Request Information
URI Parameters
None.
Body Parameters
DonationSimpleRequestName | Description | Type | Additional information |
---|---|---|---|
SessionKey | string | ||
string |
Required |
||
DonationFundId | integer |
Required |
|
DonationAmount | decimal number |
Required |
|
FirstName | string | ||
LastName | string | ||
Address1 | string | ||
Address2 | string | ||
City | string | ||
StateId | string | ||
CountryId | integer | ||
PostalCode | string | ||
SourceId | integer |
Request Formats
application/json, text/json
Sample:
{ "SessionKey": "sample string 1", "Email": "sample string 2", "DonationFundId": 3, "DonationAmount": 4.0, "FirstName": "sample string 5", "LastName": "sample string 6", "Address1": "sample string 7", "Address2": "sample string 8", "City": "sample string 9", "StateId": "sample string 10", "CountryId": 11, "PostalCode": "sample string 12", "SourceId": 13 }
application/xml, text/xml
Sample:
<DonationSimpleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Contribution"> <Address1>sample string 7</Address1> <Address2>sample string 8</Address2> <City>sample string 9</City> <CountryId>11</CountryId> <FirstName>sample string 5</FirstName> <LastName>sample string 6</LastName> <PostalCode>sample string 12</PostalCode> <SourceId>13</SourceId> <StateId>sample string 10</StateId> <DonationAmount>4</DonationAmount> <DonationFundId>3</DonationFundId> <Email>sample string 2</Email> <SessionKey>sample string 1</SessionKey> </DonationSimpleRequest>
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": "hZKdioSBtuwGUXhj53ys3QPtpVID9VnTj20wXtBCmnBG47ystzIpfWZSRe7PNUkIcXIcfuH/5ipQR/yPwVULH13jo01o8AQvu8jBrgv69gg=", "DonationAdded": true, "AccountRegistered": true, "DonationPurchaseSessionKey": "WLkLVUcLyULSqkNnEyxRA+Ag7I8Q+OH7iX5T0b0WM2AGd7ZNfch8tGPdw6nhPYLJ70sC922IvXSrmhLlYWU3DDanpM+dhPt3wAJx24zI69Y=", "TotalAmountAddedToCart": 5.0, "PurchaseCompleted": true, "OrderEmailSent": true, "OrderNumber": 8, "PrimaryAddressError": true, "NewSessionKey": "UepVd2irG5DMdSgySMz1b96Iqgr0VHJQWF4RsMXEyvIiIwdzJRbjUlsgZm6fUJbC0fa4LYwhj3jt3UK96HcrOy/8GnheeE04lfMpwzQ8zuLue0aOFIH6MaSOjWVb/vMD", "Error": [ "sample string 1", "sample string 2" ], "Status": "sample string 11", "Message": "sample string 12" } }
text/json
Sample:
{ "Success": true, "Data": { "SessionKey": "a/ELKgDTxLl68w0h5Jy20DCnRkW1kzBat4BsYi7dbLB2fshBE99MKg3QGMdq0EDaIiEDtkkbf5rO+HgAJdkzNkjnjFdTQehuVFDqsvIE7GU=", "DonationAdded": true, "AccountRegistered": true, "DonationPurchaseSessionKey": "P3I8fuoyV7UGpX0by1ddoYN4CvyOvXKSpu5Oq6EJoohgik/2lsAm6tWYsU2jCR7pujzmh+BXvNowvbXIULGabQvAum37xAZ8IgyvrekkSMU=", "TotalAmountAddedToCart": 5.0, "PurchaseCompleted": true, "OrderEmailSent": true, "OrderNumber": 8, "PrimaryAddressError": true, "NewSessionKey": "l8X/2rXqvX7aArZiW1I1xRVuPcnvHhsz9xm/a21NMC7Vz4bzXk30eN1SAz7TRc69rnA4tc+iX1429CwPpcq/4WKItTHy/BXSIXOLbMIH0GhteMffg9JWnkfkuYlwdaPD", "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>