The access_code optional query parameter has been added to GET /accounts. When provided, the endpoint returns the Company or Travel Agent account matching the access code valid on the current business date. If no match is found, an empty response is returned. When the parameter is omitted, the endpoint behaves as before.
Example Request
GET /accounts?hotel_id=123&access_code=ABC123
Example Response (valid access_code)
{
"results": [
{
"id": 456,
"name": "Acme Corp",
"type": "COMPANY",
"access_code": "ABC123"
}
],
"total_count": 1
}
Example Response (invalid or no matching access_code)
{
"results": [],
"total_count": 0
}




