Mutation updateStatusOnPassWithDynamicBarcode

Update the status on a pass with a dynamic barcode.

Parameters: dynamicBarcodeData and amountToSubtract

mutation UpdateStatusOnPassWithDynamicBarcode($dynamicBarcodeData: DynamicBarcodeDataInput!, $amountToSubtract: Int) {
  updateStatusOnPassWithDynamicBarcode(dynamicBarcodeData: $dynamicBarcodeData, amountToSubtract: $amountToSubtract) {
    id
  }
}
{
	"dynamicBarcodeData": 
	{
			"uuid": "de35b7e5-056c-47d1-ad7c-ab16df915230", 
			"date": "2021-08-29T00:00:00Z"
	}, 
	"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>


Error message

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.”