> ## Documentation Index
> Fetch the complete documentation index at: https://docs.joinerywp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Available rule types

> Every registered condition and action with its settings fields, plus the site's roles and currency symbol. This is what the rules editor is built from.



## OpenAPI

````yaml /api-reference/openapi.json get /schema
openapi: 3.1.0
info:
  title: Joinery REST API
  version: 1.0.0
  description: >-
    Endpoints added to WordPress by Joinery Core, under /wp-json/joinery/v1.
    Price preview is public; rule management needs a user with the
    manage_woocommerce capability.
  license:
    name: GPL-2.0-or-later
    identifier: GPL-2.0-or-later
servers:
  - url: https://{site}/wp-json/joinery/v1
    variables:
      site:
        default: example.com
        description: Your WordPress site's host.
security: []
tags:
  - name: Prices
    description: For storefronts, including headless.
  - name: Rules
    description: Manage pricing and reward rules.
paths:
  /schema:
    get:
      tags:
        - Rules
      summary: Available rule types
      description: >-
        Every registered condition and action with its settings fields, plus the
        site's roles and currency symbol. This is what the rules editor is built
        from.
      operationId: ruleSchema
      responses:
        '200':
          description: Rule types.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuleSchema'
        '401':
          description: Not signed in.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Needs the manage_woocommerce capability.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - applicationPassword: []
        - cookieNonce: []
components:
  schemas:
    RuleSchema:
      type: object
      properties:
        conditions:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              label:
                type: string
              scope:
                type: string
                enum:
                  - cart
                  - item
              fields:
                type: array
                items:
                  type: object
        actions:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              label:
                type: string
              kind:
                type: string
                enum:
                  - item_price
                  - cart_discount
                  - event
              fields:
                type: array
                items:
                  type: object
        roles:
          type: object
          additionalProperties:
            type: string
        currency:
          type: string
          example: $
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        data:
          type: object
          properties:
            status:
              type: integer
  securitySchemes:
    applicationPassword:
      type: http
      scheme: basic
      description: >-
        A WordPress application password (Users → Profile → Application
        passwords).
    cookieNonce:
      type: apiKey
      in: header
      name: X-WP-Nonce
      description: >-
        The logged-in cookie plus a wp_rest nonce, for requests from wp-admin or
        the same site.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.