POST api/PostPersonOrderDeclinineReason

Request Information

URI Parameters

None.

Body Parameters

PostOrderDeclineModel
NameDescriptionTypeAdditional information
BuyerId

globally unique identifier

None.

OrderDate

date

None.

MealTypeId

integer

None.

DeclineReasonId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "BuyerId": "d2609fc1-732b-4a14-9f76-2c362697c81a",
  "OrderDate": "2026-02-13T00:00:42.0075689+00:00",
  "MealTypeId": 3,
  "DeclineReasonId": 4
}

application/xml, text/xml

Sample:
<PostOrderDeclineModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.Primero.OnlineFRE.APIs.Models.Order">
  <BuyerId>d2609fc1-732b-4a14-9f76-2c362697c81a</BuyerId>
  <DeclineReasonId>4</DeclineReasonId>
  <MealTypeId>3</MealTypeId>
  <OrderDate>2026-02-13T00:00:42.0075689+00:00</OrderDate>
</PostOrderDeclineModel>

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 'PostOrderDeclineModel'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>