[#1093] Getting code -32050, Membership limit error

Migrated from Redmine #1093 | Author: Jagan Pandurangan
Status: Feedback | Priority: High, I’m very impatient | Created: 2023-08-17


Hey team, I am using the “book” api to book a service that requires membership.

  1. I have ensure that the slot is available
  2. All the booking dates and slots are within the membership period (the membership duration is 5 years and is long enough)
  3. I am using the correct “client_membership_id” in the request payload

We are using json rpc method for this. The request payload is this



{
    "jsonrpc": "2.0",
    "method": "book",
    "params": [
        "24",
        "22",
        "2023-08-27",
        "19:00:00",
        {
            "client_id": "34",
            "client_sign": "639448b1f2ad7b52eff5430a4a53c94d"
        },
        {
            "handle_invoice": true,
            "4a23dbbaef6ffd53a9b1d9c3c9f218d3": "null ",
            "8d710a3f9e0fa23280bab560486ef0d5": "",
            "client_membership_id": "43"
        },
        1,
        null
    ],
    "id": "34"
}

And the response is this,


{
    "error": {
        "code": -32050,
        "message": "Membership limit error",
        "data": []
    },
    "id": "34",
    "jsonrpc": "2.0"
}

I suspect that even if the issue is something else, the API is returning “Membership limit error”

Dmytro Bondarev wrote:

Hi,
It means that you are trying to use client membership that exceed limits.
For further investigation please provide company login.
You can provide company login here or by contacting live support with reference to this issue.

Jagan Pandurangan wrote:

There is no limit on the number of bookings in the membership.
May I know what details you need further?
The company name is “cocorio”

Also I would like to know how to use the “live support” as you mentioned.
The “live chat” in https://cocorio.secure.simplybook.it are not providing API support and are asking me to reach this site for API support.

Dmytro Bondarev wrote:

Hi,

This membership does not belong to this client.
Please check all parameters in your request.

Jagan Pandurangan wrote:

Yeah, sorry, the client_id was sent incorrectly in the request. Can you please send the appropriate error message in case of a wrong parameter. The message “Membership limit error” is misleading.