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": 19
}'
201 Created
Response
{
  "code": "H",
  "expires_at": "2024-04-12T19:24:40.608Z",
  "percent_off": 24
}