Skip to main content

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.

Required scope: suppliers:write

Grant 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​

Created

Response Headers
    Content-Type