AUTOBUFF ยท REST API

Developer API

Browse the catalog and manage orders from your server.

Manage API keys

Authentication

Create a key in Account โ†’ API integration, then send it from your server in the X-API-Key header. The catalog is public.

X-API-Key: YOUR_API_KEY

Platforms

GET/platform

Use the platform _id to find categories.

Request
curl -X GET "https://api.autobuff.vn/platform"

Categories by platform

GET/category/by-platform/{platformId}

Use the category _id to find services.

Request
curl -X GET "https://api.autobuff.vn/category/by-platform/{platformId}"

Service list

GET/service/by-category/{categoryId}

Use serviceId when ordering. unitPriceVnd and minimumTotalVnd are in VND.

Request
curl -X GET "https://api.autobuff.vn/service/by-category/{categoryId}"

Starting prices

GET/service/public-prices

Read data.groups for starting prices and minimum quantities.

Request
curl -X GET "https://api.autobuff.vn/service/public-prices"

Check balance

GET/user

Read data.balance for your VND balance.

Request
curl -X GET "https://api.autobuff.vn/user" \
  -H "X-API-Key: YOUR_API_KEY"
Example response
{
  "message": "Success",
  "data": {
    "balance": 250000
  }
}

Place an order

POST/order

Use a valid service ID, link, and quantity. A successful request charges your balance.

Request
curl -X POST "https://api.autobuff.vn/order" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"serviceId":123,"objectId":"https://example.com/post","quantity":100}'
Example response
{
  "message": "Success",
  "data": {
    "orderNumber": "YOUR_ORDER_NUMBER",
    "status": "PENDING",
    "quantity": 100
  }
}

List orders

GET/order?page=1&take=20

Read data.data for orders. Add search to find an order by its number.

Request
curl -X GET "https://api.autobuff.vn/order?page=1&take=20" \
  -H "X-API-Key: YOUR_API_KEY"