---
updatedAt: 2026-01-22T08:15:35.000Z
agentTools:
  projectIndex: https://docs.cupid.travel/llms.txt
---

# Download active partner catalog mapping results by partner ID

This endpoint downloads the mapping results for the **active** partner catalog of a given partner. Instead of providing a specific partner catalog ID, you only need to provide the partner ID, and the system will automatically find and return the active catalog.

The response contains a presigned URL to download a ZIP file containing the mapping results, including mapped hotels, manual mappings, and opportunities.

The ZIP file includes:
- **mapped.csv**: Hotels that have been successfully mapped
- **manual_mapping.csv**: Hotels with manual mappings (high confidence)
- **opportunities.csv**: Hotels that could not be automatically mapped but have potential candidates
- **valid.csv**: Valid partner catalog entries
- **invalid.csv**: Invalid partner catalog entries.

# 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/partner-catalogs/download/partner/{id}": {
      "get": {
        "tags": [
          "Hotel Mapping"
        ],
        "summary": "Download active partner catalog mapping results by partner ID",
        "description": "This endpoint downloads the mapping results for the **active** partner catalog of a given partner. Instead of providing a specific partner catalog ID, you only need to provide the partner ID, and the system will automatically find and return the active catalog.\n\nThe response contains a presigned URL to download a ZIP file containing the mapping results, including mapped hotels, manual mappings, and opportunities.\n\nThe ZIP file includes:\n- **mapped.csv**: Hotels that have been successfully mapped\n- **manual_mapping.csv**: Hotels with manual mappings (high confidence)\n- **opportunities.csv**: Hotels that could not be automatically mapped but have potential candidates\n- **valid.csv**: Valid partner catalog entries\n- **invalid.csv**: Invalid partner catalog entries.",
        "security": [
          {
            "apikeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "example": 1559
            },
            "description": "Partner ID"
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "API key for authentication"
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved download URL",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "string",
                      "description": "Presigned URL to download the mapping results ZIP file.",
                      "example": "https://storage.googleapis.com/bucket/path/to/file.zip?X-Goog-Algorithm=..."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid partner ID",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 400
                    },
                    "msg": {
                      "type": "string",
                      "example": "Invalid partner ID"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Not authorized"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Active partner catalog not found for the given partner",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 404
                    },
                    "msg": {
                      "type": "string",
                      "example": "Active partner catalog not found"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 500
                    },
                    "msg": {
                      "type": "string",
                      "example": "Error fetching partner catalog"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```