---
title: "Get payment details"
description: "Get the required payment details to pay an invoice via bank transfer."
canonical: https://www.charitips.com/docs/api-reference/get-payment-details
---

# Get payment details

`GET /v1/billing/payment-details`

Get the required payment details to pay an invoice via bank transfer.

**Authentication**: Bearer access token.

## Parameters

- `accountId` (string, UUID): Id of the account. Only useful for Platform customers to filter fiscal receipts by child accounts

## Response 200

- `iban` (string, required)
- `bic` (string, required)
- `accountId` (string, required)

## Errors

- 400 `A field is missing, has the wrong type, or is not part of the request schema.`: `message` lists every problem. Unknown fields are rejected, not ignored: remove them rather than sending extra data. See https://www.charitips.com/docs/api-reference/errors.md.
- 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.

## Example

```bash
curl -X GET https://api.sandbox.charitips.com/v1/billing/payment-details \
  -H "Authorization: Bearer $CHARITIPS_TOKEN"
```

```javascript
const response = await fetch('https://api.sandbox.charitips.com/v1/billing/payment-details', {
  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/billing/payment-details",
    headers={"Authorization": f"Bearer {os.environ['CHARITIPS_TOKEN']}"},
)
response.raise_for_status()
data = response.json()
```

## Response example (200, placeholder values)

```json
{
  "iban": "<iban>",
  "bic": "<bic>",
  "accountId": "<accountId>"
}
```
