DELETE api/v1/Orders/{id}/Lines/{lid}

Delete order line. Will return HTTP 404 on missing order or missing order line and HTTP 400 on invalid operation on order (the last order line cannot be deleted, delete order instead).

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

lid

integer

Required

Body Parameters

None.

Response Information

Resource Description

ReadOrderLineDto
NameDescriptionTypeAdditional information
Id

Id of orderline

integer

None.

OrderId

Id of order

integer

None.

ExtProductId

External product id of orderline

string

Max length: 100

ImgUrl

Image url of orderline

string

Max length: 2000

Name

Name of orderline

string

Max length: 250

Description

Description of orderline

string

None.

Quantity

Quantity of orderline

decimal number

None.

Price

Price of orderline

decimal number

None.

PriceTotal

Total price of orderline

decimal number

None.

LastModified

Date and time of last modification od order

date

None.

ContactRegistrationSource

Registration source of the orderline's contact

string

Max length: 50

ContactRegistrationDateTime

Registration datetime of the orderline's contact

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "OrderId": 2,
  "ExtProductId": "sample string 3",
  "ImgUrl": "sample string 4",
  "Name": "sample string 5",
  "Description": "sample string 6",
  "Quantity": 7.0,
  "Price": 8.0,
  "PriceTotal": 9.0,
  "LastModified": "2024-06-22T12:18:02.2013276+00:00",
  "ContactRegistrationSource": "sample string 11",
  "ContactRegistrationDateTime": "2024-06-22T12:18:02.2013276+00:00"
}