# Planhat — CRM API: gotchas

> Canonical URL: https://developers.apideck.com/apis/crm/planhat/gotchas

## POST /crm/companies

The status values mentioned by planhat are prospect,coming,customer,canceled,lost.

`parent_id` is ignored on create and is never sent to Planhat. Planhat keeps its company
hierarchy in `orgPath`, but writing that field through the API does not update the rest of
the hierarchy (the company's level and the parent's child count stay unchanged), so the
connector does not write it.

When reading companies, `parent_id` returns the id of the company's direct parent in
Planhat's organization hierarchy.

## PATCH /crm/companies/{id}

The status values mentioned by planhat are prospect,coming,customer,canceled,lost.

`parent_id` is ignored on update and is never sent to Planhat. Planhat keeps its company
hierarchy in `orgPath`, but writing that field through the API does not update the rest of
the hierarchy (the company's level and the parent's child count stay unchanged), so the
connector does not write it.

When reading companies, `parent_id` returns the id of the company's direct parent in
Planhat's organization hierarchy.

## POST /crm/opportunities

The allowed status values are `active`, `won` and `lost`. Default is `active`.
## PATCH /crm/opportunities/{id}

The allowed status values are `active`, `won` and `lost`. Default is `active`.
## POST /crm/users

While creating a user, the status should be `active`. Default status is `inactive`
## PATCH /crm/users/{id}

While updating a user, the status should be `active`. Default status is `inactive`
## POST /crm/activities

While creating an activity, the type should always be `task`.
## PATCH /crm/activities/{id}

While updating an activity, the type should always be `task`.

[API reference](https://developers.apideck.com/apis/crm/reference.md) · [Coverage matrix](https://developers.apideck.com/apis/crm/coverage)
