Apple Wallet

Our API allows you to provide real-time order tracking updates directly into your customers’ Apple Wallet.

Overview

The Apple Wallet Order Tracking integration is designed to work via direct API calls after an order is placed. When the correct identifiers and tracking data are sent, the Apple Wallet pass is automatically created and updated. This implementation provides a flexible setup for retailers that require API-first solutions (that is: headless integrations) for order tracking and customer notifications.

Apple Wallet Order Tracking Integration

For more information on the requirements for configuring this integration, see our Apple Wallet Order Tracking documentation.

The following steps outline the process for the Apple Wallet Order Tracking integration.

1

Order completed

  • Customer completes checkout and pays.

During Apple Pay completion, your shop system must call the apple-wallet/order?orderNo=<orderNo> endpoint to retrieve relevant data about the wallet pass.

2

Send order data

  • Retailer sends the required order metadata to the /apple-wallet/order endpoint.

3

Pass issued

  • parcelLab creates or updates the Apple Wallet pass tied to the order.

4

Customer access

  • The customer is notified via Apple Wallet and receives push updates as the order progresses.

Fetch Apple Wallet Order Data

Details of how the apple-wallet/order?orderNo=<orderNo> endpoint can be used to retrieve data with information for Apple Wallet order tracking are described below.

GET Fetch Apple Wallet Order Data

You can retrieve all relevant data to extend an Apple Wallet payment response with information for Apple Wallet order tracking with the apple-wallet/order?orderNo=<orderNo> endpoint.

API Details

GET https://api.parcellab.com/apple-wallet/order?orderNo=<orderNo>

Name
Value

user

parcelLab account ID

token

parcelLab API token with read access

content_type

‘application/json’

Responses

  • 200 - accepted

{
    "orderTypeIdentifier": "<your specified id>",
    "orderIdentifier": "<account id:order number>",
    "webServiceURL": "https://api.parcellab.com/apple-wallet/status",
    "authenticationToken": "..."
}
  • 400 - invalid request

{
    "message": "Parameter &orderNo= is required",
    "code": "request.orderNo.invalid",
    "type": "invalid_request"
}

Create or Update Apple Wallet Pass

Details of how the apple-wallet/order endpoint can be used to create or update an Apple Wallet pass for a given order are described below.

POST Create or Update an Apple Wallet Pass

You can create or update a digital pass with the apple-wallet/order endpoint. Each call results in a new or updated pass being issued to the customer’s Apple Wallet.

The details of the Create or Update Apple Wallet Pass API are described in the following section.

API Details

POST https://api.parcellab.com/apple-wallet/order

Authentication

Authentication is handled via a signed token generated using your Apple private key.

Request Body

Name
Type
Description

orderTypeIdentifier

string

Unique identifier for your order pass (for example: order.com.yourbrand.store).

orderIdentifier

string

Unique identifier for the order (must match tracking events).

webServiceUrl

string

Fixed endpoint: https://api.parcellab.com/apple-wallet/order.

authenticationToken

string

Signed JWT token using your Apple private key.

An example payload is displayed below to show the format for creating or updating an Apple Wallet pass for an order.

{
"orderTypeIdentifier": "order.com.yourbrand.store",
"orderIdentifier": "123456",
"webServiceURL": https://api.parcellab.com/apple-wallet/order,
"authenticationToken": "<SIGNED_AUTH_TOKEN>"
}

Responses

  • 200 - accepted

Last updated

Was this helpful?