Skip to main content
Finalize a voucher by submitting signed transaction receipts.
POST /api/v1/vouchers/:voucherId/resolve-voucher After the payer reviews and signs the transaction in their wallet, the wallet submits the signed receipts via this endpoint. This completes the voucher lifecycle — the status moves to RESOLVED. This endpoint requires authentication as a registered user (the payer).

Parameters

Path

NameTypeRequiredDescription
voucherIdstringYesThe voucher ID to resolve

Body

NameTypeRequiredDescription
receiptsarrayYes1–5 signed transaction receipts
Receipt object:
NameTypeRequiredDescription
paymentIdstringYesThe ID of the payment this receipt corresponds to

Request example

curl --request POST 'https://payments.bleepay.com/api/v1/vouchers/vch_482916/resolve-voucher' \
  --header 'Authorization: Bearer <payer_token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "receipts": [
      { "paymentId": "pay_a1b2c3d4e5f6" }
    ]
  }'

Response

Response schema

FieldTypeDescription
idstringVoucher identifier
statusstringVoucher status — RESOLVED

Example response

{
  "id": "vch_482916",
  "status": "RESOLVED"
}

Error responses

StatusCodeDescription
400not_redeemedThe voucher must be redeemed before resolving
400already_resolvedThe voucher has already been resolved
400validation_failedInvalid or missing receipt data
401unauthorizedMissing or invalid bearer token
404not_foundVoucher not found