---
updatedAt: 2025-09-22T21:26:19.000Z
agentTools:
  projectIndex: https://docs.cupid.travel/llms.txt
---

# Get partner inventories

This API allows you to fetch all inventories linked to a specific partner.

# 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/{id}/inventories": {
      "get": {
        "tags": [
          "Hotel Mapping"
        ],
        "summary": "Get partner inventories",
        "description": "This API allows you to fetch all inventories linked to a specific partner.",
        "security": [
          {
            "apikeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "x-api-key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "API key to authorize the request"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "example": 1012
            },
            "description": "Partner ID"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "inventories": {
                      "type": "array",
                      "description": "List of partner inventories",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "Inventory ID"
                          },
                          "active": {
                            "type": "boolean",
                            "description": "Indicates if the inventory is active"
                          },
                          "status": {
                            "type": "string",
                            "description": "Status of the inventory"
                          },
                          "action": {
                            "type": "string",
                            "description": "Last action performed"
                          },
                          "parent_id": {
                            "type": "integer",
                            "description": "Parent inventory ID"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Missing partner ID",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Missing partner ID in path"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Missing or invalid context",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Missing required authorization context"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error - Failed to fetch inventories",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 500
                    },
                    "msg": {
                      "type": "string",
                      "example": "Failed to fetch inventories list"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```