Lấy Qouta tin Zalo theo OAID
HTTP request
POST https://api-portal.senbac.com/MainService.svc/json/ZNS/GetQuota/
Content Type: application/json
Response Type: application/json
Copy
curl --location 'https://api-portal.senbac.com/MainService.svc/json/ZNS/GetQuota/' \
--header 'Content-Type: application/json' \
--data '{
"ApiKey": "{{ApiKey}}",
"SecretKey": "{{SecretKey}}",
"OAID": "{{OAID}}"
}'Câu trúc body của request:
Tham số
Kiểu dữ liệu
Tính bắt buộc
Mô tả
ApiKey
string
Yes
ApiKey của tài khoản.
SecretKey
string
Yes
SecretKey của tài khoản.
OAID
string
Yes
Zalo OA ID, là ID của trang Zalo Offical Account của doanh nghiệp. Doanh nghiệp cần đăng nhập vào trang quản trị của Zalo OA để lấy phần Zalo OA ID này. Chú ý: sẽ phải đăng ký trước khi sử dụng.
Response:
{
"CodeResult": "100",
"ErrorMessage": "success",
"DailyQuota": 500,
"RemainingQuota": 500
}Request hợp lệ.
{
"CodeResult": "101",
"ErrorMessage": "Authorize Failed"
}Sai thông tin ApiKey/SecretKey.
Cấu trúc body của response:
Thuộc tính
Kiểu dữ liệu
Mô tả
DailyQuota
string
Tổng số tin được gửi trong ngày.
RemainingQuota
string
Số tin còn lại.
Thông chi tiết mã lỗi xem ở bảng: Mã lỗi .
Last updated