cURL
curl --request POST \ --url https://demo1-api.payrollintegrationsdemo.com/v1/plans/{plan}/invites \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "contactEmail": "[email protected]", "redirectUrl": "<string>", "onboardingNotes": "<string>", "additionalEmails": [ "[email protected]" ] } '
{ "id": "770e8400-e29b-41d4-a716-446655440002", "planId": "550e8400-e29b-41d4-a716-446655440000", "email": "[email protected]", "status": "pending", "createdAt": "2024-01-15T10:30:00Z", "expiresAt": "2024-01-22T10:30:00Z" }
Creates a new invite for a plan
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Primary email address of the plan sponsor
URL to redirect after onboarding
Internal notes about the plan
Additional email addresses
Plan invite created successfully