Delete Customer by lookup key
DELETE/customers/:lookupKey/:lookupValue
Delete a customer
by a specific lookupKey / lookupId combination. A deleted customer
will be moved to the Propeller Recycle bin. This means the deleted customer can be restored, however, only via the Propeller backoffice.
Request
Path Parameters
Lookup key. Read more about customer lookup keys
The value of the key (id or sourceId)
Responses
- 200
- 400
- 404
Delete Customer by lookup key - 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 Customer by lookup key - 200
Schema
data
object
{
"data": {},
"messages": [
"Customer deleted"
]
}
{
"data": {},
"messages": [
"Customer deleted"
]
}
Delete Customer by lookup key - 400 (invalid lookup key)
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 Customer by lookup key - 400 (invalid lookup key)
Schema
error
object
{
"error": {
"code": 10006,
"messages": [
"Invalid lookup key [ids], key must contain one of the following values: [id,sourceId,]"
],
"moreInfo": "https://www.propel.us/docs/errors/10006",
"status": 400,
"type": "InvalidLookupKey"
}
}
{
"error": {
"code": 10006,
"messages": [
"Invalid lookup key [ids], key must contain one of the following values: [id,sourceId,]"
],
"moreInfo": "https://www.propel.us/docs/errors/10006",
"status": 400,
"type": "InvalidLookupKey"
}
}
Delete Customer by lookup key - 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)
- Delete Customer by lookup key - 404
Schema
error
object
{
"error": {
"code": 60006,
"messages": [
"Customer with sourceId [25496] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/60006",
"status": 404,
"type": "CustomerNotFound"
}
}
{
"error": {
"code": 60006,
"messages": [
"Customer with sourceId [25496] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/60006",
"status": 404,
"type": "CustomerNotFound"
}
}