> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.brevo.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.brevo.com/_mcp/server.

# Get Subscription Data

GET https://api.brevo.com/v3/loyalty/config/programs/{pid}/account-info

Get Information of balances, tiers, rewards and subscription members for a subscription

Reference: https://developers.brevo.com/reference/get-parameter-subscription-info

## Authentication

- `api-key` header (required) — The API key should be passed in the request headers as `api-key` for authentication.

## Request

### Path parameters

- `pid` (string, required) — Loyalty Program ID. A unique identifier for the loyalty program.

### Query parameters

- `contactId` (string, optional) — The contact ID to filter by.
- `params` (string, optional) — A list of filter parameters for querying the subscription info.
- `loyaltySubscriptionId` (string, optional) — The loyalty subscription ID to filter by.
- `includeInternal` (boolean, optional) — Include balances tied to internal definitions.

## Response

### 200

Successfully retrieved subscription info.

- `balance` (object, optional) — Balance details for the subscription.
  - `balances` (list of object, optional) — List of balance details associated with the contact.
    - `balanceDefinitionId` (string, optional) — Unique identifier for the balance definition).
    - `balanceDefinitionName` (string, optional) — Name of the balance definition.
    - `value` (double, optional) — The amount of the balance.
  - `contactId` (integer, optional) — Unique identifier of the contact.
  - `loyaltyProgramId` (string, optional) — Unique identifier of the loyalty program.
- `loyaltyProgramName` (string, optional) — Name of the loyalty program.
- `members` (list of object, optional) — List of members associated with the subscription.
  - `createdAt` (string, optional) — Timestamp when the member was created.
  - `memberContactId` (integer, optional) — Unique identifier of the member.
  - `updatedAt` (string, optional) — Timestamp when the member was last updated.
- `membership` (object, optional) — Membership details of the subscription. Returned when the subscription could be resolved from the provided `contactId` or `loyaltySubscriptionId`.
  - `createdAt` (datetime, optional) — Timestamp when the subscription was created.
  - `loyaltySubscriptionId` (string, optional) — Unique identifier of the loyalty subscription.
  - `updatedAt` (datetime, optional) — Timestamp when the subscription was last updated.
- `reward` (list of object, optional) — List of rewards associated with the subscription.
  - `code` (string, optional) — Reward code assigned to the contact.
  - `contactId` (integer, optional) — Unique identifier of the contact.
  - `createdAt` (string, optional) — Timestamp when the reward was created.
  - `expirationDate` (string, optional) — Expiration date of the reward.
  - `id` (string, optional) — Unique identifier of the reward.
  - `loyaltyProgramId` (string, optional) — Unique identifier of the loyalty program.
  - `meta` (map from string to any, optional) — Additional metadata related to the reward.
  - `publicDescription` (string, optional) — Customer-facing description of the reward, as configured on the reward definition.
  - `rewardId` (string, optional) — Unique identifier of the reward definition.
  - `rewardName` (string, optional) — Customer-facing name of the reward. Falls back to the internal reward name when no public name is set.
  - `unit` (enum, optional) — Unit the reward's value is expressed in — one of the currency codes listed below, or PERCENT. Omitted when the reward has no unit (e.g. free-product rewards).
    - Allowed values: `PERCENT`, `EUR`, `USD`, `MXN`, `GBP`, `INR`, `CAD`, `SGD`, `RON`, `JPY`, `MYR`, `CLP`, `PEN`, `MAD`, `AUD`, `CHF`, `BRL`
  - `updatedAt` (datetime, optional) — Timestamp when the reward was last updated.
  - `validFrom` (datetime, optional) — Date from which the voucher becomes valid.
  - `value` (double, optional) — The value recorded when this reward was attributed to the contact — a snapshot, not necessarily the reward's current configured value. Omitted when not set.
