GET api/PurchaseRequests/{code}/Others

Get the requested others of a purchase request

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

integer

Required

Body Parameters

None.

Response Information

Resource Description

The Others/Services List

Collection of PurchaseRequest.Other
NameDescriptionTypeAdditional information
Id

integer

None.

Description

string

None.

Supplier

BasicDetail

None.

TotalCost

decimal number

None.

Urgency

PurchaseRequest.Urgency

None.

CostAllocation

AllocationEntityDetails

None.

State

PurchaseRequest.OtherState

None.

Account

BasicDetail

None.

Notes

string

None.

Response Formats

Sample:
[
  {
    "Id": 1,
    "Description": "sample string 2",
    "Supplier": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "TotalCost": 3.1,
    "Urgency": "Emergency",
    "CostAllocation": {
      "Type": "WorkOrder",
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "State": "Pending",
    "Account": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Notes": "sample string 4"
  },
  {
    "Id": 1,
    "Description": "sample string 2",
    "Supplier": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "TotalCost": 3.1,
    "Urgency": "Emergency",
    "CostAllocation": {
      "Type": "WorkOrder",
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "State": "Pending",
    "Account": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Notes": "sample string 4"
  }
]
Sample:
<ArrayOfOther xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Purchase">
  <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>
    <CostAllocation xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
      <d3p1:Type>WorkOrder</d3p1:Type>
    </CostAllocation>
    <Description>sample string 2</Description>
    <Id>1</Id>
    <Notes>sample string 4</Notes>
    <State>Pending</State>
    <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>
    <TotalCost>3.1</TotalCost>
    <Urgency>Emergency</Urgency>
  </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>
    <CostAllocation xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
      <d3p1:Type>WorkOrder</d3p1:Type>
    </CostAllocation>
    <Description>sample string 2</Description>
    <Id>1</Id>
    <Notes>sample string 4</Notes>
    <State>Pending</State>
    <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>
    <TotalCost>3.1</TotalCost>
    <Urgency>Emergency</Urgency>
  </Other>
</ArrayOfOther>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Id"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].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].TotalCost"

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

Emergency
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].CostAllocation.Type"

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

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

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

Pending
--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].Notes"

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

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].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].TotalCost"

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

Emergency
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].CostAllocation.Type"

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

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

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

Pending
--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].Notes"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e--