Get a list of available usage product inventories

get/usage-product-inventories
SecuritybearerAuth
Request
query Parameters
page
required
integer <int32> (PageParam) >= 1

Page of results to show

Example: page=1
pageSize
required
integer <int32> (ResultsPerPageParam) [ 1 .. 1000 ]

Results to return per page

Example: pageSize=100
sort
string (SortParam)

Comma-delimited list of the fields to sort by - defaults to ascending order, suffix :desc to change

Example: sort=id,name | name:desc
fields
string (FieldsParam)

Comma-delimited list of the field(s) to return if only a subset is required

Example: fields=id,name
usageProductId
string (IdFilterParam)

Filter by usage product id

Example: usageProductId=0
startDate
string (DateFilterParam)

Filter by start date

Example: startDate=yyyy-MM-dd | lt:yyyy-MM-dd | gt:yyyy-MM-dd | gtn:yyyy-MM-dd
endDate
string (DateFilterParam)

Filter by end date

Example: endDate=yyyy-MM-dd | lt:yyyy-MM-dd | gt:yyyy-MM-dd | gtn:yyyy-MM-dd
productReference
string (StringFilterParam)

Filter by product reference

Example: productReference=xyz | in:x,y | like:xyz
serviceId
string (StringFilterParam)

Filter by service id

Example: serviceId=xyz | in:x,y | like:xyz
siteId
string (IdFilterParam)

Filter by site

Example: siteId=0
Responses
200

OK

400

Bad Request

401

Unauthorized

404

Not Found

412

Precondition Failed

500

Internal Server Error

501

Not Implemented Yet

Response samples
application/json
[
  • {
    • "id": 1,
    • "siteId": 1,
    • "usageProductId": 1,
    • "startDate": "2019-08-24",
    • "endDate": "2019-08-24",
    • "supplierAccountId": 0,
    • "billByServiceId": false,
    • "serviceId": "string",
    • "billable": true,
    • "inFlightOrder": false,
    • "externalOrderReference": "string",
    • "externalNetworkOrderReference": "string",
    • "pendingEndDate": "2019-08-24",
    • "usageCapEnabled": false,
    • "defaultUsageCap": 0,
    • "applySurcharges": false,
    • "productReferences": [
      • {
        • "id": 1,
        • "productReference": "string",
        • "primary": true,
        • "label": "string",
        • "startDate": "2019-08-24",
        • "endDate": "2019-08-24",
        • "userId": "string",
        • "userEmail": "string",
        • "costCentreCode": "string",
        • "departmentCode": "string",
        • "notes": "string"
        }
      ]
    }
]