Update an address
Update an address
PUT
/v1/addresses/{id}authorization<token>
Use device JWT token
In: header
Path Parameters
idstring
address1string
Length
1 <= lengthaddress2?string|null
citystring
Length
1 <= lengthcountrystring
Length
1 <= lengthzipCodestring
Length
1 <= lengthregionCode?string|null
isPrimary?boolean
Default
truetypestring
Value in
"shipping" | "billing" | "both"customerIdstring
Format
uuidResponse Body
application/json
application/json
application/json
curl -X PUT "http://localhost:4012/v1/addresses/string" \ -H "Content-Type: application/json" \ -d '{ "address1": "12 Avenue des Champs-Élysées", "address2": "3ème étage", "city": "Paris", "country": "France", "zipCode": "75008", "regionCode": "IDF", "isPrimary": true, "type": "shipping", "customerId": "abcdef01-2345-6789-abcd-ef0123456789" }'{
"message": "Address updated successfully"
}{
"message": "string",
"code": "INSUFFICIENT_BALANCE",
"meta": {
"property1": null,
"property2": null
}
}{
"message": "string",
"code": "INSUFFICIENT_BALANCE",
"meta": {
"property1": null,
"property2": null
}
}