# GetQuotes

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /services/api/rest/GetQuotes:
    post:
      summary: GetQuotes
      deprecated: false
      description: |
        This function will retrieve all the valid quotes for a given shipment.
      tags:
        - Version 2/Recommended Workflow/Rating
      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:
              type: object
              properties:
                AuthenticationData:
                  $ref: '#/components/schemas/Authentication%20Data'
                  description: Banyan Credentials
                LoadId:
                  type: integer
                  description: Banyan's primary shipment identifier
              required:
                - AuthenticationData
                - LoadId
              x-apidog-orders:
                - AuthenticationData
                - LoadId
              x-apidog-ignore-properties: []
            example:
              AuthenticationData:
                Username: '{{username}}'
                Password: '{{password}}'
                ClientRefNum: ''
              LoadID: 12345678
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetQuotesResponse'
              example:
                Success: true
                Error: null
                LoadID: 62339134
                RatingCompleted: true
                Quotes:
                  - LoadID: 62339134
                    QuoteID: 486574985
                    CarrierName: Banyan Test Carrier
                    SCAC: BTST
                    ThirdPartyName: ''
                    ThirdPartySCAC: ''
                    ServiceID: '67593586'
                    RawPrice:
                      NetPrice: 134.33
                      FreightCharge: 100.02
                      DiscountAmount: 1270.05
                      FuelSurcharge: 34.31
                      Minimum: 0
                      GrossCharge: 1370.07
                      Tariff: 0
                      Interline: 0
                      AccessorialCharges: 0
                      OtherCharges: 0
                      Charges: []
                      Markup: 0
                    CarrierPrice:
                      NetPrice: 134.33
                      FreightCharge: 100.02
                      DiscountAmount: 1270.05
                      FuelSurcharge: 34.31
                      Minimum: 0
                      GrossCharge: 1370.07
                      Tariff: 0
                      Interline: 0
                      AccessorialCharges: 0
                      OtherCharges: 0
                      Charges: []
                      Markup: 0
                    CustomerPrice:
                      NetPrice: 161.2
                      FreightCharge: 120.03
                      DiscountAmount: 1524.1
                      FuelSurcharge: 41.17
                      Minimum: 0
                      GrossCharge: 1644.12
                      Tariff: 0
                      Interline: 0
                      AccessorialCharges: 0
                      OtherCharges: 0
                      Charges: []
                      Markup: 20
                    TransitTime: 1
                    QuoteNumber: '12037974'
                    CarrierPerson: Test Carrier Automated Quote
                    CarrierNote: ''
                    Datestamp: '2024-03-07T15:47:28'
                    Interline: false
                    Accepted: false
                    CurrencyType: 0
                    Service: 1
                    InsuranceDetails: null
                    AccountNumber: TOT799
                  - LoadID: 62339134
                    QuoteID: 486574986
                    CarrierName: Old Dominion Frt Line
                    SCAC: ODFL
                    ThirdPartyName: ''
                    ThirdPartySCAC: ''
                    ServiceID: '67593586'
                    RawPrice:
                      NetPrice: 457.9
                      FreightCharge: 350.88
                      DiscountAmount: 52.9
                      FuelSurcharge: 107.02
                      Minimum: 0
                      GrossCharge: 403.78
                      Tariff: 0
                      Interline: 0
                      AccessorialCharges: 0
                      OtherCharges: 0
                      Charges: []
                      Markup: 0
                    CarrierPrice:
                      NetPrice: 457.9
                      FreightCharge: 350.88
                      DiscountAmount: 52.9
                      FuelSurcharge: 107.02
                      Minimum: 0
                      GrossCharge: 403.78
                      Tariff: 0
                      Interline: 0
                      AccessorialCharges: 0
                      OtherCharges: 0
                      Charges: []
                      Markup: 0
                    CustomerPrice:
                      NetPrice: 549.48
                      FreightCharge: 421.06
                      DiscountAmount: 63.48
                      FuelSurcharge: 128.42
                      Minimum: 0
                      GrossCharge: 484.54
                      Tariff: 0
                      Interline: 0
                      AccessorialCharges: 0
                      OtherCharges: 0
                      Charges: []
                      Markup: 20
                    TransitTime: 1
                    QuoteNumber: '942483625'
                    CarrierPerson: Old Dominion Automated Quote
                    CarrierNote: ''
                    Datestamp: '2024-03-07T15:47:32'
                    Interline: false
                    Accepted: false
                    CurrencyType: 0
                    Service: 1
                    InsuranceDetails: null
                    AccountNumber: '12402756'
                PendingQuotes: null
                FailedQuotes:
                  - CarrierName: AAA Cooper
                    SCAC: AACT
                    Service: 1
                    ReasonCode: 1
                    Reason: >-
                      Carrier’s website returned an error when rating this
                      shipment.
                    Datestamp: '2024-03-07T15:47:26.717'
                  - CarrierName: American Transport Group
                    SCAC: AMTG
                    Service: 1
                    ReasonCode: 3
                    Reason: Account with this carrier is not valid.
                    Datestamp: '2024-03-07T15:47:29.647'
                Notes:
                  - Text: Load exported via FTP.
                    User: Automation
                    DateStamp: '2024-03-07T15:47:50'
                    NoteType: 10
                  - Text: REGRESSION TESTING
                    User: Automation
                    DateStamp: '2024-03-07T15:47:50'
                    NoteType: 12
                  - Text: >-
                      Dayton Freight Standard: Unable to process your rating
                      request, please contact our Pricing department at the
                      email address: pricing@daytonfreight.com. Error: Invalid
                      or Inactive Account specified.
                    User: Automation
                    DateStamp: '2024-03-07T15:47:26'
                    NoteType: 15
                  - Text: |-
                      Patch.IO carbon footprint: 149.172 kg
                       Estimated offset cost: 0.72 USD
                    User: Test User
                    DateStamp: '2024-03-07T15:47:25'
                    NoteType: 18
                  - Text: >-
                      No carbon project configured for your vendor. Patch.io
                      will select a project.
                    User: Test User
                    DateStamp: '2024-03-07T15:47:25'
                    NoteType: 5
                  - Text: Load Created
                    User: Test User
                    DateStamp: '2024-03-07T15:47:22'
                    NoteType: 10
                  - Text: 'Original BOLID: BOL1234'
                    User: Automation
                    DateStamp: '2024-03-07T15:47:22'
                    NoteType: 7
          headers: {}
          x-apidog-name: GetQuotes - 200 OK
      security: []
      x-apidog-folder: Version 2/Recommended Workflow/Rating
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/668040/apis/api-10126300-run
components:
  schemas:
    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: ''
    GetQuotesResponse:
      type: object
      properties:
        Success:
          type: boolean
          description: Success of the GetQuotes request
        Error:
          description: Error message related to the failure of the request
          anyOf:
            - $ref: '#/components/schemas/ErrorObject'
            - type: 'null'
        LoadId:
          type: integer
          title: ''
          description: Banyan's primary shipment identifier
        RatingCompleted:
          type: boolean
          description: Rating process complete
        Quotes:
          type: array
          items:
            $ref: '#/components/schemas/Quote'
          description: List of Carrier Quotes
        PendingQuotes:
          type: array
          items:
            $ref: '#/components/schemas/PendingQuote'
          description: List of Pending Carrier Quotes
          nullable: true
        FailedQuotes:
          type: array
          items:
            $ref: '#/components/schemas/FailedQuote'
          description: List of Failed Carrier Quotes
          nullable: true
        Notes:
          type: array
          items:
            $ref: '#/components/schemas/Note'
          description: Shipment & carrier notes
      required:
        - Success
        - LoadId
        - RatingCompleted
        - Quotes
        - PendingQuotes
        - FailedQuotes
        - Notes
      x-apidog-orders:
        - Success
        - Error
        - LoadId
        - RatingCompleted
        - Quotes
        - PendingQuotes
        - FailedQuotes
        - Notes
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Note:
      type: object
      properties:
        Text:
          type: string
          description: Note text
        User:
          type: string
          description: Note creator
        DateStamp:
          type: string
          description: Note date
        NoteType:
          description: Note Type
          $ref: '#/components/schemas/Note%20Type%20Enum'
      x-apidog-orders:
        - Text
        - User
        - DateStamp
        - NoteType
      required:
        - Text
        - User
        - DateStamp
        - NoteType
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Note Type Enum:
      type: string
      enum:
        - AccountingAdjustment
        - Email
        - Archiving
        - QuoteUpdate
        - Carrier
        - AwardedQuote
        - TechnicalNote
        - WebTracking
        - Edi
        - SystemEvent
        - Instructions
        - Public
        - BookReason
        - WebDispatch
        - QuoteRequest
        - Private
        - Contact
        - Accounting
        - TerminalUrl
        - Customer
        - DockUpdate
        - Address
        - DeleteQuote
        - Package
        - RateException
        - BillingReason
        - AdditionalService
        - ValidationQuote
        - QuoteRequestEmail
      x-apidog-enum:
        - value: AccountingAdjustment
          name: ''
          description: '1'
        - value: Email
          name: ''
          description: '2'
        - value: Archiving
          name: ''
          description: '3'
        - value: QuoteUpdate
          name: ''
          description: '4'
        - value: Carrier
          name: ''
          description: '5'
        - value: AwardedQuote
          name: ''
          description: '6'
        - value: TechnicalNote
          name: ''
          description: '7'
        - value: WebTracking
          name: ''
          description: '8'
        - value: Edi
          name: ''
          description: '9'
        - value: SystemEvent
          name: ''
          description: '10'
        - value: Instructions
          name: ''
          description: '11'
        - value: Public
          name: ''
          description: '12'
        - value: BookReason
          name: ''
          description: '13'
        - value: WebDispatch
          name: ''
          description: '14'
        - value: QuoteRequest
          name: ''
          description: '15'
        - value: Private
          name: ''
          description: '16'
        - value: Contact
          name: ''
          description: '17'
        - value: Accounting
          name: ''
          description: '18'
        - value: TerminalUrl
          name: ''
          description: '19'
        - value: Customer
          name: ''
          description: '20'
        - value: DockUpdate
          name: ''
          description: '21'
        - value: Address
          name: ''
          description: '22'
        - value: DeleteQuote
          name: ''
          description: '23'
        - value: Package
          name: ''
          description: '24'
        - value: RateException
          name: ''
          description: '27'
        - value: BillingReason
          name: ''
          description: '28'
        - value: AdditionalService
          name: ''
          description: '29'
        - value: ValidationQuote
          name: ''
          description: '30'
        - value: QuoteRequestEmail
          name: ''
          description: '31'
      x-apidog-folder: ''
    FailedQuote:
      type: object
      properties:
        CarrierName:
          type: string
          description: The carrier's name that is related to this quote
        SCAC:
          type: string
          description: The carrier's SCAC code that is related to this quote
        ReasonCode: &ref_0
          description: Code for failure reason
          $ref: '#/components/schemas/Failure%20Reason%20Codes%20Enum'
        Reason: *ref_0
        Datestamp:
          type: string
          format: date-time
          description: The date and time this request was sent out
        Service: &ref_1
          $ref: '#/components/schemas/Service%20Code%20Enum'
          description: Quote service
      x-apidog-orders:
        - CarrierName
        - SCAC
        - ReasonCode
        - Reason
        - Datestamp
        - Service
      required:
        - CarrierName
        - SCAC
        - ReasonCode
        - Reason
        - Datestamp
        - Service
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Service Code Enum:
      type: string
      enum:
        - Parcel
        - LTL
        - Volume
        - Air
        - Ocean
        - GFP
        - Local Carrier
        - FTL
        - Driveaway
        - Intermodal
        - Expedite
      x-apidog-enum:
        - value: Parcel
          name: ''
          description: '0'
        - value: LTL
          name: ''
          description: '1'
        - value: Volume
          name: ''
          description: '2'
        - value: Air
          name: ''
          description: '3'
        - value: Ocean
          name: ''
          description: '4'
        - value: GFP
          name: ''
          description: '5'
        - value: Local Carrier
          name: ''
          description: '6'
        - value: FTL
          name: ''
          description: '7'
        - value: Driveaway
          name: ''
          description: '8'
        - value: Intermodal
          name: ''
          description: '9'
        - value: Expedite
          name: ''
          description: '10'
      x-apidog-folder: ''
    Failure Reason Codes Enum:
      type: string
      enum:
        - GeneralIssue
        - Authorization
        - Account
        - Tariff
        - Configuration
        - ManualRatingRequired
        - CoverageArea
        - HazardousMaterial
        - PackageType
        - EquipmentType
        - ShipType
        - PayType
        - ShipTypePayTypeCombination
        - PickupDate
        - BillTo
        - FreightClass
        - MaximumProductThreshold
        - MissingProductDimensions
        - MaximumDimensions
        - ProductDimensions
        - ProductDescription
        - NMFC
        - MaximumWeightThreshold
        - MinimumWeightThreshold
        - ShippingUnits
        - MinimumShippingUnits
        - MaximumShippingUnits
        - MissingShipmentDimensions
        - Shipper
        - Consignee
        - ShipperOrConsignee
        - LimitedAccessType
        - Accessorial
        - CODAmount
      x-apidog-enum:
        - value: GeneralIssue
          name: ''
          description: '1'
        - value: Authorization
          name: ''
          description: '2'
        - value: Account
          name: ''
          description: '3'
        - value: Tariff
          name: ''
          description: '4'
        - value: Configuration
          name: ''
          description: '5'
        - value: ManualRatingRequired
          name: ''
          description: '6'
        - value: CoverageArea
          name: ''
          description: '7'
        - value: HazardousMaterial
          name: ''
          description: '8'
        - value: PackageType
          name: ''
          description: '9'
        - value: EquipmentType
          name: ''
          description: '10'
        - value: ShipType
          name: ''
          description: '11'
        - value: PayType
          name: ''
          description: '12'
        - value: ShipTypePayTypeCombination
          name: ''
          description: '13'
        - value: PickupDate
          name: ''
          description: '14'
        - value: BillTo
          name: ''
          description: '15'
        - value: FreightClass
          name: ''
          description: '16'
        - value: MaximumProductThreshold
          name: ''
          description: '17'
        - value: MissingProductDimensions
          name: ''
          description: '18'
        - value: MaximumDimensions
          name: ''
          description: '19'
        - value: ProductDimensions
          name: ''
          description: '20'
        - value: ProductDescription
          name: ''
          description: '21'
        - value: NMFC
          name: ''
          description: '22'
        - value: MaximumWeightThreshold
          name: ''
          description: '23'
        - value: MinimumWeightThreshold
          name: ''
          description: '24'
        - value: ShippingUnits
          name: ''
          description: '25'
        - value: MinimumShippingUnits
          name: ''
          description: '26'
        - value: MaximumShippingUnits
          name: ''
          description: '27'
        - value: MissingShipmentDimensions
          name: ''
          description: '28'
        - value: Shipper
          name: ''
          description: '29'
        - value: Consignee
          name: ''
          description: '30'
        - value: ShipperOrConsignee
          name: ''
          description: '31'
        - value: LimitedAccessType
          name: ''
          description: '32'
        - value: Accessorial
          name: ''
          description: '33'
        - value: CODAmount
          name: ''
          description: '34'
      x-apidog-folder: ''
    PendingQuote:
      type: object
      properties:
        QuoteID:
          type: integer
          description: The primary identifier for the quote
        CarrierName:
          type: string
          description: The carrier's name that is related to this quote
        SCAC:
          type: string
          description: The carrier's SCAC code that is related to this quote
        PendingQuoteType:
          type: string
          description: The pending quote type
          enum:
            - EmailQuote
          x-apidog-enum:
            - value: EmailQuote
              name: ''
              description: '0'
        Datestamp:
          type: string
          description: The date and time this request was sent out
        Service: *ref_1
      x-apidog-orders:
        - QuoteID
        - CarrierName
        - SCAC
        - PendingQuoteType
        - Datestamp
        - Service
      required:
        - QuoteID
        - CarrierName
        - SCAC
        - PendingQuoteType
        - Datestamp
        - Service
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Quote:
      type: object
      properties:
        LoadID:
          type: integer
          description: >-
            Banyan's primary shipment identifier (In this object, the main
            shipment LoadID is reflected here)
        QuoteID:
          type: integer
          description: Banyan's primary quote identifier
        CarrierName:
          type: string
          description: Carrier name
        SCAC:
          type: string
          description: Carrier standard carrier alpha code
        ThirdPartyName:
          type: string
        ThirdPartySCAC:
          type: string
        ServiceID:
          type: string
          description: Quote service identifier
        RawPrice: &ref_2
          $ref: '#/components/schemas/PriceBreakout'
          description: Quote raw price (returned from the carrier)
        CarrierPrice: *ref_2
        CustomerPrice: *ref_2
        TransitTime:
          type: integer
          description: Quote transit time
        QuoteNumber:
          type: string
          description: Carrier quote identifier
        AccountNumber:
          type: string
          description: Account Number/ID used for Quote (if any)
        CarrierPerson:
          type: string
          description: Carrier person
        CarrierNote:
          type: string
          description: Note returned by the carrier regarding the quote
        Datestamp:
          type: string
          description: Quote date
        Interline:
          type: boolean
          description: Set to true only when confirmed to be interline
        Accepted:
          type: boolean
          description: Quote has been accepted by client
        CurrencyType:
          description: Quote currency type
          $ref: '#/components/schemas/Currency%20Types%20Enum'
        Service: *ref_1
        InsuranceDetails:
          description: Insurance Details related to the quote
          $ref: '#/components/schemas/InsuranceDetails'
      required:
        - LoadID
        - QuoteID
        - CarrierName
        - SCAC
        - ThirdPartyName
        - ThirdPartySCAC
        - ServiceID
        - RawPrice
        - CarrierPrice
        - CustomerPrice
        - TransitTime
        - Datestamp
        - Interline
        - Accepted
        - CurrencyType
        - Service
      x-apidog-orders:
        - LoadID
        - QuoteID
        - CarrierName
        - SCAC
        - ThirdPartyName
        - ThirdPartySCAC
        - ServiceID
        - RawPrice
        - CarrierPrice
        - CustomerPrice
        - TransitTime
        - QuoteNumber
        - AccountNumber
        - CarrierPerson
        - CarrierNote
        - Datestamp
        - Interline
        - Accepted
        - CurrencyType
        - Service
        - InsuranceDetails
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    InsuranceDetails:
      type: object
      properties:
        Price:
          type: number
          description: The price of the insurance from the requested insurance provider
          format: float
        Confirmation:
          type: string
          description: >-
            The confirmation reference value related to this specific insurance
            quote
        InsuranceNote:
          type: string
          description: Note related to the insurance quote
        ExpirationDate:
          type: string
          description: >-
            The expiration date, if supplied by the provider, on when the
            insurance quote is valid
          format: date-time
        DeductibleNote:
          type: string
          description: >-
            Note related to the insurance quote's deductible, returned from the
            insurance vendor
        TermsAndConditions:
          type: string
          description: >-
            Note related to the insurance quote's terms and conditions, returned
            from the insurance vendor
      x-apidog-orders:
        - Price
        - Confirmation
        - InsuranceNote
        - ExpirationDate
        - DeductibleNote
        - TermsAndConditions
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Currency Types Enum:
      type: string
      enum:
        - US_Dollar
        - Canadian_Dollar
        - Mexican_Peso
      x-apidog-enum:
        - value: US_Dollar
          name: ''
          description: '0'
        - value: Canadian_Dollar
          name: ''
          description: '1'
        - value: Mexican_Peso
          name: ''
          description: '2'
      x-apidog-folder: ''
    PriceBreakout:
      type: object
      properties:
        NetPrice:
          type: number
          description: Net price
          format: float
        FreightCharge:
          type: number
          description: Freight charge amount
          format: float
        DiscountAmount:
          type: number
          description: Discount amount
          format: float
        FuelSurcharge:
          type: number
          description: Fuel surcharge amount
          format: float
        Minimum:
          type: number
          description: Minimum charge amount
          format: float
        GrossCharge:
          type: number
          description: Gross charge amount
          format: float
        Tariff:
          type: number
          description: Tariff amount
          format: float
        Interline:
          type: number
          description: Interline amount
          format: float
        AccessorialCharges:
          type: number
          description: Accessorial charge amount
          format: float
        OtherCharges:
          type: number
          description: Other charges amount
          format: float
        Charges:
          type: array
          items:
            $ref: '#/components/schemas/QuoteCharge'
          description: Charge breakout
        Markup:
          type: number
          description: Markup percent applied
          format: float
      required:
        - NetPrice
        - FreightCharge
        - DiscountAmount
        - FuelSurcharge
        - Minimum
        - GrossCharge
        - Tariff
        - Interline
        - AccessorialCharges
        - OtherCharges
        - Charges
        - Markup
      x-apidog-orders:
        - NetPrice
        - FreightCharge
        - DiscountAmount
        - FuelSurcharge
        - Minimum
        - GrossCharge
        - Tariff
        - Interline
        - AccessorialCharges
        - OtherCharges
        - Charges
        - Markup
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    QuoteCharge:
      type: object
      properties:
        Name:
          type: string
          description: Quote charge name
        Amount:
          type: number
          description: Quote charge amount
          format: float
        Code:
          type: string
          description: Quote charge code
      required:
        - Name
        - Amount
      x-apidog-orders:
        - Name
        - Amount
        - Code
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ErrorObject:
      type: object
      properties:
        Message:
          type: string
      required:
        - Message
      x-apidog-orders:
        - Message
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ws.integration.banyantechnology.com
    description: Integration Env
security: []

```
