Production items
The API gives the ability to add attachment to line item.
Allowed content-types:
image/pngmodel/objapplication/pdfimage/webpimage/jpegtext/plainapplication/vnd.hp-HPGLapplication/vnd.ms-excelapplication/mswordapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
Authorizations
x-api-keystringRequired
Path parameters
external_order_idstringRequiredExample:
The unique identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eline_item_idstringRequiredExample:
The unique identifier of the production item
557657-8654-89i76Header parameters
x-tenant-idstring · uuidOptional
Tenant id (uuid v4)
Body
file_namestringOptionalExample:
File name
technical_drawing.pdfurlstringRequiredExample:
URL of the file
https://cdn.example.com/files/technical_drawing.pdfis_primarybooleanOptionalExample:
Marks image as primary line item image
falseResponses
201Success
application/json
429
Returned when the rate limit is exceeded
post
/api/public/orders/{external_order_id}/line-items/{line_item_id}/attachmentsPOST /api/public/orders/{external_order_id}/line-items/{line_item_id}/attachments HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 116
{
"file_name": "technical_drawing.pdf",
"url": "https://cdn.example.com/files/technical_drawing.pdf",
"is_primary": false
}{
"message": "The operation was done successfully"
}Last updated