ERP setup and automations: dry run by document, rule and run context, stock ledger split, webhook payloads
The automations dry run accepts a document, the catalog, usage, rules and runs publish more context, the stock ledger gains the initial split reason, the automation webhooks carry the same fields as the resources, and the Storefront is not granted to members. 0 new operations, 19 updated ones, 1 new rejection code.
2 December 2026 — The setup side of the omnichannel ERP gives integrators more to work
with in automations and in the stock ledger: a dry run that needs only the document it
samples, a catalog that says which triggers each action accepts, rules that publish their
last run and their pause, runs that name the document that started them, and webhooks
whose payloads carry the same fields. The company axis (/v1/companies/{company}/…) is
unchanged, and no operation is added, removed or renamed.
What is new
- Operations. 0 new operations and 19 updated ones: 13 of automations, 4 of events and webhook deliveries and 2 of the stock ledger. They are listed at the end of this page.
- MCP. No new tools. 7 existing tools publish a new description or input schema, and
each publishes the same changes as its operation.
search_stock_movementsandsearch_stock_transferscheck the values of their filters with the rules of their v1 routes (stock_movements.listandstock_transfers.list), so a rejected value answers with the same status,code,paramandsubcodeas the route. See the tool catalog. - Rejection codes. 1 new top-level code:
automation_dry_run_document_not_found(404). The text ofmodule_not_grantableis updated. See All rejection codes.
Summary by group
- Automations. The dry run (
automations.rules.dry_run) acceptsevent_aggregate_idand answers withsample. The catalog (automations.catalog.show) publishessupported_trigger_prefixesfor each action, and the trigger fields (automations.catalog.trigger_fields) publishlabelandentity_type. The usage (automations.usage.show) publishesby_ruleandprevious_period. The list of rules (automations.rules.list) filters bymodule, and the rule resource (automations.rules.*) publisheslast_runandpause. The runs (automations.runs.list,.show) publishdocument, the list filters by it, and the steps (automations.runs.steps.list) list insummary.createdwhat each one created. See Automations. - Stock ledger.
stock_movements.listandproducts.stock_movements.listaccept and publish the reasoninitial_split. See Inventory and warehouses. - Events.
events.list,events.show,webhook_endpoints.deliveries.listandwebhook_endpoints.deliveries.showdescribe the payloads of the automation events. See Events. - Members.
account.members.module_access.updatekeeps its contract; the description of its tool,update_account_member_module_access, names the Storefront among the modules that are not granted. - Returns. The buyer of a return (
buyer.address_lines, in the return resource of thereturns.*operations and of their MCP tools) writes the line of the town as «postal code town (province)» and adds the province only when it is not the town, compared without accents or case: «46001 Valencia», «30201 Cartagena (Murcia)». The shape of the field (list<string>) does not change.
Behaviors the contract defines
- Automations.
- The dry run (
automations.rules.dry_run, tooldry_run_automation_rule) works with onlyevent_aggregate_id:event_payloadis optional,data.sampleanswers{id, number, type}with the document that was used and, when both are sent,event_payloadprevails andsampleisnull. A document that does not exist, that belongs to another company or whose family has no sample payload responds404with codeautomation_dry_run_document_not_foundandparamevent_aggregate_id; the three cases answer the same. Sending onlyevent_aggregate_idmakes the server read the document, so the dry run also needs theautomation_runs:readpermission, in the API and in the tooldry_run_automation_rule; without it the response is403with codeinsufficient_scope. Withevent_payloadthe document is not read andautomations:readis enough. - The catalog (
automations.catalog.show, toolget_automation_catalog) publishessupported_trigger_prefixesfor each action: the list of trigger prefixes it accepts, ornullwhen it accepts any trigger. The trigger fields (automations.catalog.trigger_fields, toolget_automation_trigger_fields) publishlabel, which is thepathwhen the field has no label of its own, andentity_type. - The usage (
automations.usage.show, toolget_automation_usage) splits the month inby_rule({rule_id, name, runs}: the five largest rules and a row for the rest) and compares it withprevious_period({period, consumed}ornull). The split comes from the history of the last 30 days, so it can add up to less thanconsumed. - The list of rules (
automations.rules.list, toollist_automation_rules) filters bymodule: a known module that the plan does not include returns an empty list, and an unknown key responds400with codeparameter_invalid_enum. - The rule (
automations.rules.{list,show,create,update,activate,pause}, toolslist_automation_rules,get_automation_rule,create_automation_rule,update_automation_rule,activate_automation_ruleandpause_automation_rule) publisheslast_run({id, status, finished_at}ornull) andpause({kind, at, consecutive_failures, last_discard_reason, last_discard_reason_label}ornull, withkindmanualorauto). Both are always present. - The run (
automations.runs.{list,show}, toolslist_automation_runsandget_automation_run) publishesdocument({type, id, number, origin, warehouse_name, counterparty_name}ornull), the triggering document, and the list filters bydocumentwith the exact number within the retention of 30 days. The filter by rule is stillautomation_rule_id. Itsrule_snapshot, the definition the run used, holdstrigger_type,conditionsandactions;conditionsis always an object, so a rule without conditions publishes{}, as the rule and its versions do. - The result of a step (
automations.runs.steps.list) lists insummary.created[]what it created, as{type, id, number, key}, wheretypeisdelivery_note,purchase_orderortaskandkeyappears only in a task. The list is empty when the step created nothing. The step ofcreate_taskalso publishes insummary.projectthe project of the task, as{id, name}.
- The dry run (
- The stock ledger gains
initial_split.stock_movements.listandproducts.stock_movements.list(toolssearch_stock_movementsandlist_product_stock_movements) accept the valueinitial_splitinreason, and the rows publish it. It belongs to the groupinitialand records the exit from the default warehouse in the initial split of the stock. The toolsearch_stock_movementsanswers like its route: an unknownreasonorsource_typeresponds400with codeparameter_invalid_enumand thatparam, asource_idwithoutsource_typeresponds400with codeparameter_missingandparamsource_type, and a period whoseoccurred_fromis later than itsoccurred_toreturns an empty page. - The automation webhooks carry the fields of the resources. In the events
automation_rule.activated,automation_rule.pausedandautomation_rule.auto_paused,data.objectpublishespauseandlast_run; inautomation_run.started,automation_run.completed,automation_run.failedandautomation_run.step_dead_letteredit publishesdocument, with the same serialization as the v1 resources.automation_run.step_dead_letteredaddsstep_indexanddiscard_reasonnext toobject. They are read byevents.list,events.show,webhook_endpoints.deliveries.listandwebhook_endpoints.deliveries.show, and by the toolslist_events,get_event,list_webhook_deliveriesandget_webhook_delivery. - Granting the Storefront to a member is rejected. The operation
public-api.v1.account.members.module_access.update(PATCH /accounts/{account}/members/{member}/module-access, scopemembers:write, toolupdate_account_member_module_access) responds422with codebusiness_rule_violation, subcodemodule_not_grantableandparamgrantswhen the grants includestorefront_api, a module reserved to administrators that is never granted. The response has the shape that the operation already had, and the grant is not written.
Where to read next
Automations, Events, Inventory and warehouses, the tool catalog and All rejection codes.