Accept an invite
Joins the store with the invited roles and signs in. If the invited
e-mail has no account yet, one is created with full_name and
password; if it has one, password must be that account's password.
Header Parameters
A unique value (e.g. a UUID) per logical request. Retrying with the same key within 24 hours replays the first response instead of repeating the side effect; the replay carries Idempotent-Replayed: true. Reusing a key for a different request is a 422 idempotency_key_reused; retrying while the first is still running is a 409 idempotency_request_in_progress. JSON bodies up to 1 MB.
length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/invites/accept" \ -H "Content-Type: application/json" \ -d '{ "full_name": "string", "password": "string", "token": "string" }'{
"email": "string",
"session": null,
"store_id": "7fe87115-950c-4ae8-bd7e-970406bc9ac0",
"token": "string",
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}