POST
/
vouchers
curl --request POST \
  --url https://api.live.paisr.tech/{version}/vouchers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "type": "percentage",
  "code": "<string>",
  "amount": 2,
  "max_redeems": 500000.5,
  "expires": "<string>"
}'
{
  "success": true,
  "data": {
    "id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
The details required to create a voucher.

The body is of type object.

Response

200
application/json
Successfully created voucher.

The response is of type object.