List all versions

How to fetch a collection of versions via API

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

Request

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

Example

The following request fetches a collection of versions:

curl -g -X GET \
  'https://provisioning.commercelayer.io/api/versions/' \
  -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 versions can be sorted by the following fields:

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

Filterable fields

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

Attributes

  • resource_type

  • resource_id

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

  • metadata

Last updated