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

# Get customer file

> Retrieves a specific file for a customer.



## OpenAPI

````yaml /api-reference/openapi.yaml get /customers/{customer_id}/files/{id}
openapi: 3.0.3
info:
  title: Streamlined API
  description: >
    Access customers, customer applications, customer groups, products, payouts,
    invoices, transactions, and deposit links programmatically through this API,
    and receive webhooks when deposit links change. All requests must be
    authenticated with an API key.
  version: 1.6.0
  license:
    name: Proprietary
    url: https://streamlinedpayments.com/terms
servers:
  - url: https://api.staging.streamlinedpayments.com/api/v1
    description: Sandbox
  - url: https://api.streamlinedpayments.com/api/v1
    description: Production
security:
  - AppIdAuth: []
    ApiKeyAuth: []
tags:
  - name: Customers
    description: Create, update and delete the businesses you sell to.
  - name: Customer applications
    description: >-
      List the applications your customers submit, and approve them. Approving
      can also set net terms and export the customer to Shopify. See [Approve
      customer applications](/guides/customer-applications).
  - name: Customer groups
    description: >-
      Organize customers into groups and manage who's in each one. A group can
      be linked to a Shopify B2B company.
  - name: Customer files
    description: Upload and manage files attached to a customer.
  - name: Customer addresses
    description: Manage a customer's addresses and choose their default billing address.
  - name: Orders
    description: Create orders, add and remove line items, and schedule them.
  - name: Invoices
    description: Create invoices from orders, then list, look up and update them.
  - name: Transactions
    description: List transactions and look one up.
  - name: Payouts
    description: List payouts, including pending ones, and look one up.
  - name: Products
    description: >-
      Create and update the products and services you sell, import them in bulk,
      and merge duplicates.
  - name: Deposit links
    description: Collect money from a customer before an invoice exists.
  - name: Webhooks
    description: >-
      Register HTTPS endpoints to receive events when something changes. See
      [Webhooks](/guides/webhooks) for signatures, retries and delivery
      guarantees.
paths:
  /customers/{customer_id}/files/{id}:
    get:
      tags:
        - Customer files
      summary: Get customer file
      description: Retrieves a specific file for a customer.
      operationId: getCustomerFile
      parameters:
        - name: customer_id
          in: path
          description: The UUID of the customer
          required: true
          schema:
            type: string
            format: uuid
        - name: id
          in: path
          description: The ID of the file
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerFile'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: File not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: File not found
components:
  schemas:
    CustomerFile:
      type: object
      properties:
        file:
          $ref: '#/components/schemas/CustomerFileItem'
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
    CustomerFileItem:
      type: object
      properties:
        id:
          type: integer
        label:
          $ref: '#/components/schemas/CustomerFileLabel'
        label_name:
          type: string
          description: Human-readable name for the label.
        category:
          type: string
          description: Category of the file.
        url:
          type: string
          format: uri
          description: URL to download the file.
        filename:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    CustomerFileLabel:
      type: string
      description: Allowed labels for customer files.
      enum:
        - credit_application
        - personal_guarantee
        - financial_statements
        - credit_report
        - sales_service_agreement
        - payment_terms_agreement
        - guarantee_security_agreement
        - reseller_certificate
        - non_disclosure_agreement
        - tax_exemption_certificate
        - business_license
        - insurance_certificate
        - shipping_contract
        - bill_of_lading
        - delivery_receipt
        - memo
        - customer_correspondence
        - dispute_documentation
        - other
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            AuthenticationRequired:
              value:
                error: Authentication required
                message: >-
                  API endpoint requires authentication. Please provide valid
                  X-App-Id and X-Api-Key headers.
            InvalidCredentials:
              value:
                error: Invalid credentials
                message: >-
                  The provided API credentials are invalid. Please check your
                  X-App-Id and X-Api-Key values.
  securitySchemes:
    AppIdAuth:
      type: apiKey
      in: header
      name: X-App-Id
      description: App ID for authentication
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: API Key for authentication

````

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