# Creditors

> A supplier (leverancier) in one administration: the supplier terms of a relation (Relations).

Subject: Relations.

A supplier (leverancier) in one administration: the supplier terms of a relation (Relations). Several field names differ from Debtors for the same thing: city instead of location, country_id instead of country_code_id, payment_term_id instead of payment_condition_id.

Label in Fledge: Crediteuren.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/Creditors` |
| Key | `administration_id`, `creditor_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS, URENPC |
| Write licenses | FINANCIEEL, INKOOP |
| Scopes | FLEDGE_PORTAL, FLEDGE_TERMINAL |

> **Watch out:** active is a financial status (0 not active, 2 active, 4 open balance), not whether the supplier is archived. An archived supplier is one whose relation is archived: Relation/is_active eq 0.

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/Creditors?$filter=administration_id eq 1&$select=creditor_id,calculate_vat,city,country_id&$top=50
GET https://odata-api.fledge.nl/v2-8/Creditors(administration_id=1,creditor_id={creditor_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `creditor_id` (key) | Int32, not null | Crediteurnummer. The supplier number. Unrelated to relation_id. |
| `active` | Int32 | Actief (0 = niet actief, 2 = actief, 4 = open saldo). Values: 0 = Not active; 2 = Active; 4 = Open balance |
| `agent_id` | Int32 | Agent |
| `area_of_country_id` | Int32 | Rayon |
| `automatic_collection` | Boolean | Automatische incasso (j/n) |
| `bank_account_id` | String | Rekeningnummer (evt. IBAN) |
| `bank_id` | Int32 | Banknummer |
| `bank_location` | String | Vestigingsplaats bank |
| `bic` | String | BIC: Bank Identification Number (swift-code) |
| `calculate_vat` | Boolean | Btw berekenen ja/nee. Whether VAT is calculated. |
| `chamber_of_commerce_number` | String | KvK-nummer: Kamer van koophandel nummer |
| `city` | String | Woonplaats. The city, as text. |
| `company_name` | String | Bedrijfsnaam |
| `country_id` | Int32 | Landkode. The country (CountryCodes). |
| `credit_assurance` | Int32 | Verzekeringsnummer |
| `credit_limit` | Int32 | Kredietlimiet |
| `creditor_group_id` | Int32 | Crediteurrgroep: Crediteurgroep nummer |
| `currency_code_id` | Int32 | Valutanummer |
| `date_last_updated` | DateTimeOffset | Gewijzigd: Datum/tijd laatste wijziging |
| `debtor_discount_group_id` | Int32 | Kortinggroepnummer |
| `debtor_number` | String | Debiteurnummer van ons bij de klant. Our customer number at this supplier. |
| `delivery_condition_id` | Int32 | Levering konditie: Leverings koditie nummer |
| `delivery_method_id` | Int32 | Verzendmethode nummer |
| `delivery_relation_address_id` | Int32 | Afleveren bij adres van relatie: Adresnummer voor aflevering bij afleverrelatie |
| `delivery_relation_id` | Int32 | Afleveren bij relatie: Relatienummer voor aflevering |
| `delivery_warehouse_address_id` | Int32 | Afleveren op magazijnadres: Magazijnadres voor aflevering |
| `discount_group_id` | Int32 | Crediteur kortingsgroep |
| `g_account_active` | Boolean | G-rekening actief (j/n) |
| `g_account_bank_id` | Int32 | Bank G-rekening: Banknummer G-rekening |
| `g_account_id` | String | G-rekeningnummer |
| `g_account_percentage` | Decimal | Percentage G-rekening |
| `general_ledger_id` | String | Grootboekrekeningnummer |
| `id_as_varchar` | String | Crediteurnummer |
| `invoice_creditor` | Int32 | Factuurcrediteur. The supplier whose invoices are booked for this one; its own creditor_id unless set otherwise. |
| `language_id` | Int32 | Taalkode |
| `layout_set_id` | Int32 | Layout |
| `mailing_code_id` | Int32 | Mailingkode |
| `main_creditor` | Int32 | Hoofdcrediteur |
| `nr_invoice_avg_paymet_dur_calc` | Int32 | Berekeningwijze: Berekeningswijzenummer |
| `order_confirmation_layout_id` | Int32 | Orderbevestigingsnummer |
| `order_discount` | Decimal | Orderkorting %: Orderkorting in procenten |
| `partial_deliveries_allowed` | Boolean | Deellev. toegestaan: Deellevering toegestaan ja/nee |
| `payment_authorization_id` | Int32 | Machtigingsnummer |
| `payment_term_id` | Int32 | Betalingskonditie. The payment term (PaymentConditions, navigation PaymentTerm). |
| `price_agreement_id` | Int32 | Prijsafspraak nummer |
| `purchase_blockage` | Boolean | A blocked supplier (inkoopblokkade). Purchase actions are refused for it. |
| `relation_address_id` | Int32 | Adresnummer |
| `relation_id` | Int32 | Relatienummer. The relation (Relations) this supplier is. |
| `search_name` | String | Zoeknaam. A search key, kept apart from the name: it can be shorter, abbreviated or older. To find a record by name, use query's search, which looks in all text fields. |
| `standard_delivery_address` | Int32 | Standaard afleveradres. 0 = administratie afleveradres, 1 = ovad, 2 = prel/pknp. Where goods from this supplier are delivered by default.. Values: 0 = The administration's delivery address; 1 = A warehouse address (delivery_warehouse_address_id); 2 = A relation's address (delivery_relation_id, delivery_relation_address_id) |
| `statistics_id` | String | Statistieknummer |
| `vat_number` | String | BTW-nummer |
| `vat_shifted` | Boolean | BTW verlegd (j/n). Reverse-charged VAT (btw verlegd). |
| `volume_discount_id` | Int32 | Kwantumkortingnummer |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `Agent` → [Agents](https://docs.fledge.nl/en/api/reference/Agents.md) (one)
- `CountryCode` → [CountryCodes](https://docs.fledge.nl/en/api/reference/CountryCodes.md) (one)
- `CreditInsurance` → [CreditInsurances](https://docs.fledge.nl/en/api/reference/CreditInsurances.md) (one)
- `CreditorDiscountGroup` → [CreditorDiscountGroups](https://docs.fledge.nl/en/api/reference/CreditorDiscountGroups.md) (one)
- `CreditorGroup` → [CreditorGroups](https://docs.fledge.nl/en/api/reference/CreditorGroups.md) (one)
- `DebtorDiscountGroup` → [DebtorDiscountGroups](https://docs.fledge.nl/en/api/reference/DebtorDiscountGroups.md) (one)
- `DeliveryCondition` → [DeliveryConditions](https://docs.fledge.nl/en/api/reference/DeliveryConditions.md) (one)
- `District` → [Districts](https://docs.fledge.nl/en/api/reference/Districts.md) (one)
- `LanguageCode` → [LanguageCodes](https://docs.fledge.nl/en/api/reference/LanguageCodes.md) (one)
- `LayoutSet` → [LayoutSets](https://docs.fledge.nl/en/api/reference/LayoutSets.md) (one)
- `MailingCode` → [MailingCodes](https://docs.fledge.nl/en/api/reference/MailingCodes.md) (one)
- `OrderConfirmationLayout` → [OrderConfirmationLayouts](https://docs.fledge.nl/en/api/reference/OrderConfirmationLayouts.md) (one)
- `PaymentAuthorization` → [PaymentAuthorizations](https://docs.fledge.nl/en/api/reference/PaymentAuthorizations.md) (one)
- `PaymentTerm` → [PaymentConditions](https://docs.fledge.nl/en/api/reference/PaymentConditions.md) (one)
- `PriceAgreement` → [PriceAgreements](https://docs.fledge.nl/en/api/reference/PriceAgreements.md) (one)
- `Relation` → [Relations](https://docs.fledge.nl/en/api/reference/Relations.md) (one)
- `RelationAddress` → [RelationAddresses](https://docs.fledge.nl/en/api/reference/RelationAddresses.md) (one)
- `ShippingMethod` → [ShippingMethods](https://docs.fledge.nl/en/api/reference/ShippingMethods.md) (one)
- `VolumeDiscount` → [VolumeDiscounts](https://docs.fledge.nl/en/api/reference/VolumeDiscounts.md) (one)
- `CreditorBranches` → [CreditorBranches](https://docs.fledge.nl/en/api/reference/CreditorBranches.md) (many)
- `DocumentLinks` → [DocumentLinks](https://docs.fledge.nl/en/api/reference/DocumentLinks.md) (many)

## Actions

- `GET Creditors/nextId(…)` — returns CreditorNextIdResultDto

---

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