Update Webhook for OA

circle-info

Note:

  • For APIs used for Shop, the API key is: <api_key>. The base_url information of the Shop.

  • For APIs used for Partner, the API key is: <shop_key>. The base_url information of the Partner.

UpdateShopOA

post
Body
oa_idstring · int64Optional
webhook_urlstringOptional
Responses
chevron-right
200

A successful response

application/json
app_idstring · int64Optional
avatarstringOptional
connection_idstring · int64Optional
connection_methodstring · enumOptional

Deprecated values: "topship"\n

Possible values:
coverstringOptional
created_atstring · date-timeOptional
current_qualitystring · enumOptionalPossible values:
daily_quotaintegerOptional
daily_quota_promotionintegerOptional
descriptionstringOptional
estimated_next_month_promotion_quotaintegerOptional
expires_atstring · date-timeOptional
is_verifiedbooleanOptional
last_week_qualitystring · enumOptionalPossible values:
monthly_promotion_quotaintegerOptional
namestringOptional
oa_idstring · int64Optional
onwer_idstring · int64Optional
remaining_monthly_promotion_quotaintegerOptional
remaining_quotaintegerOptional
shop_idstring · int64Optional
statusstring · enumOptionalPossible values:
updated_atstring · date-timeOptional
webhook_urlstringOptional
post
$BASE_URL.Zalo/UpdateShopOA
200

A successful response

Request:

Response:

Request body structure

Parameters
Data type
Describe

id

int64

OA ID

webhook_url

string

Webhook URL that you want to receive events from

Return data attribute structure

Parameters
Data type
Describe

app_id

int64

Application ID

avatar

string

Link to OA cover photo

connection_id

int64

Connection ID

connection_method

string

Connection method

unknown builtin direct

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.

expires_at

string<date-time>

Refresh token expiration time

updated_at

string<date-time>

Update date

created_at

string<date-time>

Date created

webhook_url

string

Webhook URL that you want to receive events from

Last updated