Skip to content

Accounts API

The Accounts API handles user and store management, authentication, and profile operations.

Overview

The Accounts API provides endpoints for:

  • Authentication: Registration, login, logout, token management
  • OTP Verification: Email verification for new accounts
  • Password Management: Forgot password, reset password, change password
  • User Management: Profile operations, user CRUD
  • Store Management: Store CRUD, store information
  • Address Management: User shipping addresses
  • Location Data: Countries and cities

Base Path

/v1/accounts/

Authentication

Most endpoints require authentication. See Authentication Guide for details.

User Roles

  • User (Role: "1"): Regular customer
  • Store (Role: "3"): Store owner
  • Admin (Role: "2"): Administrator

Endpoints

Authentication

OTP Verification

Password Management

User Management

Store Management

Address Management

Location

Geocoding (Public)