---
updatedAt: 2026-02-02T09:56:34.000Z
agentTools:
  projectIndex: https://docs.cupid.travel/llms.txt
---

# Map hotels manually (API key)

Submits a list of hotel code pairs to be manually mapped for the given partner catalog (mapping). The request is processed synchronously; the response is returned after mapping completes. 
**Request body**: Array of objects with `hotel_code` (partner hotel code) and `candidate_hotel_code` (your inventory hotel code).

**Response**: 200 OK with a success message when mapping completes successfully, or an error response (4xx) if validation or mapping fails.

To experiment with this API call, use the following sandbox API key:

88cd7ff1-e3af-4377-a5b0-38a4b483e92f

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Cupid Hotel Mapping API",
    "version": "3.0"
  },
  "security": [
    {
      "apikeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.cupid.travel"
    }
  ],
  "paths": {
    "/api/mapping/{mapping_id}/map": {
      "post": {
        "tags": [
          "Hotel Mapping"
        ],
        "summary": "Map hotels manually",
        "description": "Submits a list of hotel code pairs to be manually mapped for the given partner catalog (mapping). The request is processed synchronously; the response is returned after mapping completes. \n**Request body**: Array of objects with `hotel_code` (partner hotel code) and `candidate_hotel_code` (your inventory hotel code).\n\n**Response**: 200 OK with a success message when mapping completes successfully, or an error response (4xx) if validation or mapping fails.\n\nTo experiment with this API call, use the following sandbox API key:\n\n88cd7ff1-e3af-4377-a5b0-38a4b483e92f",
        "security": [
          {
            "apikeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "mapping_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Partner catalog (mapping) ID"
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "API key for authentication"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "hotel_code",
                    "candidate_hotel_code"
                  ],
                  "properties": {
                    "hotel_code": {
                      "type": "string",
                      "description": "Partner catalog hotel code"
                    },
                    "candidate_hotel_code": {
                      "type": "string",
                      "description": "Your inventory (candidate) hotel code"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Mapping completed successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 200,
                      "description": "HTTP status code"
                    },
                    "msg": {
                      "type": "string",
                      "example": "Successfully mapped N hotel(s) for partner PartnerName",
                      "description": "Success message"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request (e.g. invalid mapping id or request body)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 400
                    },
                    "msg": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Missing or invalid API key / company context"
          },
          "403": {
            "description": "Forbidden - No permission to access this mapping"
          },
          "404": {
            "description": "Mapping not found"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```