API → Store → Create a new store couponhidden
hidden
Parameters
Name
Type
Req.
bodyapplication/json
objectoptionalObject Properties
Returns
- 201 Created
successful creation
Name
Type
Req.
body
objectoptionalObject Properties
post
/store/coupon$ curl -X POST "https://api.zoo.dev/store/coupon" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"percent_off": 17
}'
201 Created
Response{
"code": "wz",
"expires_at": "2024-12-19T17:50:02.462Z",
"percent_off": 14
}