Skip to content
Kaizena FlowDocs
Search

Search the docs

Settings

The owner MCP's tools for the store's settings.

ToolWhat it doesGatePermission
work_summaryWork summarynonesettings:read
draft_workflowDraft workflownonesettings:write
shipping_overviewShipping overviewnonesettings:read
notification_settingsNotification settingsnonesettings:read
order_rulesOrder rulesnonesettings:read
search_insightsSearch insightsnonesettings:read
search_merchandisingSearch merchandisingnonesettings:read
save_search_synonymSave search synonympublicsettings:write
save_search_ruleSave search rulepublicsettings:write
delete_search_merchandisingDelete search merchandisingpublicsettings:write
market_price_rulesMarket price rulesnonesettings:read
set_market_price_ruleSet market price rulepublicsettings:write
customs_dutiesCustoms dutiesnonesettings:read
producer_registrationsProducer registrationsnonesettings:read
save_producer_registrationSave producer registrationpublicsettings:write
set_countriesSet countriespublicsettings:write
set_flat_shippingSet flat shippingpublicsettings:write
save_shipping_methodSave shipping methodpublicsettings:write
list_integrationsList integrationsnonesettings:read
price_displayPrice displaynonesettings:read
set_price_displaySet price displaypublicsettings:write
set_quote_requestsSet quote requestspublicsettings:write
checkout_questionsCheckout questionsnonesettings:read
save_checkout_questionSave checkout questionpublicsettings:write
list_domainsList domainsnonesettings:read
check_domainCheck domainnonesettings:read
list_dns_recordsList DNS recordsnonesettings:read
work_overviewWork overviewnonesettings:read
list_work_clientsList work clientsnonesettings:read
list_work_assignmentsList work assignmentsnonesettings:read
log_timeLog timenonesettings:write
issue_work_invoiceIssue work invoicesendsettings:write
cancel_purchaseCancel purchasenonesettings:write

Work summary

work_summary

What needs the person in Work across the stores this connection reaches, in one answer: overdue invoices, their own running timer, time ready to invoice, repeating invoices ready and drafts left waiting, urgent first; money per currency in minor units (never added across currencies), each store's figures, and a link to each screen in Kaizena Flow. Read only; takes no store.

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
inputobjectyes

Draft workflow

draft_workflow

Drafts a workflow from what the owner describes (D356), saved OFF: they test it on the latest event and switch it on at Settings, Workflows. trigger: one of the store's events (order.paid, order.sent, order.cancelled, order.refunded, customer.created, subscription.started, subscription.cancelled, return.requested, withdrawal.received, product.created, product.updated, stock.low, discount.created, support.waiting, deal.created, deal.stage_changed, deal.won, deal.lost, subscriber.subscribed, subscriber.unsubscribed, conversation.ended, conversation.rated, review.published, checkout.abandoned, form.response) or schedule, with schedule { every: day or week, at: HH:MM, weekday 1 to 7 for a week }. conditions (none for a schedule): { field, op (is, is_not, contains, more_than, less_than, at_least, is_one_of with the values between commas), value } on the trigger's fields, such as order.total (in the order's currency units), order.currency, order.market, order.lines.sku, order.shipping_address.country, customer.email, product.status, stock.available, return.kind; after order.paid also order.total_main (in the store's main currency), order.first_order (yes or no), order.buyer (business or consumer), order.products (product ids), order.delivery (shipping, pickup, local or none), order.backordered, order.gift, order.source (checkout, draft, subscription or delivery), order.tags, order.seller (store or host) and order.risk (normal, elevated, highest or none); customer.segment (is or is_not, a segment's id from list_segments) after an order, customer or subscription event. actions, 1 to 10: tag_order { tag }, note_order { text } and ask_ai_manager { question } after an order event; hold_order { reason } after order.paid (staff release it on the order page); tag_customer { tag } after an order, customer or subscription event; email_staff { subject, text }; post_slack { text }; send_request { endpointId } (one of the owner's endpoints) after any event. Never an email to a customer, a refund or a price.

  • Gate: none: it runs when called

  • Permission: settings:write

  • Scope: settings:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
