Check if the customer has granted calling permission
Body
oa_idstring · int64Optional
phonestringOptional
Responses
200
A successful response
application/json
post
POST /CheckConsent HTTP/1.1
Host: $BASE_URL.Zalo
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"oa_id": "text",
"phone": "text"
}
200
A successful response
{
"error": 1,
"expired_time": "2025-07-02T00:25:36.462Z",
"message": "text"
}
Request:
curl --location '$BASE_URL.Zalo/CheckConsent' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API-KEY' \
--data '{
"oa_id": "<int64>",
"phone": "<string>"
}'
Response:
{
"error": 0,
"expired_time": "2019-08-24T14:15:22Z",
"message": "string"
}
Request body structure
Parameters
Data type
Describe
id
int64
OA ID
phone
string
Recipient phone number
Return data attribute structure
Parameters
Data type
Describe
error_code
int
Error code
message
string
Error message
expired_time
string<date-time>
Expiration date
Last updated