# Check Invoice Fee

The **Check Invoice Fee** endpoint lets you query the invoice-fee settings for a specific company. By supplying the company’s ID, you can retrieve the applicable **B2B** and **B2C** invoice fees along with their corresponding VAT rates.

This endpoint is typically used when calculating invoice fees for orders tied to a specific company or when applying different billing rules depending on whether the customer is a business (B2B) or a consumer (B2C).

You will find the endpoint URL, authentication requirements, a sample response, and definitions of each field below.


## Endpoint  
```http
GET https://demo-api.frontpayment.no/api/v1/connect/company/invoice-fee/{company_id}
```
Replace `{company_id}` with the numeric identifier of the company.  


## Authentication  
Include a **Bearer Token** in the `Authorization` header. You can obtain this token from **Front Payment**.  

**Example:**  
```
Authorization: Bearer YOUR_FRONTPAYMENT_BEARER_TOKEN
```


## Response  
A successful response returns **200 OK** with the company’s verification history.  

### Example Response  
```json
{
  "status_code": 200,
  "status_message": "OK",
  "message": "companyInvoiceFeeRetriveSuccessfully",
  "is_data": true,
  "data": [
      "companyUuid": "ORG1754819969",
      "companyId": "920058272",
      "companyType": "BRL",
      "companyName": "FLØTNINGEN PARK II BORETTSLAG",
      "B2BInvoiceFee": 5,
      "B2BVatRate": "2",
      "B2CInvoiceFee": 3,
      "B2CVatRate": "2"
  ]
}
```

### Field Descriptions  
| Parameter                 | Type                 | Description                              |
| :------------------------ | :------------------- | :--------------------------------------- |
| `companyUuid`             | `string`             | Our Database unique UUID. |
| `companyId`               | `string`             | The verified company’s ID. |
| `companyType`             | `string`             | The type/category of the company. |
| `companyName`             | `string`             | The legal name of the company. |
| `B2BInvoiceFee`           | `number`             | The company’s B2B invoice fee. |
| `B2BVatRate`              | `string`             | The company's B2B vat rate. |
| `B2CInvoiceFee`           | `number`             | The company’s B2C invoice fee. |
| `B2CVatRate`              | `string`             | The company's B2C vat rate. |

---