Redeem an existing Pass with the given Template.
curl -i -X PUT https://api.passdock.com/api/v1/templates/106/passes/203/redeem?redeemed=true&api_token=75778a65dfdae310a107d2ef0bbd3780
curl -i -X PUT https://api.passdock.com/api/v1/templates/106/passes/203/redeem?redeemed=false&api_token=75778a65dfdae310a107d2ef0bbd3780
{ "family_id": 217, "id": 324, "web_token": "5d16ecabb1d961a3aecd9eeaa2ddec9f45d43875", "download": "https://api.passdock.com/passes/217/5d16ecabb1d961a3aecd9eeaa2ddec9f45d43875.pkpass" }
Param name | Description |
---|---|
id required |
Pass ID Value: Must be Fixnum |
template_id required |
Template ID Value: Must be Fixnum |
api_token required |
Your Passdock API key Value: Must be String |
redeemed required |
If the Pass should be reedeemed or unredeemed Value: Must be one of: true, false. |
debug optional |
You get in response a JSON with the updated object. Value: Must be one of: true, false. |
errors optional |
If an error occurs you get the messages and not only the code. Value: Must be one of: true, false. |