User Invitations
GET/users/current
Get current authenticated user
Returns the currently authenticated user. Returns an empty object when unauthenticated.
Request
GET/users/current
curl -G https://YOUR_DOMAIN/api/users/current \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"GET/users/merchants
Get merchants for current user
Returns the merchants the current user belongs to, along with their roles on each merchant. NOTE: Response shape differs from GET /merchants — this returns { merchants: [...] } not { data: [...] }.
Request
GET/users/merchants
curl -G https://YOUR_DOMAIN/api/users/merchants \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"Loading response...
POST/users/invitations/merchant
Invite a user to a merchant
Required attributes
- Name
email- Type
- string
- Description
- The email address of the user to invite user@example.com
- Name
role- Type
- string
- Description
- The role to assign to the invited user merchant_user
- Name
merchant_id- Type
- integer
- Description
- The ID of the merchant to invite the user to 1
Request
POST/users/invitations/merchant
curl -X POST https://YOUR_DOMAIN/api/users/invitations/merchant \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"email":"user@example.com","role":"merchant_user","merchant_id":"1"}'Loading response...
