List Reply
This endpoint retrieves a list of all replies (chat bubble) for a msg_id
which is owned by a shop_id
.x
Pathβ
get
/v1/chat/fs/:fs_id/messages/:msg_id/replies?shop_id=:shop_id
Request Parametersβ
Parameter | Type | Required | Location | Description |
---|---|---|---|---|
fs_id | Integer | Required | path | Fulfillment service unique identifier |
msg_id | Integer | Required | query | Message service unique identifier |
shop_id | Integer | Required | query | Shop service unique identifier |
page | Integer | Required | query | Determine which page the order list should start. Start from 1 . You can get the next page when the previous page has have_next_page value true |
per_page | Integer | Required | query | Determine how many orders will be shown per page. The maximum value is 15 |
Example Requestβ
- Curl
curl -X GET \
https://fs.tokopedia.net/v1/chat/fs/12345/messages/54321/replies?shop_id=234567 \
-H 'Authorization: Bearer OoHgyxcgQ5a1uCbmbbXjjA'
Response Parametersβ
Name | Type | Demo Value | Description |
---|---|---|---|
Integer | 54321 | Message Unique Identifier | |
Integer | 13579 | Sender User Unique Identifier | |
String | User | User Role | |
String | Message Payload | ||
Integer | 1564741529630 | Reply Time in UNIX format | |
Integer | 98765 | Reply Unique Identifier | |
String | Owen | Sender Name | |
Integer | 2 | Read Status | |
Integer | 1564741529221 | Read Time in UNIX format | |
Integer | 1 | Reply Status | |
Integer | 77777 | Attachment Unique Identifier | |
Boolean | true | Is message has been read? | |
Boolean | true | Is the message from buyer? | |
Boolean | false | Is the beginning of your reply (first reply)? | |
Boolean | false | Is the chat bubble reported? |
Success Response Examplesβ
{
"header": {
"process_time": 0,
"messages": "success",
"reason": "",
"error_code": 0
},
"data": [
{
"msg_id": 54321,
"sender_id": 13579,
"role": "User",
"msg": "<a rel=\"nofollow\" target=\"_blank\" href=\"https://staging.tokopedia.com/fuados-tiga/test-product\">https://staging.tokopedia.com/fuados-tiga/test-product</a>",
"reply_time": 1564741529630,
"reply_id": 98765,
"sender_name": "Owen",
"read_status": 2,
"read_time": 1564741529221,
"status": 1,
"attachment_id": 77777,
"message_is_read": true,
"is_opposite": true,
"is_first_reply": false,
"is_reported": false
}
]
}
Error Response Examplesβ
{
"header": {
"process_time": 0.001552878,
"messages": "Your request format or parameters have some problem.",
"reason": "invalid shop_id format",
"error_code": 0
},
"data": null
}
Error Codesβ
Error Code | Error Message | Description |
---|---|---|
SHP_GRPC_001 | Failed Send GRPC Request | Failed sending request to upstream |
SHP_GRPC_003 | Data Not Found | Failed finding data from upstream |
Notesβ
Response field explanation:
- Field
attachment_id
is an identic key for an attachment. - Field
is_opposite
is to identify if the value is true, the message is from the buyer (if youβre the seller). - Field
is_reported
is to identify whether the chat bubble is reported or not. - Field
is_first_reply
is to identify the chat is the beginning of your reply (first reply) or not.