Mutation
mutation order_add_attachment(
$data: OrderAddAttachmentInput!
) {
order_add_attachment(
data: $data
) {
request_id
complexity
attachment {
...OrderAttachmentFragment
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"}
}
}
}