Tango · Schema

Tango Account

Schema for a Tango RaaS API account, which holds a balance used to fund reward orders

Catalog ManagementDigital RewardsGift CardsIncentivesLoyaltyRewards As A Service

Properties

Name Type Description
accountIdentifier string Unique account identifier
customerIdentifier string Parent customer identifier
displayName string Human-readable account name
currencyCode string ISO 4217 currency code for the account balance
currentBalance number Current account balance
status string Account status
createdAt string
updatedAt string
View JSON Schema on GitHub

JSON Schema

tango-account-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/api-evangelist/tango/blob/main/json-schema/tango-account-schema.json",
  "title": "Tango Account",
  "description": "Schema for a Tango RaaS API account, which holds a balance used to fund reward orders",
  "type": "object",
  "properties": {
    "accountIdentifier": {
      "type": "string",
      "description": "Unique account identifier"
    },
    "customerIdentifier": {
      "type": "string",
      "description": "Parent customer identifier"
    },
    "displayName": {
      "type": "string",
      "description": "Human-readable account name"
    },
    "currencyCode": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "ISO 4217 currency code for the account balance"
    },
    "currentBalance": {
      "type": "number",
      "minimum": 0,
      "description": "Current account balance"
    },
    "status": {
      "type": "string",
      "enum": ["active", "inactive"],
      "description": "Account status"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": ["accountIdentifier", "customerIdentifier", "displayName", "currencyCode"]
}