---
title: "Get a donation matching"
description: "Get campaign donation matching configuration"
canonical: https://www.charitips.com/docs/api-reference/get-donation-matching
---

# Get a donation matching

`GET /v1/campaigns/{campaignId}/donation-matching`

Get campaign donation matching configuration

**Authentication**: Bearer access token.

## Parameters

- `campaignId` (string, required)

## Response 200

- `donationMatchingId` (string, required)
- `rate` (number, required)
- `maximumBudget` (integer (int64))
- `maximumDonationBudget` (integer (int64))
- `maximumDonorBudget` (integer (int64))
- `status` (DonationMatchingStatus, required) One of `ENABLED`, `DISABLED`.
- `campaignId` (string, required)
- `createdAt` (string (date-time), required)
- `updatedAt` (string (date-time), required)

## Errors

- 401 `Unauthorized`: The access token is missing, expired or invalid. Create a new one with your client id and secret, send it as `Authorization: Bearer <accessToken>`, then retry once. Sandbox tokens only work on api.sandbox.charitips.com. See https://www.charitips.com/docs/get-started/authentication.md.
- 403 `Account closed`: The account behind these credentials is closed: no token is issued and every call is refused, reads included. Contact Charitips to reopen it. See https://www.charitips.com/docs/api-reference/troubleshooting.md#calls-answer-403-account-not-active-account-not-validated-or-account-closed.
- 403 `Forbidden`: Your credentials cannot perform this action on this resource. An id from another account never answers 403: it is treated as unknown, with a 404 in the path or a 400 `Bad Request` in the body or the query. See https://www.charitips.com/docs/api-reference/errors.md.
- 404 `Not Found`: No resource with this id on your account and environment. An id that belongs to another account answers 404 too when it is in the path. Ids from the sandbox do not exist in production. See https://www.charitips.com/docs/get-started/sandbox.md.

## Example

```bash
curl -X GET https://api.sandbox.charitips.com/v1/campaigns/<campaignId>/donation-matching \
  -H "Authorization: Bearer $CHARITIPS_TOKEN"
```

```javascript
const response = await fetch('https://api.sandbox.charitips.com/v1/campaigns/<campaignId>/donation-matching', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.CHARITIPS_TOKEN}`,
  },
});
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
const data = await response.json();
```

```python
import os, requests

response = requests.get(
    "https://api.sandbox.charitips.com/v1/campaigns/<campaignId>/donation-matching",
    headers={"Authorization": f"Bearer {os.environ['CHARITIPS_TOKEN']}"},
)
response.raise_for_status()
data = response.json()
```

## Response example (200, placeholder values)

```json
{
  "donationMatchingId": "<donationMatchingId>",
  "rate": 1,
  "maximumBudget": 2000,
  "maximumDonationBudget": 2000,
  "maximumDonorBudget": 2000,
  "status": "ENABLED",
  "campaignId": "<campaignId>",
  "createdAt": "<createdAt>"
}
```
