Invalid company in refresh-token endpoint

Hi,

I am trying to get a new token via the refresh-token endpoint, but it keeps throwing back at me that I am providing an invalid company.

The request is as following (from Postman):

POST /admin/auth/refresh-token HTTP/1.1
Host: https://user-api-v2.simplybook.me
Content-Type: application/json
Content-Length: 115

{“company”:“newfysicamersfoort”,“refresh_token”:“04440996a6582e7b17f80b97e15884de3389811aa0e2bf4dab356d610e7f45e1”}

The response I am getting:

{“code”: 400, “message”: “Invalid company”, “data”: [], “message_data”: []}

What am I missing here? I also tried adding the header X-Company-Login, just to be sure, but didn’t go well either.

Thanks in advance

Hi, what is your booking site url at simplybook?

Would that be: https://newfysicamersfoort.secure.simplybook.pro/v2/ ?

I’m currently just implementing the API part within our application

Please use http://user-api-v2.simplybook.pro endpoint

But I am using that in the curl request.

Wait I am mistaken

It is now working. But is not clear in the API documentation that I would have had to use .pro instead of .me. Maybe there is an opportunity there to update the documentation on this.

it is different for all users who are on dedicated servers