[#774] Sessions are not listed under memberships in SimplyBook account

Migrated from Redmine #774 | Author: Harpalsinh Zala
Status: Feedback | Priority: Immediate, there is BUG! | Created: 2021-09-02


We are getting success response in Simply book API. The online session are purchased and stored in our database but the same sessions are not reflected in Simplybook websites:

https://simplybook.me/).

Redmine Admin wrote:

Hi, i’m not sure what you mean, please explain.

Harpalsinh Zala wrote:

Can we connect on call? So that I can share my screen and explain you the issue.

Redmine Admin wrote:

unfortunately it is not possible. Please explain issue by text here

Harpalsinh Zala wrote:

We are using SimplyBook integration in our application to book online sessions. Earlier whenever we book the online sessions with SimplyBook it used to return success in API call and reserved the online session in SimplyBook account.

But currently, we book the online sessions with SimplyBook it returns success in API call but it doesn’t display the online session reserved in SimplyBook account under membership section.

Please look into the same and explain why the behavior is different now from last few weeks.

Redmine Admin wrote:

still not sure what you are talking about because bookings are reflected in calendar and report, not in memeberships

Harpalsinh Zala wrote:

We are using this API to purchase session passes from SimplyBook: https://user-api.simplybook.me/

The session passes that we purchased are not reflected in SimplyBook Admin.

Harpalsinh Zala wrote:

Also, for your reference we wanted to upload the screenshots but the Choose Files option is not working here.

Redmine Admin wrote:

Please provide RAW HTTP request and responce of your API call

Harpalsinh Zala wrote:

URL : https://user-api.simplybook.me/

$session_id = 21
$simplybook_user_id = 178
$fromDate = currentDate
$simplybook_user_hash = 3c62ef0ed6e86898264608239d019ef8

Redmine Admin wrote:

it doesen’t looks like raw http request. We need http request, unfortunately there are too many places in code on diffirent languages which can go wrong and we are not familiar with all programming languages.

Harpalsinh Zala wrote:

Request:

URL : https://user-api.simplybook.me/
Method : POST

{
“jsonrpc” : “2.0”,
“method” : “makeMembershipPaymentV2”,
“id”:“1”,
“params” : {
“session_id”: “21”,
“simplybook_user_id” : “178”,
“fromDate” : “2021-09-09”,
“simplybook_user_hash” : “3c62ef0ed6e86898264608239d019ef8”
}
}

Response:

Response :

{
“result”: {
“status”: “success”,
“invoice”: {
“client_additional_info”: ,
“id”: 693,
“number”: “O-00000693”,
“datetime”: “2021-09-09 05:43:07”,
“due_datetime”: “2021-09-09 05:53:07”,
“payment_datetime”: null,
“amount”: 0,
“deposit”: 0,
“is_with_deposit_amount”: false,
“rest_amount”: 0,
“discount_amount”: 0,
“taxes”: ,
“tax_amount”: 0,
“currency”: “USD”,
“client_id”: 178,
“description”: “”,
“payment_received”: false,
“payment_processor”: null,
“lines”: [
{
“membership_id”: 21,
“membership”: {
“id”: 21,
“name”: “1:1 Session Pack - App”,
“description”: “

Helpr 1:1 Session Pack - Includes three 1:1 sessions. Includes all tutoring and 1:1 Enrichment sessions. Does not include Teachr or Group Sessions. 

1:1 Enrichment: Helpr Chat (foreign language tutoring), Helpr Hangs (virtual babysitting)

Pre-K through High School tutoring: Homework Helpr 

*<span style="font-size: 1rem;">Sessions are 45 minutes long and require at least 2 hours’ notice for booking. <span style="font-size: 1rem;">Our helprs do not create lesson plans for these sessions. They will prepare up to 15 minutes based on materials or instructions provided by families. 

Book sessions <a href="SimplyBook.me — Free Online Appointment Scheduling Service” target="_blank" style="">here!<span style="font-family: "Proxima Nova", sans-serif;">



",
“file_id”: null,
“picture_preview”: null,
“picture_large”: null,
“first_price”: 0,
“recurring_price”: 0,
“currency”: “USD”,
“is_recurring”: false,
“tax_id”: null,
“tax”: null,
“duration”: 1,
“duration_type”: “year”,
“limit”: 3,
“simultaneous_limit”: 0,
“is_unlimited”: false,
“is_active”: true,
“is_visible”: false
},
“period_start”: “2021-09-09”,
“membership_payment_id”: null,
“description_string”: “Memberships: 1:1 Session Pack - App (Thursday, Sep 09 2021 - Friday, Sep 09 2022) x1”,
“id”: “693”,
“invoice_id”: 693,
“name”: “1:1 Session Pack - App (Thursday, Sep 09 2021 - Friday, Sep 09 2022)”,
“type”: “membership”,
“discount_ratio”: 0,
“discount_amount”: 0,
“discount”: 0,
“price”: 0,
“price_without_tax”: 0,
“final_price”: 0,
“recurring_price_without_tax”: 0,
“qty”: 1,
“package_qty”: 0,
“tax”: null,
“tax_ratio”: 0,
“tax_amount”: 0,
“amount”: 0,
“deposit”: 0,
“is_with_deposit_amount”: false,
“rest_amount”: 0,
“currency”: “USD”
}
],
“status”: “new”,
“support_recurring_payment_method”: false,
“recurring_profile_id”: null,
“promotion_instances”: ,
“package_instances”: ,
“deposit_child_invoice”: null,
“deposit_parent_invoice”: null
}
},
“id”: “1”,
“jsonrpc”: “2.0”
}

Harpalsinh Zala wrote:

Harpalsinh Zala wrote:

Request:

URL : https://user-api.simplybook.me/
Method : POST

{
“jsonrpc” : “2.0”,
“method” : “makeMembershipPaymentV2”,
“id”:“1”,
“params” : {
“session_id”: “21”,
“simplybook_user_id” : “178”,
“fromDate” : “2021-09-09”,
“simplybook_user_hash” : “3c62ef0ed6e86898264608239d019ef8”
}
}

Response :

{
“result”: {
“status”: “success”,
“invoice”: {
“client_additional_info”: ,
“id”: 693,
“number”: “O-00000693”,
“datetime”: “2021-09-09 05:43:07”,
“due_datetime”: “2021-09-09 05:53:07”,
“payment_datetime”: null,
“amount”: 0,
“deposit”: 0,
“is_with_deposit_amount”: false,
“rest_amount”: 0,
“discount_amount”: 0,
“taxes”: ,
“tax_amount”: 0,
“currency”: “USD”,
“client_id”: 178,
“description”: “”,
“payment_received”: false,
“payment_processor”: null,
“lines”: [
{
“membership_id”: 21,
“membership”: {
“id”: 21,
“name”: “1:1 Session Pack - App”,
“description”: “

Helpr 1:1 Session Pack - Includes three 1:1 sessions. Includes all tutoring and 1:1 Enrichment sessions. Does not include Teachr or Group Sessions. 

1:1 Enrichment: Helpr Chat (foreign language tutoring), Helpr Hangs (virtual babysitting)

Pre-K through High School tutoring: Homework Helpr 

*<span style="font-size: 1rem;">Sessions are 45 minutes long and require at least 2 hours’ notice for booking. <span style="font-size: 1rem;">Our helprs do not create lesson plans for these sessions. They will prepare up to 15 minutes based on materials or instructions provided by families. 

Book sessions <a href="SimplyBook.me — Free Online Appointment Scheduling Service” target="_blank" style="">here!<span style="font-family: "Proxima Nova", sans-serif;">



",
“file_id”: null,
“picture_preview”: null,
“picture_large”: null,
“first_price”: 0,
“recurring_price”: 0,
“currency”: “USD”,
“is_recurring”: false,
“tax_id”: null,
“tax”: null,
“duration”: 1,
“duration_type”: “year”,
“limit”: 3,
“simultaneous_limit”: 0,
“is_unlimited”: false,
“is_active”: true,
“is_visible”: false
},
“period_start”: “2021-09-09”,
“membership_payment_id”: null,
“description_string”: “Memberships: 1:1 Session Pack - App (Thursday, Sep 09 2021 - Friday, Sep 09 2022) x1”,
“id”: “693”,
“invoice_id”: 693,
“name”: “1:1 Session Pack - App (Thursday, Sep 09 2021 - Friday, Sep 09 2022)”,
“type”: “membership”,
“discount_ratio”: 0,
“discount_amount”: 0,
“discount”: 0,
“price”: 0,
“price_without_tax”: 0,
“final_price”: 0,
“recurring_price_without_tax”: 0,
“qty”: 1,
“package_qty”: 0,
“tax”: null,
“tax_ratio”: 0,
“tax_amount”: 0,
“amount”: 0,
“deposit”: 0,
“is_with_deposit_amount”: false,
“rest_amount”: 0,
“currency”: “USD”
}
],
“status”: “new”,
“support_recurring_payment_method”: false,
“recurring_profile_id”: null,
“promotion_instances”: ,
“package_instances”: ,
“deposit_child_invoice”: null,
“deposit_parent_invoice”: null
}
},
“id”: “1”,
“jsonrpc”: “2.0”
}

Dmytro Bondarev wrote:

These sessions will be available for client after you confirm payment.

Harpalsinh Zala wrote:

It was working previously till august with the same setup. Did you guys updated anything that we need to handle code side? Currently, we don’t have anything related to confirm payment in our project.

Redmine Admin wrote:

it seems you changed setup, please check if price is higher than 0 and/or accept delayed payment option is enabled

Harpalsinh Zala wrote:

Can you provide more information or support links/document?

Let us know from where can we check if price is higher than 0 and/or accept delayed payment option is enabled