order_add_attachment
Adds a file attachment to an order.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
data | OrderAddAttachmentInput! | Yes |
Return Type
Mutation
mutation order_add_attachment(
$data: OrderAddAttachmentInput!
) {
order_add_attachment(
data: $data
) {
request_id
complexity
attachment {
id
legacy_id
order_id
account_id
description
url
filename
file_type
file_size
created_at
}
}
}Variables
{
"data": {
"order_id": "T3JkZXI6MTIzNA==",
"url": "https://example.com/resource",
"customer_account_id": "QWNjb3VudDoxMjM0",
"filename": "SO-100045",
"file_type": "application/pdf",
"description": "Customer requested expedited handling."
}
}Response
{
"data": {
"order_add_attachment": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"attachment": {id: "T3JkZXI6MTIzNA==", order_number: "SO-100045"}
}
}
}