updateStatusOnPass
Update the status on a pass with a dynamic barcode.
passId
and stamps
Use stamps
to specify the number of punches or tickets you want to remove from the pass. passId is inside the barcode on the pass.
mutation UpdateStatusOnPass($passId: String!, $stamps: Int) {
updateStatusOnPass(
passId: $passId, stamps: $stamps
) {
id
}
}
{
"passId": "54bc9bda-8a6d-41f9-ae31-00ee589f0f94",
"stamps": 5
}
<aside> 💡 You can use the https://api.passi.is/playground to test the mutation and see the docs and schema for updateStatusOnPassWithDynamicBarcode.
</aside>
If there is an error with your request or the pass, these are available error messages:
"Pass is expired."
"Pass is voided."
“Invalid barcode. Please try to refresh the pass.”
"Expired barcode. Please refresh the pass."
"Stamps parameter is missing."
"Not enough stamps left."