Paytronix · JSON Structure

Server Api Compute Rewards Request Structure

ComputeRewardsRequest schema from Paytronix Server API

Type: object Properties: 7 Required: 4
RestaurantLoyaltyGift CardsOnline OrderingGuest EngagementPaymentsMessaging

ComputeRewardsRequest is a JSON Structure definition published by Paytronix, describing 7 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

merchantId storeCode check cardInfo terminal operator rewardSelectionMode

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/paytronix/refs/heads/main/json-structure/server-api-compute-rewards-request-structure.json",
  "name": "ComputeRewardsRequest",
  "description": "ComputeRewardsRequest schema from Paytronix Server API",
  "type": "object",
  "properties": {
    "merchantId": {
      "type": "int32",
      "example": 1000
    },
    "storeCode": {
      "type": "string",
      "example": "1"
    },
    "check": {
      "$ref": "#/components/schemas/Check"
    },
    "cardInfo": {
      "$ref": "#/components/schemas/CardInfo"
    },
    "terminal": {
      "type": "string"
    },
    "operator": {
      "type": "string"
    },
    "rewardSelectionMode": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "example": "AUTOMATIC"
        }
      }
    }
  },
  "required": [
    "merchantId",
    "storeCode",
    "check",
    "cardInfo"
  ]
}