POST Create Mobile Pay Token

​

Creates a scan-to-pay token for a store. Show the returned hash to the customer as a QR code for the terminal to scan.

The token records the card the customer picked and, optionally, a tip and one loyalty reward, offer or promo code. It lives for five minutes and can be redeemed once.

Creating a token immediately expires any earlier pending token for this customer, so there is never more than one live at a time.

The brand must have scan to pay enabled, and the chosen card's payment method must be enabled at the venue.

Path Parameters

  • Venue ID

Headers

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

  • Application key for specific client app

  • Content-Type header

  • Version of the API to be used

  • Authorization header

  • Unique request identifier

Body

required
application/json
  • The stored payment method to charge. Must belong to the signed-in customer.

  • Required for offers (3) and promo codes (5). Must include name.

  • 2 reward, 3 offer, 5 promo code

  • Required whenever punchh_reward_id is sent.

  • Required whenever discount_type_id is sent.

  • Minor currency units when tip_type is 1, percent when 2.

  • 1 fixed amount, 2 percentage

Responses

  • application/json
  • Scan to pay is not enabled for the brand, or the card's payment method is not enabled at this venue.

  • Missing or invalid customer token.

  • The brand is not on the NMG product structure.

  • Unknown venue.

  • Validation failed, or the card does not belong to this customer.

Request Example for post/venues/{venue_id}/mobile-pay-tokens
curl 'https://api-public-demo.menu.app/api/venues/{venue_id}/mobile-pay-tokens' \
  --request POST \
  --header 'Accept: application/json' \
  --header 'Application: application-key' \
  --header 'Content-Type: application/json' \
  --header 'API-VERSION: ' \
  --header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
  --data '{
  "stored_payment_method_id": 1234,
  "tip_amount": 250,
  "tip_type": 1
}'
{
  "status": "OK",
  "code": 200,
  "data": {
    "mobile_pay_token": {
      "id": 501,
      "hash": "7c9e6679f1e4d0b3a2c5e8f1a0b9d4c3",
      "venue_id": 12,
      "status": "pending",
      "expires_at": "2026-09-19T12:05:00.000000Z",
      "tip_amount": 250,
      "tip_type": 1,
      "discount_type_id": null,
      "discount_snapshot": null
    }
  }
}