Toggle Product
PUT {{baseUrlMerchant}}/products/:id/toggle
Description
Toggle the status of a product.
Headers
tenantId: (Required)Accept: /
Path Variables
id: (Required)
Example Request
curl --location -g --request PUT '{{baseUrl}}/products/:id/toggle' \
--header 'tenantId: <string>' \
--header 'Accept: */*'
Example Response
{
"message": "<string>",
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"sku": "<string>",
"category": "<string>",
"subCategories": [
"<string>",
"<string>"
],
"brand": "<string>",
"productPublicId": "<string>",
"costPrice": {
"price": "<double>",
"unitQuantity": "<integer>",
"unitPrice": "<double>"
},
"sellingPrice": {
"price": "<double>",
"unitQuantity": "<integer>",
"unitPrice": "<double>"
},
"quantityOnHand": "<integer>",
"minimumOrderQuantity": "<integer>",
"reorderLevel": "<integer>",
"stockLevel": "OUT_OF_STOCK",
"unit": "<string>",
"weight": "<double>",
"visibility": "<boolean>",
"images": [
"<string>",
"<string>"
],
"businessId": "<string>",
"merchantId": "<string>",
"createdAt": "<dateTime>",
"updatedAt": "<dateTime>",
"clusters": [
{
"value": "<Circular reference to #/components/schemas/ProductDto detected>"
},
{
"value": "<Circular reference to #/components/schemas/ProductDto detected>"
}
],
"business": {
"get_id": "<string>",
"name": "<string>",
"photo": "<string>",
"wallet": {
"velit_6": {},
"irure70_": {}
},
"address": {
"country": "<string>",
"latitude": "<integer>",
"lga": "<string>",
"name": "<string>",
"state": "<string>",
"longitude": "<integer>"
},
"location": {
"coordinates": [
"<long>",
"<long>"
],
"type": "<string>"
},
"user": "<string>",
"owner": {
"profileTenant": "<string>",
"city": {
"code": "<string>",
"name": "<string>"
},
"country": {
"code": "<string>",
"name": "<string>",
"currency": "<string>"
},
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"photo": "<string>",
"state": {
"code": "<string>",
"name": "<string>"
},
"username": "<string>",
"wallet": {
"virtualBankCode": "<long>"
},
"id": "<string>",
"fullName": "<string>"
},
"businessHandle": "<string>",
"shippingFee": "<double>",
"phone": "<string>",
"category": "<string>",
"active": "<boolean>",
"acceptingOrder": "<boolean>",
"isDistributor": "<boolean>",
"isManufacturer": "<boolean>"
}
},
"meta": {
"currentPage": "<long>",
"from": "<long>",
"to": "<long>",
"perPage": "<long>",
"total": "<long>",
"lastPage": "<long>"
}
}
Note: Replace placeholders such as <string>, <long>, <dateTime>, <double>, <integer>, etc., with actual values or descriptions based on the API specifications.
LANGUAGE
CURL REQUEST
curl --request PUT \
--url /products/:id/toggle \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!