Update Tenant Password
PUT /api/v1/tenants/:tenantId
Description
This endpoint update the tenant
Request
-
Authentication:
-
Type: Bearer Token
-
Token:
{{bearerToken}}(Replace with the actual bearer token)
-
-
URL:
-
Raw URL:
/api/v1/tenants/:tenantId -
Host:
-
Path:
/api/v1/tenants/:tenantId -
Variables:
- tenantId: (Required)
-
-
Response Body:
- Status: OK (200)
Headers
| Content-Type | Value |
|---|---|
| Content-Type | application/json |
Request Body
Request sample:
{
"userId": "string",
"config": {
"logisticDeliverySetting": {
"isProviderSplitEnabled": false,
"isDropOffCodeEnabled": false,
"defaultProvider": "FLEET",
"providerSplits": []
},
"merchantSetting": {
"priceMargin": {
"type": "PERCENT",
"value": 0,
"enabled": false
}
},
"deviceSettings": {
"isAllowMultipleDevice": false,
"maxDevicesAllowed": 1,
"idleLogoutEnabled": false,
"autoSignOutLeastActiveDevice": true
},
"passwordSettings": {
"isPasswordExpirationEnabled": true,
"passwordExpirationValue": 3,
"passwordExpirationPeriod": "WEEKS",
"isPasswordHistoryCheckEnabled": true,
"passwordHistoryLimit": 1,
"isPasswordComplexityCheckEnabled": true,
"passwordMinLength": 8,
"passwordRequiresUppercase": true,
"passwordRequiresLowercase": true,
"passwordRequiresNumbers": true,
"passwordRequiresSpecialCharacters": true
},
"isBusinessNameFormatted": false,
"isProductNameFormatted": false,
"isUniqueBusiness": false,
"isUniqueUser": false,
"isEnforceKYBErrorOnFailedVerification": false,
"isOutOfStockVisible": false,
"isAllowProductVisibleOnCreate": false,
"isAllowLogisticEnabledOnOrder": false,
"isAllowLogisticOnDistributorOrder": false,
"isAllowLogisticOnManufacturerOrder": false,
"isAllowLogisticOnWholesalerOrder": true,
"isAllowPickupAddressSentOnOrder": false,
"isWholesalerDisableOnCreate": false,
"isDistributorDisableOnCreate": false,
"isManufacturerDisableOnCreate": false,
"isEnableLocalWallet": false,
"isEnableWalletPaymentForDistributor": false,
"isEnableWalletPaymentForManufacturer": false,
"isEnableWalletPaymentForWholesaler": true,
"merchantInventorySettlementStatus": "DELIVERED",
"wholesalerDefaultLocationRadius": 40,
"distributorDefaultLocationRadius": 40,
"manufacturerDefaultLocationRadius": 40,
"isEmailVerificationRequired": false,
"quad": "QUAD_1"
}
}
#### Response Body
```json
Response sample:
{
"_id": "string",
"code": "57496082-f801-476d-b37b-eed47fcdf2ab",
"name": "string",
"kycDetails": {
"businessDetails": {
"metadata": {
"isBusinessDeliveryPerformance": false,
"isKickBackPromised": false,
"isCompanyRegulated": false,
"isSharesListed": false,
"isCompanySubjectToInvestigation": false,
"isShareholderPoliticallyExposed": false
},
"directorsProofOfAddress": [],
"shareHoldersProofOfAddress": [],
"directorsProofOfIdentification": []
},
"status": "PENDING",
"additionalShareholdersDetails": [],
"guarantorDetails": []
},
"ipAddresses": [],
"domains": [],
"country": {
"name": "Nigeria",
"code": "NG",
"currency": "NGN",
"_id": "667bf9eacfb604be7d8f9449"
},
"user": "string",
"wallet": {
"virtualBankCode": "035",
"virtualBankName": "Wema Bank",
"createdAt": null
},
"config": {
"logisticDeliverySetting": {
"isProviderSplitEnabled": false,
"isDropOffCodeEnabled": false,
"defaultProvider": "FLEET",
"providerSplits": []
},
"merchantSetting": {
"OrderSetting": {
"skipConfig": {}
},
"priceMargin": {
"type": "PERCENT",
"value": 0,
"enabled": false
}
},
"deviceSettings": {
"isAllowMultipleDevice": false,
"maxDevicesAllowed": 1,
"idleLogoutEnabled": false,
"autoSignOutLeastActiveDevice": true
},
"passwordSettings": {
"isPasswordExpirationEnabled": true,
"passwordExpirationValue": 3,
"passwordExpirationPeriod": "WEEKS",
"isPasswordHistoryCheckEnabled": true,
"passwordHistoryLimit": 1,
"isPasswordComplexityCheckEnabled": true,
"passwordMinLength": 8,
"passwordRequiresUppercase": true,
"passwordRequiresLowercase": true,
"passwordRequiresNumbers": true,
"passwordRequiresSpecialCharacters": true
},
"isBusinessNameFormatted": false,
"isProductNameFormatted": false,
"isUniqueBusiness": false,
"isUniqueUser": false,
"isEnforceKYBErrorOnFailedVerification": false,
"isOutOfStockVisible": false,
"isAllowProductVisibleOnCreate": false,
"isAllowLogisticEnabledOnOrder": false,
"isAllowLogisticOnDistributorOrder": false,
"isAllowLogisticOnManufacturerOrder": false,
"isAllowLogisticOnWholesalerOrder": true,
"isAllowPickupAddressSentOnOrder": false,
"isWholesalerDisableOnCreate": false,
"isDistributorDisableOnCreate": false,
"isManufacturerDisableOnCreate": false,
"isEnableLocalWallet": false,
"isEnableWalletPaymentForDistributor": false,
"isEnableWalletPaymentForManufacturer": false,
"isEnableWalletPaymentForWholesaler": true,
"merchantInventorySettlementStatus": "DELIVERED",
"wholesalerDefaultLocationRadius": 40,
"distributorDefaultLocationRadius": 40,
"manufacturerDefaultLocationRadius": 40,
"isEmailVerificationRequired": false,
"quad": "QUAD_1"
},
"deleted": false,
"rotationPeriod": "YEARS",
"rotationValue": 2,
"createdBy": "667bf9ea17115e52630d144f",
"deletedBy": null,
"updatedBy": "667bf9ea17115e52630d144f",
"deletedAt": null,
"holidayStartDate": null,
"holidayEndDate": null,
"bannerLinks": [],
"isBannerEnabled": false,
"services": [],
"products": [],
"createdAt": "2024-06-26T11:57:33.194Z",
"updatedAt": "2024-06-27T10:13:42.603Z",
"__v": 0
}