POST api/Donation/CreateGift
Create Recurring Donation header --> Key : This variable is confirmed by the access process
Request Information
URI Parameters
None.
Body Parameters
Api_MakeGift| Name | Description | Type | Additional information |
|---|---|---|---|
| DonorTypeID | integer |
None. |
|
| GiftDonorName | string |
None. |
|
| GiftReceiverName | string |
None. |
|
| GiftReceiverMobileNumber | string |
None. |
|
| IsSentGiftSMSToDonor | boolean |
None. |
|
| GiftDonorMobileNumber | string |
None. |
|
| TotalDonationAmount | decimal number |
None. |
|
| PaymentMethodID | integer |
None. |
|
| LangCode | integer |
None. |
|
| ClientIPAddress | string |
None. |
|
| BankResponseHandlerUrl | string |
None. |
Parameter Information
model
| Property | Description |
|---|---|
| DonorTypeID (Int32) | |
| GiftDonorName (String) | |
| GiftReceiverName (String) | |
| GiftReceiverMobileNumber (String) | |
| IsSentGiftSMSToDonor (Boolean) | |
| GiftDonorMobileNumber (String) | |
| TotalDonationAmount (Decimal) | |
| PaymentMethodID (Int32) | |
| LangCode (Int32) | |
| ClientIPAddress (String) | |
| BankResponseHandlerUrl (String) |
Request Formats
application/json, text/json
Sample:
{
"DonorTypeID": 1,
"GiftDonorName": "sample string 2",
"GiftReceiverName": "sample string 3",
"GiftReceiverMobileNumber": "sample string 4",
"IsSentGiftSMSToDonor": true,
"GiftDonorMobileNumber": "sample string 6",
"TotalDonationAmount": 7.0,
"PaymentMethodID": 8,
"LangCode": 9,
"ClientIPAddress": "sample string 10",
"BankResponseHandlerUrl": "sample string 11"
}
application/xml, text/xml
Sample:
<Api_MakeGift xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLL.ViewModels.API"> <BankResponseHandlerUrl>sample string 11</BankResponseHandlerUrl> <ClientIPAddress>sample string 10</ClientIPAddress> <DonorTypeID>1</DonorTypeID> <GiftDonorMobileNumber>sample string 6</GiftDonorMobileNumber> <GiftDonorName>sample string 2</GiftDonorName> <GiftReceiverMobileNumber>sample string 4</GiftReceiverMobileNumber> <GiftReceiverName>sample string 3</GiftReceiverName> <IsSentGiftSMSToDonor>true</IsSentGiftSMSToDonor> <LangCode>9</LangCode> <PaymentMethodID>8</PaymentMethodID> <TotalDonationAmount>7</TotalDonationAmount> </Api_MakeGift>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |
Parameter Information
model
| Property | Description |
|---|---|
| DonorTypeID (Int32) | |
| GiftDonorName (String) | |
| GiftReceiverName (String) | |
| GiftReceiverMobileNumber (String) | |
| IsSentGiftSMSToDonor (Boolean) | |
| GiftDonorMobileNumber (String) | |
| TotalDonationAmount (Decimal) | |
| PaymentMethodID (Int32) | |
| LangCode (Int32) | |
| ClientIPAddress (String) | |
| BankResponseHandlerUrl (String) |