younifyd
Menu

Get variant reduction for given campaign

Get variant reduction for given campaign

GET/shops/{shopKey}/campaigns/{campaignId}/reductions/variants

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get variant reduction for given campaign action (under Campaigns).
  3. Fill in the fields below, then reference the result from later steps as {{getVariantReductionForGivenCampaign.response.data}}.

Request

Path parameters

shopKeystringrequired

The shop key.

campaignIdintegerrequired

Campaign ID

Query parameters

limitinteger

Maximum number of entities in the result. When fetching entities with children, the limit always applies to the amount of parent entities (max. 10000).

Default 10000

filters[productId]array<integer>

Comma-separated list of product IDs that should be used for filtering.

filters[variantId]array<integer>

Comma-separated list of variant IDs that should be used for filtering.

filters[productReferenceKey]array<string>

Comma-separated list of product reference keys that should be used for filtering.

filters[variantReferenceKey]array<string>

Comma-separated list of product variant reference keys that should be used for filtering.

filters[minId]integer

Minimum (inclusive) ID of entities that should be returned.

filters[maxId]integer

Maximum (inclusive) ID of entities that should be returned.

sortstring

Sort by the provided column.

One ofidvariantIdDefault "variantId"

sortDirstring

Sort ascending or descending

One ofascdescDefault "asc"

cursorstring

Valid cursor used for pagination.

Response

Returns 200 with an object. Read it in later steps with {{getVariantReductionForGivenCampaign.response.data.<field>}}.

entitiesarray<object>
idinteger

SCAYLE's internal reduction identifier.

productVariantIdinteger

SCAYLE's internal product variant identifier.

productVariantReferenceKeystring

Tenant provided product variant identifier.

reductionintegerrequired

The reduction percentage applied to this specific variant.

cursorobject
nextstring

The cursor pointing to the next page. If null there is no next page available.

json
{
  "entities": [
    {
      "reduction": 10,
      "id": 1,
      "productVariantId": 1,
      "productVariantReferenceKey": "M0001-red-s"
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.

Get variant reduction for given campaign — SCAYLE Admin — Documentation