younifyd
Menu

Get Price Modifiers

Gets a list of all modifiers

GET/pcm/pricebooks/{pricebookID}/modifiers

Use it in a workflow

  1. Add a step and choose the Elastic Path connector.
  2. Pick the Get Price Modifiers action (under Price Books).
  3. Fill in the fields below, then reference the result from later steps as {{getPriceModifiers.response.data}}.

Request

Path parameters

pricebookIDstringrequired

Unique identifier of a Price Book

Query parameters

filterstring

This endpoint supports filtering. See [Filtering]().

page[limit]integer (int64)

The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.

page[offset]integer (int64)

The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page offset is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.

Response

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

metaobject

Contains the results for the entire collection.

resultsobject1 fields
pageobject4 fields
dataarray<object>
typestringrequired

One ofprice-modifierDefault "price-modifier"

pricebook_external_refstring

The unique attribute associated with the price book. This can be an external reference from a separate company system, for example. The maximum length is 2048 characters.

attributesobjectrequired6 fields
idstringrequired

A unique identifier for the price modifier.

metaobject1 fields
linksobject

Links are used to allow you to move between requests.

selfstring (uri)

Single entities use a self parameter with a link to that specific resource.

firststring (uri)

Always the first page.

laststring (uri)

This is `null` if there is only one page.

prevstring (uri)

This is `null` if there is only one page.

nextstring (uri)

This is `null` if there is only one page.

json
{
  "data": [
    {
      "type": "price-modifier",
      "attributes": {
        "currencies": {
          "USD": {
            "amount": 100,
            "includes_tax": false,
            "tiers": {
              "min_5": {
                "minimum_quantity": 5,
                "amount": 50
              }
            }
          },
          "CAD": {
            "amount": 127,
            "includes_tax": false,
            "tiers": {
              "min_10": {
                "minimum_quantity": 10,
                "amount": 100
              }
            }
          },
          "GBP": {
            "amount": 73,
            "includes_tax": true,
            "tiers": {
              "min_20": {
                "minimum_quantity": 20,
                "amount": 60
              }
            }
          }
        },
        "name": "large-supplement",
        "modifier_type": "price_equals",
        "external_ref": "external-ref",
        "created_at": "2020-09-22T09:00:00Z",
        "updated_at": "2020-09-22T09:00:00Z"
      },
      "id": "37f2eed6-0bea-4d0b-a3c6-24cc76143bfd",
      "pricebook_external_ref": "a-pricebook-external-ref",
      "meta": {
        "owner": "store"
      }
    }
  ],
  "meta": {
    "results": {
      "total": 1
    },
    "page": {
      "limit": 10,
      "offset": 0,
      "current": 0,
      "total": 1
    }
  },
  "links": {
    "self": "/pcm/pricebooks/4c45e4ec-26e0-4043-86e4-c15b9cf985a7/modifiers",
    "first": "/pcm/pricebooks/4c45e4ec-26e0-4043-86e4-c15b9cf985a7/modifiers?page[offset]=0&page[limit]=25",
    "last": "/pcm/pricebooks/4c45e4ec-26e0-4043-86e4-c15b9cf985a7/modifiers?page[offset]=0&page[limit]=25",
    "prev": "/pcm/pricebooks/4c45e4ec-26e0-4043-86e4-c15b9cf985a7/modifiers?page[offset]=0&page[limit]=25",
    "next": "/pcm/pricebooks/4c45e4ec-26e0-4043-86e4-c15b9cf985a7/modifiers?page[offset]=25&page[limit]=25"
  }
}

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