Banyan Technology LIVE Connect™
  1. Retrieving
Banyan Technology LIVE Connect™
  • Version 3
    • Authentication
      • Retrieve a token
    • Shipments
      • Creating
        • Create a Full Shipment
        • Create an EZ Rate Shipment
      • Updating
        • Add Document(s) to a Shipment
        • Update a Shipment
        • Adds one or more Reference Numbers to a Shipment
        • Mark as Exported
      • Retrieving
        • Get a Shipment
          GET
        • Get multiple Shipments
          GET
        • Get Quotes
          GET
        • Get Reference Numbers for a Shipment
          GET
        • Get documents for the specified shipment.
          POST
      • Booking
        • Book a Shipment
        • Unbooks the awarded quote on the specified load.
      • Canceling
        • Cancels a shipment.
    • Invoice
      • Get multiple invoices
      • Mark as Exported
    • Tracking
      • Get tracking statuses
      • Mark as exported.
    • StaticData
      • Accessorials
      • Document Types
      • Equipment Types
      • Package Types
      • Limited Access Types
      • Size UOMs
      • Weight UOMs
      • Pay Types
      • Ship Types
      • Countries
      • Statuses
      • Service Modes
  • Version 2
    • Recommended Workflow
      • Rating
        • ImportForQuote
        • ImportForQuote_Sync
        • GetQuotes
      • Booking/Dispatching
        • BookLoad
      • Tracking
        • GetTrackingStatuses
      • Documents
        • GetDocuments
      • Invoices
        • GetInvoices
        • GetInvoicesWithLoadDetails
    • Additional Offerings
      • Cancelling
        • Cancel a Load
      • Updating
        • UpdateLoad
        • UpdateLoadStatus
        • UpdateShipmentsExport
      • Importing
        • PendingImport
        • ImportForBook
      • Manual Quotes
        • AddManualQuote
      • EZ Rates
        • EzRate
        • EzRate_Sync
      • Waterfall Tendering
        • StartWaterfallTendering
        • CancelWaterfallTendering
      • Unbooking
        • UnBookLoad
      • Additional Dispatching
        • DispatchLoad
      • Load Details
        • GetLoadDetails
        • GetNotes
      • Additional Tracking
        • GetTrackingByLoad
      • Other
        • Normalized Charge Codes
      • SOAP
    • Changelog
  • Exports and Webhooks
    • Standard Load Export - v1
    • Standard Load Export - v2
    • Standard Load Export - v3
    • Push Tracking
  1. Retrieving

Get documents for the specified shipment.

POST
/api/v3/shipments/{Id}/GetDocuments
Shipments

Get documents related to the specified shipment.#

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
Id
integer 
required
The shipment (load) id to be canceled. Banyan supplied.
Body Params application/json
The get documents request.
documentTypes
array[string]
required
The requested document types.
>= 1 items
Allowed values:
Banyan_BOLShipping_LabelCarrier_BOLCarrier_PODCarrier_LabelAPARCarrier_Weight
shippingLabelFormat
enum<string> 
optional
The format to return for shipping labels.
Allowed values:
ZPLEPLPDF
labelHasDockTabs
boolean 
optional
Flag indicating whether the label has dock tabs.
convertPdfToImage
boolean 
optional
Flag indicating whether pdf documents should be converted to an image.
imageFormat
enum<string> 
optional
If converting pdf files to image files, the format to convert to.
Allowed values:
JPGPNG
Example
{
  "documentTypes": [
    "banyan_bol"
  ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://ws.integration.banyantechnology.com/api/v3/shipments//GetDocuments' \
--header 'Content-Type: application/json' \
--data-raw '{
    "documentTypes": [
        "banyan_bol"
    ]
}'

Responses

🟢200Success
application/json
Body
array of:
documentType
enum<string> 
optional
Document types supported by the Get Documents endpoint.
Allowed values:
Banyan_BOLShipping_LabelCarrier_BOLCarrier_PODCarrier_LabelAPARCarrier_Weight
base64Documents
array[string] | null 
optional
Documents using base 64 encoding.
zplDocuments
array[string] | null 
optional
Documents using ZPL encoding.
success
boolean 
optional
Flag indicating whether getting documents of this type succeeded.
error
object (BanyanWebServices.Domain.Dtos.ErrorWrapperDto) 
optional
Web services 2 return error messages wrapped in a class for some reason.
message
string  | null 
optional
The error message.
Example
[
  {
    "documentType": "Banyan_BOL",
    "base64Documents": [
      "string"
    ],
    "zplDocuments": [
      "string"
    ],
    "success": true,
    "error": {
      "message": "string"
    }
  }
]
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠429Too Many Requests
Modified at 2024-09-16 11:42:17
Previous
Get Reference Numbers for a Shipment
Next
Book a Shipment
Built with