{
  "openapi": "3.1.0",
  "info": {
    "title": "OMNADATA APIs",
    "version": "1.0.0",
    "license": {
      "name": "Proprietary",
      "url": "https://omnadata.com"
    },
    "description": "Connect your systems to OMNADATA company data and reports. Orders are charged to the OMNADATA wallet at the account's report prices."
  },
  "servers": [
    {
      "url": "https://x-api-services.omnadata.com/connect/v1",
      "description": "Production: Live orders"
    },
    {
      "url": "https://x-services-demo.omnadata.com/connect/v1",
      "description": "Demo: Integration and testing"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    },
    {
      "apiKeyHeader": []
    }
  ],
  "tags": [
    {
      "name": "Orders",
      "description": "Create orders and track their status."
    },
    {
      "name": "Reports",
      "description": "Retrieve delivered reports."
    }
  ],
  "paths": {
    "/orders": {
      "post": {
        "operationId": "createOrder",
        "summary": "Create Order",
        "tags": [
          "Orders"
        ],
        "description": "Orders a report on one company and deducts its price from the wallet. EXISTING orders are delivered in the same response with status COMPLETED and a report_id. FRESH orders are returned with status PENDING and complete asynchronously; track them with Check Order Status or Orders List.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "A unique value for each new order, 1 to 255 characters, for example your own order reference or a UUID. Retrying with the same key and body returns the original order instead of creating a new one. Keys are case-sensitive and remain bound to their first request.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "example": "erp-order-48213"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "identifier": {
                    "type": "string",
                    "description": "The company's CIN, LLPIN or FCRN. Case-insensitive.",
                    "example": "U72900KA2015PTC082345"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "EXISTING",
                      "FRESH"
                    ],
                    "description": "EXISTING delivers an available report immediately. FRESH orders a newly generated report, delivered asynchronously."
                  },
                  "report_type": {
                    "type": "string",
                    "description": "Optional. Omit it to use the account's report type. Only needed when more than one report type is enabled for the account."
                  }
                },
                "required": [
                  "identifier",
                  "mode"
                ]
              },
              "example": {
                "identifier": "U72900KA2015PTC082345",
                "mode": "EXISTING"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The request repeated an earlier Idempotency-Key with the same body. The original order is returned, nothing is charged, and the response carries the header Idempotent-Replayed: true.",
            "headers": {
              "Idempotent-Replayed": {
                "description": "Always true on a replayed response.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Order"
                    }
                  }
                },
                "example": {
                  "data": {
                    "order_id": "3ffe91e0-563c-4050-b64e-55a580b14a4e",
                    "order_number": "ORD-2026-000024",
                    "status": "PENDING",
                    "mode": "FRESH",
                    "report_type": "OMNA_BASIC",
                    "identifier": "U72900KA2015PTC082345",
                    "company_name": "EXAMPLE ANALYTICS PRIVATE LIMITED",
                    "credits_charged": 2000,
                    "report_id": null,
                    "source": "API",
                    "created_at": "2026-10-05T14:30:11+05:30",
                    "updated_at": "2026-10-05T14:30:11+05:30",
                    "completed_at": null
                  }
                }
              }
            }
          },
          "201": {
            "description": "Order created and charged. wallet_balance is the balance after the charge.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Order"
                    },
                    "wallet_balance": {
                      "type": "integer",
                      "description": "Wallet balance in credits after the charge."
                    }
                  }
                },
                "example": {
                  "data": {
                    "order_id": "3ffe91e0-563c-4050-b64e-55a580b14a4e",
                    "order_number": "ORD-2026-000024",
                    "status": "PENDING",
                    "mode": "FRESH",
                    "report_type": "OMNA_BASIC",
                    "identifier": "U72900KA2015PTC082345",
                    "company_name": "EXAMPLE ANALYTICS PRIVATE LIMITED",
                    "credits_charged": 2000,
                    "report_id": null,
                    "source": "API",
                    "created_at": "2026-10-05T14:30:11+05:30",
                    "updated_at": "2026-10-05T14:30:11+05:30",
                    "completed_at": null
                  },
                  "wallet_balance": 39000
                }
              }
            }
          },
          "400": {
            "description": "Error. error.code is one of: idempotency_key_required, invalid_body, invalid_identifier, invalid_mode.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error. error.code is one of: unauthorized.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error. error.code is one of: insufficient_balance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error. error.code is one of: report_type_not_enabled.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error. error.code is one of: company_not_found, no_existing_report.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error. error.code is one of: order_in_progress, report_already_owned, existing_report_incompatible.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error. error.code is one of: idempotency_key_reused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error. error.code is one of: rate_limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-errors": [
          "idempotency_key_required",
          "invalid_body",
          "invalid_identifier",
          "invalid_mode",
          "unauthorized",
          "insufficient_balance",
          "report_type_not_enabled",
          "company_not_found",
          "no_existing_report",
          "order_in_progress",
          "report_already_owned",
          "existing_report_incompatible",
          "idempotency_key_reused",
          "rate_limited"
        ],
        "x-example": {
          "headers": {
            "Authorization": "Bearer $OMNA_API_KEY",
            "Idempotency-Key": "erp-order-48213",
            "Content-Type": "application/json"
          },
          "body": {
            "identifier": "U72900KA2015PTC082345",
            "mode": "EXISTING"
          }
        }
      },
      "get": {
        "operationId": "listOrders",
        "summary": "Orders List",
        "tags": [
          "Orders"
        ],
        "description": "Lists the account's orders, newest first, one page at a time. Includes orders placed through the API, in the OMNADATA portal and by OMNADATA on your behalf. Use status=open to track every order that is not yet complete in a single call.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "description": "pending, processing, completed, or open (pending and processing).",
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "processing",
                "completed",
                "open"
              ]
            },
            "example": "open"
          },
          {
            "name": "mode",
            "in": "query",
            "description": "fresh or existing.",
            "schema": {
              "type": "string",
              "enum": [
                "fresh",
                "existing"
              ]
            }
          },
          {
            "name": "identifier",
            "in": "query",
            "description": "Only orders for this company (CIN, LLPIN or FCRN).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Orders placed on or after this date, YYYY-MM-DD (IST).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Orders placed on or before this date, YYYY-MM-DD (IST).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            },
            "example": 1
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Orders per page, 1 to 100.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            },
            "example": 50
          }
        ],
        "responses": {
          "200": {
            "description": "One page of orders. total counts every matching order across all pages.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Order"
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "page": {
                          "type": "integer",
                          "description": "Current page."
                        },
                        "limit": {
                          "type": "integer",
                          "description": "Orders per page."
                        },
                        "total": {
                          "type": "integer",
                          "description": "Matching orders across all pages."
                        },
                        "total_pages": {
                          "type": "integer",
                          "description": "Number of pages."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "order_id": "3ffe91e0-563c-4050-b64e-55a580b14a4e",
                      "order_number": "ORD-2026-000024",
                      "status": "PENDING",
                      "mode": "FRESH",
                      "report_type": "OMNA_BASIC",
                      "identifier": "U72900KA2015PTC082345",
                      "company_name": "EXAMPLE ANALYTICS PRIVATE LIMITED",
                      "credits_charged": 2000,
                      "report_id": null,
                      "source": "API",
                      "created_at": "2026-10-05T14:30:11+05:30",
                      "updated_at": "2026-10-05T14:30:11+05:30",
                      "completed_at": null
                    }
                  ],
                  "pagination": {
                    "page": 1,
                    "limit": 50,
                    "total": 1,
                    "total_pages": 1
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. error.code is one of: invalid_status, invalid_mode, invalid_page, invalid_limit, invalid_date.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error. error.code is one of: unauthorized.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error. error.code is one of: rate_limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-errors": [
          "invalid_status",
          "invalid_mode",
          "invalid_page",
          "invalid_limit",
          "invalid_date",
          "unauthorized",
          "rate_limited"
        ],
        "x-example": {
          "query": {
            "status": "open",
            "page": "1",
            "limit": "50"
          },
          "headers": {
            "Authorization": "Bearer $OMNA_API_KEY"
          }
        }
      }
    },
    "/orders/{order_id}": {
      "get": {
        "operationId": "getOrder",
        "summary": "Check Order Status",
        "tags": [
          "Orders"
        ],
        "description": "Returns one order. When status is COMPLETED, report_id is set and the report can be retrieved with Get Report or Download Report. A polling interval of 15 to 30 minutes is recommended; to track many orders, use Orders List with status=open.",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "The order_id returned by Create Order.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "3ffe91e0-563c-4050-b64e-55a580b14a4e"
          }
        ],
        "responses": {
          "200": {
            "description": "The order.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Order"
                    }
                  }
                },
                "example": {
                  "data": {
                    "order_id": "3ffe91e0-563c-4050-b64e-55a580b14a4e",
                    "order_number": "ORD-2026-000024",
                    "status": "COMPLETED",
                    "mode": "FRESH",
                    "report_type": "OMNA_BASIC",
                    "identifier": "U72900KA2015PTC082345",
                    "company_name": "EXAMPLE ANALYTICS PRIVATE LIMITED",
                    "credits_charged": 2000,
                    "report_id": "4c67fbb0-e60d-4852-af26-7793ee528076",
                    "source": "API",
                    "created_at": "2026-10-05T14:30:11+05:30",
                    "updated_at": "2026-10-07T11:02:40+05:30",
                    "completed_at": "2026-10-07T11:02:40+05:30"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error. error.code is one of: unauthorized.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error. error.code is one of: order_not_found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error. error.code is one of: rate_limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-errors": [
          "unauthorized",
          "order_not_found",
          "rate_limited"
        ],
        "x-example": {
          "pathParams": {
            "order_id": "3ffe91e0-563c-4050-b64e-55a580b14a4e"
          },
          "headers": {
            "Authorization": "Bearer $OMNA_API_KEY"
          }
        }
      }
    },
    "/reports/{report_id}": {
      "get": {
        "operationId": "getReport",
        "summary": "Get Report",
        "tags": [
          "Reports"
        ],
        "description": "Returns a delivered report as structured JSON for processing in your systems. The report content covers the sections included in the order's report type.",
        "parameters": [
          {
            "name": "report_id",
            "in": "path",
            "required": true,
            "description": "The report_id of a COMPLETED order.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "4c67fbb0-e60d-4852-af26-7793ee528076"
          }
        ],
        "responses": {
          "200": {
            "description": "The report.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "report_id": {
                          "type": "string",
                          "format": "uuid",
                          "description": "Unique ID of the report."
                        },
                        "company_name": {
                          "type": "string",
                          "description": "Registered name of the company."
                        },
                        "identifier": {
                          "type": "string",
                          "description": "CIN, LLPIN or FCRN of the company."
                        },
                        "report_type": {
                          "type": "string",
                          "description": "The report type the report was delivered as."
                        },
                        "version": {
                          "type": "integer",
                          "description": "Increases by one each time the account receives a newer report on the same company."
                        },
                        "published_at": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When the report was delivered."
                        },
                        "valid_until": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "description": "Date until which the report data is considered current."
                        },
                        "report": {
                          "type": "object",
                          "description": "The report content."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "report_id": "4c67fbb0-e60d-4852-af26-7793ee528076",
                    "company_name": "EXAMPLE ANALYTICS PRIVATE LIMITED",
                    "identifier": "U72900KA2015PTC082345",
                    "report_type": "OMNA_BASIC",
                    "version": 1,
                    "published_at": "2026-10-07T11:02:40+05:30",
                    "valid_until": "2027-01-05T11:02:40+05:30",
                    "report": {
                      "final_json": {
                        "...": "report sections"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error. error.code is one of: unauthorized.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error. error.code is one of: report_not_found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error. error.code is one of: rate_limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-errors": [
          "unauthorized",
          "report_not_found",
          "rate_limited"
        ],
        "x-example": {
          "pathParams": {
            "report_id": "4c67fbb0-e60d-4852-af26-7793ee528076"
          },
          "headers": {
            "Authorization": "Bearer $OMNA_API_KEY"
          }
        }
      }
    },
    "/reports/{report_id}/pdf": {
      "get": {
        "operationId": "downloadReport",
        "summary": "Download Report",
        "tags": [
          "Reports"
        ],
        "description": "Returns a delivered report as a PDF document. PDFs are generated on request: set a client timeout of at least 60 seconds and store the file rather than requesting it repeatedly.",
        "parameters": [
          {
            "name": "report_id",
            "in": "path",
            "required": true,
            "description": "The report_id of a COMPLETED order.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "4c67fbb0-e60d-4852-af26-7793ee528076"
          },
          {
            "name": "unit",
            "in": "query",
            "description": "How monetary amounts are shown: crore, lakh, million or raw (full figures).",
            "schema": {
              "type": "string",
              "enum": [
                "crore",
                "lakh",
                "million",
                "raw"
              ],
              "default": "crore"
            },
            "example": "crore"
          },
          {
            "name": "summary",
            "in": "query",
            "description": "true returns a condensed summary PDF instead of the full report.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "false"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The PDF document. The Content-Disposition header names the file after the company, for example EXAMPLE_ANALYTICS_PRIVATE_LIMITED.pdf (summary PDFs end in _SUMMARY.pdf).",
            "headers": {
              "Content-Disposition": {
                "description": "attachment; filename=\"<COMPANY_NAME>.pdf\"",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Error. error.code is one of: invalid_unit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error. error.code is one of: unauthorized.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error. error.code is one of: report_not_found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error. error.code is one of: rate_limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error. error.code is one of: pdf_generation_failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error. error.code is one of: pdf_unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-errors": [
          "invalid_unit",
          "unauthorized",
          "report_not_found",
          "rate_limited",
          "pdf_generation_failed",
          "pdf_unavailable"
        ],
        "x-example": {
          "pathParams": {
            "report_id": "4c67fbb0-e60d-4852-af26-7793ee528076"
          },
          "query": {
            "unit": "crore"
          },
          "headers": {
            "Authorization": "Bearer $OMNA_API_KEY"
          },
          "saveAs": "report.pdf"
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Send the API key as Authorization: Bearer <key>."
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Alternative to the Authorization header."
      }
    },
    "schemas": {
      "Order": {
        "type": "object",
        "properties": {
          "order_id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique ID of the order."
          },
          "order_number": {
            "type": "string",
            "description": "Human-readable order number, for reference in support requests."
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "PROCESSING",
              "COMPLETED"
            ],
            "description": "PENDING: accepted. PROCESSING: in progress. COMPLETED: the report is ready and report_id is set."
          },
          "mode": {
            "type": "string",
            "enum": [
              "FRESH",
              "EXISTING"
            ],
            "description": "The mode the order was placed with."
          },
          "report_type": {
            "type": "string",
            "description": "The report type ordered, for example OMNA_BASIC."
          },
          "identifier": {
            "type": "string",
            "description": "CIN, LLPIN or FCRN of the company."
          },
          "company_name": {
            "type": "string",
            "description": "Registered name of the company."
          },
          "credits_charged": {
            "type": "integer",
            "description": "Credits deducted from the wallet for this order."
          },
          "report_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "ID of the delivered report. null until the order is COMPLETED."
          },
          "source": {
            "type": "string",
            "enum": [
              "API",
              "PORTAL",
              "ADMIN"
            ],
            "description": "Where the order was placed: through the API, in the OMNADATA portal, or by OMNADATA on your behalf."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order was placed."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order last changed."
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the order was completed. null until then."
          }
        },
        "required": [
          "order_id",
          "status",
          "mode",
          "credits_charged",
          "source",
          "created_at",
          "updated_at"
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "description": "code is stable and meant for your code to check; message is for people. Some errors add fields such as order_id or report_id.",
            "properties": {
              "code": {
                "type": "string",
                "description": "Machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable description."
              }
            },
            "required": [
              "code",
              "message"
            ]
          },
          "request_id": {
            "type": "string",
            "description": "ID of the request, also returned in the X-Request-Id header."
          }
        },
        "required": [
          "error",
          "request_id"
        ]
      }
    }
  },
  "x-error-catalogue": {
    "idempotency_key_required": {
      "status": 400,
      "meaning": "The Idempotency-Key header is missing, blank or longer than 255 characters.",
      "action": "Send a unique Idempotency-Key with every Create Order request."
    },
    "invalid_body": {
      "status": 400,
      "meaning": "The request body is not valid JSON.",
      "action": "Send a JSON body with Content-Type: application/json."
    },
    "invalid_identifier": {
      "status": 400,
      "meaning": "The identifier is not a valid CIN, LLPIN or FCRN.",
      "action": "Check the company's registration number."
    },
    "invalid_mode": {
      "status": 400,
      "meaning": "mode is not FRESH or EXISTING.",
      "action": "Use FRESH or EXISTING."
    },
    "invalid_status": {
      "status": 400,
      "meaning": "The status filter is not a supported value.",
      "action": "Use pending, processing, completed or open."
    },
    "invalid_page": {
      "status": 400,
      "meaning": "page is not a positive whole number.",
      "action": "Use page=1 or higher."
    },
    "invalid_limit": {
      "status": 400,
      "meaning": "limit is outside 1 to 100.",
      "action": "Use a limit between 1 and 100."
    },
    "invalid_date": {
      "status": 400,
      "meaning": "from or to is not a YYYY-MM-DD date.",
      "action": "Send dates as YYYY-MM-DD."
    },
    "invalid_unit": {
      "status": 400,
      "meaning": "unit is not a supported value.",
      "action": "Use crore, lakh, million or raw."
    },
    "unauthorized": {
      "status": 401,
      "meaning": "The API key is missing, invalid or revoked, or API access is disabled for the account.",
      "action": "Send a valid key as Authorization: Bearer <key>."
    },
    "insufficient_balance": {
      "status": 402,
      "meaning": "The wallet balance is lower than the price of the order.",
      "action": "Top up the wallet, then retry with the same Idempotency-Key."
    },
    "report_type_not_enabled": {
      "status": 403,
      "meaning": "The requested report_type is not enabled for the account.",
      "action": "Omit report_type to use the account's report type."
    },
    "company_not_found": {
      "status": 404,
      "meaning": "No company matches the identifier.",
      "action": "Check the identifier."
    },
    "no_existing_report": {
      "status": 404,
      "meaning": "No report is available for the company in EXISTING mode.",
      "action": "Place the order with mode FRESH."
    },
    "order_not_found": {
      "status": 404,
      "meaning": "The order does not exist or belongs to another account.",
      "action": "Check the order_id."
    },
    "report_not_found": {
      "status": 404,
      "meaning": "The report does not exist or belongs to another account.",
      "action": "Check the report_id."
    },
    "order_in_progress": {
      "status": 409,
      "meaning": "A FRESH order for this company is already in progress for the account.",
      "action": "Track the existing order. Its ID is returned in error.order_id."
    },
    "report_already_owned": {
      "status": 409,
      "meaning": "The account already holds the latest report for this company.",
      "action": "Retrieve it with the report_id returned in error.report_id."
    },
    "existing_report_incompatible": {
      "status": 409,
      "meaning": "The available report does not cover the account's report type.",
      "action": "Place the order with mode FRESH."
    },
    "idempotency_key_reused": {
      "status": 422,
      "meaning": "The Idempotency-Key was already used with a different request body.",
      "action": "Use a new Idempotency-Key for a new order."
    },
    "rate_limited": {
      "status": 429,
      "meaning": "Too many requests in a short period.",
      "action": "Wait for the number of seconds in the Retry-After header, then retry."
    },
    "internal_error": {
      "status": 500,
      "meaning": "Unexpected server error.",
      "action": "Retry with backoff. For orders, reuse the same Idempotency-Key."
    },
    "pdf_generation_failed": {
      "status": 502,
      "meaning": "Temporary error while generating the PDF.",
      "action": "Retry after a short interval."
    },
    "pdf_unavailable": {
      "status": 503,
      "meaning": "PDF generation is temporarily unavailable.",
      "action": "Retry after a short interval."
    },
    "auth_unavailable": {
      "status": 503,
      "meaning": "Authentication is temporarily unavailable.",
      "action": "Retry after a short interval."
    }
  }
}