eTelecom docs
English
English
  • INSTRUCTIONS FOR USE
    • Administration page for cs.etelecom
    • Google Chrome Extension
    • App eTelecom
  • API INTEGRATION
    • Shop
      • Account
      • Usage
    • Partner
      • Account
      • Usage
    • VPBX
      • VoIP SDK
        • Android
        • iOS
        • Web
        • Flutter
      • PBX REST APIs
        • Partner Get Tenant List
        • Partner Add Hotline
        • Partner Get Hotline List
        • Partner Activate Tenant
        • Partner Add Hotline To Tenant
        • Partner Removed Hotline From Tenant
        • Partner Remove Hotline
        • Create Tenant
        • Get Tenant information
        • Get Driver Config
        • Get hotline list
        • Create Account User
        • Get List User
        • Create extension
        • Get extension information
        • Get extension list
        • Assign extension to user
        • Change hotline for extension
        • Remove User Of Extension
        • Get call history
    • Zalo Cloud
      • Instructions for connecting Zalo Cloud
      • Zalo Cloud API
        • Create OA authorization link
        • Connect OA
        • Get refresh token
        • Get OA list
        • Get OA information
        • Update Webhook for OA
        • Get list of users
        • Send Text Consulting
        • Send Consulting message according to user information request form
        • Send advice message with sticker
        • Send message Consulting with attached photo
        • Send message Consulting attached file
        • Send transaction message
        • Upload file
        • Send request for calling permission
        • Check if the customer has granted calling permission
        • Get list of requests for calling permission
        • Create a news template
        • Get sample details
        • Get list of news samples
        • Journey Token Creation
        • Get Journey Token Details
        • Get Journey Token List
        • Get message list
        • Get message details
        • Send ZNS
        • Send ZNS with Journey Token
  • SMS BRANDNAME
    • User manual
    • SMS API
      • Send SMS
      • Get message status
      • Get sample details
Powered by GitBook
On this page
  1. API INTEGRATION
  2. Zalo Cloud
  3. Zalo Cloud API

Send advice message with sticker

PreviousSend Consulting message according to user information request formNextSend message Consulting with attached photo

Last updated 1 month ago

Note:

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

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

Request:

curl --location 'BASE_URL.Zalo/OASendSticker' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
  "message": {
    "attachment_id": "string"
  },
  "oa_id": "string",
  "recipient": {
    "user_id": "string"
  }
}'

Response:

{
  "direction": "in",
  "msg_id": "string",
  "oa_id": "string",
  "quota": {
    "expired_date": "string",
    "owner_id": "string",
    "owner_type": "string",
    "quota_type": "string",
    "remain": "string",
    "total": "string"
  },
  "recipient_id": "string",
  "sender_id": "string",
  "shop_id": "string",
  "type": "unknown",
  "user_id": "string",
  "wl_partner_id": "string",
  "zl_user_id": "string"
}

Request body structure

Parameters
Data type
Describe

attachment_id

string

ID sticker

id

int64

OA ID

user_id

string

Zalo User ID

Return data attribute structure

Parameters
Data type
Describe

direction

string (nzMessageDirection)

in out

msg_id

string

Notification ID

oa_id

string

OA ID

expired_date

string

Expiration date of Free Consulting news according to OA vervice package

remain

string

  • Number of messages sent Free consultation within the remaining 8 messages 48 hours limit (Messages sent are messages within the 8 messages 48 hour frame - "reply")

  • Number of messages sent for Free Consulting according to the remaining OA service package (Messages sent are messages within the free limit of the package - โ€œsub_quotaโ€)

total

string

Total number of messages sent Free consultation according to OA service package

owner_id

Entity ID owning Quota Package Value: OA ID or App ID

owner_type

string

Quota Package Owning Entity Value: OA: Owning entity is OA App: Owning entity is App

quota_type

string

Quota source used Carrying value: โ€œreplyโ€ : Message sent out is message within 8 messages 48h frame โ€œsub_quotaโ€ : Message sent out is message within free limit of package โ€œpurchase_quotaโ€ : Message sent out is message within limit of odd feature package โ€œreward_quotaโ€ : Message sent out is message within limit of Redeem code

recipient_id

string

Recipient ID

sender_id

string

Sender ID

shop_id

string

Shop ID on eTelecom

type

string (vqUIDType)

"unknown" "text" "audio" "video" "photo" "GIF" "link" "file" "sticker" "location" "business_card"

user_id

string

User ID on eTelecom

<api_key>
Shop
<shop_key>
Partner

OASendSticker

post
Body
oa_idstring ยท int64Optional
Responses
200
A successful response
application/json
post
POST /v1/shop.Zalo/OASendSticker HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 82

{
  "message": {
    "attachment_id": "text"
  },
  "oa_id": "text",
  "recipient": {
    "user_id": "text"
  }
}
200

A successful response

{
  "direction": "in",
  "msg_id": "text",
  "oa_id": "text",
  "quota": {
    "expired_date": "text",
    "owner_id": "text",
    "owner_type": "text",
    "quota_type": "text",
    "remain": "text",
    "total": "text"
  },
  "recipient_id": "text",
  "sender_id": "text",
  "shop_id": "text",
  "type": "unknown",
  "user_id": "text",
  "wl_partner_id": "text",
  "zl_user_id": "text"
}