List all free shipping promotions

How to fetch a collection of free shipping promotions via API

To fetch a collection of free shipping promotions, send a GET request to the /api/free_shipping_promotions endpoint.

Request

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

Example

The following request fetches a collection of free shipping promotions:

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

  • name

  • type

  • currency_code

  • exclusive

  • priority

  • starts_at

  • expires_at

  • total_usage_limit

  • total_usage_count

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

  • disabled_at

Filterable fields

The list of free shipping promotions can be filtered by the following fields:

Attributes

  • name

  • type

  • currency_code

  • starts_at

  • expires_at

  • total_usage_limit

  • total_usage_count

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

  • metadata

  • disabled_at

Relationships

  • market

  • promotion_rules

  • order_amount_promotion_rule

  • sku_list_promotion_rule

  • coupon_codes_promotion_rule

  • custom_promotion_rule

  • sku_list

  • coupons

  • attachments

  • events

  • tags

Last updated