---
title: "Get usage stats of non-prototype payment links for a gateway account"
method: GET
path: "/v1/api/stats/products"
tags: ["Products"]
---

# Get usage stats of non-prototype payment links for a gateway account

`GET /v1/api/stats/products`

## Query parameters

- `gatewayAccountId` integer
- `used` boolean

## Response `200`

OK

- ProductUsageStat[]
  - `last_payment_date` string, date-time
  - `payment_count` integer
  - `product` Product
    - `_links` Link[]
      - `href` string
      - `method` string
      - `rel` 'self' | 'pay' | 'next' | 'friendly'
    - `amount_hint` string
    - `date_created` string, date-time
    - `description` string
    - `external_id` string
    - `gateway_account_id` integer
    - `language` 'en' | 'cy'
    - `metadata` object
    - `name` string
    - `pay_api_token` string
    - `price` integer
    - `product_name_path` string
    - `reference_enabled` boolean
    - `reference_hint` string
    - `reference_label` string
    - `require_captcha` boolean
    - `return_url` string
    - `service_name_path` string
    - `status` 'ACTIVE' | 'INACTIVE'
    - `type` 'DEMO' | 'PROTOTYPE' | 'ADHOC' | 'AGENT_INITIATED_MOTO'

---

[API](https://skmtc.net/government-digital-service/apis/products-api.md) · [All operations](https://skmtc.net/government-digital-service/apis/products-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/government-digital-service/products-api/revisions/521f70c3f2d9/schema)
