# Get Facility Details

Retrieve a single facility. When the facility is served by an integration, the response includes an `integration` block giving the supported operations, the query fields required to fetch charges, and any constraints on which shipments the integration handles. A facility without that block is paid directly, with no charge lookup.
Read this block at request time rather than caching it. Facilities are added to integrations over time, and the block always reflects the current state.

Endpoint: GET /getFacility/{id}
Version: 1.0.0
Security: bearerAuth, appId

## Path parameters:

  - `id` (integer, required)
    Facility identifier.

## Response 200 fields (application/json):

  - `id` (integer)
    Facility identifier.
    Example: 6225

  - `name` (string)
    Facility name.
    Example: Worldwide Flight Services (LAX)

  - `airportCode` (string)
    Airport code, or `ALL` when the facility is not airport specific.
    Example: LAX

  - `firmsCode` (string)
    FIRMS code.
    Example: E528

  - `deliveryType` (string)
    How the facility is notified of payment.
    Example: Electronic

  - `awbFieldLabel` (string)
    Label the facility uses for the shipment reference.
    Example: Air Waybill

  - `hawbFieldLabel` (string)
    Label the facility uses for the house bill or container.
    Example: House Bill

  - `integration` (object)
    Present when the facility is served by an integration. Its absence means the facility is paid directly.

  - `integration.code` (string)
    Identifier for the integration serving this facility.
    Example: EXAMPLE

  - `integration.operations` (array)
    Operations supported when retrieving charges.

  - `integration.queryFields` (array)
    Fields required when retrieving charges.

  - `integration.queryFields.operation` (string)
    Operation the field applies to.
    Example: MASTER

  - `integration.queryFields.key` (string)
    Field key to send in `queryFields`.
    Example: awb

  - `integration.queryFields.label` (string)
    Human readable label.
    Example: Air Waybill

  - `integration.queryFields.type` (string)
    Value type.
    Example: string

  - `integration.queryFields.required` (boolean)
    Whether the field is mandatory.
    Example: true

  - `integration.constraints` (object)
    Limits on which shipments the integration handles.

  - `integration.constraints.airlinePrefixes` (array)
    Airline prefixes served by the integration.

## Response 401 fields (application/json):

  - `errors` (array)
    Error messages.

## Response 404 fields (application/json):

  - `errors` (array)
    Error messages.