namestring, 1 to 80 charactersyes
triggerstringyes
scheduleobject or nullno, default null
schedule.everyone of day, weekyes
schedule.atstring, matching ^([01]\d|2[0-3]):[0-5]\d$yes
schedule.weekdayinteger, 1 to 7 or nullno, default null
conditionslist of objects, at most 10 itemsno, default []
conditions[].fieldstringyes
conditions[].opone of is, is_not, contains, more_than, less_than, at_least, is_one_ofyes
conditions[].valuestring, at most 2,000 charactersyes
actionslist of shapes, 1 to 10 itemsyes

actions[] when kind is tag_order

FieldTypeRequiredDescription
actions[].kind"tag_order"yes
actions[].tagstring, 1 to 40 charactersyes

actions[] when kind is note_order

FieldTypeRequiredDescription
actions[].kind"note_order"yes
actions[].textstring, 1 to 1,000 charactersyes

actions[] when kind is tag_customer

FieldTypeRequiredDescription
actions[].kind"tag_customer"yes
actions[].tagstring, 1 to 40 charactersyes

actions[] when kind is email_staff

FieldTypeRequiredDescription
actions[].kind"email_staff"yes
actions[].subjectstring, 1 to 120 charactersyes
actions[].textstring, 1 to 2,000 charactersyes

actions[] when kind is post_slack

FieldTypeRequiredDescription
actions[].kind"post_slack"yes
actions[].textstring, 1 to 2,000 charactersyes

actions[] when kind is send_request

FieldTypeRequiredDescription
actions[].kind"send_request"yes
actions[].endpointIdstring (uuid)yes

actions[] when kind is ask_ai_manager

FieldTypeRequiredDescription
actions[].kind"ask_ai_manager"yes
actions[].questionstring, 1 to 400 charactersyes

actions[] when kind is hold_order

FieldTypeRequiredDescription
actions[].kind"hold_order"yes
actions[].reasonstring, 1 to 200 charactersyes

Shipping overview

shipping_overview

The store's shipping as its Shipping pages show it (D237), per country: the flat rate (the default, and what subscriptions, subscription boxes and draft orders pay), the shipping methods with their rates per zone and profile (flat, by weight or by basket value; a tier's lower bound counts and its upper bound does not), the zones (postal codes and prefixes), the shipping profiles with how many products each holds, the default weight per unit used for goods without a weight, the pickup places (price, how soon an order is usually ready) and the local delivery areas (postal codes or a radius, price, minimum basket, free above), with the page's warnings. Every amount is written by the store, VAT included, in the country's own currency: repeat it, never work one out, and never say what a particular basket pays (the cart and checkout do). Read-only: shipping is changed on the Shipping pages (open_admin_page, shipping).

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Feature: shop must be on in the store

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
marketstring, matching ^[A-Za-z]{2}$noOne country by its two-letter code (such as NO); leave it out for every country the store sells to.

Notification settings

notification_settings

The emails customers get about orders and returns (D238), as the Notifications page lists them: each one's name, when it is sent, whether it is on, off or always sent (the order confirmation, the renewal and change confirmations, the withdrawal acknowledgement and the return decisions are required; the acknowledgement's wording is fixed), and per language whether the store wrote its own subject, heading or text or uses the standard text. It never gives the words themselves. Read-only: switching an email and editing its words, with the preview and a test email, are done on the Notifications page (open_admin_page, notifications); who on the team gets staff alerts is the owner's page (notifications.staff).

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Feature: shop must be on in the store

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
notificationstring, matching ^[a-z_]+\.[a-z_]+$noOne email by its id, such as order.sent; leave it out for all of them.

Order rules

order_rules

The store's automation rules (D238), as the Automation page lists them: each rule's sentence (when an order is paid and its conditions hold, then tag it, notify staff or hold it), whether it is on, its place in the order rules run, and its last run; then the log's latest runs (newest first) with the order's number, whether the rule matched and what each condition and action came to. Amounts in a rule are in the store's main currency. Read-only: rules are made, changed, switched and deleted on the Automation page (open_admin_page, automation), and an order on hold is released on its own page.

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Feature: shop must be on in the store

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
rulestring, 1 to 80 charactersnoOne rule by its name or id; leave it out for every rule.
runsinteger, 0 to 50no, default 10How many of the latest runs to give (0–50).
matchedbooleannoOnly runs that matched (true) or did not (false).

