POST api/PortalDonation/CreateGift
Create Create Gift header --> Key : This variable is confirmed by the access process
Request Information
URI Parameters
None.
Body Parameters
Api_PortalMakeGift| 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. |
|
| LangCode | integer |
None. |
|
| GiftTemplateID | integer |
None. |
Parameter Information
model
| Property | Description |
|---|---|
| DonorTypeID (Int32) | |
| GiftDonorName (String) | |
| GiftReceiverName (String) | |
| GiftReceiverMobileNumber (String) | |
| IsSentGiftSMSToDonor (Boolean) | |
| GiftDonorMobileNumber (String) | |
| TotalDonationAmount (Decimal) | |
| LangCode (Int32) | |
| GiftTemplateID (Nullable`1) |
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,
"LangCode": 8,
"GiftTemplateID": 1
}
application/xml, text/xml
Sample:
<Api_PortalMakeGift xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLL.ViewModels.API"> <DonorTypeID>1</DonorTypeID> <GiftDonorMobileNumber>sample string 6</GiftDonorMobileNumber> <GiftDonorName>sample string 2</GiftDonorName> <GiftReceiverMobileNumber>sample string 4</GiftReceiverMobileNumber> <GiftReceiverName>sample string 3</GiftReceiverName> <GiftTemplateID>1</GiftTemplateID> <IsSentGiftSMSToDonor>true</IsSentGiftSMSToDonor> <LangCode>8</LangCode> <TotalDonationAmount>7</TotalDonationAmount> </Api_PortalMakeGift>
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) | |
| LangCode (Int32) | |
| GiftTemplateID (Nullable`1) |