Paytronix · JSON Structure

Server Api Guest Token Request Structure

GuestTokenRequest schema from Paytronix Server API

Type: object Properties: 6 Required: 2
RestaurantLoyaltyGift CardsOnline OrderingGuest EngagementPaymentsMessaging

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

Properties

merchantId grant_type username password scope refresh_token

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-guest-token-request-structure.json",
  "name": "GuestTokenRequest",
  "description": "GuestTokenRequest schema from Paytronix Server API",
  "type": "object",
  "properties": {
    "merchantId": {
      "type": "int32",
      "example": 1000
    },
    "grant_type": {
      "type": "string",
      "example": "password",
      "enum": [
        "password",
        "one_time_password",
        "authorization_code",
        "refresh_token",
        "http://paytronix.com/oauth/fieldset"
      ]
    },
    "username": {
      "type": "string",
      "example": "jdoe"
    },
    "password": {
      "type": "string",
      "example": "s3cret"
    },
    "scope": {
      "type": "string",
      "example": "user_read account_read"
    },
    "refresh_token": {
      "type": "string"
    }
  },
  "required": [
    "merchantId",
    "grant_type"
  ]
}