GET api/Purchases/Others?Filter={Filter}

List all Others/services in all Purchase Orders

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Filter

JSON formated filter (see using filters), see PurchaseOtherFilterParams

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Other
NameDescriptionTypeAdditional information
PurchaseId

integer

None.

Description

string

None.

Cost

decimal number

None.

Discount

decimal number

None.

VAT

decimal number

None.

Entity

BasicDetail

None.

Supplier

BasicDetail

None.

Item

integer

None.

Account

BasicDetail

None.

Modified

date

None.

Response Formats

Sample:
[
  {
    "PurchaseId": 1,
    "Description": "sample string 2",
    "Cost": 3.1,
    "Discount": 4.1,
    "VAT": 5.1,
    "Entity": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Supplier": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Item": 6,
    "Account": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Modified": "2024-11-14T16:30:56.1446624+00:00"
  },
  {
    "PurchaseId": 1,
    "Description": "sample string 2",
    "Cost": 3.1,
    "Discount": 4.1,
    "VAT": 5.1,
    "Entity": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Supplier": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Item": 6,
    "Account": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Modified": "2024-11-14T16:30:56.1446624+00:00"
  }
]
Sample:
<ArrayOfOther xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Encomendas">
  <Other>
    <Account xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Account>
    <Cost>3.1</Cost>
    <Description>sample string 2</Description>
    <Discount>4.1</Discount>
    <Entity xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Entity>
    <Item>6</Item>
    <Modified>2024-11-14T16:30:56.1446624+00:00</Modified>
    <PurchaseId>1</PurchaseId>
    <Supplier xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Supplier>
    <VAT>5.1</VAT>
  </Other>
  <Other>
    <Account xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Account>
    <Cost>3.1</Cost>
    <Description>sample string 2</Description>
    <Discount>4.1</Discount>
    <Entity xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Entity>
    <Item>6</Item>
    <Modified>2024-11-14T16:30:56.1446624+00:00</Modified>
    <PurchaseId>1</PurchaseId>
    <Supplier xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Supplier>
    <VAT>5.1</VAT>
  </Other>
</ArrayOfOther>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].PurchaseId"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Cost"

3.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Discount"

4.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].VAT"

5.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Entity.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Entity.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Supplier.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Supplier.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Item"

6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Account.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Account.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Modified"

2024-11-14T16:30:56.1446624+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].PurchaseId"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Cost"

3.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Discount"

4.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].VAT"

5.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Entity.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Entity.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Supplier.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Supplier.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Item"

6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Account.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Account.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Modified"

2024-11-14T16:30:56.1446624+00:00
--MultipartDataMediaFormatterBoundary1q2w3e--