List all SKUs

How to fetch a collection of SKUs via API

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

Request

GET https://yourdomain.commercelayer.io/api/skus

Example

The following request fetches a collection of SKUs:

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

Attributes

  • code

  • name

  • do_not_ship

  • do_not_track

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

Relationships

  • shipping_category

Filterable fields

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

Attributes

  • code

  • name

  • description

  • image_url

  • do_not_ship

  • do_not_track

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

  • metadata

Relationships

  • shipping_category

  • prices

  • stock_items

  • stock_reservations

  • delivery_lead_times

  • sku_list_items

  • sku_lists

  • attachments

  • links

  • events

  • tags

Last updated