app.chronosky.plan.redeemTicket

lexicon.store View official

Documentation

Redeem a ticket code and assign a plan to the authenticated user

main procedure

Redeem a ticket code and assign a plan to the authenticated user

Input

Encodingapplication/json
code string Required

Ticket redemption code

maxLength: 100 bytesminLength: 1 bytes

Output

Encodingapplication/json
message string Required

Success message

Errors

TicketNotFound Ticket code not found
TicketAlreadyRedeemed Ticket has already been redeemed
TicketExpired Ticket has expired
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "type": "procedure",
  "input": {
    "schema": {
      "type": "object",
      "required": [
        "code"
      ],
      "properties": {
        "code": {
          "type": "string",
          "maxLength": 100,
          "minLength": 1,
          "description": "Ticket redemption code"
        }
      }
    },
    "encoding": "application/json"
  },
  "errors": [
    {
      "name": "TicketNotFound",
      "description": "Ticket code not found"
    },
    {
      "name": "TicketAlreadyRedeemed",
      "description": "Ticket has already been redeemed"
    },
    {
      "name": "TicketExpired",
      "description": "Ticket has expired"
    }
  ],
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "assignment",
        "message"
      ],
      "properties": {
        "message": {
          "type": "string",
          "maxLength": 1000,
          "description": "Success message"
        },
        "assignment": {
          "ref": "#redeemedAssignment",
          "type": "ref"
        }
      }
    },
    "encoding": "application/json"
  },
  "description": "Redeem a ticket code and assign a plan to the authenticated user"
}
redeemedAssignment object

Redeemed plan assignment.

Properties

activatedAt string datetime Required

Plan activation timestamp

maxLength: 100 bytes
expiresAt string datetime Required

Plan expiration timestamp

maxLength: 100 bytes
id string Required

Plan assignment ID

maxLength: 100 bytes
planId string Required

Plan ID

maxLength: 100 bytes
status string Required

Plan assignment status

maxLength: 20 bytes
View raw schema
{
  "type": "object",
  "required": [
    "id",
    "planId",
    "activatedAt",
    "expiresAt",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string",
      "maxLength": 100,
      "description": "Plan assignment ID"
    },
    "planId": {
      "type": "string",
      "maxLength": 100,
      "description": "Plan ID"
    },
    "status": {
      "enum": [
        "ACTIVE",
        "EXPIRED",
        "CANCELLED"
      ],
      "type": "string",
      "maxLength": 20,
      "description": "Plan assignment status"
    },
    "expiresAt": {
      "type": "string",
      "format": "datetime",
      "maxLength": 100,
      "description": "Plan expiration timestamp"
    },
    "activatedAt": {
      "type": "string",
      "format": "datetime",
      "maxLength": 100,
      "description": "Plan activation timestamp"
    }
  },
  "description": "Redeemed plan assignment."
}

Lexicon Garden

@