List all organizations

How to fetch a collection of organizations via API

To fetch a collection of organizations, send a GET request to the /api/organizations endpoint.

Request

GET https://provisioning.commercelayer.io/api/organizations

Example

The following request fetches a collection of organizations:

curl -g -X GET \
  'https://provisioning.commercelayer.io/api/organizations/' \
  -H 'Accept: application/vnd.api+json' \
  -H 'Authorization: Bearer {{your_access_token}}'

Remember that when you fetch a list of resources you get paginated result.

Sortable fields

The list of organizations can be sorted by the following fields:

  • name

  • slug

  • domain

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

Filterable fields

The list of organizations can be filtered by the following fields:

Attributes

  • name

  • slug

  • domain

  • region

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

  • metadata

Relationships

  • memberships

  • roles

  • permissions

  • api_credentials

Last updated