---
updatedAt: 2026-05-11T10:32:40.000Z
agentTools:
  projectIndex: https://guides.sterasmartone.com/llms.txt
---

# Update customer

カスタマを更新します。

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "version": "1.3.0",
    "title": "elepay API リファレンス",
    "description": "elepay APIはRESTをベースに構成された決済APIです。支払い処理、返金処理など、決済に関わる運用における様々なことができます。",
    "contact": {
      "name": "ELESTYLE, INC",
      "url": "https://elepay.io",
      "email": "support@elestyle.jp"
    }
  },
  "servers": [
    {
      "url": "https://api.elepay.io"
    }
  ],
  "tags": [
    {
      "name": "Customer"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    },
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/customers/{customerId}": {
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Update customer",
        "description": "カスタマを更新します。",
        "operationId": "updateCustomer",
        "parameters": [
          {
            "name": "customerId",
            "description": "Customer ID",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/CustomerUpdateReq"
              }
            }
          },
          "description": "カスタマリクエスト",
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerDto"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "API呼出すの認証は、秘密鍵をユーザーネームとして扱い、パスワードは省略して、Basic 認証経由で行われます。\n秘密鍵は、全ての API リクエスト操作が可能となる重要なキーなので、取扱いにご注意ください。\n"
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API呼出すの認証は、秘密鍵を認証トークンとして扱い、Bearer 認証経由で行われます。\n秘密鍵は、全ての API リクエスト操作が可能となる重要なキーなので、取扱いにご注意ください。\n"
      }
    },
    "schemas": {
      "CustomerStatusType": {
        "description": "状態\n",
        "type": "string",
        "enum": [
          "active",
          "deleted"
        ]
      },
      "CustomerUpdateReq": {
        "description": "カスタマ更新リクエスト",
        "type": "object",
        "properties": {
          "defaultSource": {
            "description": "デフォルトカスタマソースID",
            "type": "string",
            "maxLength": 32
          },
          "name": {
            "description": "名前",
            "type": "string",
            "maxLength": 255
          },
          "description": {
            "description": "カスタマに関する説明",
            "type": "string",
            "maxLength": 255
          },
          "email": {
            "description": "メールアドレス",
            "type": "string",
            "maxLength": 255
          },
          "phone": {
            "description": "電話番号",
            "type": "string",
            "maxLength": 255
          },
          "remark": {
            "description": "備考",
            "type": "string"
          },
          "metadata": {
            "description": "メタデータ",
            "type": "object",
            "maxProperties": 20,
            "propertyNames": {
              "type": "string",
              "maxLength": 20
            },
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "CustomerDto": {
        "description": "カスタマオブジェクト",
        "properties": {
          "id": {
            "description": "Customer ID",
            "type": "string",
            "maxLength": 32
          },
          "object": {
            "description": "対象種類の表記",
            "type": "string",
            "default": "customer"
          },
          "liveMode": {
            "description": "本番モードかどうか\n- false テストモード\n- true 本番モード\n",
            "type": "boolean"
          },
          "defaultSource": {
            "description": "デフォルトカスタマソースID",
            "type": "string",
            "maxLength": 32
          },
          "name": {
            "description": "名前",
            "type": "string",
            "maxLength": 255
          },
          "description": {
            "description": "カスタマに関する説明",
            "type": "string",
            "maxLength": 255
          },
          "email": {
            "description": "メールアドレス",
            "type": "string",
            "maxLength": 255
          },
          "phone": {
            "description": "電話番号",
            "type": "string",
            "maxLength": 255
          },
          "remark": {
            "description": "備考",
            "type": "string"
          },
          "operator": {
            "description": "操作者",
            "type": "string",
            "maxLength": 255
          },
          "status": {
            "$ref": "#/components/schemas/CustomerStatusType"
          },
          "metadata": {
            "description": "メタデータ",
            "type": "object",
            "maxProperties": 20,
            "propertyNames": {
              "type": "string",
              "maxLength": 20
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "updateTime": {
            "description": "update time",
            "type": "integer",
            "format": "int64"
          }
        }
      }
    }
  }
}
```