---
updatedAt: 2025-06-16T22:57:59.000Z
agentTools:
  projectIndex: https://developers.paygreen.fr/llms.txt
---

# Update Shop

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Account API",
    "description": "This API processes PayGreen V3 shop management",
    "version": "1.10.28"
  },
  "servers": [
    {
      "url": "https://api.paygreen.fr",
      "description": "Production environment"
    },
    {
      "url": "https://sb-api.paygreen.fr",
      "description": "Sandbox environment"
    }
  ],
  "paths": {
    "/account/shops/{id}": {
      "post": {
        "tags": [
          "Shops"
        ],
        "summary": "Update Shop",
        "operationId": "post_update_shop",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "sh_[[:xdigit:]]{32}"
            },
            "example": "sh_9cc7d137d12f4c7b9d72ef4a279b3d2d"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateShopRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Shop successfully updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Shop"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AddressObject": {
        "properties": {
          "line_1": {
            "type": "string"
          },
          "line_2": {
            "type": "string"
          },
          "postal_code": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpdateShopRequest": {
        "properties": {
          "mcc": {
            "description": "MCC code of your activity. Required for wallets.",
            "type": "integer"
          },
          "annual_processing_volume": {
            "description": "Estimation of your annual processing volume (in cts). Required for wallets.",
            "type": "integer"
          },
          "average_transaction_value": {
            "description": "Average transaction value (in cts). Required for wallets.",
            "type": "integer"
          },
          "highest_transaction_value": {
            "description": "Highest transaction value (in cts). Required for wallets.",
            "type": "integer"
          },
          "activity_categories": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "FOOD",
                "TRAVEL",
                "RETAIL",
                "SERVICES"
              ]
            }
          },
          "activity_description": {
            "type": "string"
          },
          "address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/AddressObject"
              },
              {
                "description": "The unique identifier of the Shop address.",
                "type": "string",
                "pattern": "add_[0-9a-f]{32}",
                "example": "add_fe6b599c21554a368d67270a1268e4ed"
              }
            ]
          },
          "commercial_name": {
            "type": "string"
          },
          "creation_date": {
            "type": "string",
            "format": "date"
          },
          "economic_model": {
            "type": "string",
            "enum": [
              "B2B",
              "B2C",
              "C2C"
            ]
          },
          "legal_category": {
            "type": "string",
            "enum": [
              "artisan",
              "association",
              "eirl",
              "eurl",
              "liberal",
              "sa",
              "sarl",
              "sas",
              "sasu"
            ]
          },
          "primary_activity": {
            "type": "string"
          },
          "product_type": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "DROP_SHIPPING",
                "ADULT",
                "NONE"
              ]
            }
          },
          "website_url": {
            "type": "string",
            "example": "https://www.my-website.com"
          },
          "legal_notice_url": {
            "type": "string",
            "example": "https://www.my-website.com/legal-notice"
          }
        },
        "type": "object"
      },
      "Shop": {
        "required": [
          "name"
        ],
        "properties": {
          "id": {
            "description": "The unique identifier of the Shop",
            "type": "string",
            "pattern": "sh_[0-9a-f]{32}"
          },
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 2
          },
          "national_id": {
            "type": "string",
            "maxLength": 15,
            "minLength": 1,
            "nullable": true
          },
          "legal_category": {
            "description": "The legal category of the Shop required for wallets",
            "type": "string"
          },
          "missing_informations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "bearerFormat": "JWT",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```