PUT
/
vouchers
/
{voucher_id}
curl --request PUT \
  --url https://api.live.paisr.tech/{version}/vouchers/{voucher_id} \
  --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,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

voucher_id
string
required

The Voucher ID.

Body

application/json
The details required to update a voucher.

The body is of type object.

Response

200
application/json
Successfully updated voucher.

The response is of type object.