Search insights

search_insights

What shoppers searched for in the store's search, most often first, and the searches that found nothing.

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Feature: shop must be on in the store

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
daysinteger, 1 to 90no, default 30
limitinteger, 1 to 30no, default 10How many at most (1–30).

Search merchandising

search_merchandising

The store's search as it has been tuned on the Search page (D324): its synonyms per language (each with its id and a line: "sofa = couch" finds both ways, "jumper → sweater" one way), its search rules (each with its id and a sentence: a product put first for some searches, a product or a category or tag moved up or down, searches sent to a page), the store's languages, and the searches of the last 30 days that found nothing, most often first. Read-only. Change it with save_search_synonym, save_search_rule or delete_search_merchandising (the owner's yes first).

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Feature: shop must be on in the store

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

Save search synonym

save_search_synonym

Adds a group of search synonyms, or changes one by its id from search_merchandising: words shoppers use for the same thing, in one of the store's languages. both: every word finds the others (2 to 20 words). one_way: each of words also finds each of means (1 to 20 each), never the other way. A word is a word or a short phrase of letters, digits, spaces, hyphens and apostrophes. A search that found nothing is often a word the products do not use: a synonym to the word they do use fixes it. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: settings:write

  • Scope: settings:write

  • Feature: shop must be on in the store

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
idstring (uuid)noA group's id from search_merchandising, to change it; leave it out for a new group.
languagestring, 2 to 20 charactersyesOne of the store's languages from search_merchandising, such as nb-NO or en.
kindone of both, one_wayyes
wordslist of string, 1 to 60 characters, 1 to 20 itemsyes
meanslist of string, 1 to 60 characters, at most 20 itemsnoFor one_way: what the words also find.

Save search rule

save_search_rule

Adds a search rule, or changes one by its id from search_merchandising. pin puts a product (its handle) first for the searches named, pins in position order; boost or bury moves a product, or a category or tag (its slug), up or down in the searches named, or in every search when none are named; redirect sends the searches named to a page of the store (page, a path on the store such as /category/sofas, never another website). match contains: searches holding a phrase's words in order; exact: only searches that are the phrase. A search that asked for an order (price, newest) keeps it. Use handles and slugs from list_products and list_categories: never invent one. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: settings:write

  • Scope: settings:write

  • Feature: shop must be on in the store

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
idstring (uuid)noA rule's id from search_merchandising, to change it; leave it out for a new rule.
actionone of pin, boost, bury, redirectyes
productstring, 1 to 200 charactersnoThe product's handle: for pin, boost or bury.
categorystring, 1 to 200 charactersnoA category's slug: for boost or bury, instead of a product.
tagstring, 1 to 200 charactersnoA tag's slug: for boost or bury, instead of a product.
pagestring, 1 to 2,000 charactersnoFor redirect: the page, as a path on the store.
searcheslist of string, 1 to 100 characters, at most 20 itemsno, default []The searches the rule is for; pin and redirect need at least one.
matchone of contains, exactno, default "contains"
positioninteger, 0 to 1,000no, default 0For pin: lower comes first.

Delete search merchandising

delete_search_merchandising

Removes a group of search synonyms or a search rule, by its id from search_merchandising (give one of the two). Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: settings:write

  • Scope: settings:write

  • Feature: shop must be on in the store

  • Hints: destructive, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
synonymstring (uuid)noA synonym group's id.
rulestring (uuid)noA search rule's id.

Market price rules

market_price_rules

How each of the store's countries gets its prices, as on the Countries page (D335): set by hand, or worked out from another country's prices by a rule (a percentage up or down, on the price before or with VAT, rounded and with an ending), and how many prices are the rule's now. A price typed by hand in a ruled country stays as typed. Read-only. Change it with set_market_price_rule (the owner's yes first).

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Feature: countries must be on in the store

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

Set market price rule

set_market_price_rule

