Discussions
API Error
Hello guys, we have try to contact for several ways and it has not been posible,
Trying this way hope I can get and answer
we are using API conection: /api/Bookings/{api_token}
To create a new booking
we have tried diferent data structures but at the end we are getting the same error:
{"type":"https://tools.ietf.org/html/rfc9110#section-15.5.1","title":"One or more validation errors occurred.","status":400,"errors":{"$":["'"' is invalid after a value. Expected either ',', '}', or ']'. Path: $ | LineNumber: 17 | BytePositionInLine: 2."],"item":["The item field is required."],"room_id":["The room_id field is required."]},"traceId":"00-e62c21c3f96b53521fa025fc165dec7a-bda6b8923f82309c-00"}
No matter how we add the room ID we got the same issue
Also our developer has tried and this is what he told us:
Hello Guys good afternoon!!!
Kindly your help with this our team has been trying to connect to the APi for reservation creation
and we had more error today error Code is 500 and they told me it is on your server side due to reservation # consecutive rules
the method we are using is API(PUT/api/bookings/{api_token} )
Error returning is 500 Internal Server Error on your backend side
Although documentation shows an operation guidance like this:
Endpoint:
PUT https://api.nobeds.com/api/Bookings/{api_token}?order_id=1645761
Headers:
accept: application/json
Content-Type: application/json
Body:
{
"id": 1,
"order_id": 1645761,
"hotel_id": 1508161119,
"status": "Cancelled",
"email": "[email protected]"
}
🔹 The answer on server side is:
Status: 500 Internal Server Error
Response Body:
Error.
An error occurred while processing your request.
❓ Question guys
Can you confirm if your endpoint PUT /api/Bookings/{api_token} is enabled in production or if there are any additional requirements to update a reservation (or if there are any required fields or a different format we should use)?
At the moment, all Payloads are returning a 500 error.
Thank you for your answer, guys !!