Get OA information
This API is used to get OA information such as: Message sending quality, ZNS message quota, tag 3 message quota (after-sales),....
Request:
curl --location 'BASE_URL.Zalo/GetShopOA' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
"oa_id": "string"
}'
Response:
{
"app_id": "string",
"avatar": "string",
"connection_id": "string",
"connection_method": "unknown",
"cover": "string",
"created_at": "2019-08-24T14:15:22Z",
"current_quality": "unknown",
"daily_quota": 0,
"daily_quota_promotion": 0,
"description": "string",
"estimated_next_month_promotion_quota": 0,
"expires_at": "2019-08-24T14:15:22Z",
"is_verified": true,
"last_week_quality": "unknown",
"monthly_promotion_quota": 0,
"name": "string",
"oa_id": "string",
"onwer_id": "string",
"remaining_monthly_promotion_quota": 0,
"remaining_quota": 0,
"shop_id": "string",
"status": "Z",
"updated_at": "2019-08-24T14:15:22Z",
"webhook_url": "string"
}
Request body structure
id
int64
OA ID
Return data attribute structure
app_id
int64
Application ID
avatar
string
Link to OA cover photo
connection_id
int64
Connection ID
connection_method
string
Connection method
description
string
Describe
is_verified
boolean
True
: OA verified
False
: OA not verified
name
string
OA Name
id
int64
OA ID
owner_id
int64
Shop owner ID on eTelecom system
shop_id
int64
Shop ID on eTelecom system
status
string
Status
P
: Connecting
N
: Disconnect
current_quality
string
OA's ZNS notification delivery quality in the last 48 hours.
HIGH - Good quality level
MEDIUM - Medium quality level
LOW - Low quality level
UNDEFINED - OA quality level not determined (in case OA did not send any ZNS notification within the evaluation timeframe)
last_week_quality
string
OA's ZNS notification sending quality in the last 7 days.
Return values:
HIGH - Good quality level
MEDIUM - Medium quality level
LOW - Low quality level
UNDEFINED - OA quality level not determined (in case OA did not send any ZNS notification within the evaluation timeframe)
daily_quota
int
Number of ZNS OA notifications sent in 1 day.
remaining_quota
int
Number of ZNS OA notifications sent in the remaining day.
daily_quota_promotion
int
Number of ZNS OA after-sales messages sent per day. Note: From November 1st, this attribute will return null value
monthly_promotion_quota
int
Number of ZNS after-sales OA messages sent during the month.
remaining_monthly_promotion_quota
int
The remaining ZNS after-sales OA messages sent during the month.
estimated_next_month_promotion_quota
int
Estimated number of ZNS after-sales messages that OA can send in the next month.
expires_at
string<date-time>
Refresh token expiration time
updated_at
string<date-time>
Update date
created_at
string<date-time>
Date created
Last updated