Create a login form for your MINDBODY business website

by Devin on February 22, 2014

I often get asked how to log users into a MINDBODY site using the MINDBODY API. I have described an example below that uses PHP I hope you find it helpful.

First you need to have MINDBODY API Access. You can sign up for their partner program here.

Next go download my PHP wrapper for the MINDBODY API from Github. In the examples directory take a look at the login example.

Basically you are calling the ClientService’s ValidateLogin SOAP method with a username and password. If it successfully logs the user in it will send back a GUID and some data about the client. Note this only works with client accounts. I haven’t seen any way yet to log in a staff member using the API.

If you need to send the user offsite to MINDBODY you can include the GUID as a query string parameter like this example URL: https://clients.mindbodyonline.com/ASP/ws.asp?studioid=-99&guid=ea6b46cd-b644-43ab-af18-726ad3c29699




7 comments

Devin, I would like to buy you a beer. please provide paypal or bitcoin donation address by comment or email.

by Don Reeve on July 11, 2014 at 6:03 pm. #

Glad you found this post helpful. I haven’t yet set up a way to take donations so feel free to pay it forward instead 🙂

by Devin on July 12, 2014 at 7:02 am. #

This is amazing. Have you figured out how to integrate the shopping cart and payment processing feature? I’m trying to find a way to get users to sign up for a service that will bill them monthly.

by Allan on July 30, 2014 at 3:56 am. #

Hi Allan, I haven’t yet created a shopping cart solution for Mindbody but it looks like it will be one of my next projects. However it looks like you can use the CheckoutShoppingCart method of the SaleService to process payments. I just replyed to another comment with an example. See it here http://blog.devincrossman.com/start-using-the-mindbody-api-in-under-30-minutes-using-php/#comment-7882
Good luck!

by Devin on July 30, 2014 at 4:12 am. #

Devin, I have a web based tool that i want to integrate with mindbody, I know they charge $5 for monthly access to their api, but do u know if that fee is paid by lets say the spa owner or by the developer?

Ideally i would love to pay 5 myself and develop everything so my spa owner client doesnt have to implement anything

Any idea?

by seb on August 11, 2014 at 12:23 am. #

You set the payment method in the developers portal so you can use your own credit card to pay and the client won’t have to do anything except authorize your application to access their data.

by Devin on August 11, 2014 at 3:38 am. #

Hi Devin,

Very thankful for the blog it really helps me a lot. Was wondering where can i check if the sign-up is working.

by Gabriel on May 25, 2016 at 1:22 am. #