# DispatchLoad

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /services/api/rest/DispatchLoad:
    post:
      summary: DispatchLoad
      deprecated: false
      description: >-
        This function will move a shipment to dispatched status. Communication
        to the carrier is controlled with the SubmitPickup but within the
        request. When set to true, a pickup request will be sent to the selected
        carrier, and when it is set to false the shipment will be moved into
        dispatched status.
      tags:
        - Version 2/Additional Offerings/Additional Dispatching
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Accept
          in: header
          description: ''
          required: false
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DispatchLoadRequest'
            example:
              AuthenticationData:
                Username: ''
                Password: ''
                ClientRefNum: ''
              LoadID: ''
              SubmitPickup: 'true'
              DispatchOverride: 'false'
              LoadData:
                ProNumber: ''
                BOLNumber: ''
                ActualCarrierName: ''
                QuoteID: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DispatchLoadResponse'
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: Version 2/Additional Offerings/Additional Dispatching
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/668040/apis/api-10126318-run
components:
  schemas:
    DispatchLoadRequest:
      type: object
      properties:
        AuthenticationData:
          description: Banyan Credentials
          $ref: '#/components/schemas/Authentication%20Data'
        LoadId:
          type: integer
          description: Banyan's primary Shipment Identifier
        SubmitPickup:
          type: boolean
          description: When true, a dispatch request will be sent to the carrier.
        DispatchOverride:
          type: boolean
          description: >-
            If dispatch fails with carrier, attempt the follow in order till
            success: - Attempt EDI 204 (Load Tender) - Attempt email to carrier
            - Move load into dispatched status, return note
        LoadData:
          type: object
          properties:
            ProNumber:
              type: string
              description: To update the shipment's pro number
            BOLNumber:
              type: string
              description: To update the shipment's BOL number
            ActualCarrierName:
              type: string
              description: Carrier name of the requested quote
            QuoteID:
              type: integer
              description: Quote's primary identifier (Banyan supplied)
          required:
            - BOLNumber
            - QuoteID
          x-apidog-orders:
            - ProNumber
            - BOLNumber
            - ActualCarrierName
            - QuoteID
          description: Specific load data.
          x-apidog-ignore-properties: []
      required:
        - AuthenticationData
        - LoadId
        - SubmitPickup
        - DispatchOverride
        - LoadData
      x-apidog-orders:
        - AuthenticationData
        - LoadId
        - SubmitPickup
        - DispatchOverride
        - LoadData
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Authentication Data:
      type: object
      properties:
        Username:
          type: string
          description: Banyan Username
          x-apidog-mock: username
        Password:
          type: string
          description: Banyan Password
          x-apidog-mock: password
        ClientRefNum:
          type: string
          description: Client Reference Number - Used during multiple client integrations
          nullable: true
      required:
        - Username
        - Password
      x-apidog-orders:
        - Username
        - Password
        - ClientRefNum
      description: Banyan Credentials
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    DispatchLoadResponse:
      type: object
      x-apidog-refs:
        01HSC3A4B8SR0S57Z5MCX1GW0W:
          $ref: '#/components/schemas/DispatchResponse'
          x-apidog-overrides: {}
      properties:
        LoadId: &ref_0
          type: integer
          description: Banyan's primary Shipment Identifier
        Success: &ref_1
          type: boolean
          description: Success of the dispatch request
        PickupNumber: &ref_2
          type: string
          description: Shipment's pickup number
        ProNumber: &ref_3
          type: string
          description: Shipment's pro number
        UserMessage: &ref_4
          type: string
          description: Carrier message
        BOLLink: &ref_5
          type: string
          description: Link to the shipment's BOL
        Errors: &ref_6
          type: array
          items:
            type: string
          description: List of the errors returned during the attempted dispatch
      x-apidog-orders:
        - 01HSC3A4B8SR0S57Z5MCX1GW0W
      required:
        - LoadId
        - Success
        - Errors
      x-apidog-ignore-properties:
        - LoadId
        - Success
        - PickupNumber
        - ProNumber
        - UserMessage
        - BOLLink
        - Errors
      x-apidog-folder: ''
    DispatchResponse:
      type: object
      properties:
        LoadId: *ref_0
        Success: *ref_1
        PickupNumber: *ref_2
        ProNumber: *ref_3
        UserMessage: *ref_4
        BOLLink: *ref_5
        Errors: *ref_6
      x-apidog-orders:
        - LoadId
        - Success
        - PickupNumber
        - ProNumber
        - UserMessage
        - BOLLink
        - Errors
      required:
        - LoadId
        - Success
        - Errors
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ws.integration.banyantechnology.com
    description: Integration Env
security: []

```
