Activate Promo
HEAD {{baseUrlMerchant}}/products/visibility
Description
Activate a promotion.
Headers
Content-Type: application/jsontenantId: (Required)userId: (Required)Accept: /
Path Variables
id: (Required)
Example Request
curl --location -g --request PUT '{{baseUrl}}/promotion/activate/:id' \
--header 'tenantId: <string>' \
--header 'userId: <string>' \
--header 'Accept: */*'
Example Response
{
"message": "<string>",
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"discountType": "FIXED",
"amount": "<double>",
"percentage": "<integer>",
"endDate": "<dateTime>",
"isActive": "<boolean>"
},
"meta": {
"currentPage": "<long>",
"from": "<long>",
"to": "<long>",
"perPage": "<long>",
"total": "<long>",
"lastPage": "<long>"
}
}
Note: Replace <string>, <double>, <integer>, <dateTime>, and <long> with actual values where applicable.
LANGUAGE
CURL REQUEST
curl --request HEAD \
--url /products/visibility \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!