Version: 202201
Get File List
GET/openapi/2022-01/file
The Get File List API allows developers to retrieve a list of files stored on the server. This endpoint supports pagination and filtering based on the folder name.
Request
Query Parameters
page int32
Page number; Defaults to 1 if not specified. Must be a positive integer.
Default value:
1limit int32
The number of files to retrieve per page. Defaults to 20 if not specified. Must be greater than 0 and less than or equal to 300.
Default value:
20folder string
The folder name to fetch files from. Defaults to "folder". Allowed values: -product - all_upload
Default value:
productResponses
- 200
- 400
- 422
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- ]
files object[]
upload_linkstring
Example:
https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.pngfile_uristring
Example:
7ebb4faa8d92e1d627edf9ca61a98993.pngfolderstring
Example:
uploadsizeinteger
Default value:
0Example:
6842typestring
Example:
image/pngorigin_linkstring
Example:
descstring
Example:
aspect_ratiostring
Example:
1.2500000widthinteger
Default value:
0Example:
250heightinteger
Default value:
0Example:
200created_atstring
Example:
2024-04-23T09:32:57+08:00updated_atstring
Example:
2024-04-23T09:32:57+08:00{
"files": [
{
"upload_link": "https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.png",
"file_uri": "7ebb4faa8d92e1d627edf9ca61a98993.png",
"folder": "upload",
"size": 6842,
"type": "image/png",
"origin_link": "",
"desc": "",
"aspect_ratio": "1.2500000",
"width": 250,
"height": 200,
"created_at": "2024-04-23T09:32:57+08:00",
"updated_at": "2024-04-23T09:32:57+08:00"
}
]
}
{
"files": [
{
"upload_link": "https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.png",
"file_uri": "7ebb4faa8d92e1d627edf9ca61a98993.png",
"folder": "upload",
"size": 6842,
"type": "image/png",
"origin_link": "",
"desc": "",
"aspect_ratio": "1.2500000",
"width": 250,
"height": 200,
"created_at": "2024-04-23T09:32:57+08:00",
"updated_at": "2024-04-23T09:32:57+08:00"
},
{
"upload_link": "https://cdn.shoplazza.com/652c51e6ea5273f8e0b5c3a30b62fd57.jpeg",
"file_uri": "652c51e6ea5273f8e0b5c3a30b62fd57.jpeg",
"folder": "url_upload",
"size": 0,
"type": "image/jpg",
"origin_link": "",
"desc": "",
"aspect_ratio": "1.5032680",
"width": 690,
"height": 459,
"created_at": "2024-04-23T09:25:54+08:00",
"updated_at": "2024-04-23T09:25:54+08:00"
}
]
}
400
- text/plain
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"Unauthorized"
]
}
{
"errors": ["Unauthorized"]
}
422
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"limit must be greater than 0"
]
}
{
"errors": ["limit must be greater than 0"]
}