- Admin API
- Auth
- Catalog
- Sales
- Purchases
- CMS
- User Management
- Settings
- Currency
- Coupons
- Warehouses
- Taxes
- Shippings
- Company
- GET All Price TypesGET
- GET All Product TypesGET
- GET All CountriesGET
- GET All PackagesGET
- GET PackageGET
- Ecommerce API
- Products
- Pages
- Shop
- Account
- Cart
- GET CompanyGET
- GET CountriesGET
PUT Coupon Status
Developing
PUT
{{url}}api/v1/admin/coupons/{id}/status/update
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'http://ecompulse.test/api/v1/admin/coupons/3/status/update' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": 0
}'
Response Response Example
{
"status": "success",
"message": "Coupon status updated successfully"
}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
integerÂ
required
Example:
3
Header Params
Accept
stringÂ
required
Example:
application/json
X-API-Key
stringÂ
required
Example:
{{key}}
Body Params application/json
object {0}
Examples
Responses
🟢200Success
application/json
Body
object {0}
Modified at 2024-05-27 07:18:20