@accounty/yuki
v1.2.4
Published
<img src="https://cdn.jsdelivr.net/npm/@accounty/yuki/banner.png" alt="Accounty — Many providers. One interface." />
Readme
@accounty/yuki
Outstanding debtor invoices and their embedded company details from Yuki SOAP services.
Installation
yarn add @accounty/yukiUsage
Authentication: Access key and administration ID.
import Yuki, { YukiApiDomain } from '@accounty/yuki'
const provider = new Yuki()
await provider.setCredentials({
administrationId: '<administration-id>',
accessKey: '<access-key>'
})
await provider.setSettings({ domain: YukiApiDomain.Nl })
const { data: invoices } = await provider.fetchInvoicesWithCompany()Supported behavior
fetchInvoices()reads outstanding debtor items and keeps sales-invoice entries. It is not a complete invoice-history query.fetchInvoicesWithCompany()maps the company details embedded in each invoice.fetchCompanies()is not implemented;downloadInvoice()is unsupported. Both throw.setSettings({ domain: YukiApiDomain.Be })selects the Belgian endpoint; the default isYukiApiDomain.Nl.testCredentials()performs an invoice fetch and therefore requires both an access key and an administration ID.
Fetch methods return { data, version? }. Amounts are integer cents, dates are
Date objects, and remoteData preserves provider records. Filter support varies
by provider.
