Payment Basic Global

Returns a pan-operator level, summarised and aggregated information about a customer gambling and other spend.

Potential Use Cases:

  • Detect gambling across multiple operators
  • 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 Global",
      "insights": [
        "PAYMENT_BASICS_GLOBAL"
      ],
      "period": [
        "MONTHLY"
      ],
      "fromDate": "2025-06-28T09:32:33.440188Z",
      "toDate": "2025-07-26T09:32:33.440206Z"
    },
    "insights": {
      "PAYMENT_BASICS_GLOBAL": {
        "insight": "PAYMENT_BASICS_GLOBAL",
        "fromDate": "2025-06-28T09:32:33.440188Z",
        "toDate": "2025-07-26T09:32:33.440206Z",
        "accounts": [
          {
            "accountId": "0e9ffaca-2f19-4858-aa67-32a4ccda5acd",
            "accountType": "CURRENT",
            "currency": "GBP",
            "closingBalance": 350,
            "lastUpdatedAt": "2025-07-26T09:32:33.852652Z",
            "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-OTHERS": {
                  "PAYOUT": {
                    "paymentCount": 3,
                    "amount": 100
                  },
                  "PAYIN": {
                    "paymentCount": 1,
                    "amount": 30
                  }
                },
                "GAMBLING-MERCHANT": {
                  "PAYOUT": {
                    "paymentCount": 3,
                    "amount": 50
                  },
                  "PAYIN": {
                    "paymentCount": 1,
                    "amount": 10
                  }
                }
              },
              "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-OTHERS": {
                        "PAYOUT": {
                          "paymentCount": 1,
                          "amount": 20
                        },
                        "PAYIN": {
                          "paymentCount": 0,
                          "amount": 0
                        }
                      },
                      "GAMBLING-MERCHANT": {
                        "PAYOUT": {
                          "paymentCount": 1,
                          "amount": 20
                        },
                        "PAYIN": {
                          "paymentCount": 0,
                          "amount": 0
                        }
                      }
                    }
                  },
                  {
                    "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-OTHERS": {
                        "PAYOUT": {
                          "paymentCount": 2,
                          "amount": 80
                        },
                        "PAYIN": {
                          "paymentCount": 1,
                          "amount": 30
                        }
                      },
                      "GAMBLING-MERCHANT": {
                        "PAYOUT": {
                          "paymentCount":2,
                          "amount": 30
                        },
                        "PAYIN": {
                          "paymentCount": 1,
                          "amount": 10
                        }
                      }
                    }
                  }
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}

Payment Basics Global Parameters

data.insights.[PAYMENT_BASICS_GLOBAL]

FieldTypeDescription
insightstringAlways PAYMENT_BASICS_GLOBAL
fromDatestringISO 8601 period start date.
toDatestringISO 8601 period end date.
accountsarray[Account]List of account objects. Payment basic insights are calculated per account basis.

Account

FieldTypeDescription
accountIdstringUnique current account identifier.
accountTypestringType of account, e.g. "CURRENT".
currencystring3-letter ISO code, e.g. "GBP".
closingBalancenumberClosing account balance.
lastUpdatedAtstringISO timestamp for last update.
consentsarray[Consent]Array of consent objects.
paymentBasicsPayment Basics GlobalPayment basics breakdown (see below).

Consent

FieldTypeDescription
consentIdstringConsent identifier.
statusstringConsent status (e.g., "ACTIVE").
createdAtstringISO creation timestamp.
expiresAtstringISO expiry timestamp.

Payment Basics Global

FieldTypeDescription
categorisationsPayment Basics CategoriesSummary of payment Basics over each category.
periodPayment Basics Global PeriodPayment Basics consolidated over a period

Payment Basics Global Period

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

Payment Basics Global Period Data

FieldTypeDescription
fromDatestringMonth period start date.
toDatestringMonth period end date.
descriptionstringMonth descriptor (e.g., "2025-07").
dataPayment Basic CategoriesPayment Basic Categories

Payment Basic Categories

FieldTypeDescription
OTHERPayment Basics PaymentsPayment basic for the category OTHER
GAMBLING-OTHERSPayment Basics PaymentsPayment basic for the category GAMBLING-OTHERS
GAMBLING-MERCHANTPayment Basics PaymentsPayment basic for the category GAMBLING-MERCHANT

Payment Basic Payments

FieldTypeDescription
PAYINPayment DataConsolidated credits
PAYOUTPayment DataConsolidated debits

Payment Data

FieldTypeDescription
paymentCountnumberNumber of payments consolidated
amountnumberConsolidated payment amount

Notes:

  • Category names (e.g., "GAMBLING-OTHERS") are dynamically defined and may expand.
  • All monetary values use the specified currency code.
  • All times/dates should comply with ISO 8601 UTC format.
  • For any added categories in the future, structure remains consistent.