- Getting Started
- Auth
- Carts
- Create Payment SessionsPOST
- Update a Payment SessionPOST
- Delete a Payment SessionDELETE
- Create a CartPOST
- Get a CartGET
- Update a CartPOST
- Remove DiscountDELETE
- Add a Line ItemPOST
- Update a Line ItemPOST
- Delete a Line ItemDELETE
- Select a Payment SessionPOST
- Refresh a Payment SessionPOST
- Add Shipping MethodPOST
- Calculate Cart TaxesPOST
- Complete a CartPOST
- Customers
- Gift Cards
- Orders
- Order Edits
- Payment Collections
- Products
- Product Variants
- Product Categories
- Product Collections
- Product Tags
- Product Types
- Regions
- Returns
- Return Reasons
- Shipping Options
- Swaps
Update a Shipping Address
POST
/store/customers/me/addresses/{address_id}
Customers
Request
Path Params
address_id
string
required
Body Params application/json
StorePostCustomersCustomerAddressesAddressReq
Any of
first_name
string
optional
Example:
Arno
last_name
string
optional
Example:
Willms
phone
string
optional
Example:
16128234334802
company
string
optional
address_1
string
optional
Example:
14433 Kemmer Court
address_2
string
optional
Example:
Suite 369
city
string
optional
Example:
South Geoffreyview
province
string
optional
Example:
Kentucky
postal_code
string
optional
Example:
72093
country_code
string
optional
Example:
st
metadata
object
optional
Example:
{"car":"white"}
Example
{
"first_name": "Arno",
"last_name": "Willms",
"phone": 16128234334802,
"company": "string",
"address_1": "14433 Kemmer Court",
"address_2": "Suite 369",
"city": "South Geoffreyview",
"province": "Kentucky",
"postal_code": 72093,
"country_code": "st",
"metadata": {
"car": "white"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.medusa-commerce.com/store/customers/me/addresses/' \
--header 'Content-Type: application/json' \
--data-raw '{
"first_name": "Arno",
"last_name": "Willms",
"phone": 16128234334802,
"company": "string",
"address_1": "14433 Kemmer Court",
"address_2": "Suite 369",
"city": "South Geoffreyview",
"province": "Kentucky",
"postal_code": 72093,
"country_code": "st",
"metadata": {
"car": "white"
}
}'
Responses
🟢200OK
application/json
Body
The customer's details.
customer
object (Customer)
required
id
string
required
Example:
cus_01G2SG30J8C85S4A5CHM2S1NS2
email
string <email>
required
first_name
string