POST api/Sales/PostSale

Request Information

URI Parameters

None.

Body Parameters

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.

Request Formats

application/json, text/json

Sample:
{
  "SaleId": 1,
  "PetId": 1,
  "Date": "2024-12-21T05:34:33.2899418+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:34:33.2899418+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.

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

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:34:33.3993039+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:34:33.3993039+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.