POST api/Donation/CreateAdahi
Create Adahi header --> Key : This variable is confirmed by the access process
Request Information
URI Parameters
None.
Body Parameters
Api_MakeAdahi| Name | Description | Type | Additional information |
|---|---|---|---|
| DonorTypeID | integer |
None. |
|
| DonorName | 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. |
|
| ItemDetailsList | Collection of Api_ItemDetails |
None. |
Parameter Information
model
| Property | Description |
|---|---|
| DonorTypeID (Int32) | |
| DonorName (String) | |
| IsSubscribeNewsLetter (Boolean) | |
| GuestEmail (String) | |
| GuestCountryCode (String) | |
| GuestMobileNumber (String) | |
| TotalDonationAmount (Decimal) | |
| PaymentMethodID (Int32) | |
| LangCode (Int32) | |
| ClientIPAddress (String) | |
| BankResponseHandlerUrl (String) | |
| ItemDetailsList (List`1) |
Request Formats
application/json, text/json
Sample:
{
"DonorTypeID": 1,
"DonorName": "sample string 2",
"IsSubscribeNewsLetter": true,
"GuestEmail": "sample string 4",
"GuestCountryCode": "sample string 5",
"GuestMobileNumber": "sample string 6",
"TotalDonationAmount": 7.0,
"PaymentMethodID": 8,
"LangCode": 9,
"ClientIPAddress": "sample string 10",
"BankResponseHandlerUrl": "sample string 11",
"ItemDetailsList": [
{
"HeaderId": "7edc8605-43d4-4f39-bb78-3791dcf8a1eb",
"CountryId": "cb03955d-20e9-446e-832c-3642004d04aa",
"DetailsId": "722ab5ca-09c7-46f4-a7f8-280c684b8651",
"ItemId": "cec5a73c-6d26-4473-a63d-632cb58367c6",
"ItemAmount": 5.0,
"Quantity": 6.0,
"TotalAmount": 7.0
},
{
"HeaderId": "7edc8605-43d4-4f39-bb78-3791dcf8a1eb",
"CountryId": "cb03955d-20e9-446e-832c-3642004d04aa",
"DetailsId": "722ab5ca-09c7-46f4-a7f8-280c684b8651",
"ItemId": "cec5a73c-6d26-4473-a63d-632cb58367c6",
"ItemAmount": 5.0,
"Quantity": 6.0,
"TotalAmount": 7.0
}
]
}
application/xml, text/xml
Sample:
<Api_MakeAdahi 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>
<DonorName>sample string 2</DonorName>
<DonorTypeID>1</DonorTypeID>
<GuestCountryCode>sample string 5</GuestCountryCode>
<GuestEmail>sample string 4</GuestEmail>
<GuestMobileNumber>sample string 6</GuestMobileNumber>
<IsSubscribeNewsLetter>true</IsSubscribeNewsLetter>
<ItemDetailsList>
<Api_ItemDetails>
<CountryId>cb03955d-20e9-446e-832c-3642004d04aa</CountryId>
<DetailsId>722ab5ca-09c7-46f4-a7f8-280c684b8651</DetailsId>
<HeaderId>7edc8605-43d4-4f39-bb78-3791dcf8a1eb</HeaderId>
<ItemAmount>5</ItemAmount>
<ItemId>cec5a73c-6d26-4473-a63d-632cb58367c6</ItemId>
<Quantity>6</Quantity>
<TotalAmount>7</TotalAmount>
</Api_ItemDetails>
<Api_ItemDetails>
<CountryId>cb03955d-20e9-446e-832c-3642004d04aa</CountryId>
<DetailsId>722ab5ca-09c7-46f4-a7f8-280c684b8651</DetailsId>
<HeaderId>7edc8605-43d4-4f39-bb78-3791dcf8a1eb</HeaderId>
<ItemAmount>5</ItemAmount>
<ItemId>cec5a73c-6d26-4473-a63d-632cb58367c6</ItemId>
<Quantity>6</Quantity>
<TotalAmount>7</TotalAmount>
</Api_ItemDetails>
</ItemDetailsList>
<LangCode>9</LangCode>
<PaymentMethodID>8</PaymentMethodID>
<TotalDonationAmount>7</TotalDonationAmount>
</Api_MakeAdahi>
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) | |
| IsSubscribeNewsLetter (Boolean) | |
| GuestEmail (String) | |
| GuestCountryCode (String) | |
| GuestMobileNumber (String) | |
| TotalDonationAmount (Decimal) | |
| PaymentMethodID (Int32) | |
| LangCode (Int32) | |
| ClientIPAddress (String) | |
| BankResponseHandlerUrl (String) | |
| ItemDetailsList (List`1) |