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": 23
}'
201 Created
Response{
"code": "7GK",
"expires_at": "2024-10-18T02:49:17.947Z",
"percent_off": 14
}