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

# Order a database report

> Return a Partners database report (same JSON and XML structure).

The body is the Partners `report` model in `https://partners.inra.co.th/schema/v1`.
Coded values use `{code, name}`.

In **production** this creates a real order and returns the report when one
is on file. It may be billed. If no database report is available the API
returns `404` with the code `report_not_available`; use an offline report
instead. If the order cannot be queued the API returns `503` with the code
`order_failed` and no charge is made.

In the **sandbox** the report is a masked fixture and no HQ order is created.




## OpenAPI

````yaml /openapi.json post /v1/database-reports
openapi: 3.1.0
info:
  title: INRA Partners API
  description: >
    The INRA Partners API lets authorised partners search Thai companies and

    retrieve INRA database reports and offline investigations.


    Resource responses default to XML. Send `Accept: application/json` or

    `format=json` for JSON. `POST /oauth/token` is always JSON. Field names are

    `snake_case` in both formats. XML uses the namespace

    `https://partners.inra.co.th/schema/v1`.


    ## Environments


    | Environment | Base URL | Data |

    | --- | --- | --- |

    | Production | `https://partners.inra.co.th` | Live Thai-company data.
    Orders are real and may be billed. |

    | Sandbox | `https://partners-sandbox.inra.co.th` | Masked sample companies
    and reports. Nothing you do here creates an HQ order or a charge. |


    Credentials are not interchangeable between environments. In production,

    `company_id` is INRA's nine-digit `public_id`. The sandbox uses its own

    sample identifiers (for example `100001`).


    ## Getting started


    1. Request a `client_id` and `client_secret` from
    [inraasth@inra.co.th](mailto:inraasth@inra.co.th).
       They are issued out of band, not from this page.
    2. Call `POST /oauth/token` with HTTP Basic (`client_id` as the username,
       `client_secret` as the password) and `grant_type=client_credentials`.
    3. Send the access token as `Authorization: Bearer <token>` on `/v1` routes.
       The token is an RS256 JWT, is valid for 15 minutes, and has no refresh
       token. Verify it with `GET /.well-known/jwks.json`.
    4. Search with `GET /v1/companies`, then look up a company or order a
    report.


    Prefer the sandbox while you are integrating. A production

    `POST /v1/database-reports` or `POST /v1/offline-reports` can create a

    billable order.


    Human-written guides live at
    [docs.partners.inra.co.th](https://docs.partners.inra.co.th).
  version: 1.0.0
servers:
  - url: https://partners.inra.co.th
    description: Production
  - url: https://partners-sandbox.inra.co.th
    description: Sandbox
security: []
tags:
  - name: Authentication
    description: Issue and verify access tokens.
  - name: Companies
    description: Search Thai companies and read a company profile.
  - name: Reports
    description: Order a database report or an offline investigation.
  - name: Orders
    description: List orders, check status, and download a completed report.
  - name: Callbacks
    description: >-
      Inspect the callback INRA registered for your client, and send a test
      ping.
  - name: Dictionaries
    description: Reference lists used by coded report fields.
paths:
  /v1/database-reports:
    post:
      tags:
        - Reports
      summary: Order a database report
      description: >
        Return a Partners database report (same JSON and XML structure).


        The body is the Partners `report` model in
        `https://partners.inra.co.th/schema/v1`.

        Coded values use `{code, name}`.


        In **production** this creates a real order and returns the report when
        one

        is on file. It may be billed. If no database report is available the API

        returns `404` with the code `report_not_available`; use an offline
        report

        instead. If the order cannot be queued the API returns `503` with the
        code

        `order_failed` and no charge is made.


        In the **sandbox** the report is a masked fixture and no HQ order is
        created.
      operationId: database_report_v1_database_reports_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DatabaseReportRequest'
          application/xml:
            schema:
              type: string
              description: XML element database_report_request in the partners namespace.
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          description: Not Found
        '406':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          description: Not Acceptable
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          description: Conflict
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          description: Gone
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          description: Too Many Requests
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
          description: Service Unavailable
      security:
        - BearerAuth: []
        - OAuth2: []
components:
  schemas:
    DatabaseReportRequest:
      additionalProperties: false
      properties:
        company_id:
          exclusiveMinimum: 0
          title: Company Id
          type: integer
        reference:
          anyOf:
            - maxLength: 200
              type: string
            - type: 'null'
          default: null
          title: Reference
      required:
        - company_id
      title: DatabaseReportRequest
      type: object
    Order:
      properties:
        order_id:
          type: integer
          title: Order Id
        order_date:
          type: string
          format: date-time
          title: Order Date
        complete_date:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Complete Date
        kind:
          type: string
          enum:
            - database
            - offline
            - offline_details
          title: Kind
          default: database
        company_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Company Id
        company_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Name
        status_code:
          type: integer
          title: Status Code
        status:
          type: string
          title: Status
        database:
          type: boolean
          title: Database
        reference:
          anyOf:
            - type: string
            - type: 'null'
          title: Reference
        content_type:
          anyOf:
            - type: string
              enum:
                - basic
                - regular
            - type: 'null'
          title: Content Type
          description: 'Offline orders: basic or regular.'
        speed:
          anyOf:
            - type: string
              enum:
                - normal
                - urgent
                - super_urgent
            - type: 'null'
          title: Speed
          description: 'Offline regular orders only: normal, urgent or super_urgent.'
        expected_working_days:
          anyOf:
            - type: integer
            - type: 'null'
          title: Expected Working Days
          description: >-
            Offline orders: expected turnaround in working days (Mon-Fri), from
            the standard HQ order types (Basic 2, Regular Normal 7, Urgent 4,
            Super Urgent 2). Overridable per client.
        expected_due_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Expected Due Date
          description: >-
            Offline orders: estimated delivery date (Asia/Bangkok, Mon-Fri,
            public holidays not considered). An estimate, not a commitment; INRA
            may deliver sooner or, for complex subjects, later.
        subject:
          anyOf:
            - $ref: '#/components/schemas/OrderSubject'
            - type: 'null'
        cancellation:
          anyOf:
            - $ref: '#/components/schemas/Cancellation'
            - type: 'null'
        links:
          anyOf:
            - $ref: '#/components/schemas/OrderLinks'
            - type: 'null'
        report:
          anyOf:
            - $ref: '#/components/schemas/Report'
            - type: 'null'
      additionalProperties: false
      type: object
      required:
        - order_id
        - order_date
        - status_code
        - status
        - database
      title: Order
      description: >-
        One order. Database orders are Completed at once and carry the report.


        Offline orders start Active (status_code 0) without a report while INRA
        staff

        check and create the real order; the report is attached once INRA
        completes

        it (status_code 1). status_code 2 means the

        order was cancelled and ``cancellation`` says why.
    ErrorBody:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      additionalProperties: false
      type: object
      required:
        - error
      title: ErrorBody
      description: >-
        JSON envelope. XML renders ErrorDetail directly so the root element is
        error.
    OrderSubject:
      properties:
        company_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Name
        local_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Local Name
        address:
          anyOf:
            - type: string
            - type: 'null'
          title: Address
        registration_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Registration Number
        country_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Country Code
        phone:
          anyOf:
            - type: string
            - type: 'null'
          title: Phone
        website:
          anyOf:
            - type: string
            - type: 'null'
          title: Website
      additionalProperties: false
      type: object
      title: OrderSubject
      description: What the client sent for an offline order by details (echoed back).
    Cancellation:
      properties:
        code:
          type: string
          title: Code
        reason:
          type: string
          title: Reason
      additionalProperties: false
      type: object
      required:
        - code
        - reason
      title: Cancellation
    OrderLinks:
      properties:
        order:
          type: string
          title: Order
        report:
          anyOf:
            - type: string
            - type: 'null'
          title: Report
      additionalProperties: false
      type: object
      required:
        - order
      title: OrderLinks
    Report:
      properties:
        company_id:
          type: integer
          title: Company Id
        last_update:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Last Update
        report_type:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        request_type:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        order_information:
          anyOf:
            - $ref: '#/components/schemas/OrderInformation'
            - type: 'null'
        monitoring_events:
          anyOf:
            - items:
                $ref: '#/components/schemas/MonitoringEvent'
              type: array
            - type: 'null'
          title: Monitoring Events
        identification_details:
          $ref: '#/components/schemas/IdentificationDetails'
        personnel_details:
          anyOf:
            - $ref: '#/components/schemas/PersonnelDetails'
            - type: 'null'
        operation_details:
          anyOf:
            - $ref: '#/components/schemas/OperationDetails'
            - type: 'null'
        financial_details:
          anyOf:
            - $ref: '#/components/schemas/FinancialDetails'
            - type: 'null'
        credit_rating:
          anyOf:
            - $ref: '#/components/schemas/CreditRating'
            - type: 'null'
        charts:
          anyOf:
            - items:
                $ref: '#/components/schemas/Chart'
              type: array
            - type: 'null'
          title: Charts
        summary:
          anyOf:
            - $ref: '#/components/schemas/ReportSummary'
            - type: 'null'
        awards:
          anyOf:
            - $ref: '#/components/schemas/Awards'
            - type: 'null'
        remarks:
          anyOf:
            - items:
                $ref: '#/components/schemas/Remark'
              type: array
            - type: 'null'
          title: Remarks
        credit_request:
          anyOf:
            - $ref: '#/components/schemas/CreditRequest'
            - type: 'null'
        suggested_credit_limit_history:
          anyOf:
            - items:
                $ref: '#/components/schemas/CreditLimitHistory'
              type: array
            - type: 'null'
          title: Suggested Credit Limit History
      additionalProperties: false
      type: object
      required:
        - company_id
        - identification_details
      title: Report
      description: |-
        Full Partners database or offline report.

        Z-Score is used only in the Coface Light Report (where it replaces the
        full credit rating) and is never included in the Partners API v1 report.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        request_id:
          type: string
          title: Request Id
      additionalProperties: false
      type: object
      required:
        - code
        - message
        - request_id
      title: ErrorDetail
    CodedValue:
      properties:
        code:
          type: string
          title: Code
        name:
          type: string
          title: Name
        name_local:
          anyOf:
            - type: string
            - type: 'null'
          title: Name Local
      additionalProperties: false
      type: object
      required:
        - code
        - name
      title: CodedValue
      description: 'A coded dictionary value: stable code plus display name.'
    OrderInformation:
      properties:
        customer_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Customer Name
        customer_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Customer Ref
        report_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Report Type
        receiving_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Receiving Date
        issuing_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Issuing Date
      additionalProperties: false
      type: object
      title: OrderInformation
    MonitoringEvent:
      properties:
        code:
          type: string
          title: Code
        description:
          type: string
          title: Description
      additionalProperties: false
      type: object
      required:
        - code
        - description
      title: MonitoringEvent
    IdentificationDetails:
      properties:
        company_name:
          type: string
          title: Company Name
        local_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Local Name
        local_name_language:
          anyOf:
            - type: string
            - type: 'null'
          title: Local Name Language
        registration_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Registration Number
        established_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Established Date
        legal_form:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        security_symbol:
          anyOf:
            - type: string
            - type: 'null'
          title: Security Symbol
        business_address:
          anyOf:
            - $ref: '#/components/schemas/Address'
            - type: 'null'
        registered_address:
          anyOf:
            - type: string
            - type: 'null'
          title: Registered Address
        former_names:
          anyOf:
            - items:
                $ref: '#/components/schemas/FormerName'
              type: array
            - type: 'null'
          title: Former Names
      additionalProperties: false
      type: object
      required:
        - company_name
      title: IdentificationDetails
    PersonnelDetails:
      properties:
        board_of_directors:
          anyOf:
            - $ref: '#/components/schemas/BoardOfDirectors'
            - type: 'null'
        top_managements:
          anyOf:
            - items:
                $ref: '#/components/schemas/Manager'
              type: array
            - type: 'null'
          title: Top Managements
      additionalProperties: false
      type: object
      title: PersonnelDetails
    OperationDetails:
      properties:
        operation_state:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        primary_business:
          anyOf:
            - type: string
            - type: 'null'
          title: Primary Business
        isc_codes:
          anyOf:
            - items:
                $ref: '#/components/schemas/IndustryCode'
              type: array
            - type: 'null'
          title: Isc Codes
        nace_codes:
          anyOf:
            - items:
                $ref: '#/components/schemas/IndustryCode'
              type: array
            - type: 'null'
          title: Nace Codes
        total_employees:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Employees
        major_customers:
          anyOf:
            - items:
                $ref: '#/components/schemas/Party'
              type: array
            - type: 'null'
          title: Major Customers
        major_suppliers:
          anyOf:
            - items:
                $ref: '#/components/schemas/Party'
              type: array
            - type: 'null'
          title: Major Suppliers
        brand_names:
          anyOf:
            - items:
                $ref: '#/components/schemas/BrandName'
              type: array
            - type: 'null'
          title: Brand Names
        bankers:
          anyOf:
            - items:
                $ref: '#/components/schemas/Banker'
              type: array
            - type: 'null'
          title: Bankers
        bankers_note:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        insurers:
          anyOf:
            - items:
                $ref: '#/components/schemas/Insurer'
              type: array
            - type: 'null'
          title: Insurers
        manpowers:
          anyOf:
            - items:
                $ref: '#/components/schemas/Manpower'
              type: array
            - type: 'null'
          title: Manpowers
        manpowers_note:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        locations:
          anyOf:
            - items:
                $ref: '#/components/schemas/Location'
              type: array
            - type: 'null'
          title: Locations
        locations_note:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        branches:
          anyOf:
            - items:
                $ref: '#/components/schemas/Branch'
              type: array
            - type: 'null'
          title: Branches
        related_parties:
          anyOf:
            - items:
                $ref: '#/components/schemas/RelatedParty'
              type: array
            - type: 'null'
          title: Related Parties
        recent_performance:
          anyOf:
            - $ref: '#/components/schemas/RecentPerformance'
            - type: 'null'
        litigation_records:
          anyOf:
            - items:
                $ref: '#/components/schemas/LitigationRecord'
              type: array
            - type: 'null'
          title: Litigation Records
        history:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        award:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        business_activity:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        production_capacity:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        revenue_breakdown:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        import_note:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        export_note:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        additional_information:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        comment:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
      additionalProperties: false
      type: object
      title: OperationDetails
    FinancialDetails:
      properties:
        financial_summary:
          anyOf:
            - $ref: '#/components/schemas/FinancialSummary'
            - type: 'null'
        financial_history:
          anyOf:
            - items:
                $ref: '#/components/schemas/FinancialHistoryYear'
              type: array
            - type: 'null'
          title: Financial History
        currency:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        capital_variations:
          anyOf:
            - items:
                $ref: '#/components/schemas/CapitalVariation'
              type: array
            - type: 'null'
          title: Capital Variations
        capital_variations_note:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        share_structure:
          anyOf:
            - $ref: '#/components/schemas/ShareStructure'
            - type: 'null'
        major_shareholders:
          anyOf:
            - $ref: '#/components/schemas/MajorShareholders'
            - type: 'null'
        partners:
          anyOf:
            - items:
                $ref: '#/components/schemas/Partner'
              type: array
            - type: 'null'
          title: Partners
        auditors:
          anyOf:
            - items:
                $ref: '#/components/schemas/Auditor'
              type: array
            - type: 'null'
          title: Auditors
        auditors_note:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        financial_statement:
          anyOf:
            - $ref: '#/components/schemas/FinancialStatement'
            - type: 'null'
        statement_of_cashflow:
          anyOf:
            - $ref: '#/components/schemas/CashflowStatement'
            - type: 'null'
        financial_analysis:
          anyOf:
            - items:
                $ref: '#/components/schemas/AnalysisGroup'
              type: array
            - type: 'null'
          title: Financial Analysis
        brief_financial_statement:
          anyOf:
            - $ref: '#/components/schemas/BriefStatement'
            - type: 'null'
        full_financial_statement:
          anyOf:
            - $ref: '#/components/schemas/FullStatement'
            - type: 'null'
      additionalProperties: false
      type: object
      title: FinancialDetails
    CreditRating:
      properties:
        rating_score:
          anyOf:
            - type: string
            - type: 'null'
          title: Rating Score
        rating_symbol:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        credit_limit:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        credit_limit_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Credit Limit Text
        definition:
          anyOf:
            - type: string
            - type: 'null'
          title: Definition
        credit_risk:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        credit_recommendation:
          anyOf:
            - type: string
            - type: 'null'
          title: Credit Recommendation
        rating_outlook:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        rating_pd:
          anyOf:
            - type: string
            - type: 'null'
          title: Rating Pd
        rating_pd_unit:
          anyOf:
            - type: string
            - type: 'null'
          title: Rating Pd Unit
        rating_definitions_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Rating Definitions Url
      additionalProperties: false
      type: object
      title: CreditRating
    Chart:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
        width:
          anyOf:
            - type: string
            - type: 'null'
          title: Width
        height:
          anyOf:
            - type: string
            - type: 'null'
          title: Height
        unit:
          anyOf:
            - type: string
            - type: 'null'
          title: Unit
        mime:
          anyOf:
            - type: string
            - type: 'null'
          title: Mime
        content:
          anyOf:
            - type: string
            - type: 'null'
          title: Content
      additionalProperties: false
      type: object
      title: Chart
    ReportSummary:
      properties:
        financial_condition:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        business_size:
          anyOf:
            - type: string
            - type: 'null'
          title: Business Size
      additionalProperties: false
      type: object
      title: ReportSummary
    Awards:
      properties:
        certifications:
          anyOf:
            - items:
                $ref: '#/components/schemas/Certification'
              type: array
            - type: 'null'
          title: Certifications
        boi_privileges:
          anyOf:
            - items:
                $ref: '#/components/schemas/BoiPrivilege'
              type: array
            - type: 'null'
          title: Boi Privileges
      additionalProperties: false
      type: object
      title: Awards
    Remark:
      properties:
        text:
          anyOf:
            - type: string
            - type: 'null'
          title: Text
      additionalProperties: false
      type: object
      title: Remark
    CreditRequest:
      properties:
        request:
          anyOf:
            - type: string
            - type: 'null'
          title: Request
        credit_opinion:
          anyOf:
            - type: string
            - type: 'null'
          title: Credit Opinion
        max_credit:
          anyOf:
            - type: string
            - type: 'null'
          title: Max Credit
      additionalProperties: false
      type: object
      title: CreditRequest
    CreditLimitHistory:
      properties:
        date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Date
        suggested_credit_limit:
          anyOf:
            - type: string
            - type: 'null'
          title: Suggested Credit Limit
        fs_year:
          anyOf:
            - type: string
            - type: 'null'
          title: Fs Year
      additionalProperties: false
      type: object
      title: CreditLimitHistory
    Address:
      properties:
        address:
          anyOf:
            - type: string
            - type: 'null'
          title: Address
        phone:
          anyOf:
            - type: string
            - type: 'null'
          title: Phone
        fax:
          anyOf:
            - type: string
            - type: 'null'
          title: Fax
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
        website:
          anyOf:
            - type: string
            - type: 'null'
          title: Website
        address_detail:
          anyOf:
            - $ref: '#/components/schemas/AddressDetail'
            - type: 'null'
      additionalProperties: false
      type: object
      title: Address
    FormerName:
      properties:
        name:
          type: string
          title: Name
        date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Date
      additionalProperties: false
      type: object
      required:
        - name
      title: FormerName
    BoardOfDirectors:
      properties:
        directors:
          anyOf:
            - items:
                $ref: '#/components/schemas/Director'
              type: array
            - type: 'null'
          title: Directors
        authorized_signature:
          anyOf:
            - type: string
            - type: 'null'
          title: Authorized Signature
        note:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
      additionalProperties: false
      type: object
      title: BoardOfDirectors
    Manager:
      properties:
        full_name:
          type: string
          title: Full Name
        nationality:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        age:
          anyOf:
            - type: integer
            - type: 'null'
          title: Age
        position:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        education:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        experience:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        others:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        status:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
        litigation_records:
          anyOf:
            - items:
                $ref: '#/components/schemas/LitigationRecord'
              type: array
            - type: 'null'
          title: Litigation Records
      additionalProperties: false
      type: object
      required:
        - full_name
      title: Manager
    IndustryCode:
      properties:
        code:
          type: string
          title: Code
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        main:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Main
        revision:
          anyOf:
            - type: string
            - type: 'null'
          title: Revision
      additionalProperties: false
      type: object
      required:
        - code
      title: IndustryCode
    Party:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        country:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
      additionalProperties: false
      type: object
      title: Party
    BrandName:
      properties:
        brand:
          type: string
          title: Brand
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
      additionalProperties: false
      type: object
      required:
        - brand
      title: BrandName
    Banker:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        branches:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Branches
      additionalProperties: false
      type: object
      title: Banker
    FormattedContent:
      properties:
        formatted_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Formatted Text
        formatted_html:
          anyOf:
            - type: string
            - type: 'null'
          title: Formatted Html
      additionalProperties: false
      type: object
      title: FormattedContent
    Insurer:
      properties:
        name:
          type: string
          title: Name
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
      additionalProperties: false
      type: object
      required:
        - name
      title: Insurer
    Manpower:
      properties:
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
        amount:
          anyOf:
            - type: integer
            - type: 'null'
          title: Amount
      additionalProperties: false
      type: object
      title: Manpower
    Location:
      properties:
        type:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        location:
          anyOf:
            - type: string
            - type: 'null'
          title: Location
      additionalProperties: false
      type: object
      title: Location
    Branch:
      properties:
        name:
          type: string
          title: Name
        location:
          anyOf:
            - type: string
            - type: 'null'
          title: Location
      additionalProperties: false
      type: object
      required:
        - name
      title: Branch
    RelatedParty:
      properties:
        relationship_type:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        registration_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Registration Number
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
      additionalProperties: false
      type: object
      title: RelatedParty
    RecentPerformance:
      properties:
        date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Date
        currency:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        items:
          anyOf:
            - items:
                $ref: '#/components/schemas/RecentPerformanceItem'
              type: array
            - type: 'null'
          title: Items
      additionalProperties: false
      type: object
      title: RecentPerformance
    LitigationRecord:
      properties:
        accept_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Accept Date
        case_type:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        case_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Case Number
        claim_type:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        claim_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Claim Description
        court:
          anyOf:
            - type: string
            - type: 'null'
          title: Court
        petitioners:
          anyOf:
            - type: string
            - type: 'null'
          title: Petitioners
        planner:
          anyOf:
            - type: string
            - type: 'null'
          title: Planner
        amount:
          anyOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
      additionalProperties: false
      type: object
      title: LitigationRecord
    FinancialSummary:
      properties:
        registered_capital:
          anyOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
        paid_up_capital:
          anyOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
        total_revenues:
          anyOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
        operation_profit:
          anyOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
        earning_before_income_tax:
          anyOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
        net_profit:
          anyOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
      additionalProperties: false
      type: object
      title: FinancialSummary
    FinancialHistoryYear:
      properties:
        year:
          anyOf:
            - type: integer
            - type: 'null'
          title: Year
        assets:
          anyOf:
            - type: string
            - type: 'null'
          title: Assets
        loans:
          anyOf:
            - type: string
            - type: 'null'
          title: Loans
        liability:
          anyOf:
            - type: string
            - type: 'null'
          title: Liability
        deposits:
          anyOf:
            - type: string
            - type: 'null'
          title: Deposits
        equity:
          anyOf:
            - type: string
            - type: 'null'
          title: Equity
        sales:
          anyOf:
            - type: string
            - type: 'null'
          title: Sales
        gross_income:
          anyOf:
            - type: string
            - type: 'null'
          title: Gross Income
        net_profit:
          anyOf:
            - type: string
            - type: 'null'
          title: Net Profit
        debt_to_equity:
          anyOf:
            - type: string
            - type: 'null'
          title: Debt To Equity
        loans_vs_deposits:
          anyOf:
            - type: string
            - type: 'null'
          title: Loans Vs Deposits
        loans_vs_deposits_units:
          anyOf:
            - type: string
            - type: 'null'
          title: Loans Vs Deposits Units
        defensive_interval:
          anyOf:
            - type: integer
            - type: 'null'
          title: Defensive Interval
        npls_vs_loans:
          anyOf:
            - type: string
            - type: 'null'
          title: Npls Vs Loans
      additionalProperties: false
      type: object
      title: FinancialHistoryYear
    CapitalVariation:
      properties:
        date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Date
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        amount:
          anyOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
      additionalProperties: false
      type: object
      title: CapitalVariation
    ShareStructure:
      properties:
        date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Date
        number_of_shareholders:
          anyOf:
            - $ref: '#/components/schemas/OwnershipCounts'
            - type: 'null'
        shareholding:
          anyOf:
            - $ref: '#/components/schemas/OwnershipCounts'
            - type: 'null'
      additionalProperties: false
      type: object
      title: ShareStructure
    MajorShareholders:
      properties:
        shareholders:
          anyOf:
            - items:
                $ref: '#/components/schemas/Shareholder'
              type: array
            - type: 'null'
          title: Shareholders
        other_shareholders:
          anyOf:
            - $ref: '#/components/schemas/OtherShareholders'
            - type: 'null'
        note:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
      additionalProperties: false
      type: object
      title: MajorShareholders
    Partner:
      properties:
        name:
          type: string
          title: Name
        nationality:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        amount:
          anyOf:
            - $ref: '#/components/schemas/Money'
            - type: 'null'
        percentage:
          anyOf:
            - type: string
            - type: 'null'
          title: Percentage
        unlimited_partner:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Unlimited Partner
      additionalProperties: false
      type: object
      required:
        - name
      title: Partner
    Auditor:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
      additionalProperties: false
      type: object
      title: Auditor
    FinancialStatement:
      properties:
        template:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        type_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Type Description
        consolidated:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Consolidated
        currency:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        display_units:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Units
        items:
          anyOf:
            - items:
                $ref: '#/components/schemas/AccountItem'
              type: array
            - type: 'null'
          title: Items
        note:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
      additionalProperties: false
      type: object
      title: FinancialStatement
    CashflowStatement:
      properties:
        template:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        currency:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        label:
          anyOf:
            - type: string
            - type: 'null'
          title: Label
        items:
          anyOf:
            - items:
                $ref: '#/components/schemas/AccountItem'
              type: array
            - type: 'null'
          title: Items
        note:
          anyOf:
            - $ref: '#/components/schemas/FormattedContent'
            - type: 'null'
      additionalProperties: false
      type: object
      title: CashflowStatement
    AnalysisGroup:
      properties:
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        items:
          anyOf:
            - items:
                $ref: '#/components/schemas/AnalysisItem'
              type: array
            - type: 'null'
          title: Items
      additionalProperties: false
      type: object
      title: AnalysisGroup
    BriefStatement:
      properties:
        template:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        type_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Type Description
        consolidated:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Consolidated
        currency:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        display_units:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Units
        account_dates:
          anyOf:
            - items:
                type: string
                format: date
              type: array
            - type: 'null'
          title: Account Dates
        items:
          anyOf:
            - items:
                $ref: '#/components/schemas/AccountItem'
              type: array
            - type: 'null'
          title: Items
      additionalProperties: false
      type: object
      title: BriefStatement
    FullStatement:
      properties:
        template:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        type_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Type Description
        consolidated:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Consolidated
        currency:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        items:
          anyOf:
            - items:
                $ref: '#/components/schemas/FullStatementItem'
              type: array
            - type: 'null'
          title: Items
      additionalProperties: false
      type: object
      title: FullStatement
    Certification:
      properties:
        type:
          type: string
          title: Type
        date_issued:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Date Issued
        issuer:
          anyOf:
            - type: string
            - type: 'null'
          title: Issuer
      additionalProperties: false
      type: object
      required:
        - type
      title: Certification
    BoiPrivilege:
      properties:
        products:
          anyOf:
            - type: string
            - type: 'null'
          title: Products
        date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Date
      additionalProperties: false
      type: object
      title: BoiPrivilege
    AddressDetail:
      properties:
        street:
          anyOf:
            - type: string
            - type: 'null'
          title: Street
        sub_district:
          anyOf:
            - type: string
            - type: 'null'
          title: Sub District
        district:
          anyOf:
            - type: string
            - type: 'null'
          title: District
        province:
          anyOf:
            - type: string
            - type: 'null'
          title: Province
        post_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Post Code
        country:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        country_code:
          anyOf:
            - type: string
              maxLength: 2
              minLength: 2
              pattern: ^[A-Z]{2}$
            - type: 'null'
          title: Country Code
          description: >-
            ISO 3166-1 alpha-2. Use the country dictionary's subdivision_code
            for UK nations.
      additionalProperties: false
      type: object
      title: AddressDetail
    Director:
      properties:
        full_name:
          type: string
          title: Full Name
        position:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        auth_symbol:
          anyOf:
            - type: string
            - type: 'null'
          title: Auth Symbol
        litigation_records:
          anyOf:
            - items:
                $ref: '#/components/schemas/LitigationRecord'
              type: array
            - type: 'null'
          title: Litigation Records
      additionalProperties: false
      type: object
      required:
        - full_name
      title: Director
    RecentPerformanceItem:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        value:
          anyOf:
            - type: string
            - type: 'null'
          title: Value
      additionalProperties: false
      type: object
      title: RecentPerformanceItem
    Money:
      properties:
        value:
          type: string
          title: Value
        currency:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        display_units:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Units
        item:
          anyOf:
            - type: integer
            - type: 'null'
          title: Item
      additionalProperties: false
      type: object
      required:
        - value
      title: Money
    OwnershipCounts:
      properties:
        thais:
          anyOf:
            - type: integer
            - type: 'null'
          title: Thais
        foreigners:
          anyOf:
            - type: integer
            - type: 'null'
          title: Foreigners
        total:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total
      additionalProperties: false
      type: object
      title: OwnershipCounts
    Shareholder:
      properties:
        name:
          type: string
          title: Name
        nationality:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        country:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        shareholding:
          anyOf:
            - type: integer
            - type: 'null'
          title: Shareholding
        percentage:
          anyOf:
            - type: string
            - type: 'null'
          title: Percentage
      additionalProperties: false
      type: object
      required:
        - name
      title: Shareholder
    OtherShareholders:
      properties:
        shareholding:
          anyOf:
            - type: integer
            - type: 'null'
          title: Shareholding
        percentage:
          anyOf:
            - type: string
            - type: 'null'
          title: Percentage
      additionalProperties: false
      type: object
      title: OtherShareholders
    AccountItem:
      properties:
        item_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Item Code
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        item_type:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        is_custom:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Custom
        parent_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Code
        indent_level:
          anyOf:
            - type: integer
            - type: 'null'
          title: Indent Level
        unit:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        amounts:
          anyOf:
            - items:
                $ref: '#/components/schemas/AmountPoint'
              type: array
            - type: 'null'
          title: Amounts
      additionalProperties: false
      type: object
      title: AccountItem
    AnalysisItem:
      properties:
        subject:
          type: string
          title: Subject
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        value:
          anyOf:
            - type: string
            - type: 'null'
          title: Value
        industrial_average:
          anyOf:
            - type: string
            - type: 'null'
          title: Industrial Average
        comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Comment
      additionalProperties: false
      type: object
      required:
        - subject
      title: AnalysisItem
    FullStatementItem:
      properties:
        item_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Item Code
        parent_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Code
        is_custom:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Custom
        level:
          anyOf:
            - type: integer
            - type: 'null'
          title: Level
        level_order:
          anyOf:
            - type: integer
            - type: 'null'
          title: Level Order
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        amounts:
          anyOf:
            - items:
                $ref: '#/components/schemas/AmountPoint'
              type: array
            - type: 'null'
          title: Amounts
      additionalProperties: false
      type: object
      title: FullStatementItem
    AmountPoint:
      properties:
        value:
          anyOf:
            - type: string
            - type: 'null'
          title: Value
        date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Date
        item:
          anyOf:
            - type: integer
            - type: 'null'
          title: Item
        currency:
          anyOf:
            - $ref: '#/components/schemas/CodedValue'
            - type: 'null'
        display_units:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Units
      additionalProperties: false
      type: object
      title: AmountPoint
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        RS256 access token from `POST /oauth/token`. Send `Authorization: Bearer
        <token>`.
    OAuth2:
      type: oauth2
      description: OAuth 2.0 client credentials. The token is valid for 15 minutes.
      flows:
        clientCredentials:
          tokenUrl: /oauth/token
          scopes:
            companies:search: Search companies
            companies:read: Read a company profile
            reports:database: Order a database report
            reports:offline: Order an offline investigation
            orders:read: List and read orders, and download reports

````

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