Dynamic Buffer tools
Dynamic Buffers change the stock quantity Sqquid exports to sales Connections. Positive quantities hold units back. Negative quantities add units to the exported availability.
Read existing rules before adding a buffer. Creating or changing a buffer queues affected products for export without a separate approval request.
buffers_list
Section titled “buffers_list”Requires buffers:read. Read-only.
Optional filters are scope, sku, parent_sku, brand, store_id, connection_id, and search. Use connection_id: 0 to find rules that apply to every Connection.
Use limit from 1 to 200, default 50, and offset, default 0. Each result includes the rule’s ID, target, quantity, and a sentence explaining what it does.
buffers_create
Section titled “buffers_create”Requires buffers:write. Creates a rule immediately and queues exports.
| Input | Required | Description |
|---|---|---|
scope |
Yes | all, sku, parent, or brand. |
target |
Except for all |
Variant SKU or barcode, parent SKU, or brand. Default empty. |
qty |
Yes | Integer units to hold back. Negative values add units. |
store_id |
No | Limit the rule to a location. Empty applies to total available stock. |
connection_id |
No | Limit the rule to a sales Connection. Default 0 applies to every Connection. |
inventory_only |
No | true to re-export only products currently with inventory. Default false. |
A Connection-specific buffer must use a marketplace or ecommerce Connection. Get location IDs from locations_list, brands from products_brands, and parent SKUs from product read tools.
buffers_protect
Section titled “buffers_protect”Requires buffers:write. Creates a rule immediately and queues exports.
Pass kind, target, and integer qty for a shortcut:
kind |
target |
Effect |
|---|---|---|
store |
Location store_id |
Holds back units of every product at that location on every Connection. |
brand |
Brand name | Holds back units of each variant of that brand from total availability on every Connection. |
product |
Parent SKU | Holds back units of each variant of that product from total availability on every Connection. |
Use buffers_create for more specific rules, such as a brand at one location or on one Connection.
buffers_update
Section titled “buffers_update”Requires buffers:write. Changes the rule immediately and queues exports.
Pass id from buffers_list and the new integer qty. Optional inventory_only defaults to false.
Only the quantity can change. To change the target, location, or Connection, delete the rule and create a new one.
buffers_delete
Section titled “buffers_delete”Requires buffers:write. User approval is required.
Pass id from buffers_list. Deleting a buffer removes its effect on the next export. Units previously held back become available to sales Connections.
Read buffers_list to verify rule changes. A saved rule does not confirm that every sales Connection has finished updating its stock.