Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
GuideAPIWallet

Batch operations

Update Apple Wallet and Google Wallet passes in bulk with the push update API or SFTP flat file imports, then track and cancel batches in the admin console.

The Wallet Crew supports two mechanisms for updating passes in bulk: the push update API and SFTP flat file imports.

Push update API

The operation below triggers a push update on all passes that match a filter condition. This is the primary batch mechanism for API-connected systems.

The endpoint accepts the same filter array as the passes list endpoint. See Filter and query operators for the full filter reference. As on the passes list, the filter conditions are query parameters (filter[0].field=...). The request body carries the change to apply and options.

The call needs the tenant.pass:pushUpdate scope. Cancelling a batch needs the same scope; reading its status needs tenant.pass:read.

Update passes in bulk

post
/api/{tenantId}/passes/pushUpdate

Applies one change to every pass matching the filters (same fields and operators as GET /passes; no filter selects every pass) and pushes each to its holder's devices. Each pass is queued as its own update, spread by options.throughput: a 200 means scheduled, not done. Follow progress with GET /passes/pushUpdate/status under options.correlationId, stop it with POST /passes/pushUpdate/{correlationId}/cancel. additionalData is merged and passType replaces the template when sent; themeId omitted keeps each pass's theme, an empty string removes it. Identifiers are not changed.

POST /api/{tenantId}/passes/pushUpdate?filter[0].field=passType&filter[0].operator=equals&filter[0].value=loyalty
{ "additionalData": { "campaign": "summer2025" }, "options": { "throughput": 12, "correlationId": "campaign-summer-2025" } }
Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Query parameters
Body

Changes to apply to an existing pass, with options.

additionalDataobject · nullableOptional

Free data stored with the pass and available to its templates.

themeIdstring · nullableOptional

Theme applied to the pass. Omit or null to leave it unchanged (none on create); an empty string removes it. An unknown id is refused with a 400.

passTypestring · nullableOptional

Pass template to move the pass to. Omitted or blank keeps the current one; an unknown name is refused with a 400.

updateMetadatabooleanOptionalDeprecated

Replaced by options.updateMetadata.

Default: false
Responses
200

The passes are scheduled; the body gives how many.

What a bulk update scheduled.

passCountinteger · int32Optional

Passes matched by the filters and queued for the update; 0 when none matched.

post/api/{tenantId}/passes/pushUpdate
POST /api/{tenantId}/passes/pushUpdate HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 173

{
  "identifiers": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "additionalData": null,
  "themeId": null,
  "passType": null,
  "options": {
    "throughput": 1,
    "updateMetadata": true,
    "correlationId": null
  }
}
{
  "passCount": 1
}

Each matching pass is queued for update independently. The platform resolves all matching pass IDs in-request, then enqueues them as a single command containing N individual per-pass tasks. The 200 response means the batch was accepted and scheduled — not that it has completed.

The endpoint does not cap the number of passes a single call can match. options.bypassQueue is not available on this endpoint.

Supply options.correlationId in the request body. The platform attaches it to each queued task, so processing progress can be tracked through GET /api/{tenantId}/passes/pushUpdate/status. Cancel a batch with POST /api/{tenantId}/passes/pushUpdate/{correlationId}/cancel. There is no completion webhook at the batch level.

Partial failures

Each pass is processed independently. A failure on one pass — for example, a connector error or a pass not found — does not affect the other passes in the batch.

SFTP flat file imports

SFTP imports allow you to update additional data, identifiers, pass templates, themes, benefit templates, and notifications across many passes by uploading a CSV file. This method is designed for legacy systems that cannot call the API directly.

Each row in the CSV targets a single pass. Passes are updated asynchronously after the file is detected on the SFTP server. Like the push update API, operations are per-pass and independent.

For the full file format, column reference, SFTP credentials, and custom mapping scripts, see Update passes with CSV files over SFTP in the Configure space.

Choosing between the two approaches

Push update API
SFTP flat file

Best for

Real-time or scheduled integrations with API access

Legacy systems with flat file exports only

Targeting

Filter conditions, see Filter and query operators

Identifier per row (explicit list)

Data updated

The change in the request body, then a connector re-fetch via push

Updates additionalData, identifiers, passType, theme, benefit template and notification; updateMetadata recomputes metadata

Setup

No extra configuration required

Optional feature — must be enabled per tenant

Progress tracking

correlationId + status endpoint, or the console

Import log in Settings → General → SFTP updates and Import:* webhook events

Track and cancel batches in the console

Open Settings → Monitoring → Wallet updates to follow every batch push update operation and cancel any that is still running. Each row is one batch: a set of per-pass update tasks triggered by a single API call or system event.

Column
What it shows

Start

When the batch was accepted by the platform.

Last activity

When the most recent per-pass task in the batch was processed.

Operation

The internal name of the component that created the batch.

Correlation

The correlationId supplied in the push-update operation, or an auto-generated value.

Passes

Total number of passes in the batch.

Completed

Number of passes that have been processed (success or failure).

Errors

Number of passes that failed during processing.

Apple

Number of pass updates pushed to Apple devices.

Google

Number of pass updates sent to Google Wallet.

Status

Running, Completed (Completed reached Passes) or Canceled.

Find a batch with correlationId

If options.correlationId is supplied in the push-update operation, that value appears in the Correlation column. If none is supplied, the platform generates one. The API response does not return it: find it in the Correlation column, or as operationData in GET /api/{tenantId}/passes/pushUpdate/status. The Operation names reflect the platform's internal architecture: use the Correlation column to identify the batches you own. Poll this page or check individual pass histories if real-time confirmation is needed.

Cancel a running operation

Use the cancel icon at the end of a Running row to stop further processing. It appears only for users allowed to stop bulk updates. Passes already processed before the cancellation are not rolled back.

Status accuracy

Status is computed from the counters only. It stays Running until Completed reaches Passes. A batch whose passes never finish stays Running: cancel it, then check the history of individual passes.

Last updated