---
updatedAt: 2026-01-07T11:49:50.000Z
agentTools:
  projectIndex: https://docs.cupid.travel/llms.txt
---

# Download partner catalog mapping results

This endpoint can be used to download the mapping results for a partner 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

The presigned URL is valid for 15 minutes.

To experiment 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/partner-catalogs/download/{id}": {
      "get": {
        "tags": [
          "Hotel Mapping"
        ],
        "summary": "Download partner catalog mapping results",
        "description": "This endpoint can be used to download the mapping results for a partner catalog. The 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\n\nThe presigned URL is valid for 15 minutes.\n\nTo experiment this API call, use the following sandbox API key:\n\n88cd7ff1-e3af-4377-a5b0-38a4b483e92f",
        "security": [
          {
            "apikeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "example": 2507
            },
            "description": "Partner catalog 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": {
                    "code": {
                      "type": "integer",
                      "example": 200,
                      "description": "Response code"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "file_url": {
                          "type": "string",
                          "description": "Presigned URL to download the mapping results ZIP file. Valid for 15 minutes.",
                          "example": "https://s3.amazonaws.com/bucket/path/to/file.zip?X-Amz-Algorithm=..."
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid partner catalog ID or invalid mapping result file path format",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 400
                    },
                    "msg": {
                      "type": "string",
                      "example": "Invalid MappingResultFilePath format"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Not authorized"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Partner catalog not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 404
                    },
                    "msg": {
                      "type": "string",
                      "example": "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": "catalog not found"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```