Body
application/json
curl --request POST \
--url https://psn-api.paystub.dev/admin/invitations/accept \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"password": "<string>",
"password_confirmation": "<string>"
}
'{
"success": true,
"data": {
"user": {
"id": 1,
"site_id": 1,
"role_id": 2,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"klaviyo_id": "<string>",
"slack_id": "<string>",
"email_verified_at": "2023-11-07T05:31:56Z",
"total_spent": 1250.5,
"metadata": {},
"settings": {},
"status": "Active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"site": {
"id": 123,
"identifier": "<string>",
"name": "<string>",
"logo": "<string>",
"payment_processors": [
"Stripe"
],
"document_types": [
"Paystub"
],
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"role": {
"id": 123,
"name": "Owner",
"description": "<string>",
"permissions": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"is_verified": true,
"permissions": [
"<string>"
]
}
},
"token": {
"access_token": "<string>",
"token_type": "Bearer",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}Accept an invitation and create admin account
curl --request POST \
--url https://psn-api.paystub.dev/admin/invitations/accept \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"password": "<string>",
"password_confirmation": "<string>"
}
'{
"success": true,
"data": {
"user": {
"id": 1,
"site_id": 1,
"role_id": 2,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"klaviyo_id": "<string>",
"slack_id": "<string>",
"email_verified_at": "2023-11-07T05:31:56Z",
"total_spent": 1250.5,
"metadata": {},
"settings": {},
"status": "Active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"site": {
"id": 123,
"identifier": "<string>",
"name": "<string>",
"logo": "<string>",
"payment_processors": [
"Stripe"
],
"document_types": [
"Paystub"
],
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"role": {
"id": 123,
"name": "Owner",
"description": "<string>",
"permissions": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"is_verified": true,
"permissions": [
"<string>"
]
}
},
"token": {
"access_token": "<string>",
"token_type": "Bearer",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}