https://api.passslot.com/v1/templates
POST https://api.passslot.com/v1/templates
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | { "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" } ] } } } |
1 2 3 4 5 | { "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 |