Get Consultation Products
Get consultation products and user details
Pathโ
get
{host}/v1/epharmacy/partner/consultation/products
Request Headerโ
Parameter | Type | Description | Example | Required |
---|---|---|---|---|
X-SsoUserToken | string | User token generated from sso tokopedia | lwt:T-Wyygu8RsSUbrei-mH0TQ | true |
X-Consultation-Partner | string | Partner identifier (case-sensitive) | halodoc | true |
Authorization | string | Access Token with Bearer. Refers to Authentication Guide | Bearer LSPr7x7sRGaewzwZE6IcuA | true |
Example Requestโ
curl --location 'https://fs.tokopedia.net/v1/epharmacy/partner/consultation/products' \
--header 'X-SsoUserToken: lwt:LHrbm6wJRCKScNXN73tXXX' \
--header 'X-Consultation-Partner: Halodoc' \
--header 'Authorization: Bearer LSPr7x7sRGaewzwZE6IcuA'
Response Parametersโ
Name | Type | Example | Description |
---|---|---|---|
Integer | 123 | Tokopedia consultation identifier | |
products | Object Array | ||
user_details | Object |
Success Response Examplesโ
{
"header": {
"server_prosess_time": "399.238721ms",
"code": 200
},
"data": {
"toko_consultation_id": 12345,
"products": [
{
"shop_id": 920,
"product_id": 1234,
"product_name": "IOS Red Medicine",
"product_image": "https://sampleurl.com/img/ewrtsdf.jpg",
"product_total_weight_fmt": "12 gr",
"quantity": 1,
"enabler_name": "goapotik"
}
],
"user_details": {
"full_name": "Sample Name",
"phone": "623123342",
"email": "sample.email@xyz.com"
}
}
}
Error Response Examplesโ
{
"header": {
"server_prosess_time": "718.792ยตs",
"code": 400
},
"data": null,
"error": "error message"
}
Error Message Codeโ
Value | Description |
---|---|
ERROR_CONSULTATION_NOT_FOUND | Consultation data not found |
ERROR_INVALID_SSO_TOKEN | The SSO token invalid or expired (currently only valid for 20 minutes) |
ERROR_FAILED_FETCH_CONSULTATION | Failed getting data from upstream |