Delete Company Address
DELETE/companies/:lookupKey/:lookupValue/addresses/:addressId
Use this endpoint to delete a company address. The address is identified by id
.
Request
Path Parameters
lookupKey stringrequired
Lookup key. Read more about company lookup keys
lookupValue stringrequired
The value of the key (id or sourceId)
addressId stringrequired
Address id
Responses
- 200
- 404
Delete Company 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)
- Delete Company Address - 200
Schema
data
object
object
messages string[]
{
"data": {},
"messages": [
"Address deleted"
]
}
{
"data": {},
"messages": [
"Address deleted"
]
}
Delete Company Address - 404 (company) / Delete Company Address - 404 (address)
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)
- Delete Company Address - 404 (address)
- Delete Company Address - 404 (company)
Schema
error
object
code number
messages string[]
moreInfo string
status number
type string
{
"error": {
"code": 40007,
"messages": [
"Parent resource [Company] with id [9484] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/40007",
"status": 404,
"type": "ParentCompanyNotFound"
}
}
{
"error": {
"code": 90006,
"messages": [
"Address with id [106077] not found for [Companies] with id [9482]"
],
"moreInfo": "https://www.propel.us/docs/errors/90006",
"status": 404,
"type": "AddressNotFound"
}
}
{
"error": {
"code": 40007,
"messages": [
"Parent resource [Company] with id [9484] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/40007",
"status": 404,
"type": "ParentCompanyNotFound"
}
}
Loading...