Tài liệu API

Base API URL https://shopclone36.cmstdev.vn/api
API Key
Vui lòng đăng nhập
HTTP Method GET POST
Content-Type application/x-www-form-urlencoded / text/plain
Response JSON

Thông tin tài khoản Lấy thông tin số dư và thông tin cá nhân

Endpoint: https://shopclone36.cmstdev.vn/api/profile.php?api_key=Vui lòng đăng nhập
Parameters
Parameters Description
api_key API Key
Example response
{
  "status": "success",
  "msg": "Lấy dữ liệu thành công!",
  "data": {
    "username": "cmstdev2",
    "money": "9777000.00"
  }
}

Chuyên mục và sản phẩm Lấy danh sách chuyên mục và sản phẩm đang bán

Endpoint: https://shopclone36.cmstdev.vn/api/products.php?api_key=Vui lòng đăng nhập
Parameters
Parameters Description
api_key API Key
Example response
{
  "status": "success",
  "msg": "Lấy dữ liệu thành công!",
  "categories": [
    {
      "id": "1",
      "name": "Facebook",
      "icon": "http://localhost/upload/categories/category3HP8.png",
      "products": [
        {
          "id": "1",
          "name": "C1 - CLONE VIỆT 0-100 BẠN BÈ HÀNG REG NĂM 2020-2021",
          "price": "10000.00",
          "amount": 1231,
          "description": "Live Ads(Ram Dom Nước) Full Định Dạng Bao Tích XMDT Bạn Bè : 50-5000 Ngày Lập : 2008-2022",
          "flag": "us",
          "min": "1",
          "max": "1000000"
        }
      ]
    }
  ]
}

Chi tiết sản phẩm Lấy thông tin chi tiết của một sản phẩm

Endpoint: https://shopclone36.cmstdev.vn/api/product.php?api_key=Vui lòng đăng nhập&product=PRODUCT_ID
Parameters
Parameters Description
api_key API Key
product Product ID
Example response
{
  "status": "success",
  "msg": "Lấy dữ liệu thành công!",
  "product": [
    {
      "id": "1",
      "name": "C1 - CLONE VIỆT 0-100 BẠN BÈ HÀNG REG NĂM 2020-2021",
      "price": 10000,
      "amount": 1231,
      "description": "Live Ads(Ram Dom Nước) Full Định Dạng Bao Tích XMDT Bạn Bè : 50-5000 Ngày Lập : 2008-2022",
      "flag": "us",
      "min": 1,
      "max": 1000000
    }
  ]
}

Chi tiết đơn hàng Lấy thông tin chi tiết và dữ liệu của đơn hàng đã mua

Endpoint: https://shopclone36.cmstdev.vn/api/order.php?api_key=Vui lòng đăng nhập&order=ORDER_ID
Parameters
Parameters Description
api_key API Key
order Order ID
Example response
{
  "status": "success",
  "msg": "Lấy đơn hàng thành công!",
  "trans_id": "CSDED24983D4",
  "data": [
    "123",
    "123",
    "123"
  ]
}

Mua hàng Thực hiện mua sản phẩm qua API

Endpoint: https://shopclone36.cmstdev.vn/api/buy_product (POST)
Form-data Parameters
Form-data Description
api_key API Key
action "buyProduct"
id Product ID
amount Quantity of product
Example response
{
    "status": "success",
    "msg": "Tạo đơn hàng thành công!",
    "trans_id": "68eb47ebc3b9ac708be004a6",
    "data": [
        "1000040304952|GUTJXYIFPWLHCNDOMBRKVAQESZ",
        "1000087676467|IVMRLABECWTQYUXHPOFNJDSZGK",
        "1000073612513|ERKPFTVCAJDLINWMXSUOGBQZHY",
        "1000011975745|JXEZTVLYOFBQNRHGDKMIPUCAWS"
    ]
}

Activity Logs

There are 2 new tasks for you in "AirPlus Mobile App" project:
Added at 4:23 PM by
img
Meeting with customer
In Progress
img
img
img
img
img
img
img
img
img
img
+2
Approved
Project Delivery Preparation
Pending
img
img
img
img
img
img
img
img
img
img
+2
In Progress
Pic
Emma Smith
Active
Pic
Emma Smith 2 mins
How likely are you to recommend our company to your friends and family ?
You 5 mins
Pic
Hey there, we’re just writing to let you know that you’ve been subscribed to a repository on GitHub.
Pic
Emma Smith 1 Hour
Ok, Understood!
You 2 Hours
Pic
You’ll receive notifications for all issues, pull requests, and comments.
Pic
Emma Smith 3 Hours
You can unwatch this repository immediately by clicking here: https://github.com