Kibo Commerce Account Ranking Rule API

The AccountRankingRule API from Kibo Commerce — 4 operation(s) for accountrankingrule.

GitHub OpenAPI

Operations 7

POST /commerce/rules/customer/evaluate/{customerAccountId} Evaluate Customer Rules #
GET /commerce/rules/customer Get All Customer Rules #
POST /commerce/rules/customer Create Customer Rule #
DELETE /commerce/rules/customer/{code} Delete Customer Rule (with cross-service validation) #
GET /commerce/rules/customer/{code} Get Customer Rule by Code #
PUT /commerce/rules/customer/{code} Update Customer Rule #
GET /commerce/rules/customer/{code}/usages Get Customer Rule Usages by Code #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/kibo-commerce:kibo-commerce-accountrankingrule-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

kibo-commerce-accountrankingrule-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kibo Commerce Account Ranking Rule API
  version: '1.0'
  description: 'Operations tagged AccountRankingRule across 2 of this provider''s published API definitions: openapi_openapi_customer.json, kibo-commerce-customer-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- description: Kibo Base URL
  url: '{baseUrl}/api'
  variables:
    baseUrl:
      default: https://t1000000.sb.usc1.gcp.kibocommerce.com
      description: Base URL
security:
- bearerAuth: []
tags:
- name: AccountRankingRule
paths:
  /commerce/rules/customer/evaluate/{customerAccountId}:
    post:
      parameters:
      - description: ''
        in: path
        name: customerAccountId
        required: true
        schema:
          format: int32
          type: integer
      - description: limits which fields are returned in the response body
        in: query
        name: responseFields
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EvaluateAccountRankingRuleRequest'
        description: ''
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AccountRankingRule'
                type: array
            text/json:
              schema:
                items:
                  $ref: '#/components/schemas/AccountRankingRule'
                type: array
            text/plain:
              schema:
                items:
                  $ref: '#/components/schemas/AccountRankingRule'
                type: array
          description: OK
      summary: Evaluate Customer Rules
      tags:
      - AccountRankingRule
      operationId: postCommerceRulesCustomerEvaluateByCustomerAccountId
      x-operation-id-source: derived
    servers:
    - description: Kibo Base URL
      url: '{baseUrl}/api'
      variables:
        baseUrl:
          default: https://t1000000.sb.usc1.gcp.kibocommerce.com
          description: Base URL
  /commerce/rules/customer:
    get:
      parameters:
      - description: ''
        in: query
        name: startIndex
        schema:
          default: 0
          format: int32
          type: integer
      - description: ''
        in: query
        name: pageSize
        schema:
          default: 20
          format: int32
          type: integer
      - description: ''
        in: query
        name: sortBy
        schema:
          default: ''
          type: string
      - description: ''
        in: query
        name: filter
        schema:
          default: ''
          type: string
      - description: limits which fields are returned in the response body
        in: query
        name: responseFields
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountRankingRuleCollection'
            text/json:
              schema:
                $ref: '#/components/schemas/AccountRankingRuleCollection'
            text/plain:
              schema:
                $ref: '#/components/schemas/AccountRankingRuleCollection'
          description: OK
      summary: Get All Customer Rules
      tags:
      - AccountRankingRule
      operationId: getCommerceRulesCustomer
      x-operation-id-source: derived
    post:
      parameters:
      - description: limits which fields are returned in the response body
        in: query
        name: responseFields
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountRankingRule'
        description: ''
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountRankingRule'
            text/json:
              schema:
                $ref: '#/components/schemas/AccountRankingRule'
            text/plain:
              schema:
                $ref: '#/components/schemas/AccountRankingRule'
          description: OK
      summary: Create Customer Rule
      tags:
      - AccountRankingRule
      operationId: postCommerceRulesCustomer
      x-operation-id-source: derived
    servers:
    - description: Kibo Base URL
      url: '{baseUrl}/api'
      variables:
        baseUrl:
          default: https://t1000000.sb.usc1.gcp.kibocommerce.com
          description: Base URL
  /commerce/rules/customer/{code}:
    delete:
      parameters:
      - description: ''
        in: path
        name: code
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      summary: Delete Customer Rule (with cross-service validation)
      tags:
      - AccountRankingRule
      operationId: deleteCommerceRulesCustomerByCode
      x-operation-id-source: derived
    get:
      parameters:
      - description: ''
        in: path
        name: code
        required: true
        schema:
          type: string
      - description: limits which fields are returned in the response body
        in: query
        name: responseFields
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountRankingRule'
            text/json:
              schema:
                $ref: '#/components/schemas/AccountRankingRule'
            text/plain:
              schema:
                $ref: '#/components/schemas/AccountRankingRule'
          description: OK
      summary: Get Customer Rule by Code
      tags:
      - AccountRankingRule
      operationId: getCommerceRulesCustomerByCode
      x-operation-id-source: derived
    put:
      parameters:
      - description: ''
        in: path
        name: code
        required: true
        schema:
          type: string
      - description: limits which fields are returned in the response body
        in: query
        name: responseFields
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountRankingRule'
        description: ''
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountRankingRule'
            text/json:
              schema:
                $ref: '#/components/schemas/AccountRankingRule'
            text/plain:
              schema:
                $ref: '#/components/schemas/AccountRankingRule'
          description: OK
      summary: Update Customer Rule
      tags:
      - AccountRankingRule
      operationId: putCommerceRulesCustomerByCode
      x-operation-id-source: derived
    servers:
    - description: Kibo Base URL
      url: '{baseUrl}/api'
      variables:
        baseUrl:
          default: https://t1000000.sb.usc1.gcp.kibocommerce.com
          description: Base URL
  /commerce/rules/customer/{code}/usages:
    get:
      parameters:
      - description: ''
        in: path
        name: code
        required: true
        schema:
          type: string
      - description: limits which fields are returned in the response body
        in: query
        name: responseFields
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/CustomerRuleUsage'
                type: array
            text/json:
              schema:
                items:
                  $ref: '#/components/schemas/CustomerRuleUsage'
                type: array
            text/plain:
              schema:
                items:
                  $ref: '#/components/schemas/CustomerRuleUsage'
                type: array
          description: OK
      summary: Get Customer Rule Usages by Code
      tags:
      - AccountRankingRule
      operationId: getCommerceRulesCustomerByCodeUsages
      x-operation-id-source: derived
    servers:
    - description: Kibo Base URL
      url: '{baseUrl}/api'
      variables:
        baseUrl:
          default: https://t1000000.sb.usc1.gcp.kibocommerce.com
          description: Base URL
