Fejlesztőknek
Kezdj bele
AI/Tool reference/Catalog/Readiness and delivery profiles

Readiness and delivery profiles

Ez az oldal még csak angolul érhető el.

The 13 tools of the Readiness and delivery profiles toolset in the Catalog area, with their permissions, approval rules and inputs.

Ezen az oldalon

Toolset readiness, 13 tools.

Records

delivery_profiles

The delivery promise profiles of the store: each with its name, the products it applies to and the delivery components it is built from, and which one is the default. There is one record; pass any id, e.g. "current".

  • Permission: products.read
  • Tools: delivery_profiles_get

product_delivery

Which delivery profile a product and each of its variants use, whether chosen on the product or inherited, and how it resolves. Pass the product id.

  • Permission: products.read
  • Tools: product_delivery_get

product_readiness

Whether one product is ready to sell and to publish: the findings of the readiness checks and what blocks publishing. Pass the product id. include full runs the slower checks too.

  • Permission: products.read
  • Tools: product_readiness_get
  • Includes: full

readiness_check

A check the readiness engine runs on the store, a product or a variant: what it asserts, how severe it can be, whether it blocks publishing, and whether it is active or disabled.

  • Permission: products.read
  • Tools: readiness_check_list

store_readiness

Whether the store is ready to sell: the findings of the store-level readiness checks with their fixes. include full runs the slower checks too. There is one record; pass any id, e.g. "current".

  • Permission: products.read
  • Tools: store_readiness_get
  • Includes: full

variant_readiness

Whether one variant is ready to sell: the findings of the variant readiness checks. Pass <product id>/<variant id>.

  • Permission: products.read
  • Tools: variant_readiness_get
  • Includes: full

Actions

delivery_profile_delete

Delete a delivery profile; products that used it fall back to the default.

  • Action key: delivery_profile.delete
  • Permission: products.write
  • Approval: Always waits for a person to approve it.
  • Effect: Changes the live store.
  • Destructive: in compact mode it runs with run_destructive_action.
  • Retries: safe to repeat with the same input.
FieldTypeRequiredDescription
profile_idstringyes1 to 64 characters

Example input:

{
  "profile_id": "019bb276-bd8c-7a66-9c86-722d45f4e493"
}

delivery_profile_save

Create a delivery profile, or change one by passing its id.

components are the delivery steps in the shape delivery_profiles_get answers (at most 8); read the document first and copy the shape. applicability.mode any|all decides whether a product needs one or all of the listed categories, collections or tags.

  • Action key: delivery_profile.save
  • Permission: products.write
  • Approval: Waits for approval when the store requires it for this action.
  • Effect: Changes the live store.
  • Retries: safe to repeat with the same input.
FieldTypeRequiredDescription
idstringPass to change an existing profile. 1 to 64 characters
namestringyes1 to 80 characters
descriptionstringat most 400 characters
enabledboolean
applicabilityobject
applicability.modestringyesone of "any", "all"
applicability.category_idslist of stringat most 32 items. 1 to 64 characters
applicability.collection_idslist of stringat most 32 items. 1 to 64 characters
applicability.tag_idslist of stringat most 32 items. 1 to 64 characters
componentslist of map of string or number or boolean or list of any value or map of any value or nullyesat most 8 items

Example input:

{
  "name": "Ships in 2 days",
  "components": []
}

delivery_profile_set_default

Choose the delivery profile products without their own use. null clears it.

  • Action key: delivery_profile.set_default
  • Permission: products.write
  • Approval: Waits for approval when the store requires it for this action.
  • Effect: Changes the live store.
  • Retries: safe to repeat with the same input.
FieldTypeRequiredDescription
profile_idstring or nullyes1 to 64 characters

Example input:

{
  "profile_id": "019bb276-bd8c-7a66-9c86-722d45f4e493"
}

product_delivery_set

Choose the delivery profile of a product and of its variants.

mode inherit follows the level above, none shows no delivery promise, profile uses profile_id. Variants not listed keep their choice.

  • Action key: product_delivery.set
  • Permission: products.write
  • Approval: Waits for approval when the store requires it for this action.
  • Effect: Changes the live store.
  • Retries: safe to repeat with the same input.
FieldTypeRequiredDescription
product_idstringyes
productobject, one shape of:
product[mode=inherit].modestringyesalways "inherit"
product[mode=none].modestringyesalways "none"
product[mode=profile].modestringyesalways "profile"
product[mode=profile].profile_idstringyes1 to 64 characters
variantslist of objectat most 200 items
variants[].variant_idstringyes1 to 64 characters
variants[].bindingobject, one shape of:yes
variants[].binding[mode=inherit].modestringyesalways "inherit"
variants[].binding[mode=none].modestringyesalways "none"
variants[].binding[mode=profile].modestringyesalways "profile"
variants[].binding[mode=profile].profile_idstringyes1 to 64 characters

Example input:

{
  "product_id": "019bb58e-0ec1-79c1-9f40-d39d8d07674b",
  "product": {
    "mode": "profile",
    "profile_id": "019bb276-bd8c-7a66-9c86-722d45f4e493"
  }
}

product_publish

Publish a product through the readiness gate.

Runs the readiness checks first: when something blocks publishing the product stays a draft and the blockers come back (the answer is still a success). force publishes anyway, so use it only when the merchant says so.

  • Action key: product.publish
  • Permission: products.write
  • Approval: Waits for approval when the store requires it for this action.
  • Effect: Changes the live store.
  • Retries: safe to repeat with the same input.
FieldTypeRequiredDescription
product_idstringyes
forceboolean

Example input:

{
  "product_id": "019bb58e-0ec1-79c1-9f40-d39d8d07674b"
}

readiness_run_action

Run one of the one-click fixes the readiness findings offer.

action_id comes from the fixes the readiness findings offer; only actions of kind apply can run. target_id is the product, variant or record it fixes. A dry run says what it would change.

  • Action key: readiness.run_action
  • Permission: products.write
  • Approval: Always waits for a person to approve it.
  • Effect: Changes the live store.
  • Retries: runs at most once; a repeat with the same idempotency key returns the first result.
  • Dry run: supported, with dry_run set to true.
FieldTypeRequiredDescription
action_idstringyesat least 1 characters
target_idstring
paramsmap of string or number or boolean or list of any value or map of any value or null

Example input:

{
  "action_id": "core.link_default_sales_channel",
  "target_id": "019bb58e-0ec1-79c1-9f40-d39d8d07674b"
}

store_baseline_apply

Set up what the store needs to sell in a market: countries, currency, tax rates and a shipping option.

A dry run reports what would be created without changing anything. countries are two-letter codes, primary_country one of them. selling and shipping choose the kinds of products sold and how they ship.

  • Action key: store_baseline.apply
  • Permission: settings.write
  • Approval: Always waits for a person to approve it.
  • Effect: Changes the live store.
  • Retries: safe to repeat with the same input.
  • Dry run: supported, with dry_run set to true.
FieldTypeRequiredDescription
countrieslist of stringyes1 to 32 items. 2 to 2 characters
primary_countrystringyes2 to 2 characters
sellinglist of stringKinds of products sold. one of "physical", "digital", "undecided"
shippingstringone of "courier", "local", "digital", "later"
currency_codestring3 to 3 characters
standard_vat_ratesmap of number

Example input:

{
  "countries": [
    "hu"
  ],
  "primary_country": "hu",
  "currency_code": "huf"
}
Utoljára frissítve