v1
latestOpenAPI 3.0.02026-07-267581167.5 KBCreate the Apple Wallet template
Create the Apple Wallet (iOS) pass template for a wallet campaign. Field semantics follow Apple Wallet Passes (https://developer.apple.com/documentation/WalletPasses). Many text fields accept Liquid personalization tags that are replaced per recipient.
Path parameters
The token is the SmartLink token (wallet_id) for the campaign.<br><div style="color:#dd1e2e; background:url(https://d2xs7zaan7w9gl.cloudfront.net/data/pages/64014/widgets/48027d01-e827-45e0-b96d-227c1099eedc/image/1680214872.png?icon-24x24-warning.png) no-repeat 10px center; background-color:#FCEAEC; padding:10px; font-size:13px;"><div style="padding-left:35px"><b>Important:</b> If you are entering a real wallet token, please note that using the <b>"Try It"</b> feature on the righthand console will send an actual API call to our system. This may result in a wallet template being created.</div></div>
Headers
Request body
Example request
{
"passbook_template": {
"organization_name": "Example Co",
"pass_description": "Spring Sale offer",
"logo_text": "Spring Sale",
"colors": {
"background": "#ff0000",
"foreground": "#ffffff",
"label": "#cccccc"
},
"barcode": {
"type": "PKBarcodeFormatQR",
"code": "{{ token }}",
"description": "Scan at checkout"
},
"images": {
"logo": {
"url": "https://cdn.example.com/logo.png"
},
"icon": {
"url": "https://cdn.example.com/icon.png"
}
},
"fields": {
"primary": [
{
"label": "Discount",
"value": "20% off"
}
]
}
}
}Response
The Apple Wallet template was created.