Save or Update Delivery Address
address.saveSave a customer delivery shipping address mapped to the active region in ~/.polopan/region.json.
Matches Flutter app (newapp) address schema: firstName, lastName, address1, address2, city, province, zip, country, phone, email, type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optional existing address ID to update | |
| zip | Yes | Postal code / Zip code / PIN code | |
| city | Yes | City / Town | |
| type | No | Address label/type: 'Home', 'Work', or 'Other' | Home |
| No | Customer delivery notification email address | ||
| phone | No | Recipient contact phone number with country dialing code | |
| country | No | Destination country code or natural name. Defaults to active region country. | |
| address1 | Yes | Street address, house/flat/building name | |
| address2 | No | Apartment, suite, unit, landmark, or area | |
| lastName | No | Recipient last name | |
| province | No | State, Province, or Governorate | |
| firstName | Yes | Recipient first name | |
| is_default | No | Set this address as default for the country (default true) | |
| storage_mode | No | Storage destination: 'local' (writes to ~/.polopan/region.json) or 'stateless' (returns for chat context without disk write). Defaults to 'stateless' in cloud-hosted environments. |