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

  • Venue ID

Headers

  • Type of content accepted by the API (application/json in most cases)

  • Application key for specific client app

  • Version of the API to be used

  • Authorization header

  • Unique request identifier

Responses

  • application/json
  • Missing or invalid customer token.

  • The brand is not on the NMG product structure.

  • 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
}