---
updatedAt: 2026-09-18T14:05:17.000Z
agentTools:
  projectIndex: https://docs.nuitee.com/llms.txt
---

# Get saved room mappings for a hotel

**What it does:** **Saved mapping dictionary** for your account and hotel.

**Workflow role:** **Step 3** — runtime lookup after mappings exist.

**Use when:** Resolving supplier names in search or book.

**Do not use when:** You need audit detail — use the job endpoint.

Details, examples, limits, and result codes: **Implementation Workflow** (doc page: `implementation-workflow`).

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "API: Mapping",
    "version": "3.0.0",
    "description": "Hotel and room mapping APIs. Map partner hotel IDs to LiteAPI catalogue hotels, and map or group supplier room names against your room catalog. Room matching: **Implementation Workflow** (`implementation-workflow`)."
  },
  "servers": [
    {
      "url": "https://api.liteapi.travel/v3.0"
    }
  ],
  "security": [
    {
      "apikeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "apikeyAuth": {
        "name": "X-API-Key",
        "type": "apiKey",
        "in": "header"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "Human-readable error message",
            "example": "partner is required"
          }
        }
      },
      "MappingDecision": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Mapped reference room name, or not_mapped when rejected",
            "example": "King Room"
          },
          "id": {
            "type": "integer",
            "description": "Mapped reference room id, or 0 when not mapped",
            "example": 1
          },
          "confidence": {
            "type": "number",
            "description": "Confidence score between 0 and 1",
            "example": 0.9
          },
          "reasonCode": {
            "type": "string",
            "description": "Present when not mapped",
            "enum": [
              "roh",
              "no_confident_match",
              "ambiguous_candidates",
              "bed_type_mismatch",
              "view_amenity_mismatch",
              "conflicting_existing",
              "not_in_catalog",
              "low_score",
              "other"
            ],
            "example": "roh"
          },
          "reason": {
            "type": "string",
            "description": "Short human explanation when not mapped",
            "example": "Run-of-house rate; no specific room type"
          },
          "p": {
            "type": "string",
            "description": "Source supplier of the supplier room name: the job `provider`, the room's `supplierRooms[].provider`, merged with the provider already stored on the mapping. A sorted, `|`-joined set when several providers sent the room. Absent for direct suppliers and when no provider was supplied.",
            "example": "expedia"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Room Match",
      "description": "Map supplier names to your hotel catalog. Flow: async submit → poll job → read matches. See **Implementation Workflow** (`implementation-workflow`)."
    }
  ],
  "paths": {
    "/rooms/match/async/matches/{hotelId}": {
      "get": {
        "tags": [
          "Room Match"
        ],
        "summary": "Get saved room mappings for a hotel",
        "operationId": "get_rooms-match-async-matches-hotelid",
        "description": "**What it does:** **Saved mapping dictionary** for your account and hotel.\n\n**Workflow role:** **Step 3** — runtime lookup after mappings exist.\n\n**Use when:** Resolving supplier names in search or book.\n\n**Do not use when:** You need audit detail — use the job endpoint.\n\nDetails, examples, limits, and result codes: **Implementation Workflow** (doc page: `implementation-workflow`).",
        "security": [
          {
            "apikeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "hotelId",
            "in": "path",
            "required": true,
            "description": "Hotel identifier",
            "schema": {
              "type": "string"
            },
            "example": "lp32f8b"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "hotelId": {
                          "type": "string",
                          "example": "lp32f8b"
                        },
                        "mappings": {
                          "type": "object",
                          "additionalProperties": {
                            "$ref": "#/components/schemas/MappingDecision"
                          },
                          "description": "Keys are normalized supplier names"
                        }
                      }
                    }
                  },
                  "example": {
                    "data": {
                      "hotelId": "lp32f8b",
                      "mappings": {
                        "deluxe king": {
                          "name": "King Room",
                          "id": 1,
                          "confidence": 0.9
                        },
                        "standard twin room": {
                          "name": "Twin Room",
                          "id": 2,
                          "confidence": 0.95
                        },
                        "1 king junior suite": {
                          "name": "Junior Suite",
                          "id": 3,
                          "confidence": 0.88
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Hotel has no cached mappings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "hotel mappings not found"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true,
    "apply-tag-changes": true
  }
}
```