{
  "x-generated": "GENERATED by docs:api (standalone src/lib/docs). Do not edit by hand: re-run `npm run docs:api`.",
  "components": {
    "responses": {
      "BadRequest": {
        "content": {
          "application/json": {
            "examples": {
              "invalid_id": {
                "summary": "A record id that isn't a valid id",
                "value": {
                  "className": "bad-request",
                  "code": 400,
                  "data": {},
                  "errors": {
                    "id": "Invalid record id."
                  },
                  "message": "Invalid record id.",
                  "name": "BadRequest"
                }
              },
              "invalid_request": {
                "summary": "A query value outside the documented schema",
                "value": {
                  "className": "bad-request",
                  "code": 400,
                  "errors": {},
                  "message": "Invalid request.",
                  "name": "BadRequest"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "The request is malformed (query, header or body)."
      },
      "Conflict": {
        "content": {
          "application/json": {
            "examples": {
              "in_progress": {
                "summary": "Still running",
                "value": {
                  "className": "conflict",
                  "code": 409,
                  "data": {
                    "code": "IDEMPOTENCY_IN_PROGRESS"
                  },
                  "errors": {},
                  "message": "A request with this Idempotency-Key is still being processed. Try again shortly.",
                  "name": "Conflict"
                }
              },
              "result_unavailable": {
                "summary": "Done, result not kept",
                "value": {
                  "className": "conflict",
                  "code": 409,
                  "data": {
                    "code": "IDEMPOTENCY_RESULT_UNAVAILABLE"
                  },
                  "errors": {},
                  "message": "This request was already completed, but its result can't be shown again. Refresh to see it.",
                  "name": "Conflict"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "Same Idempotency-Key: the first request is still running, or its result wasn't kept."
      },
      "Forbidden": {
        "content": {
          "application/json": {
            "examples": {
              "access_denied": {
                "summary": "The token's owner doesn't hold the permission",
                "value": {
                  "className": "forbidden",
                  "code": 403,
                  "data": {
                    "code": "ACCESS_DENIED"
                  },
                  "errors": {},
                  "message": "You don't have permission to do this.",
                  "name": "Forbidden"
                }
              },
              "banned": {
                "summary": "Too many refused requests from this address: banned for the window",
                "value": {
                  "className": "forbidden",
                  "code": 403,
                  "data": {
                    "code": "RATE_LIMITED",
                    "retry_after_seconds": 30
                  },
                  "errors": {},
                  "message": "Rate limit exceeded, retry in 1 minute",
                  "name": "Forbidden"
                }
              },
              "route_refused": {
                "summary": "Refused by the screen's own rule",
                "value": {
                  "message": "Access denied"
                }
              },
              "scope_denied": {
                "summary": "Token scopes don't cover the permission",
                "value": {
                  "className": "forbidden",
                  "code": 403,
                  "data": {
                    "code": "API_TOKEN_SCOPE_DENIED"
                  },
                  "errors": {},
                  "message": "This API token isn't allowed to do this.",
                  "name": "Forbidden"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "Not allowed: the token's scopes don't cover this operation, or its owner doesn't hold the permission now."
      },
      "NotFound": {
        "content": {
          "application/json": {
            "examples": {
              "feature_disabled": {
                "summary": "Feature off for this business",
                "value": {
                  "className": "not-found",
                  "code": 404,
                  "data": {
                    "code": "FEATURE_DISABLED"
                  },
                  "errors": {},
                  "message": "Not found",
                  "name": "NotFound"
                }
              },
              "not_found": {
                "summary": "No such record",
                "value": {
                  "message": "Record not found"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "Not found, or the feature behind it is off for this business."
      },
      "PaymentRequiredPlanLimit": {
        "content": {
          "application/json": {
            "examples": {
              "expired": {
                "summary": "Subscription expired",
                "value": {
                  "className": "payment-required",
                  "code": 402,
                  "data": {
                    "code": "SUBSCRIPTION_EXPIRED"
                  },
                  "errors": {},
                  "message": "This workspace is locked.",
                  "name": "PaymentRequired"
                }
              },
              "plan_limit": {
                "summary": "Plan limit reached",
                "value": {
                  "className": "payment-required",
                  "code": 402,
                  "data": {
                    "code": "PLAN_LIMIT_REACHED",
                    "key": "records",
                    "limit": 100,
                    "used": 100
                  },
                  "errors": {},
                  "message": "Your plan's limit has been reached. Upgrade to add more.",
                  "name": "PaymentRequired"
                }
              },
              "read_only": {
                "summary": "Subscription in grace (read-only)",
                "value": {
                  "className": "payment-required",
                  "code": 402,
                  "data": {
                    "code": "SUBSCRIPTION_READ_ONLY"
                  },
                  "errors": {},
                  "message": "This workspace is read-only.",
                  "name": "PaymentRequired"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "The subscription allows no changes now, or the plan's limit for this kind of record is reached."
      },
      "PaymentRequiredRead": {
        "content": {
          "application/json": {
            "examples": {
              "expired": {
                "summary": "Subscription expired",
                "value": {
                  "className": "payment-required",
                  "code": 402,
                  "data": {
                    "code": "SUBSCRIPTION_EXPIRED"
                  },
                  "errors": {},
                  "message": "This workspace is locked.",
                  "name": "PaymentRequired"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "The business's subscription has ended (locked)."
      },
      "PaymentRequiredWrite": {
        "content": {
          "application/json": {
            "examples": {
              "expired": {
                "summary": "Subscription expired",
                "value": {
                  "className": "payment-required",
                  "code": 402,
                  "data": {
                    "code": "SUBSCRIPTION_EXPIRED"
                  },
                  "errors": {},
                  "message": "This workspace is locked.",
                  "name": "PaymentRequired"
                }
              },
              "read_only": {
                "summary": "Subscription in grace (read-only)",
                "value": {
                  "className": "payment-required",
                  "code": 402,
                  "data": {
                    "code": "SUBSCRIPTION_READ_ONLY"
                  },
                  "errors": {},
                  "message": "This workspace is read-only.",
                  "name": "PaymentRequired"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "The business's subscription allows no changes now (grace period: read-only; ended: locked)."
      },
      "ServerError": {
        "content": {
          "application/json": {
            "examples": {
              "server_error": {
                "summary": "Unexpected failure",
                "value": {
                  "className": "internal-server-error",
                  "code": 500,
                  "errors": {},
                  "message": "Something went wrong. Please try again.",
                  "name": "InternalServerError"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "Something failed on the server. The message is always generic; retry later."
      },
      "TooManyRequests": {
        "content": {
          "application/json": {
            "examples": {
              "rate_limited": {
                "summary": "Per-token limit reached",
                "value": {
                  "className": "too-many-requests",
                  "code": 429,
                  "data": {
                    "code": "RATE_LIMITED",
                    "retry_after_seconds": 30
                  },
                  "errors": {},
                  "message": "RATE_LIMITED",
                  "name": "TooManyRequests"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "Over a rate limit. Wait `retry-after` seconds (also in `data.retry_after_seconds`) and try again.",
        "headers": {
          "retry-after": {
            "description": "Seconds to wait before retrying.",
            "schema": {
              "type": "string"
            }
          },
          "x-ratelimit-limit": {
            "description": "Requests allowed in the window (the most restrictive limit that applies).",
            "schema": {
              "type": "string"
            }
          },
          "x-ratelimit-policy": {
            "description": "Which limit is closest: token or ip.",
            "schema": {
              "type": "string"
            }
          },
          "x-ratelimit-remaining": {
            "description": "Requests left in the window.",
            "schema": {
              "type": "string"
            }
          },
          "x-ratelimit-reset": {
            "description": "When the window resets (unix seconds).",
            "schema": {
              "type": "string"
            }
          }
        }
      },
      "Unauthorized": {
        "content": {
          "application/json": {
            "examples": {
              "owner_inactive": {
                "summary": "Token unknown, revoked, expired or owner inactive",
                "value": {
                  "className": "unauthorized",
                  "code": 401,
                  "data": {
                    "code": "API_TOKEN_OWNER_INACTIVE"
                  },
                  "errors": {},
                  "message": "This API token is no longer valid.",
                  "name": "Unauthorized"
                }
              },
              "route_not_listed": {
                "summary": "This route isn't open to API tokens",
                "value": {
                  "className": "unauthorized",
                  "code": 401,
                  "data": {
                    "code": "API_TOKEN_SCOPE_DENIED"
                  },
                  "errors": {},
                  "message": "This API token isn't allowed to do this.",
                  "name": "Unauthorized"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "The API token can't be used: unknown, revoked, disabled or expired, its owner is no longer active, or this route isn't open to API tokens."
      },
      "Unprocessable": {
        "content": {
          "application/json": {
            "examples": {
              "key_reused": {
                "summary": "Key reused with another body",
                "value": {
                  "className": "unprocessable",
                  "code": 422,
                  "data": {
                    "code": "IDEMPOTENCY_KEY_REUSED"
                  },
                  "errors": {},
                  "message": "This Idempotency-Key was already used for a different request.",
                  "name": "Unprocessable"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "This Idempotency-Key was already used with a different body."
      },
      "ValidationFailed": {
        "content": {
          "application/json": {
            "examples": {
              "field_errors": {
                "summary": "Field errors",
                "value": {
                  "className": "bad-request",
                  "code": 400,
                  "data": {},
                  "errors": {
                    "name": "Name is required."
                  },
                  "message": "Please fix the highlighted fields",
                  "name": "BadRequest"
                }
              },
              "idempotency_key_invalid": {
                "summary": "A malformed Idempotency-Key (actions that use it)",
                "value": {
                  "className": "bad-request",
                  "code": 400,
                  "data": {
                    "code": "IDEMPOTENCY_KEY_INVALID"
                  },
                  "errors": {},
                  "message": "The Idempotency-Key must be 1–128 letters, digits, '.', '_', ':' or '-'.",
                  "name": "BadRequest"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "The action refused the input: `errors` names each field and what is wrong."
      }
    },
    "schemas": {
      "BrCustomers": {
        "additionalProperties": true,
        "properties": {
          "_id": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": "string"
          },
          "addresses": {
            "items": {
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "anonymised_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {},
          "createdAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "gstin": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "name_key": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "anonymised",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "tag_keys": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "tenant_id": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "updatedAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_by": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "walk_in": {
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "required": [
          "_id"
        ],
        "title": "BrCustomers",
        "type": "object"
      },
      "BrOrders": {
        "additionalProperties": true,
        "properties": {
          "_id": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": "string"
          },
          "address": {},
          "awb": {
            "type": [
              "string",
              "null"
            ]
          },
          "branch_id": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "cash_given_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "change_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "channel": {
            "type": [
              "string",
              "null"
            ]
          },
          "coupon_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "coupon_discount_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "coupon_id": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "courier": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_gstin": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_id": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "display_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "invoice_cancelled_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "invoice_id": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "invoice_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "invoice_sync_due_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "item_count": {
            "type": [
              "number",
              "null"
            ]
          },
          "lines": {
            "items": {
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "number": {
            "type": [
              "number",
              "null"
            ]
          },
          "paid_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "payment_mode": {
            "type": [
              "string",
              "null"
            ]
          },
          "payment_status": {
            "enum": [
              "unpaid",
              "partial",
              "paid",
              "refunded",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "receipt": {
            "type": [
              "string",
              "null"
            ]
          },
          "refund_due_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "refund_owed": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "refunded_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "returned_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "round_off_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "sale_key": {
            "type": [
              "string",
              "null"
            ]
          },
          "shift_id": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_pin": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipped_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "shipping_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "shipping_returned": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "enum": [
              "new",
              "accepted",
              "processing",
              "packed",
              "ready_for_shipment",
              "shipped",
              "out_for_delivery",
              "delivered",
              "rejected",
              "cancelled",
              "rto",
              "return_requested",
              "returned",
              "refunded",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "stock_committed": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "supply": {
            "enum": [
              "intra_state",
              "inter_state",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "tax_kind": {
            "type": [
              "string",
              "null"
            ]
          },
          "tax_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "taxable_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "tenant_id": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "total_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "tracking_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "updatedAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_by": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "_id"
        ],
        "title": "BrOrders",
        "type": "object"
      },
      "BrProducts": {
        "additionalProperties": true,
        "properties": {
          "_id": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": "string"
          },
          "barcode": {
            "type": [
              "string",
              "null"
            ]
          },
          "category_id": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "category_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "cost_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "group_id": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "gst_rate_bps": {
            "type": [
              "number",
              "null"
            ]
          },
          "hsn_sac": {
            "type": [
              "string",
              "null"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ]
          },
          "images": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "in_store": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "low_stock_milli": {
            "type": [
              "number",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "name_key": {
            "type": [
              "string",
              "null"
            ]
          },
          "on_hand_milli": {
            "type": [
              "number",
              "null"
            ]
          },
          "option_values": {
            "items": {
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "price_paise": {
            "type": [
              "number",
              "null"
            ]
          },
          "quick_added": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "reorder_branch_ids": {
            "items": {
              "description": "A record id.",
              "pattern": "^[0-9a-fA-F]{24}$",
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "sku": {
            "type": [
              "string",
              "null"
            ]
          },
          "sku_key": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "stock_state": {
            "enum": [
              "ok",
              "low",
              "out",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "tax_inclusive": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "tenant_id": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "unit": {
            "type": [
              "string",
              "null"
            ]
          },
          "updatedAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_by": {
            "description": "A record id.",
            "pattern": "^[0-9a-fA-F]{24}$",
            "type": [
              "string",
              "null"
            ]
          },
          "variant_key": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "_id"
        ],
        "title": "BrProducts",
        "type": "object"
      },
      "Error": {
        "additionalProperties": true,
        "description": "An error answer. `message` is always there; the rest comes with every error the server's error handler shapes (a route's own refusal may carry `message` only).",
        "properties": {
          "className": {
            "type": "string"
          },
          "code": {
            "description": "The HTTP status again.",
            "type": "integer"
          },
          "data": {
            "additionalProperties": true,
            "description": "`code` is the typed error code to branch on. Some codes add keys: RATE_LIMITED → retry_after_seconds; PLAN_LIMIT_REACHED → key, limit, used.",
            "properties": {
              "code": {
                "type": "string"
              },
              "key": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "limit": {
                "type": "number"
              },
              "retry_after_seconds": {
                "minimum": 1,
                "type": "integer"
              },
              "used": {
                "type": "number"
              }
            },
            "type": "object"
          },
          "errors": {
            "additionalProperties": true,
            "description": "Field key → what is wrong with it (validation refusals).",
            "type": "object"
          },
          "message": {
            "description": "Readable text; show it, never parse it.",
            "type": "string"
          },
          "name": {
            "description": "Error class, e.g. Unauthorized",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "apiToken": {
        "description": "An API token (`Authorization: Bearer <token>`). Each operation lists the scope (permission key) it needs; any one of several listed is enough. A preset scope `preset:<value>` stands for all its keys.",
        "scheme": "bearer",
        "type": "http",
        "x-scope-presets": [
          {
            "label": "Orders — read",
            "scope": "preset:orders_read",
            "scopes": [
              "br_order:view"
            ]
          },
          {
            "label": "Orders — add",
            "scope": "preset:orders_create",
            "scopes": [
              "br_order:create"
            ]
          },
          {
            "label": "Products and stock — read",
            "scope": "preset:products_read",
            "scopes": [
              "br_product:view"
            ]
          },
          {
            "label": "Customers — read",
            "scope": "preset:customers_read",
            "scopes": [
              "br_customer:view"
            ]
          }
        ],
        "x-scopes": {
          "br_customer:view": "Needed by: getRecord_br_customers, listRecords_br_customers",
          "br_order:create": "Needed by: runAction_br_order_add",
          "br_order:view": "Needed by: getRecord_br_orders, listRecords_br_orders",
          "br_product:view": "Needed by: getRecord_br_products, listRecords_br_products"
        }
      }
    }
  },
  "info": {
    "description": "**Authentication.** Send `Authorization: Bearer <API token>`. Someone in the business whose role may manage API tokens (the business decides which roles) creates the token in the app and picks its scopes (permission keys, or presets that stand for several). A token reaches only the operations below; it acts as its owner, in the owner's business, and never does more than the owner may do now.\n\n**Answers.** Each operation documents its own success shape (the record routes answer `{ total, page, per_page, records }` / `{ record }`, actions `{ success, records, meta? }`, dashboards `{ widgets, meta }`). Errors share one shape (`Error`): branch on `data.code`, show `message`.\n\n**Errors.** 400 malformed request or field errors (`errors`: field → message) · 401 token unusable · 402 subscription or plan limit · 403 scope or permission · 404 not found or feature off · 409 / 422 Idempotency-Key conflicts · 429 rate limit · 500 server failure (generic message).\n\n**Webhooks.** None yet: the platform sends no outgoing webhooks to API clients, so `webhooks` is empty.\n\n**Rate limits.** 300 requests per minute per token, and 200 requests per minute per client address. Over a limit → 429 `RATE_LIMITED` with `retry-after` (seconds) and `data.retry_after_seconds`. Every answer carries `x-ratelimit-limit`, `x-ratelimit-remaining`, `x-ratelimit-reset` and `x-ratelimit-policy`.\n\nThe server also limits every client address to 300 requests per 1 minute; repeated breaches ban the address for the window (403 with `data.code` `RATE_LIMITED`).",
    "title": "Branivo API",
    "version": "1.0.0+e0b86800a573"
  },
  "openapi": "3.1.0",
  "paths": {
    "/action/br_order_add/run": {
      "post": {
        "description": "Runs “New order” as the token's owner, in the token's business.\n\nScope: `br_order:create` (this action only creates records). The owner must hold it too.\n\nField limits (length, range, pattern, choices) are the ones the app's forms apply; send values within them.\n\nNeeds the business feature `branivo_orders` on; off → 404 FEATURE_DISABLED.",
        "operationId": "runAction_br_order_add",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "address_city": "text",
                "address_line1": "text",
                "address_line2": "text",
                "address_pin": "text",
                "address_state": "",
                "channel": "whatsapp",
                "coupon": "text",
                "customer_phone": "text",
                "lines": [
                  {}
                ],
                "notes": "text",
                "payment_mode": "",
                "shipping": 0
              },
              "schema": {
                "additionalProperties": true,
                "properties": {
                  "address_city": {
                    "description": "City.",
                    "maxLength": 60,
                    "type": "string"
                  },
                  "address_line1": {
                    "description": "Address line 1. Leave empty to use the customer's saved address.",
                    "maxLength": 120,
                    "type": "string"
                  },
                  "address_line2": {
                    "description": "Address line 2.",
                    "maxLength": 120,
                    "type": "string"
                  },
                  "address_pin": {
                    "description": "PIN.",
                    "maxLength": 6,
                    "type": "string"
                  },
                  "address_state": {
                    "description": "State. Shown as: `` = Not set; `35` = Andaman and Nicobar Islands; `37` = Andhra Pradesh; `12` = Arunachal Pradesh; `18` = Assam; `10` = Bihar; `04` = Chandigarh; `22` = Chhattisgarh; `26` = Dadra and Nagar Haveli and Daman and Diu; `07` = Delhi; `30` = Goa; `24` = Gujarat; `06` = Haryana; `02` = Himachal Pradesh; `01` = Jammu and Kashmir; `20` = Jharkhand; `29` = Karnataka; `32` = Kerala; `38` = Ladakh; `31` = Lakshadweep; `23` = Madhya Pradesh; `27` = Maharashtra; `14` = Manipur; `17` = Meghalaya; `15` = Mizoram; `13` = Nagaland; `21` = Odisha; `97` = Other Territory; `34` = Puducherry; `03` = Punjab; `08` = Rajasthan; `11` = Sikkim; `33` = Tamil Nadu; `36` = Telangana; `16` = Tripura; `09` = Uttar Pradesh; `05` = Uttarakhand; `19` = West Bengal.",
                    "enum": [
                      "",
                      "35",
                      "37",
                      "12",
                      "18",
                      "10",
                      "04",
                      "22",
                      "26",
                      "07",
                      "30",
                      "24",
                      "06",
                      "02",
                      "01",
                      "20",
                      "29",
                      "32",
                      "38",
                      "31",
                      "23",
                      "27",
                      "14",
                      "17",
                      "15",
                      "13",
                      "21",
                      "97",
                      "34",
                      "03",
                      "08",
                      "11",
                      "33",
                      "36",
                      "16",
                      "09",
                      "05",
                      "19"
                    ]
                  },
                  "branch_id": {
                    "description": "branch_id."
                  },
                  "channel": {
                    "description": "Channel. Shown as: `whatsapp` = WhatsApp; `instagram` = Instagram; `facebook` = Facebook; `website` = Website; `offline` = Shop / offline; `other` = Other.",
                    "enum": [
                      "whatsapp",
                      "instagram",
                      "facebook",
                      "website",
                      "offline",
                      "other"
                    ]
                  },
                  "coupon": {
                    "description": "Discount code. A coupon code the customer gave you (optional). The discount is spread over the items before GST. Used only when `coupons_on` is `yes`.",
                    "maxLength": 20,
                    "type": "string"
                  },
                  "coupons_on": {
                    "description": "coupons_on."
                  },
                  "customer": {
                    "description": "Customer. Search by name or phone, or type a new customer's name. A value from `br_customers` (lookup)."
                  },
                  "customer_phone": {
                    "description": "Phone. Needed for a new customer.",
                    "maxLength": 20,
                    "type": "string"
                  },
                  "lines": {
                    "description": "Items. Pick a product, or type a new product's name with its price and GST.",
                    "items": {
                      "additionalProperties": true,
                      "properties": {
                        "amount": {
                          "description": "Amount (₹)"
                        },
                        "amount_gst": {
                          "description": "With GST"
                        },
                        "discount": {
                          "description": "Discount (₹)"
                        },
                        "gst_rate": {
                          "description": "GST"
                        },
                        "list_price_paise": {
                          "description": "list_price_paise"
                        },
                        "pid": {
                          "description": "pid"
                        },
                        "price": {
                          "description": "Price (₹)"
                        },
                        "product": {
                          "description": "Product"
                        },
                        "qty": {
                          "description": "Qty"
                        },
                        "tax_included": {
                          "description": "tax_included"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "notes": {
                    "description": "Notes.",
                    "maxLength": 1000,
                    "type": "string"
                  },
                  "payment_mode": {
                    "description": "Payment mode. Shown as: `` = Not set; `cod` = Cash on delivery; `cash` = Cash; `upi` = UPI; `bank` = Bank transfer; `card` = Card.",
                    "enum": [
                      "",
                      "cod",
                      "cash",
                      "upi",
                      "bank",
                      "card"
                    ]
                  },
                  "shipping": {
                    "description": "Shipping charge (₹). What the customer pays for delivery, GST included.",
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "required": [
                  "customer",
                  "lines"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "records": [
                    {
                      "_id": "64b000000000000000000001",
                      "awb": "text",
                      "branch_id": "64b000000000000000000001",
                      "cash_given_paise": 1,
                      "change_paise": 1,
                      "channel": "text",
                      "coupon_code": "text",
                      "coupon_discount_paise": 1,
                      "coupon_id": "64b000000000000000000001",
                      "courier": "text",
                      "createdAt": "2026-01-15T09:30:00.000Z",
                      "created_by": "64b000000000000000000001",
                      "customer_gstin": "text",
                      "customer_id": "64b000000000000000000001",
                      "customer_name": "text",
                      "customer_phone": "text",
                      "display_number": "text",
                      "invoice_cancelled_at": "2026-01-15T09:30:00.000Z",
                      "invoice_id": "64b000000000000000000001",
                      "invoice_number": "text",
                      "invoice_sync_due_at": "2026-01-15T09:30:00.000Z",
                      "item_count": 1,
                      "lines": [
                        {}
                      ],
                      "notes": "text",
                      "number": 1,
                      "paid_paise": 1,
                      "payment_mode": "text",
                      "payment_status": "unpaid",
                      "receipt": "text",
                      "refund_due_paise": 1,
                      "refund_owed": true,
                      "refunded_paise": 1,
                      "returned_paise": 1,
                      "round_off_paise": 1,
                      "sale_key": "text",
                      "shift_id": "64b000000000000000000001",
                      "ship_pin": "text",
                      "shipped_at": "2026-01-15T09:30:00.000Z",
                      "shipping_paise": 1,
                      "shipping_returned": true,
                      "source": "text",
                      "status": "new",
                      "stock_committed": true,
                      "supply": "intra_state",
                      "tax_kind": "text",
                      "tax_paise": 1,
                      "taxable_paise": 1,
                      "tenant_id": "64b000000000000000000001",
                      "total_paise": 1,
                      "tracking_url": "text",
                      "updatedAt": "2026-01-15T09:30:00.000Z",
                      "updated_by": "64b000000000000000000001",
                      "version": 1
                    }
                  ],
                  "success": true
                },
                "schema": {
                  "properties": {
                    "meta": {
                      "additionalProperties": true,
                      "description": "Extra outputs of the run (only when the run produced some).",
                      "type": "object"
                    },
                    "records": {
                      "description": "The records the run wrote, as stored.",
                      "items": {
                        "$ref": "#/components/schemas/BrOrders"
                      },
                      "type": "array"
                    },
                    "success": {
                      "const": true
                    }
                  },
                  "required": [
                    "success",
                    "records"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The run finished.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "Requests allowed in the window (the most restrictive limit that applies).",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-policy": {
                "description": "Which limit is closest: token or ip.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-reset": {
                "description": "When the window resets (unix seconds).",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationFailed"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredWrite"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "security": [
          {
            "apiToken": [
              "br_order:create"
            ]
          }
        ],
        "summary": "New order",
        "tags": [
          "Orders"
        ]
      }
    },
    "/page/br_customers/records": {
      "get": {
        "description": "The records of “Customers” in the screen's own order unless sorted, from the token's business only. A role column limit leaves out the columns its owner can't see (filters and sort on them are ignored).\n\nColumns worked out per request (not typed here): `phone_display`, `tags_display`, `address_display`, `addresses_display`.\n\nNo free-text search here: filter a text column instead (contains, any case).\n\nScope: `br_customer:view` (its owner must hold it too).\n\nNeeds the business feature `branivo_customers` on; off → 404 FEATURE_DISABLED.",
        "operationId": "listRecords_br_customers",
        "parameters": [
          {
            "description": "Page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Records per page (at most 100).",
            "in": "query",
            "name": "per_page",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One field to sort by; prefix `-` for descending. Default: the page's own order (else newest first). Ties are broken by id, so pages never overlap.\n\nColumns: `name`, `phone_display`, `tags_display`, `address_display`, `email`, `gstin`, `status`, `addresses_display`, `walk_in`.",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "pattern": "^-?[a-zA-Z_][a-zA-Z0-9_]*$",
              "type": "string"
            }
          },
          {
            "description": "Read only these fields: the others come back as null (the id always comes).",
            "explode": true,
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Name: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Email: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "email",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Gstin: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "gstin",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Status: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them. Values: `active`, `archived`, `anonymised`.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Walk-in customer: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "walk_in",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "page": 1,
                  "per_page": 1,
                  "records": [
                    {
                      "_id": "64b000000000000000000001",
                      "addresses": [
                        {}
                      ],
                      "anonymised_at": "2026-01-15T09:30:00.000Z",
                      "createdAt": "2026-01-15T09:30:00.000Z",
                      "created_by": "64b000000000000000000001",
                      "email": "text",
                      "gstin": "text",
                      "name": "text",
                      "name_key": "text",
                      "phone": "text",
                      "status": "active",
                      "tag_keys": [
                        "text"
                      ],
                      "tags": [
                        "text"
                      ],
                      "tenant_id": "64b000000000000000000001",
                      "updatedAt": "2026-01-15T09:30:00.000Z",
                      "updated_by": "64b000000000000000000001",
                      "walk_in": true
                    }
                  ],
                  "total": 1
                },
                "schema": {
                  "properties": {
                    "page": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "per_page": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "records": {
                      "items": {
                        "$ref": "#/components/schemas/BrCustomers"
                      },
                      "type": "array"
                    },
                    "total": {
                      "description": "Records matching, on every page.",
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "total",
                    "page",
                    "per_page",
                    "records"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of records.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "Requests allowed in the window (the most restrictive limit that applies).",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-policy": {
                "description": "Which limit is closest: token or ip.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-reset": {
                "description": "When the window resets (unix seconds).",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredRead"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "security": [
          {
            "apiToken": [
              "br_customer:view"
            ]
          }
        ],
        "summary": "List Customers",
        "tags": [
          "Customers"
        ]
      }
    },
    "/page/br_customers/records/{id}": {
      "get": {
        "description": "One record of the token's business, by id; the stored record as kept (it may carry more fields than the list).\n\nScope: `br_customer:view` (its owner must hold it too).\n\nNeeds the business feature `branivo_customers` on; off → 404 FEATURE_DISABLED.",
        "operationId": "getRecord_br_customers",
        "parameters": [
          {
            "description": "The record id.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "pattern": "^[0-9a-fA-F]{24}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "record": {
                    "_id": "64b000000000000000000001",
                    "addresses": [
                      {}
                    ],
                    "anonymised_at": "2026-01-15T09:30:00.000Z",
                    "createdAt": "2026-01-15T09:30:00.000Z",
                    "created_by": "64b000000000000000000001",
                    "email": "text",
                    "gstin": "text",
                    "name": "text",
                    "name_key": "text",
                    "phone": "text",
                    "status": "active",
                    "tag_keys": [
                      "text"
                    ],
                    "tags": [
                      "text"
                    ],
                    "tenant_id": "64b000000000000000000001",
                    "updatedAt": "2026-01-15T09:30:00.000Z",
                    "updated_by": "64b000000000000000000001",
                    "walk_in": true
                  }
                },
                "schema": {
                  "properties": {
                    "record": {
                      "$ref": "#/components/schemas/BrCustomers"
                    }
                  },
                  "required": [
                    "record"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The record.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "Requests allowed in the window (the most restrictive limit that applies).",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-policy": {
                "description": "Which limit is closest: token or ip.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-reset": {
                "description": "When the window resets (unix seconds).",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredRead"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "security": [
          {
            "apiToken": [
              "br_customer:view"
            ]
          }
        ],
        "summary": "Get one Customers record",
        "tags": [
          "Customers"
        ]
      }
    },
    "/page/br_orders/records": {
      "get": {
        "description": "The records of “Orders” in the screen's own order unless sorted, from the token's business only. A role column limit leaves out the columns its owner can't see (filters and sort on them are ignored).\n\nColumns worked out per request (not typed here): `phone_display`, `items_display`, `total_amount`, `address_display`, `taxable_amount`, `tax_amount`, `shipping_amount`, `round_off_amount`, `paid_amount`, `due_amount`, `returned_amount`, `refunded_amount`, `refund_due_amount`, `coupon_display`.\n\nNo free-text search here: filter a text column instead (contains, any case).\n\nScope: `br_order:view` (its owner must hold it too).\n\nNeeds the business feature `branivo_orders` on; off → 404 FEATURE_DISABLED.",
        "operationId": "listRecords_br_orders",
        "parameters": [
          {
            "description": "Page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Records per page (at most 100).",
            "in": "query",
            "name": "per_page",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One field to sort by; prefix `-` for descending. Default: the page's own order (else newest first). Ties are broken by id, so pages never overlap.\n\nColumns: `display_number`, `createdAt`, `customer_name`, `phone_display`, `items_display`, `total_amount`, `status`, `payment_status`, `channel`, `item_count`, `address_display`, `ship_pin`, `payment_mode`, `courier`, `awb`, `tracking_url`, `receipt`, `customer_gstin`, `taxable_amount`, `tax_amount`, `shipping_amount`, `round_off_amount`, `paid_amount`, `due_amount`, `returned_amount`, `refunded_amount`, `refund_due_amount`, `notes`, `invoice_number`, `coupon_display`, `next_statuses`, `source`, `branch_id`, `movable`, `editable`, `version`, `invoice_id`, `has_invoice`, `invoiceable`, `payable`, `invoice_cancellable`, `refundable`, `returnable`, `refund_owed`.",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "pattern": "^-?[a-zA-Z_][a-zA-Z0-9_]*$",
              "type": "string"
            }
          },
          {
            "description": "Read only these fields: the others come back as null (the id always comes).",
            "explode": true,
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Display Number: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "display_number",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Date: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "createdAt",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Customer Name: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "customer_name",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Status: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them. Values: `new`, `accepted`, `processing`, `packed`, `ready_for_shipment`, `shipped`, `out_for_delivery`, `delivered`, `rejected`, `cancelled`, `rto`, `return_requested`, `returned`, `refunded`.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Payment: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them. Values: `unpaid`, `partial`, `paid`, `refunded`.",
            "in": "query",
            "name": "payment_status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Channel: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them. Values: `whatsapp`, `instagram`, `facebook`, `website`, `offline`, `other`.",
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Item Count: equal to this number. Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "item_count",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Ship Pin: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "ship_pin",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Payment mode: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them. Values: `cod`, `cash`, `upi`, `bank`, `card`.",
            "in": "query",
            "name": "payment_mode",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Courier: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "courier",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Awb: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "awb",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tracking Url: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "tracking_url",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Receipt: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "receipt",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Customer Gstin: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "customer_gstin",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Notes: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "notes",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Invoice Number: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "invoice_number",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "source: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "branch_id: this record id exactly. Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "branch_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "version: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "version",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "invoice_id: this record id exactly. Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "invoice_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "refund_owed: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "refund_owed",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "page": 1,
                  "per_page": 1,
                  "records": [
                    {
                      "_id": "64b000000000000000000001",
                      "awb": "text",
                      "branch_id": "64b000000000000000000001",
                      "cash_given_paise": 1,
                      "change_paise": 1,
                      "channel": "text",
                      "coupon_code": "text",
                      "coupon_discount_paise": 1,
                      "coupon_id": "64b000000000000000000001",
                      "courier": "text",
                      "createdAt": "2026-01-15T09:30:00.000Z",
                      "created_by": "64b000000000000000000001",
                      "customer_gstin": "text",
                      "customer_id": "64b000000000000000000001",
                      "customer_name": "text",
                      "customer_phone": "text",
                      "display_number": "text",
                      "invoice_cancelled_at": "2026-01-15T09:30:00.000Z",
                      "invoice_id": "64b000000000000000000001",
                      "invoice_number": "text",
                      "invoice_sync_due_at": "2026-01-15T09:30:00.000Z",
                      "item_count": 1,
                      "lines": [
                        {}
                      ],
                      "notes": "text",
                      "number": 1,
                      "paid_paise": 1,
                      "payment_mode": "text",
                      "payment_status": "unpaid",
                      "receipt": "text",
                      "refund_due_paise": 1,
                      "refund_owed": true,
                      "refunded_paise": 1,
                      "returned_paise": 1,
                      "round_off_paise": 1,
                      "sale_key": "text",
                      "shift_id": "64b000000000000000000001",
                      "ship_pin": "text",
                      "shipped_at": "2026-01-15T09:30:00.000Z",
                      "shipping_paise": 1,
                      "shipping_returned": true,
                      "source": "text",
                      "status": "new",
                      "stock_committed": true,
                      "supply": "intra_state",
                      "tax_kind": "text",
                      "tax_paise": 1,
                      "taxable_paise": 1,
                      "tenant_id": "64b000000000000000000001",
                      "total_paise": 1,
                      "tracking_url": "text",
                      "updatedAt": "2026-01-15T09:30:00.000Z",
                      "updated_by": "64b000000000000000000001",
                      "version": 1
                    }
                  ],
                  "total": 1
                },
                "schema": {
                  "properties": {
                    "page": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "per_page": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "records": {
                      "items": {
                        "$ref": "#/components/schemas/BrOrders"
                      },
                      "type": "array"
                    },
                    "total": {
                      "description": "Records matching, on every page.",
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "total",
                    "page",
                    "per_page",
                    "records"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of records.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "Requests allowed in the window (the most restrictive limit that applies).",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-policy": {
                "description": "Which limit is closest: token or ip.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-reset": {
                "description": "When the window resets (unix seconds).",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredRead"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "security": [
          {
            "apiToken": [
              "br_order:view"
            ]
          }
        ],
        "summary": "List Orders",
        "tags": [
          "Orders"
        ]
      }
    },
    "/page/br_orders/records/{id}": {
      "get": {
        "description": "One record of the token's business, by id; the stored record as kept (it may carry more fields than the list).\n\nScope: `br_order:view` (its owner must hold it too).\n\nNeeds the business feature `branivo_orders` on; off → 404 FEATURE_DISABLED.",
        "operationId": "getRecord_br_orders",
        "parameters": [
          {
            "description": "The record id.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "pattern": "^[0-9a-fA-F]{24}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "record": {
                    "_id": "64b000000000000000000001",
                    "awb": "text",
                    "branch_id": "64b000000000000000000001",
                    "cash_given_paise": 1,
                    "change_paise": 1,
                    "channel": "text",
                    "coupon_code": "text",
                    "coupon_discount_paise": 1,
                    "coupon_id": "64b000000000000000000001",
                    "courier": "text",
                    "createdAt": "2026-01-15T09:30:00.000Z",
                    "created_by": "64b000000000000000000001",
                    "customer_gstin": "text",
                    "customer_id": "64b000000000000000000001",
                    "customer_name": "text",
                    "customer_phone": "text",
                    "display_number": "text",
                    "invoice_cancelled_at": "2026-01-15T09:30:00.000Z",
                    "invoice_id": "64b000000000000000000001",
                    "invoice_number": "text",
                    "invoice_sync_due_at": "2026-01-15T09:30:00.000Z",
                    "item_count": 1,
                    "lines": [
                      {}
                    ],
                    "notes": "text",
                    "number": 1,
                    "paid_paise": 1,
                    "payment_mode": "text",
                    "payment_status": "unpaid",
                    "receipt": "text",
                    "refund_due_paise": 1,
                    "refund_owed": true,
                    "refunded_paise": 1,
                    "returned_paise": 1,
                    "round_off_paise": 1,
                    "sale_key": "text",
                    "shift_id": "64b000000000000000000001",
                    "ship_pin": "text",
                    "shipped_at": "2026-01-15T09:30:00.000Z",
                    "shipping_paise": 1,
                    "shipping_returned": true,
                    "source": "text",
                    "status": "new",
                    "stock_committed": true,
                    "supply": "intra_state",
                    "tax_kind": "text",
                    "tax_paise": 1,
                    "taxable_paise": 1,
                    "tenant_id": "64b000000000000000000001",
                    "total_paise": 1,
                    "tracking_url": "text",
                    "updatedAt": "2026-01-15T09:30:00.000Z",
                    "updated_by": "64b000000000000000000001",
                    "version": 1
                  }
                },
                "schema": {
                  "properties": {
                    "record": {
                      "$ref": "#/components/schemas/BrOrders"
                    }
                  },
                  "required": [
                    "record"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The record.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "Requests allowed in the window (the most restrictive limit that applies).",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-policy": {
                "description": "Which limit is closest: token or ip.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-reset": {
                "description": "When the window resets (unix seconds).",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredRead"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "security": [
          {
            "apiToken": [
              "br_order:view"
            ]
          }
        ],
        "summary": "Get one Orders record",
        "tags": [
          "Orders"
        ]
      }
    },
    "/page/br_products/records": {
      "get": {
        "description": "The records of “Products” in the screen's own order unless sorted, from the token's business only. A role column limit leaves out the columns its owner can't see (filters and sort on them are ignored).\n\nColumns worked out per request (not typed here): `price_amount`, `on_hand`, `cost_amount`, `low_stock`.\n\nNo free-text search here: filter a text column instead (contains, any case).\n\nScope: `br_product:view` (its owner must hold it too).\n\nNeeds the business feature `branivo_catalog` on; off → 404 FEATURE_DISABLED.",
        "operationId": "listRecords_br_products",
        "parameters": [
          {
            "description": "Page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Records per page (at most 100).",
            "in": "query",
            "name": "per_page",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One field to sort by; prefix `-` for descending. Default: the page's own order (else newest first). Ties are broken by id, so pages never overlap.\n\nColumns: `image`, `name`, `sku`, `category_name`, `unit`, `price_amount`, `gst_rate_bps`, `on_hand`, `stock_state`, `hsn_sac`, `barcode`, `cost_amount`, `low_stock`, `tax_inclusive`, `in_store`, `status`, `description`, `images`.",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "pattern": "^-?[a-zA-Z_][a-zA-Z0-9_]*$",
              "type": "string"
            }
          },
          {
            "description": "Read only these fields: the others come back as null (the id always comes).",
            "explode": true,
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Image: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "image",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Name: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "SKU: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "sku",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Category: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "category_name",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unit: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them. Values: `pcs`, `kg`, `g`, `l`, `ml`, `m`, `box`, `pack`, `dozen`, `pair`, `set`.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "GST rate: equal to this number. Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "gst_rate_bps",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Stock: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them. Values: `ok`, `low`, `out`, `below_zero`.",
            "in": "query",
            "name": "stock_state",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "HSN / SAC: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "hsn_sac",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Barcode: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "barcode",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tax Inclusive: true or false.",
            "in": "query",
            "name": "tax_inclusive",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          },
          {
            "description": "In Store: true or false.",
            "in": "query",
            "name": "in_store",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          },
          {
            "description": "Status: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them. Values: `active`, `archived`.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Description: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "description",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Images: contains this text (any case). Several values (a JSON list such as `[\"a\",\"b\"]`, or the parameter repeated) match a record equal to any of them.",
            "in": "query",
            "name": "images",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "page": 1,
                  "per_page": 1,
                  "records": [
                    {
                      "_id": "64b000000000000000000001",
                      "barcode": "text",
                      "category_id": "64b000000000000000000001",
                      "category_name": "text",
                      "cost_paise": 1,
                      "createdAt": "2026-01-15T09:30:00.000Z",
                      "created_by": "64b000000000000000000001",
                      "description": "text",
                      "group_id": "64b000000000000000000001",
                      "gst_rate_bps": 1,
                      "hsn_sac": "text",
                      "image": "text",
                      "images": [
                        "text"
                      ],
                      "in_store": true,
                      "low_stock_milli": 1,
                      "name": "text",
                      "name_key": "text",
                      "on_hand_milli": 1,
                      "option_values": [
                        {}
                      ],
                      "price_paise": 1,
                      "quick_added": true,
                      "reorder_branch_ids": [
                        "64b000000000000000000001"
                      ],
                      "sku": "text",
                      "sku_key": "text",
                      "status": "active",
                      "stock_state": "ok",
                      "tax_inclusive": true,
                      "tenant_id": "64b000000000000000000001",
                      "unit": "text",
                      "updatedAt": "2026-01-15T09:30:00.000Z",
                      "updated_by": "64b000000000000000000001",
                      "variant_key": "text"
                    }
                  ],
                  "total": 1
                },
                "schema": {
                  "properties": {
                    "page": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "per_page": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "records": {
                      "items": {
                        "$ref": "#/components/schemas/BrProducts"
                      },
                      "type": "array"
                    },
                    "total": {
                      "description": "Records matching, on every page.",
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "total",
                    "page",
                    "per_page",
                    "records"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A page of records.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "Requests allowed in the window (the most restrictive limit that applies).",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-policy": {
                "description": "Which limit is closest: token or ip.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-reset": {
                "description": "When the window resets (unix seconds).",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredRead"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "security": [
          {
            "apiToken": [
              "br_product:view"
            ]
          }
        ],
        "summary": "List Products",
        "tags": [
          "Products"
        ]
      }
    },
    "/page/br_products/records/{id}": {
      "get": {
        "description": "One record of the token's business, by id; the stored record as kept (it may carry more fields than the list).\n\nScope: `br_product:view` (its owner must hold it too).\n\nNeeds the business feature `branivo_catalog` on; off → 404 FEATURE_DISABLED.",
        "operationId": "getRecord_br_products",
        "parameters": [
          {
            "description": "The record id.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "pattern": "^[0-9a-fA-F]{24}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "record": {
                    "_id": "64b000000000000000000001",
                    "barcode": "text",
                    "category_id": "64b000000000000000000001",
                    "category_name": "text",
                    "cost_paise": 1,
                    "createdAt": "2026-01-15T09:30:00.000Z",
                    "created_by": "64b000000000000000000001",
                    "description": "text",
                    "group_id": "64b000000000000000000001",
                    "gst_rate_bps": 1,
                    "hsn_sac": "text",
                    "image": "text",
                    "images": [
                      "text"
                    ],
                    "in_store": true,
                    "low_stock_milli": 1,
                    "name": "text",
                    "name_key": "text",
                    "on_hand_milli": 1,
                    "option_values": [
                      {}
                    ],
                    "price_paise": 1,
                    "quick_added": true,
                    "reorder_branch_ids": [
                      "64b000000000000000000001"
                    ],
                    "sku": "text",
                    "sku_key": "text",
                    "status": "active",
                    "stock_state": "ok",
                    "tax_inclusive": true,
                    "tenant_id": "64b000000000000000000001",
                    "unit": "text",
                    "updatedAt": "2026-01-15T09:30:00.000Z",
                    "updated_by": "64b000000000000000000001",
                    "variant_key": "text"
                  }
                },
                "schema": {
                  "properties": {
                    "record": {
                      "$ref": "#/components/schemas/BrProducts"
                    }
                  },
                  "required": [
                    "record"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The record.",
            "headers": {
              "x-ratelimit-limit": {
                "description": "Requests allowed in the window (the most restrictive limit that applies).",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-policy": {
                "description": "Which limit is closest: token or ip.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "string"
                }
              },
              "x-ratelimit-reset": {
                "description": "When the window resets (unix seconds).",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequiredRead"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "security": [
          {
            "apiToken": [
              "br_product:view"
            ]
          }
        ],
        "summary": "Get one Products record",
        "tags": [
          "Products"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "{baseUrl}",
      "variables": {
        "baseUrl": {
          "default": "https://api.example.com",
          "description": "Your app's API address."
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Customers"
    },
    {
      "name": "Orders"
    },
    {
      "name": "Products"
    }
  ],
  "webhooks": {}
}