Works out every price in a country from another country's prices, or sets them by hand again (from null: the prices stay as they are). The base country's prices are converted at the store's rates, changed by percent, and rounded; vat net takes the base country's VAT off and puts this country's back on, gross keeps the price with VAT as it is. Prices typed by hand in the country stay as typed. A country whose prices are worked out is never another rule's base, and the base country's prices are its own. Countries by code from market_price_rules. Needs the owner's approval: it changes many prices at once. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: settings:write

  • Scope: settings:write

  • Feature: countries must be on in the store

  • Hints: idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
countrystring, 2 charactersyesThe country whose prices are worked out, by code (SE).
fromstring, 2 characters or nullyesThe country they are worked out from (NO); null to set them by hand again.
percentnumber, -90 to 1,000no, default 0Up (+) or down (-), in percent: 10 is 10 % more.
vatone of net, grossno, default "net"
round_tonumber, 0 to 1,000noRound to steps of this amount in the country's currency (1 = whole units, 10 = tens); left out, not rounded.
endingnumber, at least 0noWith round_to: the price ends with this amount below the step (round_to 10, ending 9 makes 149, 159).

Customs duties

customs_duties

Customs and duties (D343) for one of the store's countries, as on Settings, Customs and duties: where the goods are sent from, whether they cross a customs border into it, who pays duties and import VAT there (DDP: collected at checkout with the order; DAP: the recipient pays the carrier on delivery, the default), and for its products (all active ones, or those named by handle, at most 30) each one's HS code and origin and an estimate of what one of it at its current price there pays in duty and import VAT, or why there is none (missing_hs: no HS code). Read-only. Every amount is an estimate from the platform's rates table: say so, and never give a rate or an amount the tool did not.

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Feature: shop must be on in the store

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
countrystring, 2 charactersyesThe country, by code (GB, NO, US).
productslist of string, 1 to 200 characters, at most 30 itemsnoProduct handles; left out, the store's active products.

Producer registrations

producer_registrations

The store's producer responsibility (D342), as on Settings, Producer responsibility: its registrations per scheme (packaging, electrical_equipment, batteries, textiles, furniture, tyres) and country, with number, authority, valid from and to, state today and whether the number shows on product pages, or why none is needed there; what is not sold today (no registration or exemption covers a scheme the products are ticked for in that country, whether none was recorded or the one recorded ended or has not begun: the cart and checkout refuse them there, from the day after the last one ends; a demo store or starting content is never held back). Read-only. Add or change one with save_producer_registration (the owner's yes first).

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Feature: shop must be on in the store

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

Save producer registration

save_producer_registration

