Payment Basic

Returns summarised and aggregated information about a customer gambling and other spend.

Potential Use Cases:

  • Understand gambling vs spend
  • Identify potential gambling problem

The Insights webhook is HTTPS post request and a typical example of the request body is as follows:

{
  "type": "INSIGHTS",
  "data": {
    "metadata": {
      "merchantId": "684af205b26c48042487c93c",
      "customerId": "eixyc0oxx9o0",
      "reference": "eixyc0oxx9o0",
      "citizenTransactionId": "54f97545-a987-cfa9-b2a8-f66b97",
      "merchantTradingName": "Test Merchant"
    },
    "insightGroup": {
      "id": "68d6593704a1aa70943d2bb1",
      "name": "Payment Basics",
      "insights": [
        "PAYMENT_BASICS"
      ],
      "period": [
        "MONTHLY"
      ],
      "fromDate": "2025-06-28T09:32:33.440188Z",
      "toDate": "2025-07-26T09:32:33.440206Z"
    },
    "insights": {
      "PAYMENT_BASICS": {
        "insight": "PAYMENT_BASICS",
        "fromDate": "2025-06-28T09:32:33.440188Z",
        "toDate": "2025-07-26T09:32:33.440206Z",
        "accounts": [
          {
            "accountId": "9800b595-329f-49ff-8519-b6d5622f211f",
            "accountType": "CURRENT",
            "currency": "GBP",
            "closingBalance": 350,
            "lastUpdatedAt": "2025-09-26T09:32:33.852805Z",
            "consents": [
              {
                "consentId": "31d99e03-2ae2-40db-a39b-50b2fb650581",
                "status": "ACTIVE",
                "createdAt": "2025-07-26T09:32:33.126Z",
                "expiresAt": "2025-10-25T10:32:33.125Z"
              }
            ],
            "paymentBasics": {
              "categorisations": {
                "OTHER": {
                  "PAYOUT": {
                    "paymentCount": 15,
                    "amount": 200
                  },
                  "PAYIN": {
                    "paymentCount": 5,
                    "amount": 300
                  }
                },
                "GAMBLING": {
                  "PAYOUT": {
                    "paymentCount": 6,
                    "amount": 150
                  },
                  "PAYIN": {
                    "paymentCount": 2,
                    "amount": 40
                  }
                }
              },
              "period": {
                "MONTHLY": [
                  {
                    "fromDate": "2025-06-28T09:32:33.440188Z",
                    "toDate": "2025-06-30T23:59:59Z",
                    "description": "2025-06",
                    "data": {
                      "OTHER": {
                        "PAYOUT": {
                          "paymentCount": 10,
                          "amount": 170
                        },
                        "PAYIN": {
                          "paymentCount": 3,
                          "amount": 200
                        }
                      },
                      "GAMBLING": {
                        "PAYOUT": {
                          "paymentCount": 2,
                          "amount": 50
                        },
                        "PAYIN": {
                          "paymentCount": 1,
                          "amount": 20
                        }
                      }
                    }
                  },
                  {
                    "fromDate": "2025-07-01T00:00:00Z",
                    "toDate": "2025-07-31T23:59:59Z",
                    "description": "2025-07",
                    "data": {
                      "OTHER": {
                        "PAYOUT": {
                          "paymentCount": 5,
                          "amount": 30
                        },
                        "PAYIN": {
                          "paymentCount": 2,
                          "amount": 100
                        }
                      },
                      "GAMBLING": {
                        "PAYOUT": {
                          "paymentCount": 4,
                          "amount": 100
                        },
                        "PAYIN": {
                          "paymentCount": 1,
                          "amount": 20
                        }
                      }
                    }
                  }                  
                ]
              }
            }
          }
        ]
      }
    }
  }
}

Payment Basics Parameters

data.insights.[PAYMENT_BASICS]

FieldTypeDescription
insightstringAlways PAYMENT_BASICS
fromDatestringPeriod start date (ISO 8601).
toDatestringPeriod end date (ISO 8601).
accountsarray[Account]List of account objects. Payment basic insights are calculated per account basis

Account

FieldTypeDescription
accountIdstringUnique account ID.
accountTypestringType of account (e.g., "CURRENT").
currencystring3-letter ISO currency code.
closingBalancenumberAccount closing balance.
lastUpdatedAtstringISO 8601 timestamp of last update.
consentsarray[Consent]List of consent objects for this account.
paymentBasicsPayment BasicsCore payment categorization and periodic breakdowns.

Consent

FieldTypeDescription
consentIdstringUnique consent identifier.
statusstringStatus of the consent ("ACTIVE", etc.).
createdAtstringISO 8601 creation timestamp.
expiresAtstringISO 8601 expiry timestamp.

Payment Basics

FieldTypeDescription
categorisationsPayment Basics CategoriesSummary of payment basics over each category. (see Payment basics categories)
periodPayment Basics PeriodPayment basics consolidated over a period

Payment Basics Period

FieldTypeDescription
<Period>array[Payment Basics Period Data]Payment basics broken down by period. Period can be MONTHLY, WEEKLY, DAILY

Payment Basics Period Data

FieldTypeDescription
fromDatestringPeriod start date (ISO 8601).
toDatestringPeriod start date (ISO 8601).
descriptionstringDescription of the period
dataPayment Basics CategoriesPayment basics categories

Payment Basics Categories

FieldTypeDescription
OTHERPayment Basics PaymentsPayment basic for the category OTHER
GAMBLINGPayment Basics PaymentsPayment basic payments for the category GAMBLING

Payment Basics Payments

FieldTypeDescription
PAYINPayment DataConsolidated credits
PAYOUTPayment DataConsolidated debits

Payment Data

FieldTypeDescription
paymentCountnumberNumber of payments consolidated
amountnumberConsolidated payment amount

Notes

  • All date/time strings must be formatted as ISO 8601 (UTC).
  • Category and period objects allow for extensibility; new keys may appear as more insight types are added.
  • Amounts are always denominated in the provided currency.