{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ticktape-cc/json-schema/ticktape-cc-redeem-response-schema.json",
  "title": "RedeemResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ticktape-cc-openapi.json#/components/schemas/RedeemResponse",
  "type": "object",
  "required": [
    "ok",
    "token",
    "wallet",
    "credits_added",
    "balance"
  ],
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "token": {
      "type": "string",
      "description": "Bearer token, format tk_<wallet>_<secret>. Treat as a secret; shown in full only in this response."
    },
    "wallet": {
      "type": "string",
      "description": "The wallet string the promotional credits are keyed to."
    },
    "credits_added": {
      "type": "integer",
      "description": "Free credits granted by the code."
    },
    "balance": {
      "type": "integer",
      "description": "Total credits now on the wallet."
    },
    "expires": {
      "type": "string",
      "format": "date-time",
      "description": "Credit expiry."
    },
    "note": {
      "type": "string",
      "description": "Promotional credits have no cash value and can be revoked on abuse or error; otherwise they behave like purchased credits."
    }
  }
}