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

# District, state and centroid for an Indian PIN code

> District, state and centroid for an Indian PIN code, the same resolution the register uses for dealers and on-road prices.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/pincodes/{pin}
openapi: 3.1.0
info:
  title: Truckaurbus API
  version: v1
  description: >-
    The public v1 API at https://api.truckaurbus.com/v1. Authenticate with an
    API key in the Authorization header: Bearer tab_live_...
servers:
  - url: https://api.truckaurbus.com
security: []
paths:
  /v1/pincodes/{pin}:
    get:
      tags:
        - v1
      summary: District, state and centroid for an Indian PIN code
      description: >-
        District, state and centroid for an Indian PIN code, the same resolution
        the register uses for dealers and on-road prices.
      operationId: identity_api_v1_pincode
      parameters:
        - in: path
          name: pin
          required: true
          schema:
            title: Pin
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PincodeOut'
          description: OK
components:
  schemas:
    PincodeOut:
      properties:
        district:
          title: District
          type: string
        lat:
          anyOf:
            - type: number
            - type: 'null'
          title: Lat
        lng:
          anyOf:
            - type: number
            - type: 'null'
          title: Lng
        offices:
          default: []
          items:
            type: string
          title: Offices
          type: array
        pin:
          title: Pin
          type: string
        state:
          title: State
          type: string
        state_code:
          anyOf:
            - type: string
            - type: 'null'
          title: State Code
      required:
        - pin
        - district
        - state
      title: PincodeOut
      type: object

````