Revenue Centers

Get revenue centers

This operation returns a list of non-deleted revenue centers with pagination.

Note: This operation needs Authentication and supports the following JSON:API features:

  • Sparse fieldsets - supports all fields of revenueCenter with fields query parameter.

Request

GET [PlatformAddress]/v1/revenue-centers

Response

{
  "data": [
    {
      "id": "5efa8b3c-b930-4b31-918d-95ab0e212e64",
      "type": "revenueCenters",
      "attributes": {
        "name": "Main Outlet",
        "isActive": true,
        "createdAt": "2023-01-01T00:00:00Z",
        "updatedAt": "2023-01-02T00:00:00Z"
      }
    }
  ],
  "links": {
    "prev": "https://api.mews-demo.com/pos/v1/revenue-centers?page%5Bbefore%5D=NA&page%5Bsize%5D=1",
    "next": "https://api.mews-demo.com/pos/v1/revenue-centers?page%5Bafter%5D=NA&page%5Bsize%5D=1"
  }
}

Below is a list of all possible fields this endpoint can return including relationships fields fetched with include query parameter.

Property
Type
Contract
Description

data

array of object revenue_center

required, max 1000 items

The document's "primary data".

links

required

A links object describing cursor pagination links.

revenue_center

Property
Type
Contract
Description

id

string

required, max length 36 characters

Universally unique ID (UUID) that identifies the related object.

type

string

required

The type member is used to describe resource objects that share common attributes and relationships.

attributes

required

An attributes object representing some of the resource's data.

revenue_center_attributes

Property
Type
Contract
Description

name

string

required, max length 255 characters

Name of the revenue center.

isActive

boolean

required

Indicates whether the revenue center is active.

createdAt

string

required, max length 25 characters

Created at timestamp in RFC 3339 format.

updatedAt

string

required, max length 25 characters

Updated at timestamp in RFC 3339 format.

Property
Type
Contract
Description

prev

string,null

optional, max length 1024 characters

The link to the previous page of results.

next

string,null

optional, max length 1024 characters

The link to the next page of results.

Last updated