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

# Update a merchant store

Update a merchant store

# 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/{reference}": {
      "patch": {
        "summary": "Update a merchant store",
        "parameters": [
          {
            "name": "merchant_reference",
            "in": "path",
            "required": true,
            "description": "Merchant's reference",
            "schema": {
              "type": "string"
            },
            "examples": {
              "successful": {
                "value": "merchant_1"
              }
            }
          },
          {
            "name": "reference",
            "in": "path",
            "required": true,
            "description": "Store reference",
            "schema": {
              "type": "string"
            },
            "examples": {
              "successful": {
                "value": "merchant_1"
              },
              "not found": {
                "value": "no-such-store"
              }
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "examples": {
              "successful": {
                "value": "Basic YXBpdXNlcjE6YXBpdXNlcjE="
              }
            }
          }
        ],
        "tags": [
          "Merchant Stores"
        ],
        "description": "Update a merchant store",
        "operationId": "publicUpdateStore",
        "security": [
          {
            "basic_auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "examples": {
                  "successful": {
                    "value": {
                      "id": "6769a768-4975-4536-b7e6-212330501bbb",
                      "reference": "merchant_1",
                      "name": "Updated Store Name",
                      "active": true,
                      "orders_count": 0,
                      "users_count": 0,
                      "user_authorizations": [],
                      "created_at": "2026-11-13T14:57:03.094Z"
                    }
                  }
                },
                "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"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not found",
            "content": {
              "application/json": {
                "examples": {
                  "not found": {
                    "value": {
                      "errors": [
                        {
                          "code": "not_found",
                          "title": "Resource not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/update_merchant_store"
              },
              "examples": {
                "successful": {
                  "summary": "successful",
                  "value": {
                    "name": "Updated Store Name"
                  }
                }
              }
            }
          },
          "description": "Updated store data"
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basic_auth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "update_merchant_store": {
        "type": "object",
        "additionalProperties": false,
        "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"
          }
        }
      }
    }
  }
}
```