Archive an account

An archived account remains in Salesmachine database but is not visible and not processed. An archived account can be unarchived via API or the application UI. If updates or events related to this account are received they will be ignored.

post
archive an account

https://data.salesmachine.io/v2/accounts/:id/archive
This endpoint allows you to get free cakes.
Request
Response
Request
Path Parameters
id
required
string
Salesmachine account ID
Response
200: OK
Account successfully retrieved.
{
"object": "account",
"id": "5d3bae5bcb4a287b44583a55",
"unique_id": "5d3bae4cf92ea13a3dfb542e",
"created_at": 1564192347,
"data": {
"name": "Acme corp"
},
"salesmachine": {
"health": "good"
},
"stage": {
"name": "Trial",
"id": "5b2bc014ce8d8355c6d48b70"
},
"contacts": {
"object": "contact.list",
"data": [
{
"id": "5d3bae278cae234bef95405a"
}
]
}
}
404: Not Found
Could not find an account matching this query.
{
"error": "404 Object not found"
}

Example

curl -X GET https://data.salesmachine.io/v2/accounts/{id}/archive \
-H 'Accept: application/json' \
-H 'Authorization:Bearer <Your access token>'