POST api/PromoCodesDetail

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
objPromoEntityDetail
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "id": 1,
  "tdate": "2026-12-01T05:44:14.0998889+00:00",
  "code": "sample string 3",
  "valid_from": "2026-12-01T05:44:14.0998889+00:00",
  "valid_to": "2026-12-01T05:44:14.0998889+00:00",
  "discount": 6.1,
  "entity_id": 7,
  "is_used": true
}

text/html

Sample:
{"id":1,"tdate":"2026-12-01T05:44:14.0998889+00:00","code":"sample string 3","valid_from":"2026-12-01T05:44:14.0998889+00:00","valid_to":"2026-12-01T05:44:14.0998889+00:00","discount":6.1,"entity_id":7,"is_used":true}

application/xml, text/xml

Sample:
<PromoCodesDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WillEffectAPI.Models">
  <code>sample string 3</code>
  <discount>6.1</discount>
  <entity_id>7</entity_id>
  <id>1</id>
  <is_used>true</is_used>
  <tdate>2026-12-01T05:44:14.0998889+00:00</tdate>
  <valid_from>2026-12-01T05:44:14.0998889+00:00</valid_from>
  <valid_to>2026-12-01T05:44:14.0998889+00:00</valid_to>
</PromoCodesDetail>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PromoCodesDetail'.

Response Information

No documentation available.

Response body formats

application/json, text/json

Sample:
{
  "Status": true,
  "ErrorMessage": "sample string 2"
}

text/html

Sample:
{"Status":true,"ErrorMessage":"sample string 2"}

application/xml, text/xml

Sample:
<StatusResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WillEffectAPI.Models">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Status>true</Status>
</StatusResponse>