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_idcreditor_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISURENPC |
| Write licenses | FINANCIEELINKOOP |
| Scopes | FLEDGE_PORTALFLEDGE_TERMINAL |
Example requests
A page of rows, with only the fields you need. See Authentication for the token.
curl -G "https://odata-api.fledge.nl/v2-8/Creditors" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=creditor_id,calculate_vat,city,country_id' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/Creditors');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'creditor_id,calculate_vat,city,country_id');
url.searchParams.set('$top', '50');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/Creditors" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("creditor_id,calculate_vat,city,country_id"),
"$top=" + Uri.EscapeDataString("50"));
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);One row by its key:
GET https://odata-api.fledge.nl/v2-8/Creditors(administration_id=1,creditor_id={creditor_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
creditor_idkey | Int32 | Crediteurnummer The supplier number. Unrelated to relation_id. |
active | Int32 | Actief (0 = niet actief, 2 = actief, 4 = open saldo)
|
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.
|
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
Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
Agent | Agents | one |
CountryCode | CountryCodes | one |
CreditInsurance | CreditInsurances | one |
CreditorDiscountGroup | CreditorDiscountGroups | one |
CreditorGroup | CreditorGroups | one |
DebtorDiscountGroup | DebtorDiscountGroups | one |
DeliveryCondition | DeliveryConditions | one |
District | Districts | one |
LanguageCode | LanguageCodes | one |
LayoutSet | LayoutSets | one |
MailingCode | MailingCodes | one |
OrderConfirmationLayout | OrderConfirmationLayouts | one |
PaymentAuthorization | PaymentAuthorizations | one |
PaymentTerm | PaymentConditions | one |
PriceAgreement | PriceAgreements | one |
Relation | Relations | one |
RelationAddress | RelationAddresses | one |
ShippingMethod | ShippingMethods | one |
VolumeDiscount | VolumeDiscounts | one |
CreditorBranches | CreditorBranches | many |
DocumentLinks | DocumentLinks | many |
Actions
nextId
GET https://odata-api.fledge.nl/v2-8/Creditors/nextId(…)Returns CreditorNextIdResultDto
Licenses: BASIS, FINANCIEEL