---
title: "CodeCountsByPidAndCpid (Brevo)"
description: "Code Counts by Programme ID and Code Pool ID"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/sendinblue/Brevo.Reward.CodeCountsByPidAndCpid
original: https://documentation.invantive.eu/en/datamodels/sendinblue/Brevo.Reward.CodeCountsByPidAndCpid
updated: 2026-11-01T16:23:13Z
license: https://documentation.invantive.eu/en/
---

# CodeCountsByPidAndCpid: Brevo Code Counts by Programme ID and Code Pool ID

`read only` `REST`

- Catalog: `Brevo`
- Schema: `Reward`
- Label: Code Counts by Programme ID and Code Pool ID

Get code count
Get code count

Can only retrieve data.

## Summary

Get code count

## API Source

- Endpoint: `/loyalty/offer/programs/{pid}/code-pools/{cpid}/codes-count`
- Operation: `get /loyalty/offer/programs/{pid}/code-pools/{cpid}/codes-count`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Average access latency (ms) | 126 |
| Full scan rows per minute | 414,000 |
| Point query rows per minute | 476 |
| Write rows per minute | 496 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `cpid` | `` | [x] |  | Code Pool ID |
| `pid` | `` | [x] |  | Loyalty Program ID |

## Table Columns

The columns of the table `CodeCountsByPidAndCpid` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `count` | `int64` | Count | [ ] | filters on the platform, writable, `count` | Number of codes |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Brevo](/en/release-notes/drivers/brevo)

