RemoFirst core workflow a — global HR, EOR, and payroll platform integration. Use when working with RemoFirst for global employment, payroll, or compliance. Trigger with phrases like "remofirst core workflow a", "remofirst-core-workflow-a", "global HR API".
Employee onboarding workflow: create employee records, manage documents, handle country-specific compliance requirements.
remofirst-install-authemployee = client.post("/employees", {
"first_name": "Alice",
"last_name": "Johnson",
"email": "[email protected]",
"country_code": "GB", # United Kingdom
"job_title": "Senior Engineer",
"start_date": "2026-05-01",
"salary": {
"amount": 85000,
"currency": "GBP",
"frequency": "annual",
},
"employment_type": "full_time",
})
print(f"Employee created: {employee['id']}")
# Get country-specific onboarding requirements
requirements = client.get(f"/countries/GB/requirements")
for req in requirements["documents"]:
print(f" Required: {req['name']} — {req['description']}")
# Examples: Passport, National Insurance Number, Bank Details, P45
# Upload required documents
client.post(f"/employees/{employee['id']}/documents", {
"document_type": "passport",
"file_url": "https://secure-storage.com/passport.pdf",
"expiry_date": "2030-12-31",
})
status = client.get(f"/employees/{employee['id']}/onboarding")
print(f"Onboarding status: {status['status']}") # pending, in_progress, completed
for step in status["steps"]:
print(f" {step['name']}: {step['status']}")
| Error | Cause | Solution |
|---|---|---|
422 Invalid country | Unsupported country code | Check supported countries list |
422 Missing required field | Country-specific field missing | Check country requirements first |
| Onboarding stuck | Missing documents | Upload all required documents |
Payroll workflow: remofirst-core-workflow-b