POST
/
vouchers
/
apply
curl --request POST \
  --url https://api.live.paisr.tech/{version}/vouchers/apply \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "invoice_id": "<string>",
  "code": "<string>"
}'
{
  "success": true,
  "message": "<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 apply a voucher to an invoice.
invoice_id
string
required

ID of the invoice redeeming the voucher.

code
string
required

Unique code of the voucher.

Response

200
application/json
Successfully applied voucher.
success
boolean

Indicates if the request was successful.

message
string

A descriptive message regarding the result.