Documentation
API Documentation
API Documentation
  • General Overview
    • Introduction
      • Before you start
      • Environments
      • Integration
    • Objects and IDs
      • Shipments Requests (Bookings)
      • Shipments
      • Tracking Points
      • Addresses
    • 📖Glossary
  • I am a shipper
    • Webhooks
      • Set up my webhooks
      • Payloads for Shipper
    • Documents
      • Download Documents
      • Upload Documents
  • I am a carrier
    • Bookings
      • Set up my webhooks
      • Payloads for Carrier
    • Trackings
    • Documents
      • Download Documents
      • Upload Documents
  • Full API
    • Swagger API Endpoints
Powered by GitBook
On this page
  1. I am a shipper
  2. Documents

Upload Documents

PreviousDownload DocumentsNextBookings

Last updated 1 year ago

Hosted on Shiptify or not

Thanks to save attribute, you have the choice to:

  • Either provide the link to a document hosted out of Shiptify

  • Or provide the file itself so the document is hosted within Shiptify

Authentication

Please be in touch with your Shiptify contact for Authentication questions.

Endpoint to use

  • Hosted on Shiptify or not
  • Authentication
  • Endpoint to use
  • POSTUpload files to shipment

Upload files to shipment

post
Authorizations
Path parameters
idintegerRequired

Shipment identifier.

Header parameters
X-Account-IDintegerOptional

Account identifier

Body
Responses
200
OK
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
404
Not Found Error
application/json
500
Internal Error
application/json
post
POST //shipments/{id}/upload HTTP/1.1
Host: api.shiptify.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 177

{
  "attachments": [
    {
      "url": "https://example.com/example-doc.pdf",
      "fileName": "Some document name without extension",
      "documentType": "arrival_notice",
      "save": true,
      "authRequired": true
    }
  ]
}
{
  "successful": true
}