return_add_attachment

Arguments

ArgumentTypeRequiredDefaultDescription
dataAddReturnAttachmentInput!Yes

Return Type

AddReturnAttachmentOutput

Mutation

mutation return_add_attachment(
  $data: AddReturnAttachmentInput!
) {
  return_add_attachment(
    data: $data
  ) {
    request_id
    complexity
    return {
      ...ReturnFragment
    }
  }
}

Variables

{
  "data": {
    "return_id": "UmV0dXJuOjEyMzQ=",
    "url": "https://example.com/resource",
    "filename": "Acme Corp",
    "file_type": "application/pdf",
    "description": "Customer requested expedited handling.",
    "return_item_id": "UmV0dXJuSXRlbToxMjM0"
  }
}

Response

{
  "data": {
    "return_add_attachment": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "return": {id: "UmV0dXJuOjEyMzQ="}
    }
  }
}