A customer (klant) in one administration: the customer terms of a relation (Relations). One relation can have a customer row in several administrations, with a different debtor_id in each, and even more than one in the same administration.
Label in Fledge: Debiteuren
| URL | https://odata-api.fledge.nl/v2-8/Debtors |
|---|---|
| Key | administration_iddebtor_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPPURENPC |
| Write licenses | FINANCIEELVERKOOP |
| 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/Debtors" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=debtor_id,apply_vat,company_name,credit_limit' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/Debtors');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'debtor_id,apply_vat,company_name,credit_limit');
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/Debtors" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("debtor_id,apply_vat,company_name,credit_limit"),
"$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/Debtors(administration_id=1,debtor_id={debtor_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
debtor_idkey | Int32 | Debiteurnummer The customer number. Unrelated to relation_id. |
accordance_id | Int32 | Nummer geaccodeerde |
active | Int32 | Actief (0 = niet actief, 2 = actief, 4 = open saldo)
|
agent_id | Int32 | Agent |
agreement_date | Date | Datum accodering |
agreement_document | String | Dokument accodering |
apply_vat | Boolean | Btw berekenen ja/nee Whether VAT is charged. The app sets it from the country and is_private: false outside the EU and for businesses in another EU country, true for private persons in the Netherlands or the EU, a choice for Dutch businesses. Older customers can still have another value: read it, don't derive it. |
assurance_dossier | String | Verzekeringsdossier |
bank_account_id | String | Rekeningnummer (evt. IBAN) |
bank_id | Int32 | Banknummer |
bank_location | String | Vestigingsplaats bank |
bic | String | BIC: Bank Identification Number (swift-code) |
calculation_method_id | Int32 | Berekeningwijze: Berekeningswijzenummer |
chamber_of_commerce_number | String | KvK nummer: Kamer van koophandel nummer |
company_name | String | Bedrijfsnaam The customer's name. Usually the relation's company_name_1, but older data can differ. |
country_code_id | Int32 | Landkode |
credit_insurance_id | Int32 | Verzekeringsnummer |
credit_limit | Int32 | Kredietlimiet The credit limit, checked on the invoice customer's open amounts. |
currency_code_id | Int32 | Valutanummer |
date_last_updated | DateTimeOffset | Gewijzigd: Datum/tijd laatste wijziging |
debtor_group_id | Int32 | Debiteurgroep nummer The customer group (klantgroep), a configurable way to segment customers. |
delivery_condition_id | Int32 | Levering konditie: Leverings koditie nummer The delivery term (DeliveryConditions, navigation DeliveryCondition). |
delivery_method_id | Int32 | Verzendmethode nummer The shipping method (ShippingMethods). |
discount_group_id | Int32 | Kortinggroepnummer The customer's discount group; with DebtorGroupArticleGroupDiscounts it gives a discount per article discount group. |
district_id | Int32 | Rayon |
id_in_char | String | Debiteurnummer The customer number as text; some customers quote it as their reference on an order. |
intercompany_number_admin | Int32 | Intercompany Admin: Intercompany nummer admin. nr. |
intercompany_number_cons | Int32 | Intercompany Cons.: Intercompany nummer cons. nr. |
intercompany_number_elim | Int32 | Intercompany Elim.: Intercompany nummer elim. nr. |
invoice_debtor | Int32 | Factuurdebiteur The customer on the invoice (klant op factuur) for this customer's orders; its own debtor_id unless it invoices to another. |
invoice_reminder_type_id | Int32 | Aanmaningsnummer |
invoice_to | String | Factuur tav |
is_compilation_invoice | Boolean | Verzamelfactuur ja/nee Combine this customer's orders on one invoice (verzamelfactuur). |
is_digital_invoice | Boolean | Digitaal factureren (j/n) |
is_private | Boolean | Particulier (j/n) A private person rather than a company. |
language_id | Int32 | Taalkode |
layout_set_id | Int32 | Layout |
location | String | Woonplaats The city, as text. |
mailing_code_id | Int32 | Mailingkode |
main_debtor | Int32 | Hoofddebiteurnummer The main customer (hoofdklant) this one belongs to, for example in a group of companies. |
number_of_invoices | Int32 | Aantal facturen |
order_acknowledgment_to | String | Orderbevestiging tav |
order_confirmation_layout_id | Int32 | Orderbevestigingsnummer |
order_discount | Decimal | Orderkorting %: Orderkorting in procenten The discount proposed for new order lines when neither a price agreement nor the customer's group discount (discount_group_id) gives one. |
partial_deliveries_allowed | Boolean | Deellev. toegestaan: Deellevering toegestaan ja/nee Part of an order may be delivered and the rest later (deellevering toegestaan). |
payment_authorization_id | Int32 | Machtigingsnummer |
payment_condition_id | Int32 | Betalingskonditie The payment term (PaymentConditions, navigation PaymentTerm). |
price_agreement_id | Int32 | Prijsafspraak nummer |
relation_address_id | Int32 | Adresnummer |
relation_id | Int32 | Relatienummer The relation (Relations) this customer is. |
remark | String | Opmerking |
route_id | Int32 | Route nummer |
sales_blockage | Boolean | Blokkeren in verkoop (ja/nee) A blocked customer (blokkeren). Creating or changing its orders and quotations is refused; which further actions, such as invoicing, is configured in the setting BLOCK_SALES_ACTIONS. |
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. |
statistics_id | String | Statistieknummer |
trademark_id | Int32 | Handelsmerk id |
value | Int32 | Waarde van een debiteur |
vat_number | String | BTW-nummer |
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 |
Bank | Banks | one |
CalculationMethod | CalculationMethods | one |
CountryCode | CountryCodes | one |
CreditInsurance | CreditInsurances | one |
DebtorDiscountGroup | DebtorDiscountGroups | one |
DebtorGroup | DebtorGroups | one |
DeliveryCondition | DeliveryConditions | one |
District | Districts | one |
InvoiceReminderType | InvoiceReminderTypes | 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 |
DebtorBranches | DebtorBranches | many |
DebtorUnsettledItems | DebtorUnsettledItems | many |
DocumentLinks | DocumentLinks | many |
ProductionOrderHeaders | ProductionOrderHeaders | many |
QuoteCalculationHeaders | QuoteCalculationHeaders | many |
SalesOrderHeaders | SalesOrderHeaders | many |
SalesQuotationHeaders | SalesQuotationHeaders | many |
ServiceObjects | ServiceObjects | many |
Actions
nextId
GET https://odata-api.fledge.nl/v2-8/Debtors/nextId(…)Returns DebtorNextIdResultDto
Licenses: BASIS, FINANCIEEL, URENPC