Skip to main content

Transaction approvals with GlobalPass ID mobile

Make a HTTP POST request to: /api/v2/screenings/{screeningToken}/transactions

Request headers:

Content-Type: application/json

Request body:

PropertyDescription
transactionIdGenerated uuid to ensure transaction uniqueness and correlation with webhooks
payloadJSON payload to pass-through to mobile application (optional)
Example request
curl -X 'POST' 'https://screenings-api-test.globalpass.ch/api/v2/screenings/2b395705-436b-462e-b655-bbf0b8561382/transactions' -H 'application/json' -H 'Authorization: Bearer {your_access_token}'-H 'Content-Type: application/json' -d '{ "transactionId": "7b5b68cf-28d5-4dd9-adf5-a6a079e25045", "payload": {} }'

User will receive push notification to accept or reject the transaction after it has been created.

Webhook will be sent then user accepts or rejects the transaction.

Example webhook:

Example webhook
{
"type": "transaction.status.change",
"data": {
"screeningToken": "2b395705-436b-462e-b655-bbf0b8561382",
"transactionId": "7b5b68cf-28d5-4dd9-adf5-a6a079e25045",
"status": "Approved"
},
"secret": "secret"
}
note

Created transactions expire in 5 minutes. In that case, webhook will be sent with status Expired.