Adobe Campaign Classic
Update Apple Wallet and Google Wallet passes managed in The Wallet Crew from Adobe Campaign Classic workflows by calling The Wallet Crew API.
Adobe Campaign Classic workflows can trigger The Wallet Crew API calls. This enables automated pass updates during a campaign. Typical updates include adding an offer, updating loyalty data, or writing a campaign message into additionalData.
Prerequisites
Access to an API key with permission to update passes is required. A stable identifier must also exist in Adobe Campaign, and match the identifier used to find passes in The Wallet Crew (for example, a customer ID).
API request overview
The Wallet Crew pass update API is called with PATCH. The example below filters passes with an external identifier (id.<system>.<name>, here id.crm.customerId) and updates additionalData. The query parameter is the identifier key prefixed with id.: the key itself (<system>.<name>) is the one configured on the tenant. To send a wallet notification, use the notification call (PUT) described in Bloomreach activities.
The API key needs the tenant.pass:write permission. The filter is either id=<passId> alone or one or more external identifiers prefixed with id.; combining id with other identifiers is refused (400). Responses: 202 (update queued), 200 (applied within the request when options.bypassQueue is true), 400, 404 (no pass matches), 409 (synchronous update only: the pass changed concurrently, retry).
curl -X 'PATCH' \
'https://<host>/api/<tenantId>/passes?id.crm.customerId=00100000207298' \
-H 'accept: */*' \
-H 'X-API-KEY: <your API key>' \
-H 'Content-Type: application/json' \
-d '{
"additionalData": {
"adobe_message": "Exclusive offer: come visit us."
}
}'Adobe Campaign workflow design
The safest setup keeps selection and execution separate. Selection defines who should be updated. Execution defines what should be written to the pass.
Implementation example (JavaScript activity)
The example uses the documented Adobe Campaign Classic JavaScript APIs: xtk.queryDef.create with an E4X query to read the population (SOAP methods in JavaScript), and HttpClientRequest to call The Wallet Crew API (HttpClientRequest). The outbound URL may need to be allowed in the instance configuration.
FAQ
Last updated

