Update an existing address for the authenticated user
curl --request PATCH \
--url https://api.example.com/api/address \
--header 'Content-Type: application/json' \
--data '
{
"addressId": 123,
"address": "<string>",
"subdistrict": "<string>",
"district": "<string>",
"regency": "<string>",
"province": "<string>",
"postalCode": "<string>",
"phone": "<string>"
}
'{
"statusCode": 200,
"message": "Address updated successfully"
}
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/memoowi/e-comm-api-demo-2/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <your_token>
curl -X PATCH https://api.example.com/api/address \
-H "Authorization: Bearer <your_token>" \
-H "Content-Type: application/json" \
-d '{
"addressId": 1,
"address": "Jl. Sudirman No. 456",
"phone": "081234567899"
}'
{
"statusCode": 200,
"message": "Address updated successfully"
}
addressId are optional - only provide fields you want to updatecurl --request PATCH \
--url https://api.example.com/api/address \
--header 'Content-Type: application/json' \
--data '
{
"addressId": 123,
"address": "<string>",
"subdistrict": "<string>",
"district": "<string>",
"regency": "<string>",
"province": "<string>",
"postalCode": "<string>",
"phone": "<string>"
}
'{
"statusCode": 200,
"message": "Address updated successfully"
}