POST api/Donation/CreateDonation
Create Donation header --> Key : This variable is confirmed by the access process
Request Information
URI Parameters
None.
Body Parameters
Api_MakeDonation| Name | Description | Type | Additional information |
|---|---|---|---|
| DonorTypeID | integer |
None. |
|
| DonorName | string |
None. |
|
| IsGift | boolean |
None. |
|
| GiftDonorName | string |
None. |
|
| GiftReceiverName | string |
None. |
|
| GiftReceiverMobileNumber | string |
None. |
|
| IsSubscribeNewsLetter | boolean |
None. |
|
| GuestEmail | string |
None. |
|
| GuestCountryCode | string |
None. |
|
| GuestMobileNumber | string |
None. |
|
| TotalDonationAmount | decimal number |
None. |
|
| PaymentMethodID | integer |
None. |
|
| LangCode | integer |
None. |
|
| ClientIPAddress | string |
None. |
|
| BankResponseHandlerUrl | string |
None. |
|
| DonationDetailsList | Collection of Api_DonationDetails |
None. |
Parameter Information
model
| Property | Description |
|---|---|
| DonorTypeID (Int32) | |
| DonorName (String) | |
| IsGift (Boolean) | |
| GiftDonorName (String) | |
| GiftReceiverName (String) | |
| GiftReceiverMobileNumber (String) | |
| IsSubscribeNewsLetter (Boolean) | |
| GuestEmail (String) | |
| GuestCountryCode (String) | |
| GuestMobileNumber (String) | |
| TotalDonationAmount (Decimal) | |
| PaymentMethodID (Int32) | |
| LangCode (Int32) | |
| ClientIPAddress (String) | |
| BankResponseHandlerUrl (String) | |
| DonationDetailsList (List`1) |
Request Formats
application/json, text/json
Sample:
{
"DonorTypeID": 1,
"DonorName": "sample string 2",
"IsGift": true,
"GiftDonorName": "sample string 4",
"GiftReceiverName": "sample string 5",
"GiftReceiverMobileNumber": "sample string 6",
"IsSubscribeNewsLetter": true,
"GuestEmail": "sample string 8",
"GuestCountryCode": "sample string 9",
"GuestMobileNumber": "sample string 10",
"TotalDonationAmount": 11.0,
"PaymentMethodID": 12,
"LangCode": 13,
"ClientIPAddress": "sample string 14",
"BankResponseHandlerUrl": "sample string 15",
"DonationDetailsList": [
{
"ItemAmount": 1.0,
"IsZakat": true,
"DonationTargetID": 3,
"CountryId": "b280c67d-8b55-4add-93e6-3c191700570f",
"ProgramId": "b7ac2d3e-f70f-4c19-9671-7ab8a95d2d5a",
"ProjectId": "4233de53-cb65-4c02-ad02-304948fd4f0e"
},
{
"ItemAmount": 1.0,
"IsZakat": true,
"DonationTargetID": 3,
"CountryId": "b280c67d-8b55-4add-93e6-3c191700570f",
"ProgramId": "b7ac2d3e-f70f-4c19-9671-7ab8a95d2d5a",
"ProjectId": "4233de53-cb65-4c02-ad02-304948fd4f0e"
}
]
}
application/xml, text/xml
Sample:
<Api_MakeDonation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLL.ViewModels.API">
<BankResponseHandlerUrl>sample string 15</BankResponseHandlerUrl>
<ClientIPAddress>sample string 14</ClientIPAddress>
<DonationDetailsList>
<Api_DonationDetails>
<CountryId>b280c67d-8b55-4add-93e6-3c191700570f</CountryId>
<DonationTargetID>3</DonationTargetID>
<IsZakat>true</IsZakat>
<ItemAmount>1</ItemAmount>
<ProgramId>b7ac2d3e-f70f-4c19-9671-7ab8a95d2d5a</ProgramId>
<ProjectId>4233de53-cb65-4c02-ad02-304948fd4f0e</ProjectId>
</Api_DonationDetails>
<Api_DonationDetails>
<CountryId>b280c67d-8b55-4add-93e6-3c191700570f</CountryId>
<DonationTargetID>3</DonationTargetID>
<IsZakat>true</IsZakat>
<ItemAmount>1</ItemAmount>
<ProgramId>b7ac2d3e-f70f-4c19-9671-7ab8a95d2d5a</ProgramId>
<ProjectId>4233de53-cb65-4c02-ad02-304948fd4f0e</ProjectId>
</Api_DonationDetails>
</DonationDetailsList>
<DonorName>sample string 2</DonorName>
<DonorTypeID>1</DonorTypeID>
<GiftDonorName>sample string 4</GiftDonorName>
<GiftReceiverMobileNumber>sample string 6</GiftReceiverMobileNumber>
<GiftReceiverName>sample string 5</GiftReceiverName>
<GuestCountryCode>sample string 9</GuestCountryCode>
<GuestEmail>sample string 8</GuestEmail>
<GuestMobileNumber>sample string 10</GuestMobileNumber>
<IsGift>true</IsGift>
<IsSubscribeNewsLetter>true</IsSubscribeNewsLetter>
<LangCode>13</LangCode>
<PaymentMethodID>12</PaymentMethodID>
<TotalDonationAmount>11</TotalDonationAmount>
</Api_MakeDonation>
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) | |
| DonorName (String) | |
| IsGift (Boolean) | |
| GiftDonorName (String) | |
| GiftReceiverName (String) | |
| GiftReceiverMobileNumber (String) | |
| IsSubscribeNewsLetter (Boolean) | |
| GuestEmail (String) | |
| GuestCountryCode (String) | |
| GuestMobileNumber (String) | |
| TotalDonationAmount (Decimal) | |
| PaymentMethodID (Int32) | |
| LangCode (Int32) | |
| ClientIPAddress (String) | |
| BankResponseHandlerUrl (String) | |
| DonationDetailsList (List`1) |