Runtime endpoints
Every runtime endpoint a script can register, with its key, what it changes, what it needs in the configuration and where it is documented.
A runtime endpoint is a named extension point of The Wallet Crew platform itself: the place where a tenant script takes over one precise decision, such as the data a pass displays, the pass type chosen at creation or the URL a holder is redirected to. Connector-specific extension points (extensions.*) are listed separately in Connector scripts.
A script declares an endpoint by calling context.register(key, handlers) in the default export of a file under server/scripts/; how files are loaded, and why a key should be registered in one file only, is explained in How scripts run. Handler names, casing and return conversion are common to every endpoint and are described in Handlers.
Endpoints at a glance
Keys are case-sensitive, including the doubled word in scriptableAccountValidator (the spelling is part of the key). A {scriptId} or {templateId} suffix is chosen by the brand and must match, character for character, the identifier written in the configuration that runs the script.
runtime.scriptable.passDataProvider.{scriptId}
Fills the data a pass displays from an external system, and describes that data to the admin console.
dataProviders entry provider: script in server/passes/<passType>.yml; optionally customerProviders entry type: script in server/account.yml
runtime.scriptable.customerProvider.{scriptId}
Obsolete name of the pass data provider. Still runs where no pass data provider is registered under the same script id.
Same as the pass data provider
runtime.scriptable.customerPipelineElement.{scriptId}
Runs custom code as one step of a customer registration flow, for example to create the customer in a CRM.
Step type: script in a flow of server/flows.yml
runtime.wallet.passUpdater
Chooses the pass type or rewrites identifiers when a pass is created or updated, and is notified when a pass is created, updated, installed or uninstalled.
None: registering is enough
runtime.scriptable.pushUpdates.{scriptId}
Builds, from a scheduled task, the list of passes to update and what to change on each.
Task type: wallet.scriptablePushUpdates with settings.scriptName in server/scheduler.yml
runtime.scriptable.emailEngine
Sends the platform's emails through the brand's own email or marketing automation service.
provider: { type: script } in server/emails.yml
runtime.scriptable.scriptableAccountValidator
Rejects an enrolment with field-level error messages before anything is created.
None: registering is enough
runtime.emailAccountChallenger.templateFinder
Picks the email template of the identity-confirmation email, or skips the email.
An email account challenger in server/account.yml
runtime.wallet.linkUrlEnricher
Rewrites the destination URL of a tracked link tapped in a pass, for example to add campaign parameters.
None: registering is enough (it replaces the default UTM parameters)
runtime.import.updatePasses.rowTransformer
Reads the rows of a bulk "update passes" CSV file whose columns do not follow the documented format, and sets the pace of the file.
None: registering is enough
runtime.benefit.benefitProvider
Keeps the benefits of a pass in step with an external system that can only be read.
None: registering is enough
runtime.wallet.applePassResolver
Recovers an Apple Wallet pass that a device knows but The Wallet Crew does not, typically after a migration from another platform.
None: registering is enough (one registration per tenant)
runtime.scriptable.benefitTemplateCodeGenerator.{templateId}
Computes the code of each benefit issued from a benefit template whose code mode is custom.
Written by the platform from the benefit template's code settings
How the endpoints differ
Endpoints differ in what happens with a missing handler, several registrations of one key, no registration at all, and an error. Handlers holds the one table of these facts; each endpoint page gives the detail and says when the endpoint runs.
Last updated

