Update Order Address
PATCH/orders/:lookupKey/:lookupValue/addresses/:addressId
Use this endpoint to update an order address. The address is identified by id
.
Request
Path Parameters
Use id
or externalId
The id
or externalId
of the order
Address Id
- application/json
Body
Responses
- 200
- 400
- 404
Update Order Address - 200
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
server
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Update Order Address - 200
Schema
data
object
{
"data": {
"id": 81902,
"postalCode": "7323 KE"
},
"messages": [
"Address updated"
],
"total": 1
}
{
"data": {
"id": 81902,
"postalCode": "7323 KE"
},
"messages": [
"Address updated"
],
"total": 1
}
Update Order Address - 400 (invalid schema)
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
server
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Update Order Address - 400 (invalid schema)
Schema
error
object
{
"error": {
"code": 10007,
"messages": [
"#: extraneous key [postalCodes] is not permitted"
],
"moreInfo": "https://www.propel.us/docs/errors/10007",
"status": 400,
"type": "SchemaValidationException"
}
}
{
"error": {
"code": 10007,
"messages": [
"#: extraneous key [postalCodes] is not permitted"
],
"moreInfo": "https://www.propel.us/docs/errors/10007",
"status": 400,
"type": "SchemaValidationException"
}
}
Update Order Address - 404 (order not found) / Update Order Address - 404 (address not found)
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
server
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Update Order Address - 404 (address not found)
- Update Order Address - 404 (order not found)
Schema
error
object
{
"error": {
"code": 15003,
"messages": [
"Parent resource [Order] with id [295] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/15003",
"status": 404,
"type": "ParentOrderNotFound"
}
}
{
"error": {
"code": 90006,
"messages": [
"Address with id [819021] not found for [Orders] with id [195]"
],
"moreInfo": "https://www.propel.us/docs/errors/90006",
"status": 404,
"type": "AddressNotFound"
}
}
{
"error": {
"code": 15003,
"messages": [
"Parent resource [Order] with id [295] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/15003",
"status": 404,
"type": "ParentOrderNotFound"
}
}