ERPNext API Key
Generate API credentials for TaprNext to connect to ERPNext.
Step-by-Step Guide
Section titled “Step-by-Step Guide”Step 1: Create API User
Section titled “Step 1: Create API User”- Log into ERPNext as Administrator
- Go to Setup > Users
- Click + Add User
- Fill in the form:
- Email:
taprnext-api@company.com - First Name:
TaprNext - Last Name:
API - Uncheck “Send Welcome Email”
- User Type:
System User
- Email:
Step 2: Set Password
Section titled “Step 2: Set Password”- Set a strong password (won’t be used directly)
- Save the user
Step 3: Assign Roles
Section titled “Step 3: Assign Roles”Edit the user and add these roles:
- Accounts User
- Accounts Manager
- Purchase User
- System Manager
Step 4: Generate API Key
Section titled “Step 4: Generate API Key”- Open the user:
taprnext-api@company.com - Scroll to the API Access section
- Click Generate Keys
- Two credentials will appear:
- API Key
- API Secret
⚠️ Copy the API Secret immediately—it won’t display again.
Step 5: Copy Credentials
Section titled “Step 5: Copy Credentials”Securely store both values for TaprNext configuration.
Security Best Practices
Section titled “Security Best Practices”- Dedicated User: Avoid using personal accounts for API access
- Minimal Roles: Assign only required permissions
- Rotate Keys: Regenerate periodically
- Audit Access: Monitor API user activity
Troubleshooting
Section titled “Troubleshooting”“API Key Invalid”
- Verify credentials copied without extra spaces
- Confirm user account is enabled
- Regenerate keys if necessary
“Permission Denied”
- Verify all required roles are assigned
- Check role permissions in Role Permission Manager
- Ensure user has DocType access