Merchant

Update the store's agent rules

PUT
/api/merchant/rules

Applies from the next checkout, for Undo's agent and every MCP agent. Each change is recorded in the store's event chain.

Request Body

application/json

The rules to apply from the next checkout.

The store's rules for agents. They apply from the next checkout.

blockBelow*|

Refuse agents scoring below this. Null turns it off.

Range1 <= value <= 100
extendBelow*|

Give agents scoring below this a longer window. Null turns it off.

Range1 <= value <= 100
extendMinutes*integer

How much longer.

Range15 <= value <= 1440
blockUnverified*boolean

Refuse agents without a registered operator key.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/api/merchant/rules" \  -H "Content-Type: application/json" \  -d '{    "blockBelow": null,    "extendBelow": 50,    "extendMinutes": 360,    "blockUnverified": false  }'
{  "blockBelow": null,  "extendBelow": 50,  "extendMinutes": 360,  "blockUnverified": false}