API → StoreCreate a new store coupon
hidden

Parameters

Name

Type

Req.

  • bodyapplication/json

    object
    optional
    Object Properties

Returns

  • 201 Created

    successful creation

    Name

    Type

    Req.

    body

    object
    optional
    Object 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
}