# PurchaseOrderJournalEntryLinks

> Links a purchase invoice line to the journal entry it was booked in.

Subject: Purchase.

Links a purchase invoice line to the journal entry it was booked in.

Label in Fledge: Inkooporder koppeling factuur met fin. mutatie.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/PurchaseOrderJournalEntryLinks` |
| Key | `administration_id`, `financial_year`, `journal_entry_id`, `journal_entry_tracking_id`, `purchase_order_header_id`, `purchase_order_line_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | FINANCIEEL |
| Write licenses | FINANCIEEL, BEHEER |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/PurchaseOrderJournalEntryLinks?$filter=administration_id eq 1&$select=financial_year,journal_entry_id,journal_entry_tracking_id,purchase_order_header_id,purchase_order_line_id&$top=50
GET https://odata-api.fledge.nl/v2-8/PurchaseOrderJournalEntryLinks(administration_id=1,financial_year={financial_year},journal_entry_id={journal_entry_id},journal_entry_tracking_id={journal_entry_tracking_id},purchase_order_header_id='{purchase_order_header_id}',purchase_order_line_id={purchase_order_line_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `purchase_order_header_id` (key) | String, not null | Factuurnummer. Despite its name, the purchase invoice number, not a purchase order. |
| `purchase_order_line_id` (key) | Int32, not null | Volgnummer. Despite its name, the invoice line, not an order line. |
| `financial_year` (key) | Int32, not null | Boekjaar. The year of the journal entry. |
| `journal_entry_id` (key) | Int32, not null | Journaalpost nummer |
| `journal_entry_tracking_id` (key) | Int32, not null | Journaalpost volgnr: Journaalpost volgnummer |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `JournalEntry` → [JournalEntries](https://docs.fledge.nl/en/api/reference/JournalEntries.md) (one)

---

Source: https://docs.fledge.nl/en/api/reference/PurchaseOrderJournalEntryLinks
