system
March 27, 2025, 12:25pm
1
Migrated from Redmine #1402 | Author: Shatakshi Pandey
Status: Closed | Priority: Immediate, there is BUG! | Created: 2025-03-27
Store Details:
API Details
curl --location ‘https://magrabi-saleor-app-api-uat.mozcomtest.com/graphql/ ’
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer {{token}}’
–header ‘Cookie: route=1743057382.427.29.145239|4dee112bc0c5df04676997249da0f55a’
–data ‘{“query”:“mutation GetAvailableSlots($input: GetAvailableSlotsInput!) {\n getAvailableSlots(input: $input) {\n availableSlots\n externalApisError {\n field\n message\n }\n }\n}”,“variables”:{“input”:{“date”:“2024-11-22”,“service”:“eyeTest”,“storeId”:“V2FyZWhvdXNlOjE2MjkxMzkxLTAxN2UtNGI1Ny05N2M1LTVhNzU4MzI1OWQ4Mw==”}}}’
Error Response:
{
errors: [
{
message: ‘Internal Server Error’,
locations: [Array],
path: [Array],
extensions: [Object]
}
],
data: { getAvailableSlots: null },
extensions: { cost: { requestedQueryCost: 0, maximumAvailable: 50000 } }
}
system
March 27, 2025, 12:32pm
2
Dmytro Bondarev wrote:
Hi, we do not provide graphql API. please check documentation:
system
March 28, 2025, 5:48am
3
Shatakshi Pandey wrote:
Dmytro Bondarev wrote in #note-1:
Hi, we do not provide graphql API. please check documentation:
API documentation | SimplyBook.me Online Scheduling
Dmytro Bondarev wrote in #note-1:
Hi, we do not provide graphql API. please check documentation:
API documentation | SimplyBook.me Online Scheduling
We follow the same API for Magrabi website and it is working fine. We have not made any changed in the API for DoctorM. Can you please chekc if any configuration is missing? Can you confirm if timeslots are already configured in simplybook for the above mentioned 5 stores.
system
March 28, 2025, 8:18am
4
Dmytro Bondarev wrote:
Hi, please provide API request and response to our server, so we can investigate the issue.
system
March 28, 2025, 12:41pm
5
Shatakshi Pandey wrote:
Dmytro Bondarev wrote in #note-3:
Hi, please provide API request and response to our server, so we can investigate the issue.
API Details
curl --location ‘https://magrabi-saleor-app-api-uat.mozcomtest.com/graphql/ ’
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer {{token}}’
–header ‘Cookie: route=1743057382.427.29.145239|4dee112bc0c5df04676997249da0f55a’
–data ‘{“query”:“mutation GetAvailableSlots($input: GetAvailableSlotsInput!) {\n getAvailableSlots(input: $input) {\n availableSlots\n externalApisError {\n field\n message\n }\n }\n}”,“variables”:{“input”:{“date”:“2024-11-22”,“service”:“eyeTest”,“storeId”:“V2FyZWhvdXNlOjE2MjkxMzkxLTAxN2UtNGI1Ny05N2M1LTVhNzU4MzI1OWQ4Mw==”}}}’
Error Response:
{
errors: [ {
message: ‘Internal Server Error’,
locations: [Array],
path: [Array],
extensions: [Object]
}
],
data: { getAvailableSlots: null },
extensions: { cost: { requestedQueryCost: 0, maximumAvailable: 50000 } }
}
Store Details:
system
March 28, 2025, 12:45pm
6
Dmytro Bondarev wrote:
Hi,
it is not our API, if you have issue with our API, please provide HTTP request and response to/from our server.
system
April 2, 2025, 12:24pm
7
Shatakshi Pandey wrote:
API details
https://user-api-v2.simplybook.me/admin/schedule/available-slots?date=2020-08-27&provider_id=1&service_id=5
params = {
“date”: “2025-04-02”,
“provider_id”: 1,
“service_id”: 5,
“count”: 1,
}
Response
response
{
“data”: [
{
"id": 1,
"start": "2025-04-02T09:00:00",
"end": "2025-04-02T09:30:00",
"isAvailable": true
},
{
"id": 2,
"start": "2025-04-02T10:00:00",
"end": "2025-04-02T10:30:00",
"isAvailable": true
}
],
“error”: null
}
system
April 2, 2025, 12:37pm
8
Dmytro Bondarev wrote:
Hi, it looks like API returns the data.
If you have any questions, please let us know.
system
April 4, 2025, 6:28am
9
Shatakshi Pandey wrote:
Thanks for the prompt reply.
We are getting time slots correctly for 3 stores in DoctorM UAE.
For 2 stores we are facing issue, which we believe is caused due to some credential mismatch.
Could you please review the details of 2 stores ( are let us know if details are incorrect.
Store details:
DXB DM Burjuman Mall - https://9303drmburjumanmall.secure.magrabi.enterpriseappointments.com
ABD DM Bawabat Sharq Mall - 9306drmbawabatsharqmall.secure.magrabi.enterpriseappointments.com
Screenshots attached
system
April 4, 2025, 9:01am
10
Dmytro Bondarev wrote:
Hi, even if you have issues with the stores, then it is necessary to see request and response.
From our side i see that everything is working fine.
And for further investigation we need to know what request failed, what is response from server.