User
This section contains the endpoint for user management. You can also view information from Stripe about this user.
Suspend user
PUT {{BASE_URL}}/admin/api/users/{id}/suspend
Suspend a specific user. When this endpoint is executed, all user resources will be stopped.
Path Parameters
id*
String
User ID
Headers
Api-Key*
String
Admin api key
{
"_id": "654a093e70c99a149c791faf",
"status": 1,
"balance": 0,
"hubspotContactId": "206501",
"emailVerified": true,
"referrer": null,
"name": "John Doe",
"email": "[email protected]",
"password": "$2b$08$xH5MUKNH7D8ZiNSsN1BBKeMA1dhO8C0ttTRuXiLvcV.SSsCbv60YO",
"emailVerificationToken": "",
"stripeId": "cus_OxhNYBXJyLjbnU",
"createdAt": "2023-11-07T09:54:06.918Z",
"updatedAt": "2023-11-07T13:26:54.191Z"
}Activate user
PUT {{BASE_URL}}/admin/api/users/{id}/activate
Resume access to the application for a specific user.
Path Parameters
id*
String
User ID
Headers
Api-Key*
String
Admin api key
Deactivate user
PUT {{BASE_URL}}/admin/api/users/{id}/deactivate
Deactivate a specific user. When this endpoint is executed, all user resources will be deleted. The user will not be able to log in to the application.
Path Parameters
id*
String
User ID
Headers
Api-Key*
String
Admin api key
Delete user
DELETE {{BASE_URL}}/admin/api/users/{id}/delete
Delete a specific user. When this endpoint is executed, all user resources will be deleted.
Path Parameters
id*
String
User ID
Headers
Api-Key*
String
Admin api key
Get user payment methods
GET {{BASE_URL}}/admin/api/users/{id}/payment-methods
Get all possible payment methods from a specific user.
Path Parameters
id*
String
User ID
Headers
Api-Key*
String
Admin api key
Get STRIPE customer
GET {{BASE_URL}}/admin/api/users/{id}/retrieve
Retrieves a Customer object.
Path Parameters
id*
String
User ID
Headers
Api-Key*
String
Admin api key
Last updated
Was this helpful?