POST api/Offer/InsertOfferDetail
Request Information
URI Parameters
None.
Body Parameters
OfferEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| PK_Offer_Id | integer |
None. |
|
| FK_Offer_Cat_Id | integer |
Required |
|
| FK_Org_Id | integer |
None. |
|
| FK_Store_Id | integer |
None. |
|
| Title | string |
None. |
|
| Discount | decimal number |
Required |
|
| Short_Description | string |
Required |
|
| Long_Description | string |
None. |
|
| From_Date | date |
Required |
|
| To_Date | date |
Required |
|
| Img_1 | string |
None. |
|
| Status | integer |
None. |
|
| Created_By | string |
None. |
|
| Created_Date | date |
None. |
|
| Modified_By | string |
None. |
|
| Modified_Date | date |
None. |
|
| OfferCategory | string |
None. |
|
| StoreName | string |
None. |
|
| Logo | string |
None. |
|
| Website_URL | string |
None. |
|
| Store_Address | string |
None. |
|
| BranchList | Collection of BranchEntity |
None. |
|
| DiscountValue | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"pK_Offer_Id": 1,
"fK_Offer_Cat_Id": 2,
"fK_Org_Id": 3,
"fK_Store_Id": 4,
"title": "sample string 5",
"discount": 1.0,
"short_Description": "sample string 6",
"long_Description": "sample string 7",
"from_Date": "2025-12-24T09:50:36.7657835+05:30",
"to_Date": "2025-12-24T09:50:36.7657835+05:30",
"img_1": "sample string 8",
"status": 9,
"created_By": "sample string 10",
"created_Date": "2025-12-24T09:50:36.7657835+05:30",
"modified_By": "sample string 11",
"modified_Date": "2025-12-24T09:50:36.7657835+05:30",
"offerCategory": "sample string 12",
"storeName": "sample string 13",
"logo": "sample string 14",
"website_URL": "sample string 15",
"store_Address": "sample string 16",
"branchList": [
{
"pK_Branch_Id": 1,
"fK_Store_Id": 2,
"branch_Name": "sample string 3",
"branch_Address": "sample string 4",
"status": 5,
"created_By": "sample string 6",
"created_Date": "2025-12-24T09:50:36.7657835+05:30",
"modified_By": "sample string 7",
"modified_Date": "2025-12-24T09:50:36.7657835+05:30",
"fK_Org_Id": 8,
"store_Name": "sample string 9"
},
{
"pK_Branch_Id": 1,
"fK_Store_Id": 2,
"branch_Name": "sample string 3",
"branch_Address": "sample string 4",
"status": 5,
"created_By": "sample string 6",
"created_Date": "2025-12-24T09:50:36.7657835+05:30",
"modified_By": "sample string 7",
"modified_Date": "2025-12-24T09:50:36.7657835+05:30",
"fK_Org_Id": 8,
"store_Name": "sample string 9"
}
],
"discountValue": "sample string 17"
}
text/xml
Sample:
<OfferEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities">
<BranchList>
<BranchEntity>
<Branch_Address>sample string 4</Branch_Address>
<Branch_Name>sample string 3</Branch_Name>
<Created_By>sample string 6</Created_By>
<Created_Date>2025-12-24T09:50:36.7657835+05:30</Created_Date>
<FK_Org_Id>8</FK_Org_Id>
<FK_Store_Id>2</FK_Store_Id>
<Modified_By>sample string 7</Modified_By>
<Modified_Date>2025-12-24T09:50:36.7657835+05:30</Modified_Date>
<PK_Branch_Id>1</PK_Branch_Id>
<Status>5</Status>
<Store_Name>sample string 9</Store_Name>
</BranchEntity>
<BranchEntity>
<Branch_Address>sample string 4</Branch_Address>
<Branch_Name>sample string 3</Branch_Name>
<Created_By>sample string 6</Created_By>
<Created_Date>2025-12-24T09:50:36.7657835+05:30</Created_Date>
<FK_Org_Id>8</FK_Org_Id>
<FK_Store_Id>2</FK_Store_Id>
<Modified_By>sample string 7</Modified_By>
<Modified_Date>2025-12-24T09:50:36.7657835+05:30</Modified_Date>
<PK_Branch_Id>1</PK_Branch_Id>
<Status>5</Status>
<Store_Name>sample string 9</Store_Name>
</BranchEntity>
</BranchList>
<Created_By>sample string 10</Created_By>
<Created_Date>2025-12-24T09:50:36.7657835+05:30</Created_Date>
<Discount>1</Discount>
<DiscountValue>sample string 17</DiscountValue>
<FK_Offer_Cat_Id>2</FK_Offer_Cat_Id>
<FK_Org_Id>3</FK_Org_Id>
<FK_Store_Id>4</FK_Store_Id>
<From_Date>2025-12-24T09:50:36.7657835+05:30</From_Date>
<Img_1>sample string 8</Img_1>
<Logo>sample string 14</Logo>
<Long_Description>sample string 7</Long_Description>
<Modified_By>sample string 11</Modified_By>
<Modified_Date>2025-12-24T09:50:36.7657835+05:30</Modified_Date>
<OfferCategory>sample string 12</OfferCategory>
<PK_Offer_Id>1</PK_Offer_Id>
<Short_Description>sample string 6</Short_Description>
<Status>9</Status>
<StoreName>sample string 13</StoreName>
<Store_Address>sample string 16</Store_Address>
<Title>sample string 5</Title>
<To_Date>2025-12-24T09:50:36.7657835+05:30</To_Date>
<Website_URL>sample string 15</Website_URL>
</OfferEntity>
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. |