POST API/Basket/AddSale

Request Information

URI Parameters

None.

Body Parameters

Sale
NameDescriptionTypeAdditional information
ID

integer

None.

address

string

None.

dateTime

date

None.

amount

decimal number

None.

isDelivery

boolean

None.

isPayed

boolean

None.

saleTypeID

integer

None.

userID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "address": "sample string 2",
  "dateTime": "2025-12-13T08:57:17.6167819+02:00",
  "amount": 4.1,
  "isDelivery": true,
  "isPayed": true,
  "saleTypeID": 7,
  "userID": 8
}

application/xml, text/xml

Sample:
<Sale xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models">
  <ID>1</ID>
  <address>sample string 2</address>
  <amount>4.1</amount>
  <dateTime>2025-12-13T08:57:17.6167819+02:00</dateTime>
  <isDelivery>true</isDelivery>
  <isPayed>true</isPayed>
  <saleTypeID>7</saleTypeID>
  <userID>8</userID>
</Sale>

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

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.