- `tier` (list of object, optional) — List of tier assignments for the subscription.
  - `contactId` (integer, optional) — Unique identifier of the contact.
  - `createdAt` (string, optional) — Timestamp when the tier was assigned.
  - `groupId` (string, optional) — Unique identifier of the group associated with the tier.
  - `groupName` (string, optional) — Name of the group associated with the tier.
  - `loyaltyProgramId` (string, optional) — Unique identifier of the loyalty program.
  - `meta` (map from string to any, optional) — Additional metadata related to the tier.
  - `tierId` (string, optional) — Unique identifier of the tier.
  - `tierName` (string, optional) — Name of the tier.
  - `updatedAt` (string, optional) — Timestamp when the tier was last updated

## Errors

### 400 Bad Request Error

Either `contactId` or `loyaltySubscriptionId` is invalid.

- `message` (string, required) — Readable message associated to the failure
- `code` (string, optional) — Error code displayed in case of a failure

### 401 Unauthorized Error

Request Authentication Failed.

- `message` (string, required) — Readable message associated to the failure
- `code` (string, optional) — Error code displayed in case of a failure

### 403 Forbidden Error

Cannot Authenticate Request.

- `message` (string, required) — Readable message associated to the failure
- `code` (string, optional) — Error code displayed in case of a failure

### 422 Unprocessable Entity Error

Validation errors.

- `message` (string, required) — Readable message associated to the failure
- `code` (string, optional) — Error code displayed in case of a failure

### 500 Internal Server Error

Internal error occurred.

- `message` (string, required) — Readable message associated to the failure
- `code` (string, optional) — Error code displayed in case of a failure

## Examples

**Response**

```json
{
  "balance": {
    "balances": [
      {
        "balanceDefinitionId": "string",
        "balanceDefinitionName": "string",
        "value": 1.1
      }
    ],
    "contactId": 1,
    "loyaltyProgramId": "string"
  },
  "loyaltyProgramName": "string",
  "members": [
    {
      "createdAt": "string",
      "memberContactId": 1,
      "updatedAt": "string"
    }
  ],
  "membership": {
    "createdAt": "2024-01-15T09:30:00Z",
    "loyaltySubscriptionId": "string",
    "updatedAt": "2024-01-15T09:30:00Z"
  },
  "reward": [
    {
      "code": "string",
      "contactId": 1,
      "createdAt": "string",
      "expirationDate": "string",
      "id": "string",
      "loyaltyProgramId": "string",
      "meta": {},
      "publicDescription": "string",
      "rewardId": "string",
      "rewardName": "string",
      "unit": "PERCENT",
      "updatedAt": "2024-01-15T09:30:00Z",
      "validFrom": "2024-01-15T09:30:00Z",
      "value": 1.1
    }
  ],
  "tier": [
    {
      "contactId": 1,
      "createdAt": "string",
      "groupId": "string",
      "groupName": "string",
      "loyaltyProgramId": "string",
      "meta": {},
      "tierId": "string",
      "tierName": "string",
      "updatedAt": "string"
    }
  ]
}
```

**SDK Code**

```typescript
import { BrevoClient } from "@getbrevo/brevo";

async function main() {
    const client = new BrevoClient({
        apiKey: "YOUR_API_KEY_HERE",
    });
    await client.program.getParameterSubscriptionInfo({
        pid: "pid",
    });
}
main();

```

```python
from brevo import Brevo

client = Brevo(
    api_key="YOUR_API_KEY_HERE",
)

client.program.get_parameter_subscription_info(
    pid="pid",
)

```

```php
<?php

namespace Example;

use Brevo\Brevo;
use Brevo\Program\Requests\GetParameterSubscriptionInfoRequest;

$client = new Brevo(
    apiKey: 'YOUR_API_KEY_HERE',
);
$client->program->getParameterSubscriptionInfo(
    'pid',
    new GetParameterSubscriptionInfoRequest([]),
);

```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.brevo.com/v3/loyalty/config/programs/pid/account-info"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.brevo.com/v3/loyalty/config/programs/pid/account-info")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.brevo.com/v3/loyalty/config/programs/pid/account-info")
  .header("api-key", "<apiKey>")
  .asString();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.brevo.com/v3/loyalty/config/programs/pid/account-info");
var request = new RestRequest(Method.GET);
request.AddHeader("api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.brevo.com/v3/loyalty/config/programs/pid/account-info")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```