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

# Poll processing status by gu_id



## OpenAPI

````yaml /tango_common/integrations/guides/vendor-inbound-api.yaml get /v1/batch/status
openapi: 3.1.0
info:
  title: Tango Vendor (Supplier Sites) Inbound API
  version: '1.3'
  description: |
    Async REST API: client PUTs vendor / supplier-site records to Tango.
    Tango creates/updates supplier sites with addressing, payment, and bank
    information. Two-call pattern with `gu_id` polling.

    The `(supplier_number, supplier_site_number)` pair is the upsert key.
  x-direction: inbound
  x-source: Client System
  x-destination: Tango
servers:
  - url: https://api.tangoanalytics.com
    description: Production
  - url: https://testapi.tangoanalytics.com
    description: Test (SIT/UAT)
security:
  - xClientHeader: []
    xApiKeyHeader: []
tags:
  - name: Vendors
  - name: Status
paths:
  /v1/batch/status:
    get:
      tags:
        - Status
      summary: Poll processing status by gu_id
      operationId: getBatchStatus
      parameters:
        - $ref: '#/components/parameters/XClient'
        - $ref: '#/components/parameters/XApiKey'
        - in: query
          name: gu_id
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Status payload.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusResponse'
components:
  parameters:
    XClient:
      name: x-client
      in: header
      required: true
      schema:
        type: string
    XApiKey:
      name: x-api-key
      in: header
      required: true
      schema:
        type: string
  schemas:
    StatusResponse:
      oneOf:
        - type: object
          properties:
            status:
              type: string
              const: PROCESSING
        - type: object
          required:
            - status
            - total_records
          properties:
            status:
              type: string
              const: COMPLETED
            total_records:
              type: integer
            errors:
              type: 'null'
        - type: object
          required:
            - status
            - total_records
            - errors
          properties:
            status:
              type: string
              const: ERROR
            total_records:
              type: integer
            errors:
              type: array
              items:
                type: object
                required:
                  - record_index
                  - error
                properties:
                  record_index:
                    type: integer
                  record_key:
                    description: Typically supplier_site_number (string or number).
                    oneOf:
                      - type: string
                      - type: integer
                  error:
                    type: string
  securitySchemes:
    xClientHeader:
      type: apiKey
      in: header
      name: x-client
    xApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````