Spree Admin SDK
Resend an invitation
Issues a fresh token and dispatches the invitation email again.
Required scope: write_staff (for API-key authentication).
PATCH
Spree Admin SDK
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
import { createAdminClient } from '@spree/admin-sdk'
const client = createAdminClient({
baseUrl: 'https://your-store.com',
secretKey: 'sk_xxx',
})
const invitation = await client.invitations.resend('inv_xxx')spree api patch /invitations/{id}/resend -d '{ ... }'{
"id": "inv_UkLWZg9DAJ",
"email": "kecia@hirthedamore.biz",
"status": "pending",
"created_at": "2026-01-15T12:00:00.000Z",
"updated_at": "2026-01-15T12:00:00.000Z",
"expires_at": "2026-01-29T12:00:00.000Z",
"role_id": "role_UkLWZg9DAJ",
"role_name": "admin",
"inviter_email": "fumiko@jacobsonkirlin.co.uk",
"invitee_exists": false,
"store": {
"id": "store_UkLWZg9DAJ",
"name": "Spree Test Store"
}
}Issues a fresh token and dispatches the invitation email again.
Required scope: write_staff (for API-key authentication).
import { createAdminClient } from '@spree/admin-sdk'
const client = createAdminClient({
baseUrl: 'https://your-store.com',
secretKey: 'sk_xxx',
})
const invitation = await client.invitations.resend('inv_xxx')spree api patch /invitations/{id}/resend -d '{ ... }'{
"id": "inv_UkLWZg9DAJ",
"email": "kecia@hirthedamore.biz",
"status": "pending",
"created_at": "2026-01-15T12:00:00.000Z",
"updated_at": "2026-01-15T12:00:00.000Z",
"expires_at": "2026-01-29T12:00:00.000Z",
"role_id": "role_UkLWZg9DAJ",
"role_name": "admin",
"inviter_email": "fumiko@jacobsonkirlin.co.uk",
"invitee_exists": false,
"store": {
"id": "store_UkLWZg9DAJ",
"name": "Spree Test Store"
}
}Was this page helpful?
