# Get buyer details for receipts

Source: https://checkslip.com/en/docs/get-billing-info

GET `https://api.checkslip.com/api/billing/billing-info`

API key

Returns the name, tax ID, branch, address and email that will be printed on your next receipts. Needs an API key with billing:read.

## Responses

### 200 `application/json`

| Field | Type | Required |
| --- | --- | --- |
| `buyer_type` | `PERSON \| COMPANY` | no |
| `name` | `string` | no |
| `tax_id` | `string` | no |
| `branch` | `string` | no |
| `address` | `string` | no |
| `email` | `string (email)` | no |

### Possible errors

401 403 500

An error as Problem Details. All codes are listed at [Error codes](https://checkslip.com/en/docs/errors)

**cURL**

```bash
curl https://api.checkslip.com/api/billing/billing-info \
  -H "Authorization: Bearer $CHECKSLIP_API_KEY"
```

**Node.js**

```javascript
const res = await fetch("https://api.checkslip.com/api/billing/billing-info", {
  headers: {
    Authorization: `Bearer ${process.env.CHECKSLIP_API_KEY}`,
  },
});
const data = await res.json();
```

**Python**

```python
import os

import requests

res = requests.get(
    "https://api.checkslip.com/api/billing/billing-info",
    headers={
        "Authorization": f"Bearer {os.environ['CHECKSLIP_API_KEY']}",
    },
)
data = res.json()
```

```json
{
  "buyer_type": "PERSON",
  "name": "string",
  "tax_id": "string",
  "branch": "string",
  "address": "string",
  "email": "shop@example.com"
}
```
