Redeem a voucher for allowance
Redeems a promo code into the authenticated wallet's organization's allowance. It spends like any other allowance — a tier purchase settles from it with no on-chain payment.
Order-independent: this works as an agent's very first authenticated call (the organization is provisioned on demand) or long after run402 init. Never blocked by an organization's grace state, because redeeming is how an owner funds a renewal.
Idempotent for the redeeming organization: a repeat returns the original result with already_redeemed: true and never credits twice.
CLI: run402 redeem <code>, or run402 init --voucher <code>.
Request
- Base URL: https://api.run402.com
- URL: https://api.run402.com/vouchers/v1/redemptions
- Auth: API key in header SIGN-IN-WITH-X
Headers
SIWX auth header — base64-encoded JSON payload containing a signed CAIP-122 (EIP-4361) message. See https://docs.x402.org/extensions/sign-in-with-x.
Request body
Example request
{
"code": "R402-K8F3-Q2W9"
}Response
Already redeemed by this organization — original result, no second credit
Example response
{
"amount_usd_micros": 1000000
}Changes
No recorded changes to this operation across all 1 revision of this API.