Managing user accounts from creation through closure — profile updates, enrollment control (pause/resume, single and batch), account closure (single and batch), credit-data refresh, and cache management.
| Method | Endpoint | Description |
|---|---|---|
| POST | /direct/login | Authenticate with API key and secret |
| GET | /direct/user/{id} | Get a user by ID |
| POST | /direct/change-email/{id} | Change a user's email |
| POST | /direct/change-mobile/{id} | Change a user's mobile number |
| POST | /direct/change-name/{id} | Change a user's name |
| POST | /direct/change-host/{id} | Move a user to a different host |
| POST | /direct/users/{userId}/pause-enrollment | Pause a single user's enrollment |
| POST | /direct/users/{userId}/resume-enrollment | Resume a single user's enrollment |
| POST | /direct/users/pause-enrollments | Pause enrollment for many users (batch) |
| POST | /direct/users/resume-enrollments | Resume enrollment for many users (batch) |
| POST | /direct/update-refresh/{id} | Force a credit-data refresh for a user |
| POST | /direct/reset-cache/{id} | Clear cached credit data for a user |
| POST | /direct/close-account/{id} | Close a single user's account |
| POST | /direct/close-account | Close the authenticated user's account |
| POST | /direct/close-accounts | Close many user accounts (batch) |
Authenticates a customer host using API key and secret credentials, returning a JWT access token and a refresh token. The access token must be included as a Bearer token in the Authorization header for all /direct/* endpoints.
Requirements: The host must be active.
Expiration: The access token is valid for 1 hour and the refresh token is valid for 2 hours.
- Production Server URLhttps://efx-wgt.stitchcredit.com/api/direct/login
- Development Server URLhttps://efx-dev.stitchcredit.com/api/direct/login
Login Request
curl -i -X POST \
https://efx-wgt.stitchcredit.com/api/direct/login \
-H 'Content-Type: application/json' \
-d '{
"apikey": "your-api-key",
"secret": "your-api-secret"
}'Response
Login Response
{ "token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1NTBlODQwMCJ9.abc", "expires": 3600, "refresh": "eyJhbGciOiJIUzI1NiJ9.ref.xyz" }