Hello,
I’m working with OHIP Lab partner sandboxes (both OHIPLAB (OCIM) and OHIPSB (SSD)).
In the Developer Portal → Environments _> Sandbox Credentials, the field Hotel ID is completely empty.
Because of this:
- I cannot use
x-hotelid
in property-level API calls, since I don’t know which Hotel/Resort code to pass.
- I also tried hub-level calls with
x-hubid
, but I cannot find a valid Hub ID either. Using the environment alias (e.g. mucu1ua) or Enterprise Id (OCR4ENT) returns a Forbidden error (OPERAWS-GEN01265).
Every API request in my OHIP Lab sandbox ends with the following responses:
Sample request with x-hotelid
curl --location 'https://mucu1ua.hospitality-api.us-ashburn-1.ocs.oc-test.com/ent/config/v1/hotels/SAND01/hotelDetails' --header 'x-hotelid: SAND01' --header 'x-app-key: MY_APP_KEY' --header 'Authorization: ••••••'
{
"type": "Forbidden",
"title": "User is not authorized to access data for resort.",
"detail": "User is not authorized to access data for resort.",
"o:errorCode": "OPERAWS-GEN01244",
"language": "en"
}
similar request with x-hubid returns
{
"type": "Forbidden",
"title": "User is not authorized to access data for hub.",
"detail": "User is not authorized to access data for hub.",
"o:errorCode": "OPERAWS-GEN01265",
"language": “en”
}
I tried to look up this error code in the official documentation Web Service Error Codes, Oracle Hospitality Integration Platform Web Service Error Codes, but OPERAWS-GEN01265 and OPERAWS-GEN01244 are not listed there.
Questions:
- Should these partner sandboxes (OCIM / SSD) provide a default Hotel ID?
- If yes, where can I retrieve it? The Hotel ID field is empty in both environments.
- If they are hub-level only, what is the correct Hub ID value I should pass in
x-hubid
?
- Is it possible to request assignment of a sample property (Hotel ID) to my sandbox environments for testing?
Any guidance would be appreciated. Rright now I can authenticate with client credentials and obtain a token, but since both Hotel ID and Hub ID are not available in my OHIP Lab sandboxes (OCIM and SSD), any property or hub level API returns 403. Documentation states x-hotelid
(or x-hubid
for hub-level) is mandatory for authorization; however, those identifiers are missing in my environment
Thank you!