Walletap MCP by usefulapi

v1.2.0
io.usefulapi/walletap Checked 1 day ago Published 1 hour ago

Read templates and passes; issue, update, stamp or notify wallet passes in Walletap.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

walletap_list_templates List templates

List the account's pass templates (loyalty, membership, ticket, gift card, offer, generic) with their ids and names. Use this first to find a template_id. Walletap API: GET /templates. Needs the templates.viewAll scope.

ParameterTypeDescription
limitintegerTemplates per page, 15 by default, 100 at most.
starting_afterstringTemplate id to start after: the next_cursor of the previous page.

walletap_get_template Get a template

Read one template, including its design as a JSON string. Parse its pass field to find each field id before you issue a pass. Walletap API: GET /templates/{id}. Needs the templates.viewAll scope.

ParameterTypeDescription
template_id *stringThe template id (from walletap_list_templates), for example tmpl_123.

walletap_get_pass Get a pass

Read one pass: its links, wallet install state (deviceCount) and id. Give pass_id, or external_id with template_id. For field values use walletap_list_passes or walletap_search_passes. Walletap API: GET /pass. Needs the passes.viewAll scope.

ParameterTypeDescription
external_idstringYour own reference for the customer. Use it with template_id when you do not have the pass_id.
include_templatebooleanAlso return the template's name, colour and logo.
pass_idstringThe pass id, for example pass_456 (from walletap_list_passes or walletap_create_pass).
template_idstringThe template id (from walletap_list_templates), for example tmpl_123.

walletap_list_passes List a template's passes

List the passes issued from one template, newest first, with their field values, stamp count, validity and wallet install count. Page with starting_after. Walletap API: GET /passes. Needs the passes.viewAll scope. Holder contact details are returned: handle them as personal data.

ParameterTypeDescription
template_id *stringThe template id (from walletap_list_templates), for example tmpl_123.
limitintegerPasses per page, at most 100. Without it, the API returns every pass.
starting_afterintegerThe created value (epoch milliseconds) of the last pass on the previous page.
statusstringall (default), installed (in a wallet) or not_installed.

walletap_search_passes Find passes by email or phone

Find the passes on one template whose email or phone number equals the search text exactly. Emails are matched in lower case. Walletap API: GET /passes/search. Needs the passes.viewAll scope. Holder contact details are returned: handle them as personal data.

ParameterTypeDescription
search *stringThe holder's full email address or full phone number, for example +385915550142.
template_id *stringThe template id (from walletap_list_templates), for example tmpl_123.

walletap_create_pass Issue a pass

WRITE: issue one pass from a template for one customer. Field values must match the template's field ids. Walletap email and SMS delivery is OFF unless send_to_email or send_to_phone is true. Walletap API: POST /pass. Needs the passes.create scope.

ParameterTypeDescription
template_id *stringThe template id (from walletap_list_templates), for example tmpl_123.
collected_stampsintegerStarting stamp count on a stamp card, 0 to 50.
custom_fieldsobjectValues for fields you added to the design, keyed by field id.
emailstringHolder email address. The pass link goes here only when send_to_email is true.
external_idstringYour own reference for the customer. Keep it unique within the template.
localestringTwo-letter language code for the email, text and wallet buttons. Default en.
phonestringHolder phone in international format, for example +385915550142.
send_to_emailbooleanEmail the pass link to the holder. Default false.
send_to_phonebooleanText the pass link to the holder. Default false.
template_fieldsobjectField values keyed by field id, for example {"accountName": "Luka Horvat", "balance": 120}.

walletap_update_pass Update a pass

WRITE: change field values or validity of one pass. Send only the fields to change. Set is_valid false to void a pass (the wallet moves it to expired passes), true to reactivate. Moving validUntil into the future also reactivates a voided or expired pass. Walletap API: PATCH /pass. Needs the passes.edit scope.

ParameterTypeDescription
external_idstringYour own reference for the customer. Use it with template_id when you do not have the pass_id.
invalidated_reasonstringOnly with is_valid false: why the pass is voided.
is_validbooleanfalse voids the pass, true reactivates it.
pass_idstringThe pass id, for example pass_456 (from walletap_list_passes or walletap_create_pass).
template_fieldsobjectField values to change. Setting validUntil to a future date reactivates a voided or expired pass, for example {"validUntil": "2027-07-01"}.
template_idstringThe template id (from walletap_list_templates), for example tmpl_123.

walletap_stamp_pass Add or remove stamps

WRITE: change the stamp count of one stamp-card pass. Use an idempotency_key per real visit (for example the receipt number) so a retry counts once. Walletap API: PATCH /pass with stampOperation. Needs the scanning.stamp scope.

ParameterTypeDescription
operation *stringadd or remove by count, set to a count, or removeAll to empty the card.
countintegerRequired for add and set. Remove takes 1 when left out.
external_idstringYour own reference for the customer. Use it with template_id when you do not have the pass_id.
idempotency_keystringA unique value per real-world event, such as a receipt number.
pass_idstringThe pass id, for example pass_456 (from walletap_list_passes or walletap_create_pass).
template_idstringThe template id (from walletap_list_templates), for example tmpl_123.

walletap_notify_pass Notify a pass holder

WRITE: send one message to the holder of one pass. Walletap adds it to the pass and tries a phone notification. Read success, delivery and code in the reply: Apple Wallet may report no_registered_devices or unchanged_message (no alert sent), and Google Wallet may report delivered_without_push (on the pass, no alert). Walletap API: POST /pass/{id}/notify. Needs the campaigns.send scope.

ParameterTypeDescription
content *stringThe message text.
pass_id *stringThe pass id, for example pass_456 (from walletap_list_passes or walletap_create_pass).
title *stringShort notification title.
valid_fromstringISO 8601 time the message starts to show. Default: now.
valid_untilstringISO 8601 time the message stops to show. Default: 24 hours after valid_from.