Skip to main content
Sign a voucher with a public key.
POST /api/v1/vouchers/:voucherId/sign-voucher Attaches a cryptographic signature to a voucher. This is used for protocols that require an explicit signing step separate from resolution.

Parameters

Path

NameTypeRequiredDescription
voucherIdstringYesThe voucher ID to sign

Body

NameTypeRequiredDescription
publicKeystringYesPublic key used for signing, 1–256 characters
signaturestringYesCryptographic signature, 1–256 characters

Request example

curl --request POST 'https://payments.bleepay.com/api/v1/vouchers/vch_482916/sign-voucher' \
  --header 'Authorization: Bearer <payer_token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "publicKey": "0xPublicKey...",
    "signature": "0xSignature..."
  }'

Response

Response schema

Returns the updated voucher object with the signature attached.

Error responses

StatusCodeDescription
400validation_failedInvalid or missing fields
401unauthorizedMissing or invalid bearer token
404not_foundVoucher not found