checkoutBooking() error.

I have an Issues with API function checkoutBooking().

It gives an error: {code: -10010, message: “Over Capacity”}
The payment doesn’t start and that’s what I got as error in .catch() part. All info is pretty hardcoded to do the first try, but no luck.

It’s not very informative for me . Is anyone here who can help?
Will be happy to provide more info if needed.

Thanks in advance

It might be useful to add any code used, that would help other forum users to see where your actual problem is, as the ‘over capacity’ error might just be a red herring and the problem is somewhere else in your code

Hello Anna, did you fix the error? I have run into same error. Please help me if you have fixed it.

UP

I’ve the same issue can someone give us an explanation?

I tried to change my service/staff/schedule in every way possible nothing change.

Here is the slot I would like to save

slot: {"_id":"KNfhp2bCnKnasZKIlmVSdCBEsQagUbbz7CsYAxLdOlgIApKKJnRRlRqMucifxcF5Vgb8NGgPkp0XCqpc1TBhDVcsI5YF2HtE1e9JX0QnbPaQvxaDPuXKpb4jszddiwYSiDAY050NxgqXzN6A8RU5M5ADN49pLXQCCx47NR0TlCeT59nExr5xmVxDQhiiRxBwjYGkXoFuNnfOOik53YQVWpgGzNQKIQgEvMjLamgiNLbXqzeGfggLKO7RjZ","startDateTime":"2019-06-17T18:30:00.000Z","endDateTime":"2019-06-17T20:00:00.000Z","serviceId":"0096494b-c11a-4aec-985e-2dff4ec46cd7","capacity":1,"remainingSpots":1,"staffMemberId":"f5b08ce3-8d69-4160-9ab1-b23372b375cd"}"

As you can see there is a capacity of 1 (it is an appointment) with remainingSpots of 1 . So I imagine It could save but I’ve got the same error when i call
wixBookings.checkoutBooking()

here is the log:

 "root":{"insertId":"..........Buu0lYnQdDDcQfsqwEq3O3""timestamp":"2019-06-21T14:46:19.707Z""severity":"ERROR""labels":{"siteUrl":"https://peter96023.wixsite.com/website-1""namespace":"Corvid""tenantId":"5244d47b-1806-4d34-beb3-babd2815eefc""viewMode":"Preview""revision":"225"}"operation":{"id":"..........CZ2NpJna46TsZM5lvz7xJ_""producer":"/Services/basic-groom-package-1-cat/appointment""first":false"last":false}"sourceLocation":{}"jsonPayload":{"message":"could not book the appointment {"code":-10010,"message":"Over Capacity"} at console.<anonymous> (https://static.parastorage.com/services/wix-code-viewer-app/1.112.0/app.js:3:8911) at console.r.error (https://static.parastorage.com/services/dbsm-viewer-app/1.466.0/app.verbose.js:1:223658) at https://726a5d8b-6bc3-4021-872e-91100eb7b105.dev.wix-code.com/pages/ek6fc.js?empty-if-missing=true&exclude=wix-&module-name=ek6fc&viewMode=preview&instance=wixcode-dev.a7c686739f71dbbcfd92e2990eba7add330b91c4.eyJpbnN0YW5jZUlkIjoiNzI2YTVkOGItNmJjMy00MDIxLTg3MmUtOTExMDBlYjdiMTA1IiwiY29ycmVsYXRpb25JZCI6IjUxNzAzMjI1LTFjOGYtNGFiOS05NmQzLTBhYzkxZDcyNGE2ZSIsInNlc3Npb25VSWQiOiI0OWY4ODdiZS0zMWU5LTQ3NDYtYmMyNy05Njg1M2QwNjJhMWUiLCJpc1RlbXBsYXRlIjpmYWxzZSwic2lnbkRhdGUiOjE1NjExMjgyNTQ4ODMsInNpdGVNZW1iZXJJZCI6IjQ5Zjg4N2JlLTMxZTktNDc0Ni1iYzI3LTk2ODUzZDA2MmExZSIsInVpZCI6IjQ5Zjg4N2JlLTMxZTktNDc0Ni1iYzI3LTk2ODUzZDA2MmExZSIsImFwcERlZklkIjoiQ2xvdWRTaXRlRXh0ZW5zaW9uIiwiaXNBZG1pbiI6ZmFsc2UsIm1ldGFTaXRlSWQiOiI1MjQ0ZDQ3Yi0xODA2LTRkMzQtYmViMy1iYWJkMjgxNWVlZmMiLCJjYWNoZSI6bnVsbCwiZXhwaXJhdGlvbkRhdGUiOiIyMDE5LTA2LTIxVDE4OjQ0OjE0Ljg4M1oifQ==&gridAppId=f0ded09d-6fef-4ecf-8929-e15fa86346b1&cacheKiller=1561128270247:187:11"}"receiveTimestamp":"2019-06-21T14:46:12.376Z"} 

