Zid Docs
AppsThemes
Payments
AppsThemes
Payments
Help Center
Slack
  1. Account
  • Getting Started
    • Introduction
    • Theme Development
    • Vitrin Changelog
    • Creating and Managing Theme Presets
    • Legacy Theme Migration
      • Store Settings Mapping
      • Moving to Vitrin Using LLMs
      • Twig to Jinja
      • Breaking Changes
  • Key Concepts
    • Architecture
    • Templates
      • Overview
      • Overridable Templates
      • Legacy Templates
      • Template Replacements
      • Templates Library
        • home.jinja
        • product.jinja
        • cart.jinja
        • category.jinja
        • products.jinja
        • categories.jinja
        • page.jinja
        • blogs.jinja
        • blog.jinja
        • faqs.jinja
        • reviews.jinja
        • questions.jinja
        • shipping_payment.jinja
        • 404_not_found.jinja
    • Settings
      • Schema files
      • Input Settings
      • Media Settings
      • Form Controls Settings
      • Products Settings
      • Additional Settings
      • Conditional Visibility
      • Migrating twig settings schema
    • Localization
      • localization (jinja v. twig)
    • Theme Editor
      • Overview
  • Building with Vitrin
    • Jinja Basics
    • Vitrin's Jinja Extensions
  • Vitrin CLI
    • Introduction
    • CLI Commands
  • Tips & Tricks
    • Performance
  • JS Integration
    • Supporting both Vitrin and Legacy themes
    • Responses & Errors
    • Cart
    • Products
    • Categories
    • Store
    • Account
    • Blogs
    • Options
    • Events
  • Features
    • SDK Popups – Integration Guidelines
    • Custom Styles Guide
    • Gift Card as a Popup
    • Addresses as a Popup
    • Login as a Popup
    • Checkout as a Popup
    • Apple Pay Quick Checkout
    • Region & Language Popup
    • Dynamic Bundle Products
    • Progressive Discounts
    • Customer Wallet & Cashback
    • Add Preorder Support to Your Theme
  • Mobile Apps
    • Scripts
  • API's
    • Authentication
      • Logout
      • Login Status
      • SMS Login
      • Verify SMS Login
      • WhatsApp Login
      • Verify WhatsApp Login
      • Email Login
      • Verify Email Login
      • Register
      • Register Guest
    • Products
      • List Products
      • Search Products
      • Calculate Product Options Price
      • Notify Product Stock Availability
      • Fetch Bundle Offers
      • Fetch Bundle Offers for a Product
      • List My Product Reviews
      • List Product Reviews
      • Create Product Review
      • Update Product Review
      • Delete Product Review
      • List Product Questions
      • Create Product Question
      • Get Product by Slug
      • Get Selection Groups
    • Categories
      • List Categories
    • Checkout
      • Get Cart
      • Remove Cart
      • Duplicate Cart
      • Add Cart Item
      • Empty Cart
      • Update Cart Item
      • Remove Cart Item
      • Upload Cart Input Field
      • Add Gift Card
      • Remove Gift Card
      • Apply Coupon
      • Remove Coupon From Cart
      • Check Coupon Validity
      • Apply Loyalty Points
      • Remove Loyalty Points
      • Preview Rewarded Points
      • List Redemption Methods for Cart
      • Customer’s Loyalty Wallet
      • Customer’s Current Points Balance
    • Account
      • Get Profile
        GET
      • Delete Account
        DELETE
      • Update Customer Profile
        PATCH
      • Get Addresses
        GET
      • Create an Address
        POST
      • Get an Address by ID
        GET
      • Update an Existing Address
        PATCH
      • Delete Address
        DELETE
      • Get Orders
        GET
      • Get Shareable Wishlist Link
        GET
      • Get Wishlist
        GET
      • Add Products to Wishlist
        POST
      • Remove Product from Wishlist
        DELETE
      • Get Address Form Schema
        GET
      • Check Product Purchase Status
        GET
    • Storefront
      • Store Scripts
      • Pages
      • Blogs
    • Countries
      • Get Countries
      • Get Cities By Country
  1. Account

Update an Existing Address

PATCH
{store_url}/api/v1/account/addresses/{address_id}
Updates an existing saved address belonging to the currently authenticated customer.
This endpoint is typically used to:
Edit address details (street, city, coordinates, etc.)
Update recipient name or mobile number
Change the default address

Request

Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

🟠422
🟠401Unauthorized
🔴500Internal Server error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --globoff --request PATCH '{store_url}/api/v1/account/addresses/55' \
--header 'Content-Type: application/json' \
--data '{
    "address_district": "Al Olaya",
    "address_city_id": 1,
    "address_country_id": 183,
    "address_type": "general",
    "name": "Ahmed Al Saud",
    "mobile": "+966501234567",
    "address_street": "King Fahd Road",
    "address_formatted": "King Fahd Rd, Al Olaya, Riyadh, Saudi Arabia",
    "short_address": "Al Olaya, Riyadh",
    "address_lat": "24.7136",
    "address_lng": "46.6753",
    "meta": {
        "city_name": "Riyadh",
        "postcode": "11564",
        "building_number": "12A",
        "additional_number": "9876",
        "property1": "string",
        "property2": "string"
    },
    "is_default": true
}'
Response Response Example
200 - Example 1
{
    "id": 55,
    "name": "Ahmed Al Saud",
    "mobile": "+966501234567",
    "address_street": "King Fahd Road",
    "address_district": "Al Olaya",
    "address_formatted": "King Fahd Rd, Al Olaya, Riyadh, Saudi Arabia",
    "short_address": "Al Olaya, Riyadh",
    "address_lat": "24.7136",
    "address_lng": "46.6753",
    "address_type": "home",
    "city": {
        "id": 1,
        "ar_name": "الرياض",
        "en_name": "Riyadh",
        "property1": "string",
        "property2": "string"
    },
    "country": {
        "id": 183,
        "name": "Saudi Arabia",
        "code": "SA",
        "country_code": "+966",
        "currency_code": "SAR",
        "iso_code_2": "SA",
        "iso_code_3": "SAU",
        "property1": "string",
        "property2": "string"
    },
    "meta": {
        "property1": "string",
        "property2": "string"
    },
    "is_customer_default": true,
    "is_default": true,
    "property1": "string",
    "property2": "string"
}
Modified at 2026-02-23 08:58:43
Previous
Get an Address by ID
Next
Delete Address
Built with