updateStatusOnPass
Update the status on a pass with a barcode.
passId
and amountToSubtract
mutation UpdateStatusOnPass($passId: String!, $amountToSubtract: Int) {
updateStatusOnPassWithDynamicBarcode(passId: $passId, amountToSubtract: $amountToSubtract) {
id
}
}
{
"passId": "54bc9bda-8a6d-41f9-ae31-00ee589f0f94",
"amountToSubtract": 1000
}
<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."
"amountToSubtract parameter is missing."
“Not enough amount left on the gift card.”