Aggregations

getAggregationsId

GET
/aggregations/{id}

Query an Aggregation resource that uses a search to query for records on the given resource and applies the desired calculations (count, sum, min, and/or max) to the field in question.

Authorization

APIKEY<token>

In: header

Path Parameters

id*string

The ID of this resource or The Aggregation ID.

Query Parameters

embed?string

Use the embed query parameter to include full object(s) of related resource(s) directly within the API response. This allows retrieval of associated resources in a single request, reducing the need for multiple round-trips. Format: GET https://{server}.payrix.com/{endpoint}?embed={relatedObject}

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

searchFilter?string

Set this header to filter or sort the list of resources that the method returns. For example, to find all resources that have a property of 'public' set to '1', set this header to 'public[equals]=1'. You can use the operators 'equals', 'greater', 'less', 'like', 'in' and 'sort'. To sort the resources, use the keywords 'asc' (for an ascending sort) or 'desc' (for a descending sort). You may also use explicit 'and/or' querying by passing arrays of or and arrays of and parameters. For example, to find all resources that have a property of 'public' set to '1' or a property of 'active' set to '0', set this header to 'or[][public][equals]=1&or[][active][equals]=0'.

Response Body

application/json

application/json

curl -X GET "https://example.com/aggregations/t1_agg_67b339d00940f0d12b000b7"
{  "response": {    "data": [      {        "id": "t1_agg_67b339d00940f0d12b000b7",        "created": "2025-02-17 08:30:00.5718",        "modified": "2025-02-17 08:30:00.5718",        "creator": "t1_log_6279a44f109090941bbc4c0",        "modifier": "t1_log_6279a44f109090941bbc4c0",        "login": "t1_log_67b339d2dc878984b96b225",        "name": "Default merchantTxnFailedAll",        "description": "Automatically created aggregation",        "resource": 18,        "search": "status[equals]=2",        "totals": "sum[0]=total&count[0]=id&groups[0]=merchant&groups[1]=type&groups[2][payment][0]=method",        "status": "ready",        "schedule": "days",        "scheduleFactor": 1,        "start": 202502180000,        "inactive": 0,        "frozen": 0,        "entity": "t1_ent_676057654c1b7452e4884f0",        "forlogin": "t1_log_67b339d2dc878984b96b225",        "org": "t1_org_67b736ad7d05922343246cf",        "team": "teamBoarding",        "division": "t1_div_67b51635da21f7399ce2af1",        "partition": "t1_ptn_666834d4d504f11234578f5",        "type": "merchantTxnFailedAll",        "level": "merchant",        "default": 1,        "degrouping": "groups[0]=merchant&groups[1][payment][0]=method"      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}