Fetch Grid Component Data

GET/components/grids/{gridComponentId}

Returns paginated data for a Grid component.

Grid components support:

  • Pagination
  • Multi-column sorting
  • Column filtering

The Client API is expected to perform server-side pagination, sorting, and filtering.

Base URL
https://api.client.com

Request

Path parameters

gridComponentIdstringrequired

The Grid component ID.

Query parameters

reference_idstring

The reference ID identifying the external account or entity.

resource_idstring

The resource ID.

languagestring

Language identifier.

localestring

Locale identifier.

page_numberinteger

Current page number.

Example: 1 · min: 1
page_sizeinteger

Number of items per page.

Example: 10 · min: 1
sortstring

Sorting expression.

Examples:
- sort=id
- sort=-id
- sort=id,-title

Prefixing a column with "-" sorts descending.

Example: id,-title
eq(id)string

Equal operator example.

Example: id is 5. eq(id)=5 or id=5
contains(title)string

Contains operator example.

doesnotcontain(title)string

Does not contain operator example.

isnotnull(parent)boolean

Is not null operator example.

in(status)string

In-array operator example.

Example: active,pending

Request example

cURL · cURL
curl -L -X GET "https://api.client.com/components/grids/{gridComponentId}" \
  -H "Accept: application/json"

Responses

Grid component data.

application/json
dataobject[]required

Array of GridData objects.

Show child attributes
idinteger

Invoice ID.

Example: 3275
urlstring (uri)

Invoice URL.

Example: https://SMS.es.com
invoiceDatestring

Invoice date.

Example: 2018-01-23
invoiceDateTimestring (date-time)

Invoice date and time.

Example: 2018-01-23T09:40:16Z
metaobjectrequired
Show child attributes
paginationobjectrequired
Show child attributes
totalintegerrequired

Total number of rows.

Example: 22
countintegerrequired

Number of rows in the current page.

Example: 10
per_pageintegerrequired

Maximum rows per page.

Example: 10
current_pageintegerrequired

Current page number.

Example: 1
total_pagesinteger

Total number of pages.

Example: 3
linksobjectrequired
Show child attributes
firststring | null

Link to the first page.

Example: /components/grids/invoices?page_number=1
laststring | null

Link to the last page.

Example: /components/grids/invoices?page_number=3
prevstring | null

Link to the previous page.

Example: None
nextstring | null

Link to the next page.

Example: /components/grids/invoices?page_number=2
Example response
{
  "data": [
    {
      "id": 3275,
      "url": "https://SMS.es.com",
      "invoiceDate": "2018-01-23",
      "invoiceDateTime": "2018-01-23T09:40:16Z"
    }
  ],
  "meta": {
    "pagination": {
      "total": 22,
      "count": 10,
      "per_page": 10,
      "current_page": 1,
      "total_pages": 3,
      "links": {
        "first": "/components/grids/invoices?page_number=1",
        "last": "/components/grids/invoices?page_number=3",
        "prev": null,
        "next": "/components/grids/invoices?page_number=2"
      }
    }
  }
}