Public
Documentation Settings

LEDUYHIEP.COM - API Service

API Dành cho đối tác

thay localhost thành domain hiện tại

POSTTạo dịch vụ

http://localhost/api/service/create
AUTHORIZATIONBearer Token
Token

<token>

HEADERS
Accept

application/json

Content-Type

application/json

Bodyraw (json)
json
{
    "object_id": "644196367075820",
    "quantity": 50,
    "server_id": "sv3",
    "provider": "facebook",
    "service_slug": "like-post"
}
Example Request
curl
curl --location 'http://localhost/api/service/create' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
    "object_id": "644196367075820",
    "quantity": 50,
    "server_id": "sv3",
    "provider": "facebook",
    "service_slug": "like-post"
}'
201 Created
Example Response
json
{
  "status": 201,
  "message": "Khởi tạo tiến trình thành công",
  "data": {
    "0": 7654,
    "order": {
      "order_code": "FB-N5R5OXEU",
      "object_id": "644196367075820",
      "object_type": null,
      "object_note": null,
      "quantity": 50,
      "provider": "facebook",
      "service_slug": "like-post",
      "server_id": "sv3",
      "server_name": "SV4 Like Việt cực nhanh, hỗ trợ cảm xúc",
      "username": "quocbao",
      "price_per": 1,
      "payment": 50,
      "status": "running",
      "user_id": 4,
      "updated_at": "2022-09-19T16:02:21.000000Z",
      "created_at": "2022-09-19T16:02:21.000000Z",
      "id": 3
    },
    "transaction": {
      "code": "FB-N5R5OXEU",
      "prefix": "-",
      "amount": 50,
      "type": "create-order",
      "descr": "Thanh toán đơn hàng #FB-N5R5OXEU",
      "balanceBefore": 19900,
      "balanceAfter": 19850,
      "status": "success",
      "username": "quocbao",
      "user_id": 4,
      "updated_at": "2022-09-19T16:02:21.000000Z",
      "created_at": "2022-09-19T16:02:21.000000Z",
      "id": 283
    }
  }
}
Host

localhost

Date

Mon, 19 Sep 2022 16:02:21 GMT

Date

Mon, 19 Sep 2022 16:02:21 GMT

Connection

close

X-Powered-By

PHP/8.1.9

Cache-Control

no-cache, private

Content-Type

application/json

X-RateLimit-Limit

60

X-RateLimit-Remaining

59

Access-Control-Allow-Origin

*

GETDanh sách đơn hàng

http://localhost/api/service/orders
AUTHORIZATIONBearer Token
Token

<token>

HEADERS
Accept

application/json

Content-Type

application/json

Example Request
curl
curl --location 'http://localhost/api/service/orders' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
200 OK
Example Response
json
{
  "status": 200,
  "message": "Lấy danh sách đơn hàng thành công",
  "data": {
    "orders": [
      {
        "id": 3,
        "order_code": "FB-N5R5OXEU",
        "object_id": "644196367075820",
        "quantity": 50,
        "num_initial": 0,
        "num_ran": 0,
        "object_type": null,
        "object_note": null,
        "status": "running",
        "provider": "facebook",
        "service_slug": "like-post",
        "server_id": "sv3",
        "server_name": "SV4 Like Việt cực nhanh, hỗ trợ cảm xúc",
        "user_id": 4,
        "username": "quocbao",
        "price_per": 1,
        "payment": 50,
        "next_req": 0,
        "created_at": "2022-09-19T16:02:21.000000Z",
        "updated_at": "2022-09-19T16:02:21.000000Z"
      },
      {
        "id": 2,
        "order_code": "FB-LUJMWY9L",
        "object_id": "738579097530625",
        "quantity": 100,
        "num_initial": 0,
        "num_ran": 0,
        "object_type": "like",
        "object_note": null,
        "status": "running",
        "provider": "facebook",
        "service_slug": "like-post",
        "server_id": "sv18",
        "server_name": "Like cảm xúc [ Tốc độ 3k /1 DAY ]",
        "user_id": 4,
        "username": "quocbao",
        "price_per": 1,
        "payment": 100,
        "next_req": 0,
        "created_at": "2022-09-19T15:27:47.000000Z",
        "updated_at": "2022-09-19T15:27:47.000000Z"
      },
      {
        "id": 1,
        "order_code": "FB-5A0FSFMF",
        "object_id": "586077183197263",
        "quantity": 100,
        "num_initial": 0,
        "num_ran": 0,
        "object_type": "like",
        "object_note": null,
        "status": "refunded",
        "provider": "facebook",
        "service_slug": "like-post",
        "server_id": "sv2",
        "server_name": "SV3 Like Việt, hỗ trợ cảm xúc chậm",
        "user_id": 4,
        "username": "quocbao",
        "price_per": 1,
        "payment": 100,
        "next_req": 0,
        "created_at": "2022-09-19T15:25:43.000000Z",
        "updated_at": "2022-09-19T15:45:22.000000Z"
      }
    ],
    "total_records": 3,
    "total_pages": 1,
    "current_page": 1,
    "limit": 10
  }
}
Host

localhost

Date

Mon, 19 Sep 2022 16:06:28 GMT

Date

Mon, 19 Sep 2022 16:06:28 GMT

Connection

close

X-Powered-By

PHP/8.1.9

Cache-Control

no-cache, private

Content-Type

application/json

X-RateLimit-Limit

60

X-RateLimit-Remaining

59

Access-Control-Allow-Origin

*