---
updatedAt: 2026-05-14T17:08:40.000Z
---

Fetch the complete documentation index at: https://developers.pismo.io/pismo-docs/llms.txt. Use this file to discover all available pages before exploring further. Append .md to any documentation page URL to get its markdown version.

# Update address

Update an address.

This endpoint generates an [Address updated](https://developers.pismo.io/events/docs/audit-address-change-1) event.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core platform - Accounts",
    "version": "1.0.0",
    "description": "API used to manage accounts domain",
    "contact": {
      "name": "API Support",
      "url": "https://developers.pismo.io/support/"
    },
    "license": {
      "name": "Copyright Pismo"
    }
  },
  "servers": [
    {
      "url": "https://sandbox.pismolabs.io",
      "description": "API server for testing."
    }
  ],
  "tags": [
    {
      "name": "Addresses",
      "description": "Endpoints to manage addresses"
    }
  ],
  "components": {
    "parameters": {
      "AccountIdPath": {
        "name": "accountId",
        "in": "path",
        "description": "Account ID",
        "required": true,
        "schema": {
          "type": "integer",
          "format": "int64",
          "minimum": 1,
          "example": 123
        }
      },
      "AddressIdPath": {
        "name": "addressId",
        "in": "path",
        "description": "Address ID",
        "required": true,
        "schema": {
          "type": "integer",
          "format": "int64",
          "example": 456,
          "minimum": 1
        }
      }
    },
    "schemas": {
      "Address": {
        "type": "string",
        "description": "Street, avenue, road, and so on, name.",
        "maxLength": 300,
        "example": "Mulholland Drive"
      },
      "AddressActive": {
        "type": "boolean",
        "description": "Is address active? Default is `false`.",
        "default": false,
        "example": true
      },
      "AddressID": {
        "type": "integer",
        "format": "int32",
        "description": "Address ID",
        "example": 456
      },
      "AddressNumberInput": {
        "type": "string",
        "maxLength": 9,
        "description": "Address number as string or integer.\n\nIf you enter numeric characters, they are saved in the `number` address object field.\n\nIf you enter any non-numeric characters, all characters are saved in the `extended_number` address object field.\n\nFor example, if you enter \"12 A\", it gets saved as follows:\n  *  `number` = 12\n  *  `extended_number` = \"12 A\"\n"
      },
      "AddressType": {
        "type": "string",
        "description": "Address type",
        "enum": [
          "RESIDENTIAL",
          "COMMERCIAL",
          "OTHER"
        ],
        "example": "RESIDENTIAL"
      },
      "AddressUpdateRequest": {
        "type": "object",
        "description": "Address request",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/AddressType"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "number": {
            "$ref": "#/components/schemas/AddressNumberInput"
          },
          "neighborhood": {
            "$ref": "#/components/schemas/Neighborhood"
          },
          "zip_code": {
            "$ref": "#/components/schemas/ZipCode"
          },
          "city": {
            "$ref": "#/components/schemas/City"
          },
          "state": {
            "$ref": "#/components/schemas/State"
          },
          "country": {
            "$ref": "#/components/schemas/Country"
          },
          "active": {
            "$ref": "#/components/schemas/AddressActive"
          },
          "mailing_address": {
            "$ref": "#/components/schemas/MailingAddress"
          },
          "complementary_address": {
            "$ref": "#/components/schemas/ComplementaryAddress"
          },
          "custom_fields": {
            "$ref": "#/components/schemas/CustomFields"
          }
        }
      },
      "City": {
        "type": "string",
        "description": "Address city",
        "maxLength": 100,
        "example": "San Diego"
      },
      "ComplementaryAddress": {
        "type": "string",
        "description": "Any additional information such as suite, apt., and so on.",
        "maxLength": 100,
        "example": "Apt 1408"
      },
      "Country": {
        "type": "string",
        "description": "Address country",
        "maxLength": 30,
        "example": "Brazil"
      },
      "CustomFields": {
        "type": "object",
        "description": "Key/value field for custom information. (Limited to 1014 bytes.)",
        "example": {
          "field_01": "value01",
          "field_02": "value02"
        }
      },
      "MailingAddress": {
        "type": "boolean",
        "description": "Is this address the mailing address?\n\nOnly one address can have this field set to `true`.\n",
        "example": true
      },
      "Neighborhood": {
        "type": "string",
        "description": "Address neighborhood. Some countries use neighborhood in addresses.",
        "maxLength": 100,
        "example": "Shady Pines"
      },
      "SimpleError": {
        "title": "SimpleError",
        "type": "object",
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "State": {
        "type": "string",
        "description": "Address state",
        "maxLength": 30,
        "example": "California"
      },
      "ZipCode": {
        "type": "string",
        "maxLength": 16,
        "description": "Zip/postal code",
        "example": "12345-678"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  },
  "paths": {
    "/accounts/v1/accounts/{accountId}/addresses/{addressId}": {
      "patch": {
        "operationId": "patch-accounts-v1-accounts-accountId-addresses-addressId",
        "summary": "Update address",
        "description": "Update an address.\n\nThis endpoint generates an [Address updated](https://developers.pismo.io/events/docs/audit-address-change-1) event.\n",
        "tags": [
          "Addresses"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/AccountIdPath"
          },
          {
            "$ref": "#/components/parameters/AddressIdPath"
          }
        ],
        "requestBody": {
          "description": "Address entity",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddressUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The address was successfully updated",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/components/schemas/AddressID"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimpleError"
                },
                "examples": {
                  "Internal server error": {
                    "value": {
                      "message": "Error updating address"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```