Change Merchant Password
3/23/25Less than 1 minute
Description
The Change Merchant Password API allows an authenticated merchant or store owner to update their password. The merchant must provide their current password and a new password to complete the process.
Ensure the new password meets the required security standards.
Endpoint
PATCH /v1/change/password/merchant
Required Headers
{
"Content-Type": "application/json",
"Authorization": "Bearer JWT_TOKEN",
}
📥 Request Body
Parameter | Type | Required | Description |
---|---|---|---|
currentPassword | string | Yes | The current password. |
newPassword | string | Yes | The new password. |
confirmPassword | string | Yes | Confirm password to make sure user is certain of the newly inputted password |
Example API Call (Fetch or Axios)
fetch('https://api.shopsynch.com/v1/change/password/merchant', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-MerchantApiKey': 'MERCHANT_API_KEY'
},
body: JSON.stringify({
currentPassword: "password",
newPassword: "123456",
confirmPassword: "123456"
})
})
.then(response => response.json())
.then(data => console.log(data));
📤 Sample 200 Response (Success)
{
"message": "Password changed successfully.",
"status": true
}