Read sales order attachments

GET /salesorders/{id}/attachments

Read all attachments associated with a specific sales order.

Headers

  • Authorization string Required

    Authorization header

Path parameters

  • id integer(int32) Required

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string
    • Access-Control-Allow-Credentials string
    • X-Trace-Id string
    Hide response attributes Show response attributes object
    • fileId string

      The unique identifier for the file associated with the attachment.

    • orderId integer

      The unique identifier for the sales order to which the attachment belongs.

    • fileName string

      The name of the attached file.

    • mediaType string

      The media type (MIME type) of the attached file.

    • size integer(int64)

      The size of the attached file in bytes.

    • timestamp string(date-time)

      A timestamp for when the attachment was created, in ISO 8601 format.

    • tags array[string]

      Tags associated with the attachment for categorization or search purposes.

GET /salesorders/{id}/attachments
curl \
 --request GET 'https://rest.api.24sevenoffice.com/v1/salesorders/{id}/attachments' \
 --header "Authorization: string"
Response examples (200)
# Headers
Access-Control-Allow-Origin: string
Access-Control-Allow-Credentials: string
X-Trace-Id: string

# Payload
[
  {
    "fileId": "file-1234567890",
    "orderId": 1234,
    "fileName": "attachment.pdf",
    "mediaType": "application/pdf",
    "size": 2048000,
    "timestamp": "2023-06-01T12:00:00Z",
    "tags": [
      "invoice",
      "urgent"
    ]
  }
]