Invite Vendor User
invite_vendor_userInvite a supplier's contact to the vendor portal, where they see the purchase orders sent to that supplier, update shipping, and propose changes. Name an existing supplier (id or exact name), or pass newSupplierName to create the supplier with the invitation (its email becomes the supplier's email). On commit Spark emails the invitation link. Refused for an invalid email, an email that already signs in to a portal of this account, and, for a new supplier, an email another supplier or pending invitation already uses. Requires an operator (unpinned) credential and an Admin user.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"email": "<email>"
},
"name": "invite_vendor_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | The contact's email address; the invitation is sent here. | ||
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call. | |
| lastName | No | The contact's last name. | |
| supplier | No | An existing supplier's id (GUID) or exact name. | |
| firstName | No | The contact's first name. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. | |
| newSupplierName | No | Name of a supplier to create with the invitation; use instead of supplier. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| user | No | ||
| preview | No | ||
| emailSent | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |