Update Customer Address
PATCH/customers/:lookupKey/:lookupValue/addresses/:addressId
Use this endpoint to update a customer address. The address is identified by id
.
Request
Path Parameters
lookupKey stringrequired
Lookup key. Read more about customer lookup keys
lookupValue stringrequired
The value of the key (id or sourceId)
addressId stringrequired
Address id
- application/json
Body
firstName string
isDefault string
lastName string
Responses
- 200
- 400
- 404
Update Customer Address - 200
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Update Customer Address - 200
Schema
data
object
firstName string
id number
lastName string
messages string[]
total number
{
"data": {
"firstName": "Miles",
"id": 106099,
"lastName": "McCoy"
},
"messages": [
"Address updated"
],
"total": 1
}
{
"data": {
"firstName": "Miles",
"id": 106099,
"lastName": "McCoy"
},
"messages": [
"Address updated"
],
"total": 1
}
Update Customer Address - 400 (invalid schema)
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Update Customer Address - 400 (invalid schema)
Schema
error
object
code number
messages string[]
moreInfo string
status number
type string
{
"error": {
"code": 10007,
"messages": [
"#/isDefault: U is not a valid enum value"
],
"moreInfo": "https://www.propel.us/docs/errors/10007",
"status": 400,
"type": "SchemaValidationException"
}
}
{
"error": {
"code": 10007,
"messages": [
"#/isDefault: U is not a valid enum value"
],
"moreInfo": "https://www.propel.us/docs/errors/10007",
"status": 400,
"type": "SchemaValidationException"
}
}
Update Customer Address - 404
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Update Customer Address - 404
Schema
error
object
code number
messages string[]
moreInfo string
status number
type string
{
"error": {
"code": 60007,
"messages": [
"Parent resource [Customer] with id [25496] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/60007",
"status": 404,
"type": "ParentCustomerNotFound"
}
}
{
"error": {
"code": 60007,
"messages": [
"Parent resource [Customer] with id [25496] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/60007",
"status": 404,
"type": "ParentCustomerNotFound"
}
}
Loading...