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

# List seller pricing rules

> Pages through configured rules, including inactive entries, or looks up one target or rule ID. Look up a target to obtain its current revision before a write.



## OpenAPI

````yaml /openapi.json post /pricing/listRules
openapi: 3.1.1
info:
  title: Arcade API
  version: '1'
  description: >-
    Generate patterns and custom products from text prompts, and order them.
    Every request is a POST with a JSON body.
servers:
  - url: https://staging-platform.arcade.ai/v1
    description: Staging
security:
  - apiKey: []
tags:
  - name: Patterns
    description: Reusable print patterns you generate or upload.
  - name: Refine
    description: Edit, recolor, crop and extend patterns.
  - name: Jobs
    description: Long-running work.
  - name: References
    description: Images that guide generation.
  - name: Models
    description: The models that generate patterns.
  - name: Categories
    description: Product types and their options.
  - name: Products
    description: Products generated from a prompt or made from your patterns.
  - name: Pricing
    description: Your seller pricing rules and previews.
  - name: Checkouts
    description: Checkouts for ordering products.
  - name: Orders
    description: Your orders.
  - name: Feedback
    description: Reports about the API to Arcade.
paths:
  /pricing/listRules:
    post:
      tags:
        - Pricing
      summary: List seller pricing rules
      description: >-
        Pages through configured rules, including inactive entries, or looks up
        one target or rule ID. Look up a target to obtain its current revision
        before a write.
      operationId: pricing.listRules
      requestBody:
        required: true
        content:
          application/json:
            schema:
              anyOf:
                - type: object
                  properties:
                    limit:
                      type: integer
                      minimum: 1
                      maximum: 100
                      description: Page size. Defaults to 25.
                    cursor:
                      type: string
                      minLength: 1
                      maxLength: 1024
                      description: The nextCursor from a previous rule inventory page.
                  additionalProperties: false
                - type: object
                  properties:
                    target:
                      anyOf:
                        - type: object
                          properties:
                            type:
                              const: account
                          required:
                            - type
                          additionalProperties: false
                        - type: object
                          properties:
                            type:
                              const: category
                            categoryId:
                              type: string
                              minLength: 1
                              description: The category's ID, from `categories/list`.
                          required:
                            - type
                            - categoryId
                          additionalProperties: false
                        - type: object
                          properties:
                            type:
                              const: product
                            productId:
                              type: string
                              minLength: 1
                              description: The product's ID.
                          required:
                            - type
                            - productId
                          additionalProperties: false
                  required:
                    - target
                  additionalProperties: false
                - type: object
                  properties:
                    ruleId:
                      type: string
                      minLength: 1
                      maxLength: 1024
                      description: An opaque ID for a rule owned by your account.
                  required:
                    - ruleId
                  additionalProperties: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  entries:
                    type: array
                    items:
                      anyOf:
                        - type: object
                          properties:
                            ruleId:
                              type: string
                              minLength: 1
                              maxLength: 1024
                              description: An opaque ID for a rule owned by your account.
                            revision:
                              type: string
                              minLength: 1
                              maxLength: 1024
                              description: >-
                                The current direct revision from
                                pricing.listRules or a write receipt.
                            configuredRule:
                              anyOf:
                                - anyOf:
                                    - type: object
                                      properties:
                                        type:
                                          const: fixed
                                        price:
                                          type: object
                                          properties:
                                            amount:
                                              type: string
                                              pattern: ^\d{1,10}(?:\.\d{1,2})?$
                                              description: >-
                                                A nonnegative USD amount up to
                                                9999999999.99, with up to two decimal
                                                places.
                                            currency:
                                              const: USD
                                          required:
                                            - amount
                                            - currency
                                          additionalProperties: false
                                      required:
                                        - type
                                        - price
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        type:
                                          const: wholesale_amount
                                        delta:
                                          type: object
                                          properties:
                                            amount:
                                              type: string
                                              pattern: ^[+-]?\d{1,10}(?:\.\d{1,2})?$
                                              description: >-
                                                A signed USD amount up to 9999999999.99
                                                in magnitude, with up to two decimal
                                                places.
                                            currency:
                                              const: USD
                                          required:
                                            - amount
                                            - currency
                                          additionalProperties: false
                                      required:
                                        - type
                                        - delta
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        type:
                                          const: wholesale_percent
                                        percent:
                                          type: string
                                          pattern: ^[+-]?\d{1,5}(?:\.\d{1,2})?$
                                          description: >-
                                            A signed percent from -100.00 through
                                            10000.00, with up to two decimal places.
                                      required:
                                        - type
                                        - percent
                                      additionalProperties: false
                                - type: 'null'
                            target:
                              anyOf:
                                - type: object
                                  properties:
                                    type:
                                      const: account
                                  required:
                                    - type
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    type:
                                      const: category
                                    categoryId:
                                      type: string
                                      minLength: 1
                                      description: >-
                                        The category's ID, from
                                        `categories/list`.
                                  required:
                                    - type
                                    - categoryId
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    type:
                                      const: product
                                    productId:
                                      type: string
                                      minLength: 1
                                      description: The product's ID.
                                  required:
                                    - type
                                    - productId
                                  additionalProperties: false
                            targetStatus:
                              const: active
                          required:
                            - ruleId
                            - revision
                            - configuredRule
                            - target
                            - targetStatus
                        - type: object
                          properties:
                            ruleId:
                              type: string
                              minLength: 1
                              maxLength: 1024
                              description: An opaque ID for a rule owned by your account.
                            revision:
                              type: string
                              minLength: 1
                              maxLength: 1024
                              description: >-
                                The current direct revision from
                                pricing.listRules or a write receipt.
                            configuredRule:
                              anyOf:
                                - anyOf:
                                    - type: object
                                      properties:
                                        type:
                                          const: fixed
                                        price:
                                          type: object
                                          properties:
                                            amount:
                                              type: string
                                              pattern: ^\d{1,10}(?:\.\d{1,2})?$
                                              description: >-
                                                A nonnegative USD amount up to
                                                9999999999.99, with up to two decimal
                                                places.
                                            currency:
                                              const: USD
                                          required:
                                            - amount
                                            - currency
                                          additionalProperties: false
                                      required:
                                        - type
                                        - price
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        type:
                                          const: wholesale_amount
                                        delta:
                                          type: object
                                          properties:
                                            amount:
                                              type: string
                                              pattern: ^[+-]?\d{1,10}(?:\.\d{1,2})?$
                                              description: >-
                                                A signed USD amount up to 9999999999.99
                                                in magnitude, with up to two decimal
                                                places.
                                            currency:
                                              const: USD
                                          required:
                                            - amount
                                            - currency
                                          additionalProperties: false
                                      required:
                                        - type
                                        - delta
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        type:
                                          const: wholesale_percent
                                        percent:
                                          type: string
                                          pattern: ^[+-]?\d{1,5}(?:\.\d{1,2})?$
                                          description: >-
                                            A signed percent from -100.00 through
                                            10000.00, with up to two decimal places.
                                      required:
                                        - type
                                        - percent
                                      additionalProperties: false
                                - type: 'null'
                            targetStatus:
                              const: inactive
                          required:
                            - ruleId
                            - revision
                            - configuredRule
                            - targetStatus
                  nextCursor:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: >-
                      Pass this as `cursor` to get the next page. Null on the
                      last page.
                required:
                  - entries
                  - nextCursor
        '401':
          description: An API key is required.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - status
                  - message
                properties:
                  code:
                    type: string
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
        '403':
          description: The API key is outside the seller pricing cohort.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - status
                  - message
                properties:
                  code:
                    type: string
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
        '404':
          description: The product, category, or sample is missing or inaccessible.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - status
                  - message
                properties:
                  code:
                    type: string
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
        '422':
          description: >-
            Invalid input, or the supplied sample belongs to a different
            category.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - status
                  - message
                properties:
                  code:
                    type: string
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
        5XX:
          description: The service could not establish the requested rule or price inputs.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - status
                  - message
                properties:
                  code:
                    type: string
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: An API key from Settings → API keys in Arcade Studio.

````

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