Records a producer responsibility registration the owner gave you, or that none is needed in a country (kind exempt, with the owner's reason), or changes one by id. Never make up a number, an authority or a reason: ask the owner. Days are YYYY-MM-DD; valid_to is the last day it is valid (sales stop the day after unless another follows), null for open-ended. Countries by code from producer_registrations. Needs the owner's approval: it decides what shoppers in that country can buy. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: settings:write

  • Scope: settings:write

  • Feature: shop must be on in the store

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
idstring (uuid)noThe registration to change, from producer_registrations; left out to add one.
schemeone of packaging, electrical_equipment, batteries, textiles, furniture, tyresyes
countrystring, 2 charactersyesThe country, by code (NO).
kindone of registered, exemptno, default "registered"
numberstring, at most 100 charactersnoThe registration number, as the authority gave it.
authoritystring, at most 200 charactersnoWho gave it: the authority or producer responsibility organisation.
reasonstring, at most 300 charactersnoWith kind exempt: why no registration is needed there, in the owner's words.
show_numberbooleannoShow the number on the country's product pages; left out, as the page would start it.
valid_fromstringnoThe first day it is valid (YYYY-MM-DD); left out, today.
valid_tostring or nullnoThe last day it is valid (YYYY-MM-DD), null for open-ended.

Set countries

set_countries

The countries the store sells to, the whole list, as on the Countries page: each gets its own currency, language and prices. A country left out is no longer offered, its prices and settings kept. A new country needs its shipping price (set_flat_shipping) and its products' prices there. Runs at once while the store is being set up; once it is open it needs the owner's approval. On a store that is open it is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: settings:write

  • Scope: settings:write

  • Hints: idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
countrieslist of string, matching ^[A-Za-z]{2}$, 1 to 60 itemsyesEvery country the store sells to, by two-letter code: the whole list. A country left out is no longer offered; its prices and settings are kept for when it comes back. With Several countries off (Settings, Features) it is one country.

Set flat shipping

set_flat_shipping

The flat shipping rate per country, as on the Shipping page: the price every basket can pay there (with VAT, in the country's own currency) and optionally free shipping above a basket value. Every country the store sells to needs one. Runs at once while the store is being set up; once it is open it needs the owner's approval. On a store that is open it is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: settings:write

  • Scope: settings:write

  • Feature: shop must be on in the store

  • Hints: idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
rateslist of objects, 1 to 60 itemsyesThe countries to change; the others keep their rate.
rates[].countrystring, matching ^[A-Za-z]{2}$yes
rates[].pricestring, 1 to 20 charactersyesThe shipping price, with VAT, as text in the country's own currency: "79" or "79,50"; "0" is free.
rates[].free_overstring, 1 to 20 characters or nullnoFree shipping when the basket is worth at least this, as text in the same currency; null takes it away; left out, it stays as it is.

Save shipping method

save_shipping_method

Makes or changes a shipping method of a country, as the method editor does: its name, transit days, free-above amount, whether it is offered, and its prices per zone and profile (one flat price, or tiers by weight or basket value). Shoppers choose among the methods that price their basket; the flat rate is charged when none does. Read shipping_overview first. Runs at once while the store is being set up; once it is open it needs the owner's approval. On a store that is open it is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: settings:write

  • Scope: settings:write

  • Feature: shop must be on in the store

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
methodstring, 1 to 200 charactersnoThe method to change, by its name in that country or its id (shipping_overview); left out to make a new one.
countrystring, matching ^[A-Za-z]{2}$yesThe country the method is for.
namestring, 1 to 60 charactersnoIts name as shoppers see it, in the main language, such as Home delivery. Needed for a new method.
namesmap of string, 2 to 10 characters to string, at most 60 charactersnoIts name in the store's other languages, by locale.
transit_daysobject or nullnoHow many days delivery takes, such as {min: 1, max: 3}; null takes it away.
transit_days.mininteger, 0 to 60yes
transit_days.maxinteger, 0 to 60yes
free_overstring, 1 to 20 characters or nullnoFree with this method when the basket is worth at least this, as text in the country's own currency; null takes it away.
activebooleannoOffered at checkout; a new method is offered unless false.
rateslist of objects, 1 to 40 itemsnoIts prices, every block of them: they replace the method's. Needed for a new method; left out, a change keeps them.
rates[].zonestring, at most 200 characters or nullnoA shipping zone of the country by its name or id (shipping_overview lists them); left out or null: the rest of the country.
rates[].profilestring, at most 200 characters or nullnoA shipping profile by its name or id; left out or null: General, every product not in another profile.
rates[].tierslist of objects, at most 10 itemsyesOne flat price, or tiers that meet with no gap (the first from 0, each from where the one before ends, only the last open); [] is not offered there.
rates[].tiers[].byone of flat, weight, valueyesflat: one price; weight: by the parcel's weight in grams; value: by the basket's value.
rates[].tiers[].fromnumber or string, at most 20 charactersnoWhere the tier starts: grams for weight, an amount as text for value; 0 (left out) for the first. Not for flat.
rates[].tiers[].up_tonumber or string, at most 20 characters or nullnoWhere it ends, in the same unit, where the next starts; left out or null for the last. Not for flat.
rates[].tiers[].pricestring, 1 to 20 charactersyesThe price, with VAT, as text in the country's own currency: "79" or "79,50"; "0" is free.

List integrations

list_integrations

The store's connected services (Zapier, Make and Slack): which events each gets, and whether deliveries have failed lately.

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

Price display

price_display

How the shop shows prices and quantities (D429, D430), as on Settings, Prices and quantity: decimals on whole amounts (always, or hide_whole: 499 kr while 499,50 kr keeps them; never a rounding) for the store and each country of its own, the words before and after a product's price by language (From, /pc), and how product pages offer a quantity (buttons: − and +; box: the number; hidden); and who may request a quote (D431, Settings, Orders: off, everyone, business) with how many requests wait. Read-only. Change them with set_price_display and set_quote_requests (the owner's yes first); a product's own words and price on request are update_product's.

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Feature: shop must be on in the store

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

Set price display

set_price_display

Changes how the shop shows prices and quantities: decimals on whole amounts for the store or a country, the store's words before and after a product's price in a language, and the quantity chooser on product pages. Only what is given changes. Words are short and plain: no percentage, no claims such as best price or only today (they are checked and refused with the reason). Never make words up: use the owner's. Needs the owner's approval: every price shoppers see follows. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: settings:write

  • Scope: settings:write

  • Feature: shop must be on in the store

  • Hints: idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
decimalsone of always, hide_wholenoalways: every price with its decimals (499,00 kr); hide_whole: whole amounts without them (499 kr), others keep them (499,50 kr). Never a rounding.
countrieslist of objects, at most 40 itemsnoCountries that show decimals differently from the store; only the countries given change.
countries[].countrystring, 2 charactersyesOne of the store's countries, by code (SE).
countries[].decimalsone of store, always, hide_wholeyesstore: as the store; always or hide_whole: this country's own.
wordslist of objects, at most 20 itemsnoThe store's words before and after a product's price, by language; only the languages given change.
words[].languagestring, 2 to 10 charactersyesOne of the store's languages, by code (nb, sv, en) or locale (nb-NO).
words[].beforestring, at most 96 charactersno, default ""Shown before the price, such as From or Only (at most 24 characters); "" for none.
words[].afterstring, at most 96 charactersno, default ""Shown after the price, such as /pc, per person or ,- (at most 24 characters); "" for none.
quantity_chooserone of buttons, box, hiddennoHow product pages offer a quantity: buttons (− and + around a number), box (the number alone) or hidden (no chooser; Add to cart adds the least allowed).

Set quote requests

set_quote_requests

Chooses who may request a quote on products that show their price (D431): off, everyone (beside Add to cart and in the cart), or business buyers only. A product priced on request always offers it. Requests arrive as drafts marked quote (list_draft_orders). Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: settings:write

  • Scope: settings:write

  • Feature: shop must be on in the store

  • Hints: idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
whoone of off, everyone, businessyesoff: no Request a quote on products that show their price; everyone: beside Add to cart and in the cart for every shopper; business: only for business buyers. A product priced on request offers it whatever this says.

Checkout questions

checkout_questions

The questions the store's checkout asks (D357), as on Settings, Checkout rules: each one's place (1 is asked first), its words in the main language and the others, text or tick box, required or not, its help line, and whether it is on; how many a store may have. Shoppers' answers are not here: they are on each order's page. Read-only. Add, change, switch or move one with save_checkout_question (the owner's yes first).

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Feature: shop must be on in the store

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

Save checkout question

save_checkout_question

Adds a question the checkout asks (in the owner's words; never make one up), or changes one by id from checkout_questions: its words in any of the store's languages, text or tick box, required, its help line, on or off, and its place (1 first; the others keep their order). Only what is given changes. Ask only what the order needs: nothing about health, beliefs or other sensitive matters unless the owner says the sale cannot be made without it (GDPR article 9). A store with a question on loses express checkout. Deleting one is done on the page. Needs the owner's approval: shoppers are asked it. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: settings:write

  • Scope: settings:write

  • Feature: shop must be on in the store

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
idstring (uuid)noThe question to change, from checkout_questions; left out to add one.
kindone of text, checkboxnotext: a line the shopper types (at most 500 characters); checkbox: a tick box. Adding: text unless given.
requiredbooleannoMust be answered before the order is placed (a tick box: ticked). Adding: optional unless given.
questionstring, 1 to 80 charactersnoThe question in the store's main language, in the owner's words. Needed when adding.
question_inlist of objects, at most 20 itemsnoThe question in the store's other languages; only the languages given change.
question_in[].languagestring, 2 to 10 charactersyesOne of the store's languages, by code (nb, sv, en) or locale (nb-NO).
question_in[].textstring, at most 80 charactersyesThe words in that language; "" takes them away there.
helpstring, at most 200 characters or nullnoA line under the question in the main language; "" or null takes it away.
help_inlist of objects, at most 20 itemsnoThe help line in the store's other languages; only the languages given change.
help_in[].languagestring, 2 to 10 charactersyesOne of the store's languages, by code (nb, sv, en) or locale (nb-NO).
help_in[].textstring, at most 200 charactersyesThe words in that language; "" takes them away there.
onbooleannoAsked at checkout (true) or kept but not asked (false). Adding: on unless given.
placeinteger, at least 1noWhere it is asked, 1 being first; the others keep their order. A place past the end is the end.

List domains

list_domains

The store's domains (D315): each one's address, whether it is the store's address or still waiting for its DNS, which language it is for, who it is registered with and when it expires, whether Kaizena Flow keeps its DNS, and its health in one line with how many findings need the owner. Every fact is read by code (the store's checks, public DNS, the registry's RDAP record); repeat them, never guess one. Read-only. For the findings of one domain call check_domain.

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

Check domain

check_domain

Checks one of the store's domains now (D315) and gives each finding with how serious it is and what fixes it: the DNS not pointing at the store, the proof record missing, an expiry close with no renewal, an unconfirmed registrant email, a CAA record that stops the certificate, two SPF records, email without SPF or DMARC. The findings are made in code: repeat them in their own words, never add one. A fix names a tool (once it exists for this store) or the place on the Domains page; where the DNS is kept elsewhere, the owner changes it there, and the page shows the records.

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Hints: read-only, idempotent, open world

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
domainstring, 3 to 253 charactersyesThe domain, such as example.no, as list_domains gives it.

List DNS records

list_dns_records

The DNS records of one of the store's domains whose DNS Kaizena Flow keeps (D315), read live: each record's type, name and value, which are kept for the store (never changed by you), and the latest changes with their ids for undo_dns_change. Read-only.

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Hints: read-only, idempotent, open world

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
domainstring, 3 to 253 charactersyesThe domain, as list_domains gives it.

Work overview

work_overview

The store's Work (clients, time and invoices): unbilled time by client with its amount, overdue invoices, drafts, recurring invoices ready, and running timers; amounts in each client's currency. Read-only; refused when Work is not on.

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

List work clients

list_work_clients

Work's clients: each one's name, currency, active assignments and unbilled time. Read-only.

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

List work assignments

list_work_assignments

Work's open assignments (id, client, name, how it is billed, its draft invoice) and the draft invoices with their totals. Read-only.

  • Gate: none: it runs when called

  • Permission: settings:read

  • Scope: settings:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

Log time

log_time

Logs time on a Work assignment in the person's name, on today's date in the store's time zone unless given.

  • Gate: none: it runs when called

  • Permission: settings:write

  • Scope: settings:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
assignmentstring, 1 to 200 charactersyesThe assignment's id, or its name (with the client's name before it when two share a name).
minutesinteger, 1 to 1,440yesHow long, in minutes (90 for an hour and a half).
datestring, matching ^\d{4}-\d{2}-\d{2}$noThe day the work was done, YYYY-MM-DD; leave out for today.
billablebooleanno, default true
notestring, at most 500 charactersnoWhat was done.

Issue work invoice

issue_work_invoice

Issues a Work draft invoice today, with the next number of the store's series, and emails it to the client unless said. An issued invoice is a legal document: it cannot be changed, only credited. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: send: Sends something in the store's name

  • Permission: settings:write

  • Scope: settings:write

  • Hints: open world

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
invoicestring, 1 to 200 charactersyesThe draft's id, or the client's name when it has one draft.
emailbooleanno, default trueEmail it to the client's billing address.

Cancel purchase

cancel_purchase

Calls off a purchase the owner approved that is still open: its card is closed at once (a purchase already charged keeps its charge; only the card closes). Give its id from list_purchases.

  • Gate: none: it runs when called

  • Permission: settings:write

  • Scope: settings:write

  • Hints: destructive, idempotent, open world

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
purchasestring (uuid)yes

Made from the API contract, version 1.57This page as Markdown

Was this page helpful?