Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Storage
  • Introduction
  • Activity
    • Activities Enquiry
      POST
    • Get a Activity By Id
      GET
    • Get a Activity By No
      GET
    • Get Key Activities
      GET
    • Create or Update Activity
      POST
  • Authentication API
    • Authorization
      POST
  • Customer
    • Create or Update customer
      POST
    • Get a Customer By CustomerCode
      GET
    • Customers Enquiry
      POST
    • Get a Customer By CustomerName
      GET
    • Create Customer Satisfaction
      POST
    • Add Customer Event
      POST
    • Get Customer Events by Customer Code
      GET
    • Edit Customer Event
      PUT
    • Delete Customer Event
      DELETE
    • Get Customer Event Types
      GET
    • Get file categories
      GET
    • Attach files category
      POST
  • Case
    • Add Case
      POST
    • Edit Case by CaseNo
      PUT
    • Get Case by CaseNo
      GET
    • Get Case Categories
      GET
  • Contract
    • Get Contract By No
    • Get Contract Types
    • Get Contract Templates
    • Create or Update Contract
    • Create or Update Contract Service Agreement
    • Send Contract Document
  • Deal
    • Create Deal
    • Update Deal
    • Deal Enquiry
    • Get Deal
    • Get Deal Board
    • Get Deal Stage
    • Get Deal Interest
    • Get DealLabel
    • Get Deal Missed Reason Categories
  • Employee
    • Employees Enquiry
    • Get a Employee
  • Expense
    • Create Expense
    • Update Expense
    • Expense Enquiry
    • Get a Expense
  • Product
    • Create Or Update Products
    • Get a Product Ticket
    • Get Products With Take & Status
    • Get a Product by ProductCode
    • Get Product Groups
    • Get Product Properties
    • Get Products By Filter
    • Verify Serial Number
    • /v3/Products/serials/status
    • Create or Update Codeguard Products
    • Update Product Stock
    • /v1/products/units
    • /v1/products/units Copy
  • Quotation
    • Create Update Quotation
    • Convert Quotation To SalesOrder
    • Quotation Enquiry
    • Get a Quotation By QuotationNo
    • Cancel Quotation
  • SalesOrder
    • Create Or Update SalesOrder
    • Get a SalesOrders By Id
    • Get a SalesOrder By SalesOrderNo
    • Get Sale Order Attachment
    • Reject SaleOrder
    • Approve Sale Order
    • Update SalesOrder Payment
    • Update SalesOrder Tracking Number
  • Webhooks
    • Webhook Payload
  • Task
    • CreateTask
  • Setting
    • Get HeaderTemplate
  • Chat
    • Post Send message
  • Storage
    • Upload files attachments
      POST
    • Get file attachments
      GET
    • Delete file attachments
      DELETE
  1. Storage

Get file attachments

Testing
GET
https://api.gofive.co.th/v1/storage/files
สำหรับดึงไฟล์

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
attachmentId
array[string]
optional
id ของ attachment
Example:
[""]
search
string 
optional
ชื่อของ file ที่ใช้สำหรับ search
attachmentType
integer 
optional
ประเภทของ attachment
refId
string 
optional
id ที่อ้างอิงกับ attachment
offset
integer 
optional
จำนวนที่ต้องการข้าม
limit
string 
optional
จำนวนที่ต้องการดึง
isActive
array[string]
optional
active หรือไม่
Example:
[""]
ascending
boolean 
optional
เรียงจากน้อยไปมาหหรือไม่ ตาม sortBy
sortBy
string 
optional
field ที่ต้องการ sort
Header Params
Ocp-Apim-Subscription-Key
string 
optional
รหัส subscriptionของลูกค้า
Example:
<Ocp-Apim-Subscription-Key>
Content-Type
string 
optional
Example:
application/json

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.gofive.co.th/v1/storage/files?attachmentId=&search=&attachmentType=&refId=&offset=&limit=&isActive=&ascending=&sortBy=' \
--header 'Ocp-Apim-Subscription-Key: <Ocp-Apim-Subscription-Key>' \
--header 'Content-Type: application/json'

Responses

🟢200Success
application/json
Body
data
object (AttachmentV2Dto) 
required
attachmentId
integer 
required
type
integer 
required
refId
integer 
required
fileName
string 
required
extension
string 
required
fileSize
integer 
required
dateCreated
string 
required
resourceUrl
string 
required
hasError
boolean 
optional
statusCode
integer 
required
httpStatusCode
integer 
required
errorMessages
string 
optional
Example
{
    "data": {
        "attachmentId": 0,
        "type": 0,
        "refId": 0,
        "fileName": "string",
        "extension": "string",
        "fileSize": 0,
        "dateCreated": "string",
        "resourceUrl": "string"
    },
    "hasError": true,
    "statusCode": 0,
    "httpStatusCode": 0,
    "errorMessages": "string"
}
🟠401User authentication required V2.
Modified at 2025-07-07 09:02:43
Previous
Upload files attachments
Next
Delete file attachments
Built with