Invite Supplier to Portal
POST/api/suppliers/:supplier/portal/invite-supplier
"Invite supplier" on the supplier's Portal tab: invite the supplier itself as a portal owner in one step.
suppliers:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
The supplier's own email on file is invited, named after its primary contact (else the supplier name). When the supplier has no email, pass email: it is invited and saved as the supplier's email. Switches the portal on when it is off. If that email already has a login that never accepted, its invitation is re-sent instead. The email goes out in the tenant's editable supplier_portal_invite template (Settings → Email Templates → Supplier Portal).
Body (all optional): email (valid email, max 255; only used when the supplier has no email on file), name (max 255; the invitee's name).
Returns the refreshed Portal tab overview (same shape as GET /api/suppliers/:supplier/portal) plus invited_email.
Errors (422, on email): no email on file and none given ("Give the supplier email before inviting."); the email already has an active login; its login was deactivated after use; the invitation template is switched off.
Authentication: Requires Bearer token and the suppliers.update permission.
Request
Responses
- 201
- 401
- 403
- 404
- 422
- 429
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.