components:
  schemas:
    CustomerExpression:
      properties:
        left:
          description: The field target of a predicate
          type:
          - string
          - 'null'
        logicalOperator:
          description: And or Or (if Container with More than one Node)
          type:
          - string
          - 'null'
        nodes:
          items:
            $ref: '#/components/schemas/CustomerExpression'
          type:
          - array
          - 'null'
        operator:
          description: The operator of a predicate
          type:
          - string
          - 'null'
        right:
          description: The literal values of a predicate
        type:
          description: Container or Predicate
          type:
          - string
          - 'null'
      type: object
    CustomerDynamicExpression:
      description: Category
      properties:
        text:
          type:
          - string
          - 'null'
        tree:
          $ref: '#/components/schemas/CustomerExpression'
      type: object
    AuditInfo:
      properties:
        createBy:
          type:
          - string
          - 'null'
        createDate:
          format: date-time
          type:
          - string
          - 'null'
        updateBy:
          type:
          - string
          - 'null'
        updateDate:
          format: date-time
          type:
          - string
          - 'null'
      type: object
    CustomerRuleUsage:
      description: Represents a customer rule usage
      properties:
        code:
          description: The code/name of the rule
          type:
          - string
          - 'null'
        ruleType:
          description: The type of rule (Return, PurchaseLimit, etc.)
          type:
          - string
          - 'null'
      type: object
    AccountRankingRule:
      description: Account ranking rule contract used for rules engine
      properties:
        auditInfo:
          $ref: '#/components/schemas/AuditInfo'
        code:
          description: unique code.
          type:
          - string
          - 'null'
        description:
          description: Description for rule
          type:
          - string
          - 'null'
        expression:
          $ref: '#/components/schemas/CustomerDynamicExpression'
        id:
          description: Unique id
          format: int32
          type: integer
        name:
          description: Rule name
          type:
          - string
          - 'null'
        ruleType:
          description: Scope id
          type:
          - string
          - 'null'
      type: object
    EvaluateAccountRankingRuleRequest:
      properties:
        codes:
          description: ''
          items:
            type: string
          type:
          - array
          - 'null'
        ruleType:
          description: ''
          type:
          - string
          - 'null'
      type: object
    AccountRankingRuleCollection:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AccountRankingRule'
          type:
          - array
          - 'null'
        pageCount:
          format: int32
          type: integer
        pageSize:
          format: int32
          type: integer
        startIndex:
          format: int32
          type: integer
        totalCount:
          format: int32
          type: integer
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: JWT Authorization header using the Bearer scheme.
      scheme: bearer
      type: http
x-refined-from:
- openapi_openapi_customer.json
- kibo-commerce-customer-openapi.yml
x-provenance:
  method: harvested
  publisher: Kibo Commerce
  source: https://docs.kibocommerce.com/openapi/openapi_customer.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)