Get user profile

GET /user/profile

Retrieves the profile details of the authenticated merchant.

Request Headers:

  • X-Access-Token: Access token

  • X-Refresh-Token: Refresh token

Example Request (Dart - http):

var headers = {
  'X-Access-Token': '{{access-token}}',
  'X-Refresh-Token': '{{refresh-token}}'
};
var request = http.Request('GET', Uri.parse('{{base-url}}/user/profile'));
request.headers.addAll(headers);
http.StreamedResponse response = await request.send();
if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
} else {
  print(response.reasonPhrase);
}

Response (200 OK):

Last updated