https://api.passslot.com/v1/templates
POST https://api.passslot.com/v1/templates
{ "name": "Coupon", "passType": "pass.example.id2", "description": { "logoText": "Megatron", "foregroundColor": "#ffffff", "backgroundColor": "rgb(60, 65, 76)", "coupon": { "primaryFields": [ { "key": "offer", "label": "Any Apple Hardware", "value": "20% off" } ], "auxiliaryFields": [ { "key": "expires", "label": "EXPIRES", "value": "2 weeks" } ] } } }
{ "id": 2, "name": "Coupon", "passType": "pass.example.id2", }
HTTP Method | POST |
API Version | 1 |
Requires Authentication? | Yes |
Request Format | JSON |
Request Object | Pass Template |
Response Format | JSON |
Response Object | Short Pass Template |