---
updatedAt: 2025-07-28T07:17:35.000Z
agentTools:
  projectIndex: https://snaprefund.readme.io/llms.txt
---

# Update customer information

Updates customer details such as contact information and address

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/api/public/customers/{id}": {
      "put": {
        "operationId": "PublicApiCustomersController_updateCustomer",
        "summary": "Update customer information",
        "description": "Updates customer details such as contact information and address",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Stripe customer ID (starting with \"cus_\")",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Customer update data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomerDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully updated customer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCustomerResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid update data or email format"
          },
          "401": {
            "description": "Invalid or missing authorization token"
          },
          "403": {
            "description": "Insufficient permissions"
          },
          "404": {
            "description": "Customer not found"
          }
        },
        "tags": [
          "customers"
        ],
        "security": [
          {
            "Authorization": []
          }
        ]
      }
    }
  },
  "info": {
    "title": "AgentSnap API Documentation",
    "description": "API documentation for AgentSnap platform endpoints",
    "version": "2.0",
    "contact": {}
  },
  "tags": [
    {
      "name": "customers",
      "description": "Customer management endpoints"
    }
  ],
  "servers": [
    {
      "url": "https://agent-staging.snaprefund.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "Authorization": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "API key for authentication"
      }
    },
    "schemas": {
      "CustomerAddressDto": {
        "type": "object",
        "properties": {
          "street": {
            "type": "string",
            "description": "Street address",
            "example": "123 Main St"
          },
          "city": {
            "type": "string",
            "description": "City",
            "example": "New York"
          },
          "state": {
            "type": "string",
            "description": "State or province",
            "example": "NY"
          },
          "postalCode": {
            "type": "string",
            "description": "Postal or ZIP code",
            "example": "10001"
          }
        }
      },
      "UpdateCustomerDto": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "Updated email address",
            "format": "email"
          },
          "firstName": {
            "type": "string",
            "description": "Updated first name"
          },
          "lastName": {
            "type": "string",
            "description": "Updated last name"
          },
          "phone": {
            "type": "string",
            "description": "Updated phone number"
          },
          "address": {
            "description": "Updated address",
            "allOf": [
              {
                "$ref": "#/components/schemas/CustomerAddressDto"
              }
            ]
          }
        }
      },
      "UpdateCustomerResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Customer ID"
          },
          "email": {
            "type": "string",
            "description": "Updated email"
          },
          "stripeCustomerId": {
            "type": "string",
            "description": "Stripe customer ID (read-only)"
          },
          "firstName": {
            "type": "string",
            "description": "Updated first name"
          },
          "lastName": {
            "type": "string",
            "description": "Updated last name"
          },
          "phone": {
            "type": "string",
            "description": "Updated phone"
          },
          "address": {
            "description": "Updated address",
            "allOf": [
              {
                "$ref": "#/components/schemas/CustomerAddressDto"
              }
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "description": "Customer creation date"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "description": "Update timestamp"
          }
        },
        "required": [
          "id",
          "email",
          "stripeCustomerId",
          "createdAt",
          "updatedAt"
        ]
      }
    }
  }
}
```