RemoFirst Core Workflow A
Overview
Employee onboarding workflow: create employee records, manage documents, handle country-specific compliance requirements.
Prerequisites
- Completed
remofirst-install-auth
Instructions
Step 1: Create Employee Record
employee = client.post("/employees", {
"first_name": "Alice",
"last_name": "Johnson",
"email": "alice@company.com",
"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']}")
Step 2: Check Country Requirements
# 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
Step 3: Submit Onboarding Documents
# 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",
})
Step 4: Track Onboarding Status
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']}")
Output
- Employee record created with salary and country
- Country-specific requirements checked
- Documents uploaded for compliance
- Onboarding progress tracked
Error Handling
| 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 |
Resources
Next Steps
Payroll workflow: remofirst-core-workflow-b
1---
2name: remofirst-core-workflow-a
3description: |
4 RemoFirst core workflow a — global HR, EOR, and payroll platform integration.
5 Use when working with RemoFirst for global employment, payroll, or compliance.
6 Trigger with phrases like "remofirst core workflow a", "remofirst-core-workflow-a", "global HR API".
7allowed-tools: Read, Write, Edit, Bash(npm:*), Bash(curl:*), Grep
8version: 2.0.0
9license: MIT
10author: Jeremy Longshore <jeremy@intentsolutions.io>
11tags: [saas, remofirst, hr, eor, payroll, global-employment]
12compatible-with: claude-code, codex, openclaw
13metadata:
14 source: https://skillmd.com/skills/aibot88/remofirst-core-workflow-a
15---
16
17# RemoFirst Core Workflow A
18
19## Overview
20Employee onboarding workflow: create employee records, manage documents, handle country-specific compliance requirements.
21
22## Prerequisites
23- Completed `remofirst-install-auth`
24
25## Instructions
26
27### Step 1: Create Employee Record
28```python
29employee = client.post("/employees", {
30 "first_name": "Alice",
31 "last_name": "Johnson",
32 "email": "alice@company.com",
33 "country_code": "GB", # United Kingdom
34 "job_title": "Senior Engineer",
35 "start_date": "2026-05-01",
36 "salary": {
37 "amount": 85000,
38 "currency": "GBP",
39 "frequency": "annual",
40 },
41 "employment_type": "full_time",
42})
43print(f"Employee created: {employee['id']}")
44```
45
46### Step 2: Check Country Requirements
47```python
48# Get country-specific onboarding requirements
49requirements = client.get(f"/countries/GB/requirements")
50for req in requirements["documents"]:
51 print(f" Required: {req['name']} — {req['description']}")
52 # Examples: Passport, National Insurance Number, Bank Details, P45
53```
54
55### Step 3: Submit Onboarding Documents
56```python
57# Upload required documents
58client.post(f"/employees/{employee['id']}/documents", {
59 "document_type": "passport",
60 "file_url": "https://secure-storage.com/passport.pdf",
61 "expiry_date": "2030-12-31",
62})
63```
64
65### Step 4: Track Onboarding Status
66```python
67status = client.get(f"/employees/{employee['id']}/onboarding")
68print(f"Onboarding status: {status['status']}") # pending, in_progress, completed
69for step in status["steps"]:
70 print(f" {step['name']}: {step['status']}")
71```
72
73## Output
74- Employee record created with salary and country
75- Country-specific requirements checked
76- Documents uploaded for compliance
77- Onboarding progress tracked
78
79## Error Handling
80| Error | Cause | Solution |
81|-------|-------|----------|
82| `422 Invalid country` | Unsupported country code | Check supported countries list |
83| `422 Missing required field` | Country-specific field missing | Check country requirements first |
84| Onboarding stuck | Missing documents | Upload all required documents |
85
86## Resources
87- [RemoFirst](https://www.remofirst.com)
88- [Global Employment](https://www.remofirst.com/solutions/human-resources)
89
90## Next Steps
91Payroll workflow: `remofirst-core-workflow-b`