DELETE api/sales/delete/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Sale
NameDescriptionTypeAdditional information
SaleId

integer

None.

PetId

integer

None.

Date

date

None.

Notes

string

None.

Cost

decimal number

None.

TakeAwayNotes

string

None.

Status

integer

None.

AddedBy

string

None.

PracticeId

integer

None.

CustomerId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "SaleId": 1,
  "PetId": 1,
  "Date": "2024-12-21T05:45:00.9213263+00:00",
  "Notes": "sample string 2",
  "Cost": 1.0,
  "TakeAwayNotes": "sample string 3",
  "Status": 1,
  "AddedBy": "sample string 4",
  "PracticeId": 5,
  "CustomerId": 1
}

text/html

Sample:
{"SaleId":1,"PetId":1,"Date":"2024-12-21T05:45:00.9213263+00:00","Notes":"sample string 2","Cost":1.0,"TakeAwayNotes":"sample string 3","Status":1,"AddedBy":"sample string 4","PracticeId":5,"CustomerId":1}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[VetAPI.DataModel.CustomerLedger, VetAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[VetAPI.DataModel.CustomerLedger, VetAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.