Skip to main content

Quantity-Based Pricing Sync (B2B)

Data format for updating volume pricing (tiered pricing) for B2B catalogs.

⚠️ Important Note This endpoint exclusively manages price rules based on quantity. The product variant must already have a base price synced in the reference market. If the base price is missing, the endpoint will return an error.

General Information

This endpoint allows you to define purchase thresholds and relative discounted prices (e.g., "If you buy at least 50 pieces, the unit cost drops from €70 to €60").

The target identification occurs via marketId or priceListId:

  • marketId: The update is propagated to all price lists associated with that specific market.
  • priceListId: The update is targeted specifically to the provided price list.
  • Priority: If both fields are present in the payload, the system will exclusively use the priceListId, ignoring the market.

Fields

Mandatory Fields

  • sku: The product variant SKU (always required).
  • price: The unit price to apply to the tier. It must be greater than 0.
  • quantity: The minimum quantity required to activate the price. It must be greater than 0.

Destination Fields (At least one required)

  • marketId: Shopify Market ID.
  • priceListId: Specific Price List ID.

On Shopify, the Market ID is the last number found in the URL of the market page. (e.g.: https://admin.shopify.com/store/yourShopifyStore/markets/123456789)

Example Payload

[
{
"sku": "0MK3065J-1108",
"price": 25.50,
"quantity": 10,
"marketId": "102867599667",
"priceListId": null
},
{
"sku": "0MK3065J-1101-0",
"price": 25.50,
"quantity": 10,
"marketId": "",
"priceListId": "31619121459"
}
]

Flow Configurations

In addition to the base flow settings add the following Settings Override:

FieldValueNotes
Base Urlhttps://adapter.flowlyze.ioAdapter URL
Resource Path/api/adp/shopify/egress/sync-price-to-shopifyAdapter path for quantity pricing (B2B)
Headers :: x-api-key**********API key to verify endpoint interaction
Headers :: x-shopify-graphql-urlhttps://SHOPIFYURL.myshopify.com/Shopify store URL to connect to
Headers :: x-shopify-access-tokenshpat_CODICEALFANUMERICOSecret of the custom app created for integration