Astrada TypeScript SDK
    Preparing search index...

    Interface EnrollmentLink

    An enrollment link to the Astrada-hosted page where people enroll their own cards into one subaccount. The link's url is returned only by the request that creates it.

    EnrollmentLink

    interface EnrollmentLink {
        _links: SelfLinks;
        createdAt: Date;
        createdBy: EnrollmentLinkCreatedBy;
        customerReferenceId?: string;
        expiresAt: Date;
        id: string;
        kind: EnrollmentLinkKindEnum;
        maxUses: number;
        organizationName?: string;
        platformName?: string;
        revokedAt?: Date;
        startingPoint: "card";
        starts: number;
        state: EnrollmentLinkStateEnum;
        subaccountId: string;
        updatedAt: Date;
        usedAt?: Date;
        uses: number;
    }
    Index
    _links: SelfLinks

    EnrollmentLink

    createdAt: Date

    EnrollmentLink

    EnrollmentLink

    customerReferenceId?: string

    The reference given when the link was created. Absent when none was given.

    EnrollmentLink

    expiresAt: Date

    After this time no session starts from the link.

    EnrollmentLink

    id: string

    The link's identifier.

    EnrollmentLink

    • cardholder: a personal link for one employee. It allows up to 5 session starts and is used up by the first session that completes something.
    • team: a link to share with a team. Every session start counts as a use, up to maxUses.

    EnrollmentLink

    maxUses: number

    1 on a personal link. On a team link, the session starts it allows.

    EnrollmentLink

    organizationName?: string

    The organization name given when the link was created. Absent when none was given.

    EnrollmentLink

    platformName?: string

    The platform name given when the link was created. Absent when none was given. The hosted page ignores it once the account has a brand profile.

    EnrollmentLink

    revokedAt?: Date

    When the link was revoked.

    EnrollmentLink

    startingPoint: "card"

    Where the hosted page starts. Only card is available now; links made before the field existed read as card.

    EnrollmentLink

    starts: number

    The sessions started from the link so far.

    EnrollmentLink

    • active: sessions can start.
    • used: a personal link whose session completed something.
    • revoked: revoked with POST /enrollment-links/{linkId}/revoke or by deleting its subaccount. Team links revoked by the former five-active-link limit on POST /subaccounts/{subaccountId}/team-link stay revoked.
    • expired: an active link past expiresAt.

    EnrollmentLink

    subaccountId: string

    The subaccount that cards enrolled through the link join.

    EnrollmentLink

    updatedAt: Date

    EnrollmentLink

    usedAt?: Date

    When a personal link was used up.

    EnrollmentLink

    uses: number

    On a team link, the sessions started so far. On a personal link, 1 once it is used, otherwise 0.

    EnrollmentLink