API Docs
Home
Home
Developer GuideAPI
StatusWebhooks
Developer GuideAPI
StatusWebhooks
  1. Config
  • Config
    • List Pickup Address
      GET
    • List Box Dimension
      GET
    • List vendor
      GET
    • List store
      GET
    • List category
      GET
    • List brand
      GET
    • List Outbound Strategy
      GET
    • List Product Type
      GET
    • List Material
      GET
    • List Storage Method
      GET
    • List Unit
      GET
    • Upload File
      POST
  • Online Product
    • Create Single Product
      POST
    • Create Product From Product Inventory
      POST
    • List product
      GET
    • Product detail
      GET
  • Product Inventory
    • Create single inventory product
      POST
    • List product inventory
      GET
    • Product inventory detail
      GET
    • Get Product Inventory in Warehouse
      GET
  • Order
    • Shipping Service
      • Preview shipping prices
        • List shipping service
        • List available courier
      • List available courier from order
      • List shipping service of courier
    • Create order B2C
      POST
    • Create order B2B
      POST
    • List order
      GET
    • Order detail
      GET
    • Cancel order
      PATCH
  • Shipment
    • Create shipment auto
    • [Retail][Ship by self] Create shipment with item
    • Cancel shipment
    • List shipment
    • Shipment detail
    • List shipment of order
  • Shipment Inbound
    • Create shipment inbound
    • Cancel shipment inbound
    • List shipment inbound
    • Shipment inbound detail
    • Shipment inbound items
  • Order Return
    • List return order
    • Return order detail
    • Create return order
    • Cancel Return Order
  • Courier
    • List courier service integrated
    • List courier operate
    • List courier integrated
  • Address Directory
    • Province
    • District
    • Ward
  1. Config

Upload File

POST
/api/v1/public/users/upload-file
This endpoint allows a user to upload a file to the server.
Once the upload is successful, the API returns the file’s metadata and a public URL that can be used to access it.

Request

Header Params

Body Params multipart/form-data

Responses

🟢200OK
application/json
Body

🟠400Bad Request
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/public/users/upload-file' \
--header 'Authorization;' \
--form 'file=@""'
Response Response Example
200 - Success
{
    "status_code": 200,
    "data": {
        "name": "pickups_10_13_2025_1760329693.xlsx",
        "file": "https://nhl.sgp1.cdn.digitaloceanspaces.com/ts/pickups_10_13_2025_1760329693.xlsx",
        "extension": "xlsx"
    },
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "",
    "total": 1,
    "version": "1.0.14"
}
Previous
List Unit
Next
Create Single Product
Built with