POST api/ad/add
Request Information
URI Parameters
None.
Body Parameters
AdvertisementEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| AdvertisementId | integer |
None. |
|
| ProductDescription | string |
None. |
|
| ExternalURL | string |
None. |
|
| Provider | string |
None. |
|
| AdCategory | string |
None. |
|
| ImageURL | string |
None. |
|
| Active | boolean |
None. |
|
| DiscountPercentage | string |
None. |
|
| ProductName | string |
None. |
|
| CreatedTime | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"AdvertisementId": 1,
"ProductDescription": "sample string 2",
"ExternalURL": "sample string 3",
"Provider": "sample string 4",
"AdCategory": "sample string 5",
"ImageURL": "sample string 6",
"Active": true,
"DiscountPercentage": "sample string 8",
"ProductName": "sample string 9",
"CreatedTime": "2025-12-31T16:43:36.6727769+05:30"
}
application/xml, text/xml
Sample:
<AdvertisementEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pos_crm_api_DAL.Entities"> <Active>true</Active> <AdCategory>sample string 5</AdCategory> <AdvertisementId>1</AdvertisementId> <CreatedTime>2025-12-31T16:43:36.6727769+05:30</CreatedTime> <DiscountPercentage>sample string 8</DiscountPercentage> <ExternalURL>sample string 3</ExternalURL> <ImageURL>sample string 6</ImageURL> <ProductDescription>sample string 2</ProductDescription> <ProductName>sample string 9</ProductName> <Provider>sample string 4</Provider> </AdvertisementEntity>
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. |