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

# Lists facilities for the given sub-supplier.

> {subSupplierId} is the OrganizationSubSupplier.Id (string GUID). State filter: null/active = active only; archived = archived only. Deleted facilities are never returned. cursor is mutually exclusive with filter/sort/pageSize/pageNumber. Sort supports multiple sort[n].property entries; allowed properties: name, address, country, countryCode, mid, processingType.



## OpenAPI

````yaml https://service.my.delogue.com/openapi/external.json get /api/sub-suppliers/{subSupplierId}/facilities
openapi: 3.1.1
info:
  title: Delogue External API - (Production)
  description: Integration endpoints for Delogue API
  version: 1.0.0
servers:
  - url: >-
      http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/
security: []
tags:
  - name: SubSuppliers
  - name: StyleSupplierFacilities
  - name: StyleSkus
  - name: Styles
  - name: SampleRequests
  - name: StyleRelations
  - name: Style Prices
  - name: StyleItems
  - name: StyleFiles
  - name: StyleCustomFields
  - name: StyleContacts
  - name: StyleCategories
  - name: StyleCareInstructions
  - name: SizeRanges
  - name: Seasons
  - name: SampleTypes
  - name: Organizations
  - name: MeasurementCharts
  - name: Items
  - name: ItemCategories
  - name: Groups
  - name: Facilities
  - name: ComplianceCustomFields
  - name: ComplianceCategories
  - name: Color Groups
  - name: Colors
  - name: CareInstructions
  - name: CareInstructionMaterials
  - name: CareInstructionLayers
  - name: CareInstructionIcons
  - name: Brands
  - name: Barcodes
paths:
  /api/sub-suppliers/{subSupplierId}/facilities:
    get:
      tags:
        - Facilities
      summary: Lists facilities for the given sub-supplier.
      description: >-
        {subSupplierId} is the OrganizationSubSupplier.Id (string GUID). State
        filter: null/active = active only; archived = archived only. Deleted
        facilities are never returned. cursor is mutually exclusive with
        filter/sort/pageSize/pageNumber. Sort supports multiple sort[n].property
        entries; allowed properties: name, address, country, countryCode, mid,
        processingType.
      parameters:
        - name: subSupplierId
          in: path
          required: true
          schema:
            type: string
        - name: SubSupplierId
          in: query
          schema:
            type: string
        - name: FacilityIds
          in: query
          schema:
            type: array
            items:
              type: string
        - name: ProcessingTypeIds
          in: query
          schema:
            type: array
            items:
              pattern: ^-?(?:0|[1-9]\d*)$
              type:
                - integer
                - string
              format: int64
        - name: CountryCodes
          in: query
          schema:
            type: array
            items:
              type: string
        - name: Mid
          in: query
          schema:
            type: string
        - name: Search
          in: query
          schema:
            type: string
        - name: State
          in: query
          schema:
            $ref: '#/components/schemas/FacilityStateFilter'
        - name: sort
          in: query
          schema:
            type: array
            items:
              $ref: '#/components/schemas/SortDescriptorDto'
        - name: pageSize
          in: query
          schema:
            pattern: ^-?(?:0|[1-9]\d*)$
            type:
              - integer
              - string
            format: int32
        - name: pageNumber
          in: query
          schema:
            pattern: ^-?(?:0|[1-9]\d*)$
            type:
              - integer
              - string
            format: int32
        - name: cursor
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiPaginatedResponseOfFacilityDto'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiPaginatedResponseOfFacilityDto'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiPaginatedResponseOfFacilityDto'
        '400':
          description: Bad Request
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: Unauthorized
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: Forbidden
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Not Found
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: Internal Server Error
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      security:
        - {}
components:
  schemas:
    FacilityStateFilter: {}
    SortDescriptorDto:
      type: object
      properties:
        propertyName:
          type: string
        order:
          $ref: '#/components/schemas/SortOrderDto'
      additionalProperties: false
    ApiPaginatedResponseOfFacilityDto:
      required:
        - status
        - code
        - data
        - pagination
      type: object
      properties:
        status:
          $ref: '#/components/schemas/ApiResponseStatus'
        code:
          type: string
        data:
          type: array
          items:
            $ref: '#/components/schemas/FacilityDto'
        pagination:
          $ref: '#/components/schemas/PaginationInfo'
      additionalProperties: false
    ApiErrorResponse:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/ApiResponseStatus'
        code:
          type: string
        error:
          $ref: '#/components/schemas/ErrorWrapper'
      additionalProperties: false
    SortOrderDto: {}
    ApiResponseStatus: {}
    FacilityDto:
      type: object
      properties:
        id:
          type: string
        organizationId:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
        subSupplierId:
          type: string
        name:
          type: string
        address:
          type:
            - 'null'
            - string
        zipCode:
          type:
            - 'null'
            - string
        city:
          type:
            - 'null'
            - string
        stateOrRegion:
          type:
            - 'null'
            - string
        countryId:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
        countryCode:
          type:
            - 'null'
            - string
        countryName:
          type:
            - 'null'
            - string
        latitude:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
          type:
            - 'null'
            - number
            - string
          format: double
        longitude:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
          type:
            - 'null'
            - number
            - string
          format: double
        mid:
          type:
            - 'null'
            - string
        relationType:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/FacilityRelationType'
        relationTypeName:
          type:
            - 'null'
            - string
        state:
          $ref: '#/components/schemas/FacilityState'
        processes:
          type: array
          items:
            $ref: '#/components/schemas/FacilityProcessDto'
        certificateCount:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
        createdAt:
          type: string
          format: date-time
      additionalProperties: false
    PaginationInfo:
      required:
        - hasMore
        - cursor
      type: object
      properties:
        hasMore:
          type: boolean
        cursor:
          type: string
      additionalProperties: false
    ErrorWrapper:
      type: object
      properties:
        details:
          type: array
          items:
            $ref: '#/components/schemas/ErrorDetailDto'
      additionalProperties: false
    FacilityRelationType: {}
    FacilityState: {}
    FacilityProcessDto:
      type: object
      properties:
        id:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int64
        processTypeId:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int64
        processTypeName:
          type:
            - 'null'
            - string
      additionalProperties: false
    ErrorDetailDto:
      required:
        - type
        - field
        - value
      type: object
      properties:
        type:
          type: string
        field:
          type:
            - 'null'
            - string
        value:
          type:
            - 'null'
            - string
      additionalProperties: false

````