Hi,did anyone found a solution for this?I came across the same issue,the code runs on 1 website but won’t run on 2 other websites that I tried,same code same setup

Hi melinda, is your service an 1-on-1 or a group class?

1 Like

it is an ongoing session and max participants are 6,so I assume it is called a group class. We offer crafting events where group of people can participate,can book up to 6 people / event.

As it comes up with the Wix bookings API error about checkoutBooking().

Then check your code and payment setups as it needs to be able to go and pay for the booking.

See here for info about the Wix Bookings API and see the checkoutBooking() function info. https://www.wix.com/corvid/forum/corvid-tips-and-updates/new-bookings-api

checkoutBooking( ) - Use this function once users have selected one of the available slots you presented to them. This function will book the selected service and process payments for the service if necessary.

Also have a good read of the Wix Bookings API reference for checkoutBooking() here.
https://www.wix.com/corvid/reference/wix-bookings.html#checkoutBooking

If the service being checked out is not a free service, you also need to pass a PaymentOptions object containing information about the method of payment and any coupon codes. If an online method of payment is specified, a payment popup is presented for the user to input payment information, such as credit card information. The function’s returned Promise resolves after the user finishes entering the payment information and the service has been successfully booked. If no payment or an offline method of payment is specified, the payment popup is not presented and the Promise resolves when the service has been successfully booked.
If a service is configured as a paid service in the Dashboard , attempting to perform a checkout as if it is a free service results in an error.

For payment options see the reference here.
https://www.wix.com/corvid/reference/wix-bookings.html#PaymentOptions

Thank you for your reply.

I tried with both pay and free services and got the same error. Moreover I doubt (and really hope) that over capacity has nothing to do with payment options.

finally as you may have read, we all are aware of wix bookings checkoutBooking method as we used it to do our custom code. Copy paste part of the doc is not really helping

1 Like

Okay then, so it must be an issue on Wix side then with the checkoutBooking() function of the Wix Bookings API and that is only something that Wix can fix themselves.

There is another older post about the exact same error from April of this year, so it must be happening on and off for some users.

This does so remind me of Twitter from last year too.
https://www.telegraph.co.uk/technology/2018/04/09/twitter-users-hit-capacity-problem-immediately-post-complaints/
https://www.quora.com/What-does-it-mean-when-Twitter-says-it-is-over-capacity

haha I loved that article :stuck_out_tongue: but I doubt it has any connection with our problem :stuck_out_tongue: funny though

Than what to do when wix booking payment is correctly setup?I can/I am taking payments for a while no through the wix booking app. And added the code to the lightbox that should redirect customers to the payment part,just as it is being done while booking from the app.I have modified the code and added a free service from the map,still it won’t go further with the booking,so I assume is not the payment part that causes an error. As I mentioned previously,even if I use the template website offered by wix I get the same problem,it won’t allow me to book not even a free service.Any idea would be appreciated

I contacted support by phone. Maybe you can do the same. Eventually someone will come and fixe it!

1 Like

I can contacted support,there is not call option for me,but I could email them.Can you tell me how you explained the issue,as I know that they dont offer help for the code part so need somehow to explain them that it is not the code the problem here

I clearly explained the issue by demonstrating that I know what I do with code and that I understand the API and stating that over capacity error is not documented and therefor unsolvable by us nor them and require someone with advance knowledge of the API

Call back center is closed at the moment (week-end) maybe try Monday or Tuesday :slight_smile:

Thank you I have sent in a support ticket,there was never a call option for my country,hopefully will get sorted out.Please let me know if meantime you find any solution,i will also post here if anything comes up

Melinda, see here for about phone calls.
https://support.wix.com/en/article/contacting-wix-by-phone-3491545

1 Like

Thank you,however i can’t request it for the moment.However I have sent in a support ticket.

UP

Maybe if I put a gift support will see it https://media.giphy.com/media/XmcrM6IJ0T2X6/giphy.gif

Hi,did you managed to get an useful reply?No matter how I insist I get the answer that wix support can not help with the corvid parts,and they adviced to get a wix expert from the arena, Here must be something what we don’t know,from the whole wix world only us two has this problem?