Suppliers
List suppliers
Retrieves all suppliers for your company, sorted by supplier number.
The list is cached for 5 seconds; creating a supplier through this API invalidates the cache, so a just-created supplier is immediately visible.
Required Scope
suppliers-read
List suppliers › Responses
List of suppliers for the company
idThe unique identifier of the supplier
supplierNumberSupplier number
nameName of the supplier
supplierGroupIdSupplier group ID
currencyCurrency code
statusSupplier status
supplierGroupNameSupplier group name
emailEmail address
phonePhone number
addressStreet address
cityCity
postalCodePostal code
countryCodeTwo-letter country code (ISO 3166-1 alpha-2)
vatNumberVAT registration number
attentionAttention field
paymentTermsPayment terms in days
openingBalanceOpening balance in the company base currency (signed: positive = we owe the supplier)
Create a supplier
Creates a supplier together with its contacts.
supplierNumber is trimmed and must be unique within your company — a
duplicate returns 400 with error code SUPPLIER_NUMBER_ALREADY_EXISTS.
Exactly one contact must be marked as default. When you provide a single
contact it is made the default automatically; otherwise a missing or
duplicated default returns 400 with error code CONTACT_DEFAULT_REQUIRED
or CONTACT_MULTIPLE_DEFAULTS.
supplierGroupId must reference an existing supplier group in your company
(404 SUPPLIER_GROUP_NOT_FOUND), and defaultAccountId, when provided,
must reference an existing ledger account (404 LEDGER_NOT_FOUND).
The response contains only the new supplier's id and supplierNumber;
fetch the full record via the list endpoint.
Required Scope
suppliers-write
Headers
x-api-idempotency-keyOptional idempotency key for safely retrying mutating requests.
Create a supplier › Request Body
supplierNumberUnique supplier number
nameSupplier name
supplierGroupIdSupplier group ID
currencyCurrency code
countryCodeTwo-letter country code
Contacts for the supplier. At least one contact with isDefault: true is required.
emailEmail address
phonePhone number
addressStreet address
cityCity
postalCodePostal code
vatNumberVAT registration number
attentionAttention field
paymentTermsPayment terms in days
openingBalanceOpening balance in the company base currency, seeding payables that predate LedgerBee. Signed: positive = we owe the supplier, negative = a credit position.
defaultAccountIdDefault ledger account ID
Create a supplier › Responses
Supplier created successfully
idThe unique identifier of the created supplier
supplierNumberSupplier number
List supplier contacts
Retrieves all contacts for a supplier, with the default contact first and the rest sorted alphabetically by name.
Returns 404 with error code SUPPLIER_NOT_FOUND when the supplier does not
exist in your company.
Required Scope
suppliers-read
path Parameters
supplierIdSupplier ID
List supplier contacts › Responses
List of contacts for a supplier
idThe unique identifier of the contact
nameName of the contact
isDefaultForSupplierWhether this is the default contact for the supplier
emailEmail address
phonePhone number
List supplier departments
Retrieves all departments for a supplier, with the default department first and the rest sorted alphabetically by name.
Returns 404 with error code SUPPLIER_NOT_FOUND when the supplier does not
exist in your company.
Required Scope
suppliers-read
path Parameters
supplierIdSupplier ID
List supplier departments › Responses
List of departments for a supplier
idThe unique identifier of the department
nameName of the department
isDefaultWhether this is the default department for the supplier
isActiveWhether the department is active
poNumberPurchase order number
eanNumberEAN number for e-invoicing
addressStreet address
cityCity
postalCodePostal code
countryCodeTwo-letter country code (ISO 3166-1 alpha-2)
List supplier groups
Retrieves all supplier groups for your company, sorted alphabetically by name.
The list is cached for 5 seconds.
Required Scope
suppliers-read
List supplier groups › Responses
List of supplier groups for the company
idThe unique identifier of the supplier group
nameName of the supplier group
descriptionDescription of the supplier group
defaultAccountIdDefault ledger account ID