> For the complete documentation index, see [llms.txt](https://pazion.gitbook.io/order2flow/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pazion.gitbook.io/order2flow/integraties/exact-online/waarom-krijg-ik-een-forbidden-bij-de-export-van-een-directsalesinvoice.md).

# Waarom krijg ik een Forbidden bij de export van een DirectSalesInvoice

```php
"Client error: GET https://start.exactonline.nl/api/v1/3376838/inventory/Warehouses?%24select=ID%2CCode%2CDescription&%24filter=Code+eq+%271%27 
 resulted in a 403 Forbidden response:\\n{\\r\\n\\\"error\\\": {\\r\\n\\\"code\\\": \\\"\\\", \\\"message\\\": {\\r\\n\\\"lang\\\": \\\"\\\", \\\"value\\\": 
... create <br/> line 72 in \",\"previous\":[]}}","exactInvoice":"","exactInvoiceLines":null}
```

Als u geen Warehouse in gebruik heeft voor Exact geeft Exact bij het aanmaken van een DirevctSalesInvoice een 403 Forbidden.

We kunnen dan van de DirectSalesInvoice een SalesInvoice maken:

```json
'invoice' => [
    'salesInvoiceType' => 8020,
    'creditInvoiceType' => 8021,
    ]
```
