ai-akari-ai · Schema

CommercePreflightReadiness

AIMusicDigitalTownCommunityJapanese

Properties

Name Type Description
version string
org_id string
checked_at string
preflight_version string
evaluator_version string
policy_resolution object
selected_policy object
configuration object
checks array
counts object
configuration_complete boolean
all_disabled boolean
diagnostics array
View JSON Schema on GitHub

JSON Schema

ai-akari-ai-commerce-preflight-readiness-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ai-akari-ai/json-schema/ai-akari-ai-commerce-preflight-readiness-schema.json",
  "title": "CommercePreflightReadiness",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ai-akari-ai-openapi.json#/components/schemas/CommercePreflightReadiness",
  "type": "object",
  "properties": {
    "version": {
      "type": "string",
      "const": "commerce-preflight-readiness-v1"
    },
    "org_id": {
      "type": "string",
      "format": "uuid"
    },
    "checked_at": {
      "type": "string",
      "format": "date-time",
      "maxLength": 40,
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T(?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\\.[0-9]+)?(?:Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])$"
    },
    "preflight_version": {
      "type": "string",
      "const": "commerce-preflight-v2"
    },
    "evaluator_version": {
      "type": "string",
      "const": "policy-graph/1.1+commerce-preflight/2.0"
    },
    "policy_resolution": {
      "type": "object",
      "properties": {
        "requested_policy_version": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            {
              "type": "null"
            }
          ]
        },
        "resolved_policy_version": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "exact_match",
            "newest_active",
            "requested_not_found",
            "policy_guard"
          ]
        }
      },
      "required": [
        "requested_policy_version",
        "resolved_policy_version",
        "status"
      ],
      "additionalProperties": false
    },
    "selected_policy": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "bundle_id": {
              "type": "string",
              "format": "uuid"
            },
            "version": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "effective_from": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "maxLength": 40,
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T(?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\\.[0-9]+)?(?:Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "effective_to": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "maxLength": 40,
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T(?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\\.[0-9]+)?(?:Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "rules_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "parameters_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "commerce_preflight_digest": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^sha256:[a-f0-9]{64}$"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "bundle_id",
            "version",
            "effective_from",
            "effective_to",
            "rules_sha256",
            "parameters_sha256",
            "commerce_preflight_digest"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "configuration": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "version": {
              "type": "string",
              "const": "commerce-preflight-v2"
            },
            "max_fact_age_seconds": {
              "type": "integer",
              "minimum": 1,
              "maximum": 86400
            },
            "allowed_sources": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:/-]*$"
              },
              "minItems": 1,
              "maxItems": 100
            },
            "checks": {
              "type": "object",
              "properties": {
                "P01": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "floor_percent": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        }
                      },
                      "required": [
                        "enabled",
                        "floor_percent"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P02": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "tolerance_percent": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        }
                      },
                      "required": [
                        "enabled",
                        "tolerance_percent"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P03": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "minimum_available": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000000
                        }
                      },
                      "required": [
                        "enabled",
                        "minimum_available"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P04": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "allow",
                            "block"
                          ]
                        },
                        "countries": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "maxItems": 250
                        }
                      },
                      "required": [
                        "enabled",
                        "mode",
                        "countries"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P05": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "max_concurrent_discounts": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 32
                        }
                      },
                      "required": [
                        "enabled",
                        "max_concurrent_discounts"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P06": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "tolerance_percent": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        }
                      },
                      "required": [
                        "enabled",
                        "tolerance_percent"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P07": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "max_redemptions": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000000
                        },
                        "new_account_age_days": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100000
                        }
                      },
                      "required": [
                        "enabled",
                        "max_redemptions",
                        "new_account_age_days"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P08": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P09": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "amount": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1000000000000
                        },
                        "currency": {
                          "type": "string",
                          "pattern": "^[A-Z]{3}$"
                        }
                      },
                      "required": [
                        "enabled",
                        "amount",
                        "currency"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P10": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "max_prior_refunds": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000000
                        }
                      },
                      "required": [
                        "enabled",
                        "max_prior_refunds"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P11": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "return_window_days": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 3650
                        }
                      },
                      "required": [
                        "enabled",
                        "return_window_days"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P12": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "unattended_limit": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1000000000000
                            },
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            }
                          },
                          "required": [
                            "amount",
                            "currency"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "enabled",
                        "unattended_limit"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P13": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P14": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "window_days": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 3650
                        }
                      },
                      "required": [
                        "enabled",
                        "window_days"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P15": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "floor": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1000000000000
                            },
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            }
                          },
                          "required": [
                            "amount",
                            "currency"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "enabled",
                        "floor"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "P16": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "const": true
                        },
                        "minimum_annualized_yield_percent": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        }
                      },
                      "required": [
                        "enabled",
                        "minimum_annualized_yield_percent"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "required": [
            "version",
            "max_fact_age_seconds",
            "allowed_sources",
            "checks"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "checks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "P01",
              "P02",
              "P03",
              "P04",
              "P05",
              "P06",
              "P07",
              "P08",
              "P09",
              "P10",
              "P11",
              "P12",
              "P13",
              "P14",
              "P15",
              "P16"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled",
              "missing",
              "unsupported",
              "unavailable"
            ]
          }
        },
        "required": [
          "id",
          "status"
        ],
        "additionalProperties": false
      },
      "minItems": 16,
      "maxItems": 16
    },
    "counts": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "integer",
          "minimum": 0,
          "maximum": 16
        },
        "disabled": {
          "type": "integer",
          "minimum": 0,
          "maximum": 16
        },
        "missing": {
          "type": "integer",
          "minimum": 0,
          "maximum": 16
        },
        "unsupported": {
          "type": "integer",
          "minimum": 0,
          "maximum": 16
        },
        "unavailable": {
          "type": "integer",
          "minimum": 0,
          "maximum": 16
        }
      },
      "required": [
        "enabled",
        "disabled",
        "missing",
        "unsupported",
        "unavailable"
      ],
      "additionalProperties": false
    },
    "configuration_complete": {
      "type": "boolean"
    },
    "all_disabled": {
      "type": "boolean"
    },
    "diagnostics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "MISSING_ORG_POLICY_BUNDLE",
              "NO_ACTIVE_ORG_POLICY_BUNDLE",
              "REQUESTED_POLICY_BUNDLE_NOT_FOUND",
              "COMMERCE_POLICY_MISSING",
              "COMMERCE_POLICY_UNSUPPORTED",
              "CHECK_POLICY_MISSING",
              "ALL_CHECKS_DISABLED"
            ]
          },
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9_.]+$"
          }
        },
        "required": [
          "code",
          "path"
        ],
        "additionalProperties": false
      },
      "maxItems": 32
    }
  },
  "required": [
    "version",
    "org_id",
    "checked_at",
    "preflight_version",
    "evaluator_version",
    "policy_resolution",
    "selected_policy",
    "configuration",
    "checks",
    "counts",
    "configuration_complete",
    "all_disabled",
    "diagnostics"
  ],
  "additionalProperties": false
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/ai-akari-ai-commerce-preflight-readiness"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.