Hi community,
I'm trying to create a contact using the Freshsales CRM API, but I'm receiving the following error response:
json
CopyEdit
{ "success": false, "message": "Freshsales API Error (400): Please add a valid account" }
Here is the sample payload I am sending:
json
CopyEdit
{ "contact": { "first_name": "John", "last_name": "Doe", "email": "john.doe@example.com", "mobile_number": "1234567890", "sales_account_id": 202002197374 } }
I'm setting the sales_account_id
to an existing account ID (confirmed from the Freshsales UI and API), but still getting this error.
What I've Checked:
-
The account ID
202002197374
does exist in my Freshsales instance. -
I can fetch the account details successfully via the
/api/sales_accounts/tid]
endpoint. -
The contact payload structure seems valid per Freshsales API docs.
-
The API key and domain are correctly configured, and other endpoints are working.
-
Tried using both string and number format for
sales_account_id
.