Spurtcommerce
DocumentAPI ReferenceAdd-ons
API Reference
API Reference
  • About Spurtcommerce APIs
  • Spurtcommerce
    • Admin API
      • Admin
        • Authentication
        • My Profile
        • Support
      • Buyers
        • Manage Buyer
      • Chat
      • CMS
        • Manage Banner
        • Manage Blogs
        • Manage Pages
        • Manage SEO
      • Dashboard
      • Marketing
        • Manage Cross Selling
          • Related Products
        • Manage Promotions
          • Coupon
      • Marketplace
        • Manage Products
        • Manage Sales
        • Manage Settlements
        • Product Configuration
        • Reports
      • Sellers
        • Seller
        • Seller Group
        • Seller KYC Request
      • Settings
        • Add-ons
        • Add-ons Product Attributes
        • Localization
        • Order Fulfilment Status
        • Personalise
        • Site Settings
        • Store Settings
        • System
        • User and Permission
        • Support-Category
    • Store API
      • Account Settings
        • Customer
        • My Order
        • My Quotation
        • My Wishlist
        • Profile
        • Support
      • Checkouts
      • Store
        • Admin Contact
        • Categories
        • Home
        • Product Detail Page
    • Vendor API
      • Page 1
      • Catalogue
        • Bulk Product Imports
          • Custom
          • Standard
        • Common Product
        • Data Export
        • Pricing
        • Product Localisation
        • Product List
        • Product Variants
        • Related Products
      • CRM
        • Customer
        • Customer Group
        • Question and Answer
        • Rating and Review
      • Dashboard
      • Marketing
      • Payments
        • Archeived Payments
        • Earnings
        • Settlements
      • Profile
        • Account Settings
          • My Business
          • My KYC
          • My Profile
          • My Shop
          • Personalised Setting
        • Chat
        • Vendor
        • Support
      • Reports
      • Sales
        • Archeive Orders
        • Back Orders
        • Failed Orders
        • Orders
        • Quotation Request
        • Stock Update
        • Variant Stock Update
      • Supplier
        • Contact
        • Supplier
Powered by GitBook
On this page
  1. Spurtcommerce
  2. Admin API
  3. Admin

My Profile

PreviousAuthenticationNextSupport

Last updated 3 months ago

  • GETGet user profile details
  • POSTEdit user profile
  • PUTChange user password

Get user profile details

get

This endpoint retrieves the profile details of the authenticated user.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200
Successfully retrieved the user profile
400
Bad Request, user not authenticated or other errors
get
GET /backend/api/auth/get-profile HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got the profile</message>
</object>

Edit user profile

post

This endpoint allows the authenticated user to edit their profile details.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
usernamestringRequiredExample: john_doe
phoneNumberstringRequiredExample: +1234567890
emailstringRequiredExample: john.doe@example.com
addressstringOptionalExample: 123 Main St, Springfield
avatarstringOptionalExample: http://example.com/avatar.jpg
Responses
200
Successfully updated the user profile
400
Bad Request, invalid input or missing fields
post
POST /backend/api/auth/edit-profile HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 160

"username='john_doe'&phoneNumber='+1234567890'&email='john.doe@example.com'&address='123 Main St, Springfield'&avatar='http://example.com/avatar.jpg'"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully updated the profile</message>
</object>

Change user password

put

This endpoint allows the authenticated user to change their password.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
oldPasswordstringRequiredExample: fsdfsfs43543
newPasswordstringRequiredExample: Picco123@
Responses
200
Password successfully changed
400
Bad Request, invalid old password or other issues
put
PUT /backend/api/auth/change-password HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 56

"oldPassword='fsdfsfs43543'&newPassword='Picco123@'"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Password successfully changed</message>
</object>