order_add_attachment

Arguments

ArgumentTypeRequiredDefaultDescription
dataOrderAddAttachmentInput!Yes

Return Type

OrderAddAttachmentOutput

Mutation

mutation order_add_attachment(
  $data: OrderAddAttachmentInput!
) {
  order_add_attachment(
    data: $data
  ) {
    request_id
    complexity
    attachment {
      ...OrderAttachmentFragment
    }
  }
}

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"}
    }
  }
}