---
title: "Create Store"
method: POST
path: "/v1/stores/"
tags: ["Stores", "Stores"]
---

# Create Store

`POST /v1/stores/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/v1/stores/`
- Auth: OAuth 2 (password, token URL `/v1/auth/login`)

Create a new store owned by the authenticated user.

## Request body

- StoreCreate
  - `name` string, required
  - `type` 'physical' | 'online' | 'chain', required
  - `address` string, nullable
  - `lat` number, nullable
  - `lon` number, nullable
  - `homepage` string, nullable
  - `country` string, nullable
  - `language` string, nullable

## Response `201`

Successful Response

- StoreRead
  - `name` string, required
  - `type` 'physical' | 'online' | 'chain', required
  - `address` string, nullable
  - `lat` number, nullable
  - `lon` number, nullable
  - `homepage` string, nullable
  - `country` string, nullable
  - `language` string, nullable
  - `id` integer, required
  - `owner_id` integer, nullable
  - `tags` Tag[]
    - `name` string, required
    - `description` string, nullable
    - `id` integer, required
  - `logo_filename` string, nullable
  - `logo_content_type` string, nullable
  - `average_rating` number, nullable
  - `review_count` integer, nullable
  - `product_count` integer, nullable
  - `trust_score` number, nullable
  - `trust_report_count` integer, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/rubenayla/apis/partle-api.md) · [All operations](https://skmtc.dev/rubenayla/apis/partle-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rubenayla/apis/partle-api/revisions/628cce2acee5?raw)
