Upload files

This endpoint lets you attach files like PDFs or images, directly to specific deliveries, using multipart form data. You can upload fiscal documents or proof of deliveries for shipment management.

Endpoint

POST {{SHIPPIFY_API_URL}}/v2/integrations/deliveries/:deliveryId/files

Request

Supported Media Types

multipart/form-data

Headers

PropertyTypeDescriptionExample value

Content-Type

string

"multipart/form-data"

Authorization

string

Company basic auth

"Basic XXXXXXXXXXXXXXXXXXXXXXXX"

Url Parameters

PropertyTypeDescriptionRequiredConstraints

deliveryId

string

Id of the task created within the system.

YES

Form Parameters

PropertyTypeDescriptionRequired

files

file

File to upload.

YES

type

string

fiscal_document or proof_of_delivery(default)

YES

The supported file extensions are pdf, jpeg, jpg, png, txt.

Response

PropertyTypeDescription

code

string

Result code.

message

string

Result description.

Example

Fiscal Document

curl --location 'https://api.shippify.co/v2/integrations/deliveries/t-shippify2-9/files' \
--header 'Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
--form 'files=@"document.pdf"' \
--form 'type="fiscal_document"'

Proof of delivery

curl --location 'https://api.shippify.co/v2/integrations/deliveries/t-shippify2-9/files' \
--header 'Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
--form 'files=@"image.png"' \
--form 'type="proof_of_delivery"'