GET
/
vouchers
curl --request GET \
  --url https://api.live.paisr.tech/{version}/vouchers \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "vouchers": [
      {
        "id": "vch_123456",
        "description": "End of the month sale",
        "type": "percentage",
        "code": "EOTM10",
        "amount": 10,
        "redeems": {
          "count": 75,
          "max": 100
        },
        "archived": false,
        "created_at": "2023-11-07T05:31:56Z",
        "expires_at": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Response

200
application/json
Successfully retrieved the list of vouchers.
success
boolean
Example:

true

data
object