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

# Get a customer

> One reseller.

Requires the `customers:read` scope.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/customers/{id}
openapi: 3.1.0
info:
  title: BrandGate API
  version: 1.0.0
  description: >-
    Read orders, products, stock, customers and invoices, acknowledge orders and
    set stock from your ERP. Authenticate with an organization API key or an
    OAuth access token as `Authorization: Bearer <token>`.
servers:
  - url: https://api.brandgate.dev
security:
  - apiKey: []
  - oauth2: []
tags:
  - name: orders
    description: Orders placed by resellers.
  - name: products
    description: The product catalogue.
  - name: inventory
    description: Stock levels per SKU.
  - name: customers
    description: Resellers buying from the organization.
  - name: invoices
    description: Invoices sent to resellers.
  - name: webhook_endpoints
    description: Where BrandGate sends events.
paths:
  /v1/customers/{id}:
    get:
      tags:
        - customers
      summary: Get a customer
      description: |-
        One reseller.

        Requires the `customers:read` scope.
      operationId: customersGet
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Success.
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  object:
                    const: customer
                  name:
                    type:
                      - string
                      - 'null'
                    maxLength: 500
                  contact_name:
                    type: string
                    maxLength: 500
                  email:
                    type: string
                    maxLength: 320
                  phone:
                    type:
                      - string
                      - 'null'
                    maxLength: 100
                  vat_number:
                    type:
                      - string
                      - 'null'
                    maxLength: 100
                  status:
                    type: string
                    enum:
                      - active
                      - pending
                      - inactive
                  billing_address:
                    type: object
                    properties:
                      line1:
                        type:
                          - string
                          - 'null'
                        maxLength: 500
                      city:
                        type:
                          - string
                          - 'null'
                        maxLength: 200
                      postal_code:
                        type:
                          - string
                          - 'null'
                        maxLength: 40
                      country:
                        type:
                          - string
                          - 'null'
                        maxLength: 100
                    required:
                      - line1
                      - city
                      - postal_code
                      - country
                    additionalProperties: false
                  shipping_address:
                    type: object
                    properties:
                      line1:
                        type:
                          - string
                          - 'null'
                        maxLength: 500
                      city:
                        type:
                          - string
                          - 'null'
                        maxLength: 200
                      postal_code:
                        type:
                          - string
                          - 'null'
                        maxLength: 40
                      country:
                        type:
                          - string
                          - 'null'
                        maxLength: 100
                    required:
                      - line1
                      - city
                      - postal_code
                      - country
                    additionalProperties: false
                  payment_terms_days:
                    type:
                      - integer
                      - 'null'
                  preferred_currency:
                    type:
                      - string
                      - 'null'
                    maxLength: 3
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
                required:
                  - id
                  - object
                  - name
                  - contact_name
                  - email
                  - phone
                  - vat_number
                  - status
                  - billing_address
                  - shipping_address
                  - payment_terms_days
                  - preferred_currency
                  - created_at
                  - updated_at
                additionalProperties: false
        '400':
          description: The request is invalid. `error.message` says which field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, unknown, expired or revoked credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The credentials lack the scope this operation needs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in your organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            Rate limited. Wait until `X-RateLimit-Reset` (or `Retry-After`
            seconds).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
        - oauth2:
            - customers:read
components:
  headers:
    RequestId:
      description: Quote this when contacting support.
      schema:
        type: string
        format: uuid
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
          required:
            - code
            - message
          additionalProperties: false
      required:
        - error
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An organization API key (`bg_live_…`), created in BrandGate under
        Settings → Developers.
    oauth2:
      type: oauth2
      description: >-
        For partner apps acting for many organizations. Authorization code with
        PKCE (S256).
      flows:
        authorizationCode:
          authorizationUrl: https://api.brandgate.dev/oauth/authorize
          tokenUrl: https://api.brandgate.dev/oauth/token
          refreshUrl: https://api.brandgate.dev/oauth/token
          scopes:
            orders:read: Read orders and their lines
            orders:write: Acknowledge orders with the ERP's own order number
            products:read: Read products and prices
            inventory:read: Read stock levels
            inventory:write: Update stock levels by SKU
            customers:read: Read customers (resellers), including contact details
            invoices:read: Read invoices
            webhooks:read: List webhook endpoints
            webhooks:write: Create and delete webhook endpoints

````

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