Promotions > Promotions > promotionsPage
Commerce APIPromotionsPromotionspromotionsPage
promotionsPage
GET:promotions/page.json

Description

Get all promotions of a given shop.

See also: Pagination.

Permission bit: "promotions.read"

Topic: Promotions

Arguments

created_at_max: String

Filter output by creation date, upper boundary

Timestamp (RFC 3339)


created_at_min: String

Filter output by creation date, lower boundary

Timestamp (RFC 3339)


flat: Boolean

Use flat output format instead of a recursive one


last_key: String

Key of the last item from previous page. See also: Pagination


limit: Int

Return up to N entries (pagination). See also: Pagination


offset: Int

Skip N entries (pagination). See also: Pagination


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


sort_by: PromotionsPageSortBy

Whether to sort output in some specific way. See also: Pagination


sort_desc: Boolean

Whether to use descending sort order. See also: Pagination


status: PromotionsPageStatus

Filter promotions output by status


updated_at_max: String

Filter output by last update date, upper boundary

Timestamp (RFC 3339)


updated_at_min: String

Filter output by last update date, lower boundary

Timestamp (RFC 3339)


Result

PromotionPage

Preview (typescript)

Loading module