app.chronosky.plan.redeemTicket

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

Repository @chronosky.app did:plc:bfjib7fy6dob3gyfssyfd4ry namespace authority
Details · procedure
Kindprocedure
Authorityplan.chronosky.app
Indexed

Procedure

procedure · POST

Input

application/json

code

requiredstring

Ticket redemption code

  • minLength: 1
  • maxLength: 100

Output

application/json

assignment

requiredref

message

requiredstring

Success message

  • maxLength: 1000

Errors

TicketNotFound

Ticket code not found

TicketAlreadyRedeemed

Ticket has already been redeemed

TicketExpired

Ticket has expired

#redeemedAssignment

object

Redeemed plan assignment.

Properties

activatedAt

requiredstring · datetime

Plan activation timestamp

  • maxLength: 100

expiresAt

requiredstring · datetime

Plan expiration timestamp

  • maxLength: 100

id

requiredstring

Plan assignment ID

  • maxLength: 100

planId

requiredstring

Plan ID

  • maxLength: 100

status

requiredstring

Plan assignment status

  • maxLength: 20
  • enum: ACTIVE | EXPIRED | CANCELLED

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.