GET v1/ShopOwners/{shopOwnerId}/PurchaseOrders

Get a list with all available PurchaseOrders, for given shop owner.

Request Information

Requires Authorization!

URI Parameters

NameDescriptionTypeAdditional information
shopOwnerId

The id of the shop owner.

integer

Required.

fromDateChanged

Optionally specify a from date for changed orders.

date

Is Optional.

Default value is (null).

untilDateChanged

Optionally specify a until date for changed orders.

date

Is Optional.

Default value is (null).

mainStatusId

Optionally specify a status Id to filter on.

integer

Is Optional.

Default value is (null).

mainStatusBaseStatusId

Optionally specify a base status Id to filter on.

integer

Is Optional.

Default value is (null).

pageSize

The max number of items returned. Default this value is 100.

integer

Is Optional.

Default value is 100.

pageNumber

The page to return. Default page 1 will be returned.

integer

Is Optional.

Default value is 1.

Body Parameters

None.

Response Information

Resource Description

A list of the PurchaseOrderBasicInfo objects.


Collection of PurchaseOrderBasicInfo
NameDescriptionTypeAdditional information
CompanyName

Gets or sets the name of the company.

string

None.

FullName

Gets or sets the full name.

string

None.

Id

Gets or sets the identifier.

integer

Required

OrderCode

Gets or sets the Purchase Order code.

string

Required

Max length: 50

Date

Gets or sets the date.

date

Required

OrderTotalExVat

Gets or sets the purchaseOrder total without the 'VAT'.

decimal number

Required

CurrencyId

Gets or sets the currency identifier.

integer

Required

CurrencyCode

Gets or sets the currency code.

string

None.

DeletedTimestamp

Gets or sets a value indicating whether this is deleted.

date

None.

ChangeTimestamp

Gets or sets the change timestamp.

date

None.

MainStatusId

Gets or sets the main status identifier.

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CompanyName": "sample string 1",
    "FullName": "sample string 2",
    "Id": 3,
    "OrderCode": "sample string 4",
    "Date": "2021-12-02T20:19:30.9041086+01:00",
    "OrderTotalExVat": 6.0,
    "CurrencyId": 7,
    "CurrencyCode": "sample string 8",
    "DeletedTimestamp": "2021-12-02T20:19:30.9041086+01:00",
    "ChangeTimestamp": "2021-12-02T20:19:30.9041086+01:00",
    "MainStatusId": 1
  },
  {
    "CompanyName": "sample string 1",
    "FullName": "sample string 2",
    "Id": 3,
    "OrderCode": "sample string 4",
    "Date": "2021-12-02T20:19:30.9041086+01:00",
    "OrderTotalExVat": 6.0,
    "CurrencyId": 7,
    "CurrencyCode": "sample string 8",
    "DeletedTimestamp": "2021-12-02T20:19:30.9041086+01:00",
    "ChangeTimestamp": "2021-12-02T20:19:30.9041086+01:00",
    "MainStatusId": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfPurchaseOrderBasicInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <PurchaseOrderBasicInfo>
    <Id>3</Id>
    <OrderCode>sample string 4</OrderCode>
    <Date>2021-12-02T20:19:30.9041086+01:00</Date>
    <OrderTotalExVat>6</OrderTotalExVat>
    <CurrencyId>7</CurrencyId>
    <CurrencyCode>sample string 8</CurrencyCode>
    <DeletedTimestamp>2021-12-02T20:19:30.9041086+01:00</DeletedTimestamp>
    <ChangeTimestamp>2021-12-02T20:19:30.9041086+01:00</ChangeTimestamp>
    <MainStatusId>1</MainStatusId>
    <CompanyName>sample string 1</CompanyName>
    <FullName>sample string 2</FullName>
  </PurchaseOrderBasicInfo>
  <PurchaseOrderBasicInfo>
    <Id>3</Id>
    <OrderCode>sample string 4</OrderCode>
    <Date>2021-12-02T20:19:30.9041086+01:00</Date>
    <OrderTotalExVat>6</OrderTotalExVat>
    <CurrencyId>7</CurrencyId>
    <CurrencyCode>sample string 8</CurrencyCode>
    <DeletedTimestamp>2021-12-02T20:19:30.9041086+01:00</DeletedTimestamp>
    <ChangeTimestamp>2021-12-02T20:19:30.9041086+01:00</ChangeTimestamp>
    <MainStatusId>1</MainStatusId>
    <CompanyName>sample string 1</CompanyName>
    <FullName>sample string 2</FullName>
  </PurchaseOrderBasicInfo>
</ArrayOfPurchaseOrderBasicInfo>