Account
In the "Account" section, endpoints for managing user accounts are described.
Retrieve detailed user information.
GET
{{BASE_URL}}/api/users/current
Fetches comprehensive information about the currently authenticated user
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer Token |
Update user information
PUT
{{BASE_URL}}/api/users/current
Allows users to update their profile information, such as name, email, or other relevant details.
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer Token |
Request Body
Name | Type | Description |
---|---|---|
name | String | |
oldPassword | String | |
newPassword | String |
Once the user has been deactivated, access to the application will be blocked, but the user will be able to restore the account.
Deactivate a user
PUT
{{BASE_URL}}/api/users/current/deactivate
Deactivates the user's account, rendering it inaccessible while retaining user data.
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer Token |
Retrieve all notifications for the user.
GET
{{BASE_URL}}/api/users/current/notifications
Retrieves all notifications and messages intended for the user.
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer Token |
After registering, the customer must add the first payment method (default) for paying invoices. We use Stripe to manage payments. We freeze $1 from the customer to check that the card is active and there are funds, then we return that dollar and add that payment method to the user.
Verify a user
POST
{{BASE_URL}}/api/users/current/verify-payment
Confirms and validates a user's selected payment method for future transactions.
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer Token |
Request Body
Name | Type | Description |
---|---|---|
paymentMethod | String | Stripe Payment method ID |
Retrieve all payment methods added by the user.
GET
{{BASE_URL}}/api/users/current/list-payment-methods
Retrieves a list of all payment methods that the user has added to their account, providing an overview of available payment options for transactions and billing.
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer Token |
Delete a payment method.
DELETE
{{BASE_URL}}/api/users/current/payment-method/{id}
Deletes a specific payment method associated with the user's account.
Path Parameters
Name | Type | Description |
---|---|---|
id | String | Payment method ID |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer Token |
This enpoint is required to see detailed information about the user in Stripe.
Retrieve payment account information from Stripe.
GET
{{BASE_URL}}/api/users/current/retrieve
Retrieves relevant payment account details for the current user from the Stripe payment gateway.
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer Token |
Last updated