POST api/PromoCode
Request Information
URI Parameters
None.
Body Parameters
PromoCodeName | Description | Type | Additional information |
---|---|---|---|
RecordNo | integer |
None. |
|
Name | string |
None. |
|
Code | string |
None. |
|
PromoType | string |
None. |
|
Discount | string |
None. |
|
StartDate | date |
None. |
|
EndDate | date |
None. |
|
Uses | string |
None. |
|
CreatedOn | date |
None. |
|
UpdatedOn | date |
None. |
|
IsDeleted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "RecordNo": 1, "Name": "sample string 2", "Code": "sample string 3", "PromoType": "sample string 4", "Discount": "sample string 5", "StartDate": "2024-12-22T00:31:45.8550312+00:00", "EndDate": "2024-12-22T00:31:45.8550312+00:00", "Uses": "sample string 8", "CreatedOn": "2024-12-22T00:31:45.8550312+00:00", "UpdatedOn": "2024-12-22T00:31:45.8550312+00:00", "IsDeleted": true }
application/xml, text/xml
Sample:
<PromoCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrishAcademy.Models"> <Code>sample string 3</Code> <CreatedOn>2024-12-22T00:31:45.8550312+00:00</CreatedOn> <Discount>sample string 5</Discount> <EndDate>2024-12-22T00:31:45.8550312+00:00</EndDate> <IsDeleted>true</IsDeleted> <Name>sample string 2</Name> <PromoType>sample string 4</PromoType> <RecordNo>1</RecordNo> <StartDate>2024-12-22T00:31:45.8550312+00:00</StartDate> <UpdatedOn>2024-12-22T00:31:45.8550312+00:00</UpdatedOn> <Uses>sample string 8</Uses> </PromoCode>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.