Skip to main content

Product Discussion Data Schema

This webhook has one url, only one field that different the payload, the field is discussion_type at JSON response.

The schemas are as follows:

New Question webhook for product discussion

New Question Webhook will trigered when any question into product discussion.

Below are the schemas :

FieldTypeDescription
discussion_type
String
this make different on question and answer
fs_id
Integer
Fulfillment service unique identifier
discussion_data
Object
Object of discussion data
product_id
Integer
Product unique identifier
shop_id
Integer
Shop unique identifier
user_id
Integer
User id that send question
message
String
the question that send to product discussion
original
String
date time in human format
unix
String
date time in UNIX timestamp format

Example Response

{
"fs_id": 13215,
"discussion_type": "NewQuestion",
"discussion_data": {
"id": "100833425",
"product_id": 15372491,
"shop_id": 481154,
"user_id": 9073643,
"message": "tanya detail nya dong nih produk apan sih?",
"create_time": {
"original": "2021-04-08T08:27:51.68785Z",
"unix": 1617845271
},
}
}

Answer webhook for product discussion

New Answer Webhook will trigered when any question got answer for another user.

Below are the schemas :

FieldTypeDescription
discussion_type
String
This make different on question and answer
fs_id
Integer
Fulfillment service unique identifier
discussion_data
Object
Object of discussion data
question_id
Integer
Question unique identifier that get answer
product_id
Integer
Product unique identifier
product_name
String
Product name
shop_id
Integer
Shop unique identifier
user_id
Integer
User id that send answer
user_full_name
String
User full name that send answer
answer_id
Integer
Answer unique identifier that send to product discussion
message
String
the question that send to product discussion

Example Response

{
"fs_id": 13215,
"discussion_type": "DiscussionAnswer",
"discussion_data": {
"question_id": 100833425,
"shop_id": 481154,
"user_id": 9073643,
"user_full_name": "John Doe",
"product_id": 15372491,
"product_name": "Health Master",
"answer_id": 214900786,
"message": "Eh udah tau sendidi aku.. ga perlu"
}
}