APG PayAPG Paydocs

Reference data

Get rule area

GET/rule-areas/{ruleAreaId}
Request
GEThttps://api.tst.au.apgpay.dev/rule-areas/{ruleAreaId}
curl -X GET https://api.tst.au.apgpay.dev/rule-areas/{ruleAreaId} \
  -H "Authorization: Bearer $API_KEY"

Return one rule area by its domain, with its templates, fields, actions and list kinds.

Permissions

Required permission
rules:query

Requires the `query` action on `rules` for the supplied runtime context

Path parameters

ruleAreaIdstring
required

Responses

The response is a tagged shape: type is always "RareaViewAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.

Discriminated by type
type = "RareaViewAttributes"
ruleAreaIdstringrequired

The area's domain, which names it and is the domain of its policies and named lists.

listKindsarray of string

The kinds of entry a named list of this area may hold.

Example
{
  "type": "RareaViewAttributes",
  "ruleAreaId": "string",
  "templates": [
    {
      "type": "RareaTemplateAttributes",
      "templateId": "string",
      "templateVersion": 1250,
      "name": "Ada Lovelace",
      "description": "string",
      "parameters": [
        {
          "type": "RareaParameterAttributes",
          "parameterId": "string",
          "label": "string",
          "valueType": "string",
          "required": true,
          "default": {
            "type": "RpolValueAmount",
            "amount": {
              "type": "IsoCurrencyAmount",
              "minorCurrencyUnits": 1250,
              "currency": "AUD"
            }
          },
          "bounds": [
            {
              "type": "RareaBoundAtLeast",
              "min": 12.5
            }
          ],
          "listKind": "string"
        }
      ],
      "presets": [
        {
          "type": "RareaPresetAttributes",
          "name": "Ada Lovelace",
          "arguments": [
            {
              "type": "RpolArgumentAttributes",
              "parameterId": "string",
              "value": {
                "type": "RpolValueAmount",
                "amount": {
                  "type": "IsoCurrencyAmount",
                  "minorCurrencyUnits": 1250,
                  "currency": "AUD"
                }
              }
            }
          ]
        }
      ],
      "actions": [
        "string"
      ]
    }
  ],
  "fields": [
    {
      "type": "RareaFieldAttributes",
      "name": "Ada Lovelace",
      "valueType": "string",
      "operators": [
        {
          "type": "RareaOperatorAttributes",
          "name": "Ada Lovelace",
          "symbol": "string",
          "description": "string"
        }
      ],
      "sensitivity": "Plain"
    }
  ],
  "actions": [
    {
      "type": "RareaActionAttributes",
      "name": "Ada Lovelace",
      "label": "string",
      "parameters": [
        {
          "type": "RareaActionParameterAttributes",
          "parameterId": "string",
          "label": "string",
          "valueType": "string",
          "options": [
            "string"
          ],
          "required": true,
          "default": {
            "type": "RpolValueAmount",
            "amount": {
              "type": "IsoCurrencyAmount",
              "minorCurrencyUnits": 1250,
              "currency": "AUD"
            }
          }
        }
      ]
    }
  ],
  "listKinds": [
    "string"
  ]
}

Error responses