---
updatedAt: 2026-05-11T07:32:11.000Z
agentTools:
  projectIndex: https://docs.sequra.com/llms.txt
---

# Create a merchant store

Create a new store for the merchant

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "instore-api",
    "version": "v1"
  },
  "servers": [
    {
      "url": "http://localhost:3009"
    },
    {
      "url": "https://instore-sandbox.sequrapi.com/"
    },
    {
      "url": "https://instore.sequrapi.com/"
    },
    {
      "url": "https://{defaultHost}",
      "variables": {
        "defaultHost": {
          "default": "www.example.com"
        }
      }
    }
  ],
  "paths": {
    "/api/public/v1/merchants/{merchant_reference}/stores": {
      "post": {
        "summary": "Create a merchant store",
        "parameters": [
          {
            "name": "merchant_reference",
            "in": "path",
            "required": true,
            "description": "Merchant's reference",
            "schema": {
              "type": "string"
            },
            "examples": {
              "created": {
                "value": "merchant_1"
              }
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "examples": {
              "created": {
                "value": "Basic YXBpdXNlcjE6YXBpdXNlcjE="
              },
              "unauthorized": {
                "value": "Basic YmFkOmNyZWRz"
              }
            }
          }
        ],
        "tags": [
          "Merchant Stores"
        ],
        "description": "Create a new store for the merchant",
        "operationId": "publicCreateStore",
        "security": [
          {
            "basic_auth": []
          }
        ],
        "responses": {
          "201": {
            "description": "created",
            "content": {
              "application/json": {
                "examples": {
                  "created": {
                    "value": {
                      "id": "8fe8249c-c60c-4030-9853-84b12d679f45",
                      "reference": "new-store",
                      "name": "New Store",
                      "active": true,
                      "orders_count": 0,
                      "users_count": 0,
                      "user_authorizations": [],
                      "created_at": "2026-11-13T14:57:02.918Z"
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "reference",
                    "name",
                    "active",
                    "orders_count",
                    "users_count",
                    "user_authorizations",
                    "created_at"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "reference": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "orders_count": {
                      "type": "integer"
                    },
                    "users_count": {
                      "type": "integer"
                    },
                    "user_authorizations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "email",
                          "name"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "created_at": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "unauthorized",
            "content": {
              "text/html": {
                "examples": {
                  "unauthorized": {
                    "value": "HTTP Basic: Access denied.\n"
                  }
                }
              }
            }
          },
          "422": {
            "description": "unprocessable entity",
            "content": {
              "application/json": {
                "examples": {
                  "unprocessable entity": {
                    "value": {
                      "errors": null
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/create_merchant_store"
              },
              "examples": {
                "created": {
                  "summary": "created",
                  "value": {
                    "reference": "new-store",
                    "name": "New Store",
                    "city": "Barcelona",
                    "active": true
                  }
                },
                "unprocessable entity": {
                  "summary": "unprocessable entity",
                  "value": {
                    "name": "Missing Reference"
                  }
                }
              }
            }
          },
          "description": "Store data"
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basic_auth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "create_merchant_store": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "reference",
          "name"
        ],
        "properties": {
          "reference": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postal_code": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "store_phone": {
            "type": "string"
          },
          "store_email": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          }
        }
      }
    }
  }
}
```