Chuyển tới nội dung chính

Xác thực API

API Bell Express sử dụng cơ chế Bearer Token cho mọi request.


Lấy API Token

Truy cập trang Preferences tại: https://express.bellvn.com/preferences, vào tab Token list để tạo hoặc sao chép token.

cảnh báo

Không chia sẻ API Token cho người không có thẩm quyền. Token bị lộ có thể khiến dữ liệu bị truy cập trái phép.


Authorization header

Định dạng header:

Authorization: Bearer <your_token>

Ví dụ gọi API:

curl --location 'https://expressbe.bellvn.com/api/order/create-order' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxxxxx' \
--data '{
"address_id": 2,
"consignee_name": "sarenda mcguire",
"consignee_phone": "",
"consignee_address": "6105 W Elmwood Dr",
"consignee_address_other": "",
"consignee_country": "US",
"consignee_city": "Wildomar",
"consignee_postal_code": "57718",
"consignee_state_code": "SD",
"order_number": "DEV112222216",
"product_name": "Metal",
"product_price": 5.5,
"length": 1.93,
"width": 108,
"height": 1.9,
"weight": 1.1,
"service_code": "EPK",
"service_add": "",
"money_collection": 0
}'