updateStatusOnPassWithDynamicBarcode
dynamicBarcodeData
mutation UpdateStatusOnPassWithDynamicBarcode($dynamicBarcodeData: DynamicBarcodeDataInput!) {
updateStatusOnPassWithDynamicBarcode(dynamicBarcodeData: $dynamicBarcodeData) {
id
}
}
The data passed into the variable $dynamicBarcodeData will look like the following:
{
"dynamicBarcodeData": {
"code": "cMDiQkgd7tXD6T53",
"date": "2021-08-29T00:00:00Z"
}
}
Please note that to get the code you need to parse the JSON body of the scanned data.
<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."