---
updatedAt: 2025-12-05T17:26:29.000Z
agentTools:
  projectIndex: https://docs.cupid.travel/llms.txt
---

# Add a new partner

The API allow the customer add new partner

 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/create-new-partner": {
      "post": {
        "tags": [
          "Hotel Mapping"
        ],
        "summary": "Add a new partner",
        "description": "The API allow the customer add new partner\n\n To experiment this API call, use the following sandbox API key: \n\n 88cd7ff1-e3af-4377-a5b0-38a4b483e92f \n\n",
        "security": [
          {
            "apikeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "x-api-key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": ""
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": ""
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "Date": {
                "schema": {
                  "type": "string",
                  "example": "Fri, 28 Jul 2023 08:46:27 GMT"
                }
              },
              "Content-Type": {
                "schema": {
                  "type": "string",
                  "example": "application/json"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "example": "1614"
                }
              },
              "Connection": {
                "schema": {
                  "type": "string",
                  "example": "keep-alive"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "description": "Response Code"
                    },
                    "id": {
                      "type": "integer",
                      "description": "Your inventory id"
                    },
                    "msg": {
                      "type": "string",
                      "description": "The creation message",
                      "example": "Partner created successfully"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "headers": {
              "Server": {
                "schema": {
                  "type": "string",
                  "example": "nginx/1.18.0 (Ubuntu)"
                }
              },
              "Date": {
                "schema": {
                  "type": "string",
                  "example": "Fri, 28 Jul 2023 08:46:27 GMT"
                }
              },
              "Content-Type": {
                "schema": {
                  "type": "string",
                  "example": "application/json"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "example": "1614"
                }
              },
              "Connection": {
                "schema": {
                  "type": "string",
                  "example": "keep-alive"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "Wrong API key": {
                    "value": {
                      "error": {
                        "error": "Not authorized\""
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "headers": {
              "Date": {
                "schema": {
                  "type": "string",
                  "example": "Fri, 28 Jul 2023 08:46:27 GMT"
                }
              },
              "Content-Type": {
                "schema": {
                  "type": "string",
                  "example": "application/json"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "example": "1614"
                }
              },
              "Connection": {
                "schema": {
                  "type": "string",
                  "example": "keep-alive"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "description": "Response Code"
                    },
                    "msg": {
                      "type": "string",
                      "description": "The message",
                      "example": "Your Inventory is still being processed"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```