Partner API Documentation Help

Get current authenticated user info

Authentication

This method requires authentication.

Summary

Get current user info

Description

This method returns the currently authenticated user's info.

Request Parameters

No parameters are required for this method.

Response

The response data contains a User object with the following properties:

_id: string

A string that represents the user's unique identifier.

email: string

A string that represents the user's email address.

login: string

A string that represents the user's login.

role: string

A string that represents the user's role.

partner_role: string

A string that represents the partner's role.

partner: object

A reference to the Partner schema.

store_ids: [string]

An array of strings with store ids.

first_name: string

A string that represents the user's first name.

last_name: string

A string that represents the user's last name.

created_at: string

A string that represents the date when the user was created.

updated_at: string

A string that represents the date when the user was updated.

Good response Example

{ "status": "ok", "statusCode": 200, "data": { "_id": "your-id", "email": "your-email", "login": "your-login", "role": "your-role", "partner_role": "your-partner-role", "partner": "your-partner-name", "store_ids": [ "your-store_id" ], "first_name": "your-first-name", "last_name": "your-last-name", "created_at": "2024-01-01T10:00:00.000Z", "updated_at": "2024-01-01T10:00:00.000Z" } }

Bad Response Examples

HTTP code

Response example

401

see 401 Unauthorized

Last modified: 09 February 2024