DELETE Revoke Mobile Pay Token
Cancels the customer's pending token — used when they close the QR screen without paying.
It is safe to call when there is nothing to cancel. Note that this expires every pending token the customer has, not only the one at this venue; in practice there is only ever one, since creating a token expires the previous one.
Path Parameters
- Type: stringvenue
_id requiredVenue ID
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Responses
- application/json
- 401
Missing or invalid customer token.
- 403
The brand is not on the NMG product structure.
- 404
Unknown venue.
Request Example for delete/venues/{venue_id}/mobile-pay-tokens/current
curl 'https://api-public-demo.menu.app/api/venues/{venue_id}/mobile-pay-tokens/current' \
--request DELETE \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937'
{
"status": "OK",
"code": 200
}