Onehash
OneHash is a cloud-based CRM and ERP platform. AFI creates leads, contacts, and customers in OneHash via the OneHash REST API, authenticating with a token-based Authorization header using your API Key and API Secret.
What you’ll need
- An active OneHash account.
- Your Company subdomain, API Key, and API Secret.
- The Advanced Form Integration plugin installed and activated.
Save your OneHash credentials
- In OneHash, go to User → API Access and click “Generate Keys”.
- In WordPress, go to AFI → Settings → OneHash.
- Enter your company subdomain, API Key, and API Secret.
- Click Add Account and save.
Create the integration
- Go to AFI → Add New.
- Give the integration a name.
- Under Trigger, pick your form plugin and form.
- Under Action → Platform, select OneHash.
- In Task, choose Add Lead, Add Contact, or Add Customer.
- Select the saved OneHash account.
- Map form fields.
- Click Save Integration.
Tasks supported
Add Lead
Creates a lead in OneHash via POST /api/resource/Lead with lead name, email, company, status, source, campaign, address, and phone fields.
Add Contact
Creates a contact in OneHash via POST /api/resource/Contact with first/middle/last name, email, company, address, and phone fields.
Add Customer
Creates a customer in OneHash via POST /api/resource/Customer with customer name, type, group, territory, email, address, and phone fields.
| Common Field | Field key | Required |
|---|---|---|
email |
No | |
| Company | company |
No |
| Phone | phonNO |
No |
| Mobile | mobileNo |
No |
| Address Line 1 | addressLine1 |
No |
| City | city |
No |
| State | state |
No |
| Country | country |
No |
Troubleshooting
“No OneHash credentials found”
Go to AFI → Settings → OneHash and enter your company subdomain, API Key, and API Secret.