Klienter & modparter
Klienter, kontakter og modparter — hold din CRM og Flowtly synkroniseret.
Klient
Endpoints
| GET | /clients | Henter samlingen af Client-ressourcer. |
| POST | /clients | Opretter en Client-ressource. |
| GET | /clients/{id} | Henter en Client-ressource. |
| PATCH | /clients/{id} | Opdaterer Client-ressourcen. |
| GET | /clients/{id}/documents | Henter en Client-ressource. |
| GET | /clients/search | Henter samlingen af Client-ressourcer. |
Skemafelter
| Felt | Type | Beskrivelse |
|---|---|---|
| country* | string (iri-reference) | |
| currency* | string (iri-reference) | |
| defaultCost | string,null (iri-reference) | |
| status* | string | |
| attributeSet | string,null (iri-reference) | |
| name* | string | |
| dueDays | integer | |
| tinType* | string | |
| tinCountry | stringnull | |
| tin | stringnull | |
| externalPaymentCustomerId | stringnull | |
| invoiceComment | stringnull | |
| defaultTaxRate | stringnull | |
| documentsLanguage | string | |
| addressPhoneNumber | stringnull | |
| addressCity | stringnull | |
| addressPostCode | stringnull | |
| addressStreetLine | stringnull | |
| addressBuildingNumber | stringnull | |
| addressLocaleNumber | stringnull | |
| addressCountry | string,null (iri-reference) | |
| clientContacts | array | |
| allowDuplicate | booleannull | Not persisted (no ORM\Column): an escape hatch for POST /clients only, mirroring CounterpartyCreateByTypeInput::allowDuplicate. When true, ClientCreateProcessor::refuseIfDuplicate() skips the duplicate-party guard, matching the human-facing PATCH-and-attach pattern in CounterpartyCreateByTypeProcessor. |
| vatNumber | stringnull |
Klientkontakt
Endpoints
| GET | /client-contacts | Henter samlingen af ClientContact-ressourcer. |
| POST | /client-contacts | Opretter en ClientContact-ressource. |
| GET | /client-contacts/{id} | Henter en ClientContact-ressource. |
| PATCH | /client-contacts/{id} | Opdaterer ClientContact-ressourcen. |
| DELETE | /client-contacts/{id} | Fjerner ClientContact-ressourcen. |
Skemafelter
| Felt | Type | Beskrivelse |
|---|---|---|
| id | integer | |
| client | string (iri-reference) | |
| type* | string | |
| position | integer | |
| email* | string (email) | |
| name* | string | |
| title | stringnull | |
| phone | stringnull | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) | |
| possibleTypes | string |
Klientnotat
Endpoints
| GET | /client-notes | Henter samlingen af ClientNote-ressourcer. |
| POST | /client-notes | Opretter en ClientNote-ressource. |
| GET | /client-notes/{id} | Henter en ClientNote-ressource. |
| PATCH | /client-notes/{id} | Opdaterer ClientNote-ressourcen. |
| DELETE | /client-notes/{id} | Fjerner ClientNote-ressourcen. |
Skemafelter
| Felt | Type | Beskrivelse |
|---|---|---|
| id | string | |
| client* | string (iri-reference) | |
| employee* | string (iri-reference) | |
| note* | string | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) |
Modpart
Endpoints
| GET | /counterparties | Henter samlingen af Counterparty-ressourcer. |
| POST | /counterparties | Opretter en Counterparty-ressource. |
| GET | /counterparties/{id} | Henter en Counterparty-ressource. |
| PATCH | /counterparties/{id} | Opdaterer Counterparty-ressourcen. |
| DELETE | /counterparties/{id} | Fjerner Counterparty-ressourcen. |
| POST | /counterparties/{id}/enrich-branding-ai | Queue single counterparty branding enrich via AI |
| POST | /counterparties/{id}/merge | Merge counterparties |
| POST | /counterparties/enrich-branding-ai | Queue counterparties branding enrich via AI |
| POST | /counterparty | Create supplier/client + counterparty by type |
| PATCH | /counterparty/{id} | Update supplier/client + counterparty by type |
| GET | /counterparty/dedupe-check | Advisory duplicate check for a party. |
Skemafelter
| Felt | Type | Beskrivelse |
|---|---|---|
| id | integer | |
| type | string | |
| requireAttachment | boolean | |
| cyclic | boolean | |
| budgetNeutral | boolean | |
| logoUrl | stringnull | |
| corporateWebsiteUrl | stringnull | |
| displayName | string | |
| costGroupIcon | stringnull |
Modparts bankkonto
Endpoints
| POST | /counterparty-bank-accounts | Opretter en CounterpartyBankAccount-ressource. |
| DELETE | /counterparty-bank-accounts/{id} | Fjerner CounterpartyBankAccount-ressourcen. |
Skemafelter
| Felt | Type | Beskrivelse |
|---|---|---|
| id | integer | |
| counterparty | string (iri-reference) | |
| accountNumber | string | |
| accountNumberNormalized | string | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) |
Fakturalinjeskabelon for modpart
Endpoints
| GET | /counterparties/{id}/invoice-line-templates | A counterparty's line templates, rendered for a billing period. |
| POST | /counterparty-invoice-line-templates | Opretter en CounterpartyInvoiceLineTemplate-ressource. |
| GET | /counterparty-invoice-line-templates/{id} | Henter en CounterpartyInvoiceLineTemplate-ressource. |
| PATCH | /counterparty-invoice-line-templates/{id} | Opdaterer CounterpartyInvoiceLineTemplate-ressourcen. |
| DELETE | /counterparty-invoice-line-templates/{id} | Fjerner CounterpartyInvoiceLineTemplate-ressourcen. |
Skemafelter
| Felt | Type | Beskrivelse |
|---|---|---|
| id | integer | |
| name* | string | The pick-list label the operator chooses by — "Spectris", not the wording. |
| text* | string | The contractual wording, with an optional `{period}` / `{quarter}` token. |
| sortOrder | integer | Pick-list order only. It implies no line order — nothing generates lines. |