# Get documents for the specified shipment.

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v3/shipments/{Id}/GetDocuments:
    post:
      summary: Get documents for the specified shipment.
      deprecated: false
      description: |-
        ### Get documents related to the specified shipment.
                    
      tags:
        - Version 3/Shipments/Retrieving
        - Shipments
      parameters:
        - name: Id
          in: path
          description: The shipment (load) id to retrieve documents for. Banyan supplied.
          required: true
          example: 0
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetDocumentsRequest'
            example:
              documentTypes:
                - banyan_bol
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/BanyanWebServices.Domain.Dtos.DocumentDto
          headers: {}
          x-apidog-name: Success
        '400':
          description: ''
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc'
          headers: {}
          x-apidog-name: Bad Request
        '401':
          description: ''
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: Unauthorized
        '403':
          description: ''
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: Forbidden
        '429':
          description: ''
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: Too Many Requests
      security: []
      x-apidog-folder: Version 3/Shipments/Retrieving
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/668040/apis/api-10126278-run
components:
  schemas:
    GetDocumentsRequest:
      required:
        - documentTypes
      type: object
      properties:
        documentTypes:
          minItems: 1
          type: array
          items: &ref_1
            $ref: '#/components/schemas/DocumentTypesEnum'
          description: The requested document types.
        shippingLabelFormat:
          type: string
          description: The format to return for shipping labels.
          enum:
            - ZPL
            - EPL
            - PDF
          x-apidog-enum:
            - value: ZPL
              name: ''
              description: ' '
            - value: EPL
              name: ''
              description: ' '
            - value: PDF
              name: ''
              description: ''
        labelHasDockTabs:
          type: boolean
          description: Flag indicating whether the label has dock tabs.
        convertPdfToImage:
          type: boolean
          description: >-
            Flag indicating whether pdf documents should be converted to an
            image.
        imageFormat:
          type: string
          description: If converting pdf files to image files, the format to convert to.
          enum:
            - JPG
            - PNG
          x-apidog-enum:
            - value: JPG
              name: ''
              description: ''
            - value: PNG
              name: ''
              description: ''
      additionalProperties: false
      description: The get documents request.
      x-apidog-orders:
        - documentTypes
        - shippingLabelFormat
        - labelHasDockTabs
        - convertPdfToImage
        - imageFormat
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    DocumentTypesEnum:
      type: string
      description: Document types supported by the Get Documents endpoint.
      enum:
        - Banyan_BOL
        - Shipping_Label
        - Carrier_BOL
        - Carrier_POD
        - Carrier_Label
        - AP
        - AR
        - Carrier_Weight
        - InsuranceCertificate
      x-apidog-enum:
        - value: Banyan_BOL
          name: ''
          description: ''
        - value: Shipping_Label
          name: ''
          description: ''
        - value: Carrier_BOL
          name: ''
          description: ''
        - value: Carrier_POD
          name: ''
          description: ''
        - value: Carrier_Label
          name: ''
          description: ''
        - value: AP
          name: ''
          description: ''
        - value: AR
          name: ''
          description: ''
        - value: Carrier_Weight
          name: ''
          description: ''
        - value: InsuranceCertificate
          name: ''
          description: ''
      x-apidog-folder: ''
    BanyanWebServices.Domain.Dtos.DocumentDto:
      type: object
      properties:
        documentType: *ref_1
        base64Documents:
          type: array
          items:
            type: string
          description: Documents using base 64 encoding.
          nullable: true
        zplDocuments:
          type: array
          items:
            type: string
          description: Documents using ZPL encoding.
          nullable: true
        success:
          type: boolean
          description: Flag indicating whether getting documents of this type succeeded.
        error:
          $ref: '#/components/schemas/BanyanWebServices.Domain.Dtos.ErrorWrapperDto'
      additionalProperties: false
      description: The document dto.
      x-apidog-orders:
        - documentType
        - base64Documents
        - zplDocuments
        - success
        - error
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    BanyanWebServices.Domain.Dtos.ErrorWrapperDto:
      type: object
      properties:
        message:
          type: string
          description: The error message.
          nullable: true
      additionalProperties: false
      description: Web services 2 return error messages wrapped in a class for some reason.
      x-apidog-orders:
        - message
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Microsoft.AspNetCore.Mvc:
      title: ErrorResponse
      type: object
      properties:
        type:
          type: string
          description: A link explaining the response code
        title:
          type: string
          description: Describes the type of error
        status:
          type: integer
          description: The status code
        traceId:
          type: string
          description: A unique id to help troubleshoot
        detail:
          type: string
          description: A detailed message about the error
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          x-apidog-orders: []
          properties: {}
          description: Any errors returned.
          x-apidog-ignore-properties: []
      required:
        - type
        - title
        - status
        - traceId
      x-apidog-orders:
        - type
        - title
        - status
        - traceId
        - detail
        - errors
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ws.integration.banyantechnology.com
    description: Integration Env
security: []

```
