List all markets
How to fetch a collection of markets via API
To fetch a collection of markets, send a GET request to the /api/markets endpoint.
Request
GET https://yourdomain.commercelayer.io/api/markets
Example
The following request fetches a collection of markets:
curl -g -X GET \
'https://yourdomain.commercelayer.io/api/markets/' \
-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 markets can be sorted by the following fields:
Attributes
namecodeiddisabled_atcreated_atupdated_atreferencereference_origin
Relationships
price_listinventory_modelsubscription_modeldiscount_enginetax_calculatorcustomer_groupgeocoderdefault_shipping_methoddefault_payment_method
Filterable fields
The list of markets can be filtered by the following fields:
Attributes
namecodeiddisabled_atcreated_atupdated_atreferencereference_originmetadata
Relationships
merchantprice_listinventory_modelsubscription_modeldiscount_enginetax_calculatorcustomer_groupgeocoderdefault_shipping_methoddefault_payment_methodstoresprice_list_schedulersattachments
Last updated

