Create Sales Order Document

SecurityAPIKeyHeader
Request
path Parameters
order_id
required
string (Order Id)
Request Body schema: multipart/form-data
required
file
required
string <binary> (File)
description
string (Description)
type
string (DocumentType)
Default: "OTHER"

An enumeration.

Enum: "BOL" "FUEL" "LUMPER" "HOS" "SIGNATURE" "RATE_CONFIRMATION" "DELIVERY_RECEIPT" "WEIGHT_CERTIFICATE" "OVERAGES_SHORTAGES_AND_DAMAGES" "INVOICE" "INVENTORY_RELEASE" "INSURANCE" "CUSTOMS_PAPERWORK" "PACKING_SLIPS" "OTHER"
Responses
201

Successful Response

Response Schema: application/json
id
required
string (Id)

Unique identifier for the Document

filename
required
string (Filename) <= 128 characters
created_at
required
string <date-time> (Created At)

Timestamp of when the document was created

updated_at
required
string <date-time> (Updated At)

Timestamp of when the document was updated

description
string (Description)
type
string (DocumentType)
Default: "OTHER"

An enumeration.

Enum: "BOL" "FUEL" "LUMPER" "HOS" "SIGNATURE" "RATE_CONFIRMATION" "DELIVERY_RECEIPT" "WEIGHT_CERTIFICATE" "OVERAGES_SHORTAGES_AND_DAMAGES" "INVOICE" "INVENTORY_RELEASE" "INSURANCE" "CUSTOMS_PAPERWORK" "PACKING_SLIPS" "OTHER"
created_by_user_id
string (Created By User Id)

ID of the user that created the document

url
required
string (Url)

Publicly available URL to file

400

Validation Error

post/sales-orders/{order_id}/documents
Request samples
Response samples
application/json
{
  • "id": "string",
  • "filename": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "description": "string",
  • "type": "OTHER",
  • "created_by_user_id": "string",
  • "url": "string"
}
Copyright © Shipwell 2024. All right reserved.