nordlet 0.6.5 → 0.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +130 -7
  3. data/lib/nordlet/account/types/brand_get_account_request.rb +9 -0
  4. data/lib/nordlet/account/types/brand_get_account_response.rb +17 -0
  5. data/lib/nordlet/account/types/brand_update_account_request.rb +17 -0
  6. data/lib/nordlet/account/types/brand_update_account_response.rb +17 -0
  7. data/lib/nordlet/account/types/companies_convert_to_live_account_request.rb +11 -0
  8. data/lib/nordlet/account/types/companies_convert_to_live_account_response.rb +13 -0
  9. data/lib/nordlet/account/types/companies_create_account_response.rb +10 -0
  10. data/lib/nordlet/account/types/companies_create_account_response_vat_period.rb +17 -0
  11. data/lib/nordlet/account/types/me_account_response_billing.rb +2 -0
  12. data/lib/nordlet/account/types/me_account_response_companies_item.rb +10 -0
  13. data/lib/nordlet/account/types/me_account_response_companies_item_vat_period.rb +17 -0
  14. data/lib/nordlet/account/types/me_account_response_user.rb +2 -0
  15. data/lib/nordlet/bank/client.rb +183 -14
  16. data/lib/nordlet/bank/types/reconciliation_get_bank_request.rb +15 -0
  17. data/lib/nordlet/bank/types/reconciliation_get_bank_response.rb +35 -0
  18. data/lib/nordlet/bank/types/reconciliation_get_bank_response_statement_balance_source.rb +14 -0
  19. data/lib/nordlet/bank/types/reconciliation_get_bank_response_unbooked_lines_item.rb +39 -0
  20. data/lib/nordlet/bank/types/reconciliation_get_bank_response_unbooked_lines_item_status.rb +15 -0
  21. data/lib/nordlet/bank/types/transactions_ignore_bank_request.rb +13 -0
  22. data/lib/nordlet/bank/types/transactions_ignore_bank_response.rb +39 -0
  23. data/lib/nordlet/bank/types/transactions_ignore_bank_response_status.rb +15 -0
  24. data/lib/nordlet/bank/types/transactions_import_bank_request.rb +4 -0
  25. data/lib/nordlet/bank/types/transactions_import_bank_response.rb +2 -0
  26. data/lib/nordlet/bank/types/transactions_import_bank_response_duplicates_item.rb +17 -0
  27. data/lib/nordlet/bank/types/transactions_list_bank_response_rows_item.rb +2 -0
  28. data/lib/nordlet/bank/types/transactions_list_bank_response_rows_item_status.rb +1 -0
  29. data/lib/nordlet/bank/types/transactions_match_bank_request.rb +2 -0
  30. data/lib/nordlet/bank/types/transactions_match_bank_request_remainder.rb +13 -0
  31. data/lib/nordlet/bank/types/transactions_match_bank_request_remainder_treatment.rb +15 -0
  32. data/lib/nordlet/bank/types/transactions_match_bank_response.rb +2 -0
  33. data/lib/nordlet/bank/types/transactions_match_bank_response_status.rb +1 -0
  34. data/lib/nordlet/bank/types/transactions_match_many_bank_response.rb +2 -0
  35. data/lib/nordlet/bank/types/transactions_match_many_bank_response_status.rb +1 -0
  36. data/lib/nordlet/bank/types/transactions_post_bank_request.rb +25 -0
  37. data/lib/nordlet/bank/types/transactions_post_bank_response.rb +39 -0
  38. data/lib/nordlet/bank/types/transactions_post_bank_response_status.rb +15 -0
  39. data/lib/nordlet/bank/types/transactions_record_bank_response.rb +2 -0
  40. data/lib/nordlet/bank/types/transactions_record_bank_response_status.rb +1 -0
  41. data/lib/nordlet/bank/types/transactions_unignore_bank_request.rb +11 -0
  42. data/lib/nordlet/bank/types/transactions_unignore_bank_response.rb +39 -0
  43. data/lib/nordlet/bank/types/transactions_unignore_bank_response_status.rb +15 -0
  44. data/lib/nordlet/bank/types/transactions_unmatch_bank_response.rb +2 -0
  45. data/lib/nordlet/bank/types/transactions_unmatch_bank_response_status.rb +1 -0
  46. data/lib/nordlet/billing/client.rb +50 -10
  47. data/lib/nordlet/billing/types/account_get_billing_response.rb +2 -0
  48. data/lib/nordlet/billing/types/account_get_billing_response_month_to_date.rb +0 -2
  49. data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +2 -0
  50. data/lib/nordlet/billing/types/account_set_account_type_billing_response_month_to_date.rb +0 -2
  51. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +2 -0
  52. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_month_to_date.rb +0 -2
  53. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +2 -0
  54. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_month_to_date.rb +0 -2
  55. data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +2 -0
  56. data/lib/nordlet/billing/types/account_set_plan_billing_response_month_to_date.rb +0 -2
  57. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +2 -0
  58. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_month_to_date.rb +0 -2
  59. data/lib/nordlet/billing/types/flat_rate_create_billing_request.rb +2 -0
  60. data/lib/nordlet/billing/types/free_sandbox_start_billing_request.rb +9 -0
  61. data/lib/nordlet/billing/types/free_sandbox_start_billing_response.rb +55 -0
  62. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_account_type.rb +14 -0
  63. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_auto_top_up.rb +15 -0
  64. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_month_to_date.rb +25 -0
  65. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_plan.rb +16 -0
  66. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_plans_value.rb +19 -0
  67. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_site.rb +14 -0
  68. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_status.rb +15 -0
  69. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_top_up.rb +13 -0
  70. data/lib/nordlet/billing/types/subscription_cancel_billing_response.rb +2 -0
  71. data/lib/nordlet/billing/types/subscription_cancel_billing_response_month_to_date.rb +0 -2
  72. data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +2 -0
  73. data/lib/nordlet/billing/types/topup_confirm_billing_response_month_to_date.rb +0 -2
  74. data/lib/nordlet/billing/types/topup_create_billing_request.rb +2 -0
  75. data/lib/nordlet/calendar/client.rb +3 -1
  76. data/lib/nordlet/capture/client.rb +6 -188
  77. data/lib/nordlet/capture/types/documents_confirm_capture_response_invoice.rb +6 -0
  78. data/lib/nordlet/capture/types/documents_confirm_capture_response_invoice_status.rb +1 -0
  79. data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice.rb +6 -0
  80. data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_status.rb +1 -0
  81. data/lib/nordlet/cash/client.rb +11 -10
  82. data/lib/nordlet/declarations/client.rb +7 -3
  83. data/lib/nordlet/declarations/types/configs_list_declarations_response_rows_item_fields_item.rb +2 -0
  84. data/lib/nordlet/declarations/types/configs_update_declarations_response_fields_item.rb +2 -0
  85. data/lib/nordlet/hr/client.rb +3 -2
  86. data/lib/nordlet/ledger/client.rb +46 -5
  87. data/lib/nordlet/ledger/types/journal_transactions_get_ledger_response.rb +2 -0
  88. data/lib/nordlet/ledger/types/journal_transactions_reverse_ledger_request.rb +15 -0
  89. data/lib/nordlet/ledger/types/journal_transactions_reverse_ledger_response.rb +27 -0
  90. data/lib/nordlet/ledger/types/journal_transactions_reverse_ledger_response_status.rb +14 -0
  91. data/lib/nordlet/ledger/types/periods_lock_ledger_response.rb +2 -0
  92. data/lib/nordlet/ledger/types/periods_lock_ledger_response_warnings_item.rb +17 -0
  93. data/lib/nordlet/ledger/types/periods_lock_ledger_response_warnings_item_code.rb +21 -0
  94. data/lib/nordlet/partners/client.rb +10 -8
  95. data/lib/nordlet/public/types/invoices_get_public_response.rb +2 -0
  96. data/lib/nordlet/purchases/client.rb +77 -20
  97. data/lib/nordlet/purchases/types/invoices_create_purchases_request.rb +6 -0
  98. data/lib/nordlet/purchases/types/invoices_create_purchases_response.rb +8 -0
  99. data/lib/nordlet/purchases/types/invoices_create_purchases_response_status.rb +1 -0
  100. data/lib/nordlet/purchases/types/invoices_create_purchases_response_warnings_item.rb +13 -0
  101. data/lib/nordlet/purchases/types/invoices_get_purchases_response.rb +6 -0
  102. data/lib/nordlet/purchases/types/invoices_get_purchases_response_status.rb +1 -0
  103. data/lib/nordlet/purchases/types/invoices_list_purchases_response_rows_item.rb +6 -0
  104. data/lib/nordlet/purchases/types/invoices_list_purchases_response_rows_item_status.rb +1 -0
  105. data/lib/nordlet/purchases/types/invoices_register_purchases_response.rb +8 -0
  106. data/lib/nordlet/purchases/types/invoices_register_purchases_response_status.rb +1 -0
  107. data/lib/nordlet/purchases/types/invoices_register_purchases_response_warnings_item.rb +13 -0
  108. data/lib/nordlet/purchases/types/invoices_reverse_purchases_request.rb +15 -0
  109. data/lib/nordlet/purchases/types/invoices_reverse_purchases_response.rb +71 -0
  110. data/lib/nordlet/purchases/types/invoices_reverse_purchases_response_lines_item.rb +53 -0
  111. data/lib/nordlet/purchases/types/invoices_reverse_purchases_response_payment_status.rb +15 -0
  112. data/lib/nordlet/purchases/types/invoices_reverse_purchases_response_status.rb +15 -0
  113. data/lib/nordlet/{capture/types/documents_upload_capture_response_extraction_document_type.rb → purchases/types/invoices_reverse_purchases_response_type.rb} +2 -2
  114. data/lib/nordlet/purchases/types/invoices_update_purchases_request.rb +6 -0
  115. data/lib/nordlet/purchases/types/invoices_update_purchases_response.rb +6 -0
  116. data/lib/nordlet/purchases/types/invoices_update_purchases_response_status.rb +1 -0
  117. data/lib/nordlet/reference/client.rb +8 -2
  118. data/lib/nordlet/reference/types/vat_resolve_reference_request.rb +2 -0
  119. data/lib/nordlet/reference/types/vat_resolve_reference_request_side.rb +14 -0
  120. data/lib/nordlet/reference/types/vat_resolve_reference_response.rb +2 -0
  121. data/lib/nordlet/reports/client.rb +42 -0
  122. data/lib/nordlet/reports/types/period_checklist_reports_request.rb +11 -0
  123. data/lib/nordlet/reports/types/period_checklist_reports_response.rb +17 -0
  124. data/lib/nordlet/reports/types/period_checklist_reports_response_items_item.rb +17 -0
  125. data/lib/nordlet/reports/types/period_checklist_reports_response_items_item_code.rb +21 -0
  126. data/lib/nordlet/sales/client.rb +19 -8
  127. data/lib/nordlet/sales/types/invoices_create_sales_response.rb +2 -0
  128. data/lib/nordlet/sales/types/invoices_create_sales_response_warnings_item.rb +13 -0
  129. data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +2 -0
  130. data/lib/nordlet/sales/types/invoices_issue_sales_response_warnings_item.rb +13 -0
  131. data/lib/nordlet/sales/types/invoices_view_sales_response.rb +2 -0
  132. data/lib/nordlet/version.rb +1 -1
  133. data/lib/nordlet.rb +55 -19
  134. data/reference.md +1672 -1145
  135. metadata +57 -21
  136. data/lib/nordlet/capture/types/documents_upload_capture_request.rb +0 -15
  137. data/lib/nordlet/capture/types/documents_upload_capture_response.rb +0 -43
  138. data/lib/nordlet/capture/types/documents_upload_capture_response_extraction.rb +0 -33
  139. data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_lines_item.rb +0 -25
  140. data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_opposite_lines_item.rb +0 -25
  141. data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_supplier.rb +0 -19
  142. data/lib/nordlet/capture/types/documents_upload_capture_response_status.rb +0 -16
  143. data/lib/nordlet/capture/types/inbound_email_capture_request.rb +0 -27
  144. data/lib/nordlet/capture/types/inbound_email_capture_request_attachments_item.rb +0 -21
  145. data/lib/nordlet/capture/types/inbound_email_capture_request_to.rb +0 -15
  146. data/lib/nordlet/capture/types/inbound_email_capture_request_to_full_item.rb +0 -11
  147. data/lib/nordlet/capture/types/inbound_email_capture_response.rb +0 -15
  148. data/lib/nordlet/capture/types/settings_get_capture_request.rb +0 -9
  149. data/lib/nordlet/capture/types/settings_get_capture_response.rb +0 -17
  150. data/lib/nordlet/capture/types/settings_regenerate_intake_capture_request.rb +0 -9
  151. data/lib/nordlet/capture/types/settings_regenerate_intake_capture_response.rb +0 -17
  152. data/lib/nordlet/capture/types/settings_update_capture_request.rb +0 -13
  153. data/lib/nordlet/capture/types/settings_update_capture_response.rb +0 -17
data/reference.md CHANGED
@@ -997,7 +997,7 @@ client.reference.currencies_list
997
997
  <dl>
998
998
  <dd>
999
999
 
1000
- Lists the company's VAT types (code, country, name and rate). A document line names one in `vatClassifierCode` and takes its rate, VAT scheme and return boxes from it; a company that has VAT types refuses a line without one (422). `side` says whether the type is for sale lines, purchase lines or both, `scheme` is its VAT scheme and `nameEn` its English name; both are null for a type the company added itself. A type without a rate takes the line's `vatRatePercent` on the sides where `rateFromLine` is true, and 0% elsewhere. Filterable by `code`, `countryCode` and `ratePercent`; sortable by `code` and `ratePercent`.
1000
+ Lists the company's VAT types (code, country, name and rate). A document line names one in `vatClassifierCode` and takes its rate, VAT scheme and return boxes from it; a company that has VAT types refuses a line without one (422). `side` says whether the type is for sale lines, purchase lines or both, `scheme` is its VAT scheme and `nameEn` its English name; both are null for a type the company added itself. A type without a rate takes the line's `vatRatePercent` on the sides where `rateFromLine` is true, and 0% elsewhere. Filterable by `code`, `countryCode`, `ratePercent`, `side` and `scheme`; `side` and `scheme` take `eq`, `ne` and `in`, and `side` `sale` or `purchase` also matches the types for both sides. Sortable by `code` and `ratePercent`.
1001
1001
  </dd>
1002
1002
  </dl>
1003
1003
  </dd>
@@ -1302,7 +1302,7 @@ client.reference.eu_vat_rates_set_overrides(
1302
1302
  <dl>
1303
1303
  <dd>
1304
1304
 
1305
- Works out the VAT treatment of a supply by this company: the scheme (domestic, intra-EU B2B, reverse charge, OSS, IOSS, marketplace deemed supplier, export, out of scope or SME exempt), the country whose VAT applies, its rates with the company's overrides applied, and the legal basis. The customer comes from `partnerId` (country from the partner's address or VAT number, business status from the VAT number) or from `customerCountryCode` and `customerIsBusiness`; `date` defaults to the company's current date; when `belowDistanceSalesThreshold` is not given, the distance-sales threshold is tracked from the company's ledger. Answers 422 when the partner has neither an address country nor a VAT code.
1305
+ Works out the VAT treatment of a supply by this company: the scheme (domestic, intra-EU B2B, reverse charge, OSS, IOSS, marketplace deemed supplier, export, out of scope or SME exempt), the country whose VAT applies, its rates with the company's overrides applied, and the legal basis. The customer comes from `partnerId` (country from the partner's address or VAT number, business status from the VAT number) or from `customerCountryCode` and `customerIsBusiness`; `date` defaults to the company's current date; when `belowDistanceSalesThreshold` is not given, the distance-sales threshold is tracked from the company's ledger. Answers 422 when the partner has neither an address country nor a VAT code. `vatTypeCodes` lists the codes of the VAT types of the company's country that fit the treatment and are valid on `date` (for `vatClassifierCode` on a line), empty when none is known; when they all belong to one of the schemes `intra_eu_b2b` and `reverse_charge`, `scheme` is that scheme. With `side` `purchase` the partner (or `customerCountryCode` and `customerIsBusiness`) is the supplier, the treatment is that of the supplier's supply to this company, `vatTypeCodes` are purchase types, and the marketplace, platform-service and special-goods fields are not used.
1306
1306
  </dd>
1307
1307
  </dl>
1308
1308
  </dd>
@@ -1364,6 +1364,14 @@ client.reference.vat_resolve
1364
1364
  <dl>
1365
1365
  <dd>
1366
1366
 
1367
+ **side:** `Nordlet::Reference::Types::VatResolveReferenceRequestSide`
1368
+
1369
+ </dd>
1370
+ </dl>
1371
+
1372
+ <dl>
1373
+ <dd>
1374
+
1367
1375
  **date:** `String`
1368
1376
 
1369
1377
  </dd>
@@ -2776,7 +2784,7 @@ client.partners.contacts_list
2776
2784
  <dl>
2777
2785
  <dd>
2778
2786
 
2779
- Adds a bank account to the partner in `partnerId`. The IBAN is stored without spaces in upper case; an IBAN the partner already has is refused with 409. With `isDefault` true the partner's other accounts lose their default mark.
2787
+ Adds a bank account to the partner in `partnerId`. The IBAN is stored without spaces in upper case; an IBAN whose check digits fail (ISO 13616) is refused with 422 and one the partner already has with 409. With `isDefault` true the partner's other accounts lose their default mark.
2780
2788
  </dd>
2781
2789
  </dl>
2782
2790
  </dd>
@@ -2881,7 +2889,7 @@ client.partners.bank_accounts_create(
2881
2889
  <dl>
2882
2890
  <dd>
2883
2891
 
2884
- Changes the given fields of a partner bank account. A new IBAN is stored without spaces in upper case and is refused with 409 when the partner already has it; when the account is the default after the change, the partner's other accounts lose their default mark.
2892
+ Changes the given fields of a partner bank account. A new IBAN is stored without spaces in upper case and is refused with 422 when its check digits fail (ISO 13616) and with 409 when the partner already has it; when the account is the default after the change, the partner's other accounts lose their default mark.
2885
2893
  </dd>
2886
2894
  </dl>
2887
2895
  </dd>
@@ -4114,7 +4122,7 @@ client.partners.create(name: "name")
4114
4122
  <dl>
4115
4123
  <dd>
4116
4124
 
4117
- Returns the live partner matched by `code`, then `vatCode`, then `email` (at least one is required), or creates one from the body with the same validation and VIES check as `partners/create`; `created` says which happened. A creation that loses a race on the partner code returns the partner the other call created.
4125
+ Returns the live partner matched by `code`, then `vatCode` (compared without spaces, dots and dashes and without regard to case), then `email` (at least one is required), or creates one from the body with the same validation and VIES check as `partners/create`; `created` says which happened. Without `isCustomer` a new partner is a customer unless `isSupplier` is true. A creation that loses a race on the partner code returns the partner the other call created.
4118
4126
  </dd>
4119
4127
  </dl>
4120
4128
  </dd>
@@ -10861,7 +10869,7 @@ client.catalog.price_lists_items_delete(
10861
10869
  <dl>
10862
10870
  <dd>
10863
10871
 
10864
- Create a draft sale document - an invoice, credit note, proforma or advance invoice (`type`) - with its lines; the totals are computed from the lines and `discountPercent`, and the number is assigned by `sales/invoices/issue`. Answers 422 when a credit note credits a proforma, another credit note or a document that is not issued, when the credited document has another partner or currency, when an OSS or IOSS document has no EU `vatCountryCode`, when the lines carry VAT but the company is not a VAT payer or the VAT scheme charges none, or when the operation type or document series is for another document type.
10872
+ Create a draft sale document - an invoice, credit note, proforma or advance invoice (`type`) - with its lines; the totals are computed from the lines and `discountPercent`, and the number is assigned by `sales/invoices/issue`. Answers 422 when a credit note credits a proforma, another credit note or a document that is not issued, when the credited document has another partner or currency, when an OSS or IOSS document has no EU `vatCountryCode`, when the lines carry VAT but the company is not a VAT payer or the VAT scheme charges none, or when the operation type or document series is for another document type. `warnings` lists what does not refuse the document but needs a look: `vat_type_not_valid_on_date` (a line VAT type is not valid on the issue date, else today), `vat_type_domestic_for_eu_partner` (a domestic VAT type for a partner VAT-registered in another EU country), `vat_type_intra_eu_for_domestic_partner` (an intra-EU VAT type for a partner in the company country) and `vat_type_intra_eu_without_vat_number` (an intra-EU VAT type for a partner without a VAT number).
10865
10873
  </dd>
10866
10874
  </dl>
10867
10875
  </dd>
@@ -11306,7 +11314,7 @@ client.sales.invoices_pdf(id: "id")
11306
11314
  <dl>
11307
11315
  <dd>
11308
11316
 
11309
- Return a sale document as its customer sees it: the seller as printed on it (the snapshot taken at issue, else the company), the buyer with address and e-mail, the lines, the totals, `paidOn` (the date of the latest payment once the document is paid), `payUrl` (as in `sales/invoices/payment-link`; null while `cardPaymentReceived`), `cardPaymentReceived` (a completed card payment was received and the invoice waits for the payout settlement) and `token`, the document's customer token for `public/invoices/get` and `public/invoices/pdf`, created on first use; `token` is null on a draft.
11317
+ Return a sale document as its customer sees it: the seller as printed on it (the snapshot taken at issue, else the company), the buyer with address and e-mail, the lines, the totals, `paidOn` (the date of the latest payment once the document is paid), `payUrl` (as in `sales/invoices/payment-link`; null while `cardPaymentReceived`), `cardPaymentReceived` (a completed card payment was received and the invoice waits for the payout settlement), `sentWith` (the name the public invoice page prints in its "Sent with" line: Nordlet, or the brand name of the white-label partner who pays for the company, null when that partner has set no name) and `token`, the document's customer token for `public/invoices/get` and `public/invoices/pdf`, created on first use; `token` is null on a draft.
11310
11318
  </dd>
11311
11319
  </dl>
11312
11320
  </dd>
@@ -11640,7 +11648,7 @@ client.sales.invoices_peppol_status(id: "id")
11640
11648
  <dl>
11641
11649
  <dd>
11642
11650
 
11643
- Render an issued invoice as the national e-invoicing payload for the company country: FatturaPA (IT), KSeF FA(3) (PL) or UBL CIUS-RO (RO). Review the warnings - data the invoice does not carry is flagged, never invented.
11651
+ Render an issued invoice as the national e-invoicing payload for the company country: SII or Veri*Factu (ES), Factur-X (FR), myDATA (GR), Fiskalizacija (HR), NAV Online Számla (HU), FatturaPA (IT), KSeF FA(3) (PL), AT comunicação de faturas (PT) or UBL CIUS-RO (RO). Review the warnings - data the invoice does not carry is flagged, never invented.
11644
11652
  </dd>
11645
11653
  </dl>
11646
11654
  </dd>
@@ -12166,7 +12174,7 @@ client.sales.invoices_delete(id: "id")
12166
12174
  <dl>
12167
12175
  <dd>
12168
12176
 
12169
- Issue a draft sale document: assigns the next number (from its document series, else from `series` or the type's default prefix and the year), the issue date (`issueDate`, else the draft's, else today) and a missing due date from the partner's payment term, and for an invoice, credit note or advance invoice posts the journal entry and stores the VAT evidence. `warehouseId` (or the series' warehouse) takes the sold goods of an invoice out of stock, the first-expiring lot first (lots without an expiry date after those with one, then the oldest layers first), leaving out expired lots, with a cost of goods sold entry; `returnToStock` puts them back for a credit note that credits an invoice. A credit note is set against the unpaid balance of the credited document. Emits `sale_invoice.issued`, `sale_invoice.paid` when a credit note settles the credited invoice in full, and `intercompany.invoice_mirrored` when the partner is linked to another company of the group (a draft purchase invoice is created there). Answers 409 when the document is already issued or locked or the accounting period is locked, 422 when the lines carry VAT under a scheme that charges none, when credit notes would exceed the credited total, or when `returnToStock` is used on anything but a credit note of an invoice.
12177
+ Issue a draft sale document: assigns the next number (from its document series, else from `series` or the type's default prefix and the year), the issue date (`issueDate`, else the draft's, else today) and a missing due date from the partner's payment term, and for an invoice, credit note or advance invoice posts the journal entry and stores the VAT evidence. `warehouseId` (or the series' warehouse) takes the sold goods of an invoice out of stock, the first-expiring lot first (lots without an expiry date after those with one, then the oldest layers first), leaving out expired lots, with a cost of goods sold entry; `returnToStock` puts them back for a credit note that credits an invoice. A credit note is set against the unpaid balance of the credited document. Emits `sale_invoice.issued`, `sale_invoice.paid` when a credit note settles the credited invoice in full, and `intercompany.invoice_mirrored` when the partner is linked to another company of the group (a draft purchase invoice is created there). Answers 409 when the document is already issued or locked or the accounting period is locked, 422 when the lines carry VAT under a scheme that charges none, when credit notes would exceed the credited total, or when `returnToStock` is used on anything but a credit note of an invoice. `warnings` carries the VAT type warnings of `sales/invoices/create` and `document_date_before_last_number` when the document is dated before the last number issued in its series.
12170
12178
  </dd>
12171
12179
  </dl>
12172
12180
  </dd>
@@ -14618,7 +14626,7 @@ client.sales.recurring_invoices_delete(id: "id")
14618
14626
  <dl>
14619
14627
  <dd>
14620
14628
 
14621
- Generate the next invoice of a schedule now, dated its `nextRunDate`: creates a draft from the template (due date from the template's payment term, VAT scheme from the template or else resolved for the partner and supply type), issues it when `autoIssue` is set and e-mails it when `autoSend` is set, then moves the schedule to its next occurrence (or to `finished` after the last one) and emits `recurring_invoice.generated`. A failure to issue or send comes back in `error` and is stored as `lastError`; the draft stays. Answers 409 when the schedule is finished, 422 when the template is a credit note template or has no lines.
14629
+ Generate the next invoice of a schedule now, dated its `nextRunDate`: creates a draft from the template (due date from the template's payment term, VAT scheme from the template or else resolved for the partner and supply type), issues it when `autoIssue` is set and e-mails it when `autoSend` is set, then moves the schedule to its next occurrence (or to `finished` after the last one) and emits `recurring_invoice.generated`. A failure to issue or send comes back in `error` and is stored as `lastError`; the draft stays. Answers 409 when the schedule is finished or its `nextRunDate` is after the company's current date, 422 when the template is a credit note template or has no lines.
14622
14630
  </dd>
14623
14631
  </dl>
14624
14632
  </dd>
@@ -17110,7 +17118,7 @@ client.document_series.list
17110
17118
  <dl>
17111
17119
  <dd>
17112
17120
 
17113
- Create a draft purchase invoice or credit note (`type`) from a supplier document; it is posted with `purchases/invoices/register`. Lines without a unit price take the item's supplier or purchase price, `currency` defaults to the company's invoice currency, `documentRef` links an uploaded file, and the gross total leaves out self-assessed VAT. `creditedInvoiceId` (credit notes only) must be an invoice of the same partner, `purchaseOrderId` an order of the same partner that is not draft, submitted or cancelled, and `operationTypeId` an active purchase operation type, each 422 otherwise; the same `documentNumber` for the same partner is refused with 409.
17121
+ Create a draft purchase invoice or credit note (`type`) from a supplier document; it is posted with `purchases/invoices/register`. Lines without a unit price take the item's supplier or purchase price, `currency` defaults to the company's invoice currency, `documentRef` links an uploaded file, and the gross total is the amount owed: it leaves out self-assessed VAT (reverse charge, intra-EU acquisitions and import VAT the buyer declares in its VAT return) and the value of lines whose VAT type is import VAT assessed by customs. `netTotal`, `vatTotal` and `grossTotal` are the totals printed on the document, with the meanings of the response fields: a difference of at most 0.01 from the totals of the lines is put on the line with the largest amount and the printed totals are stored, a larger one is refused with 422 naming both sets of totals. `creditedInvoiceId` (credit notes only) must be an invoice of the same partner, `purchaseOrderId` an order of the same partner that is not draft, submitted or cancelled, and `operationTypeId` an active purchase operation type, each 422 otherwise; the same `documentNumber` for the same partner is refused with 409; numbers are compared without regard to case, and spaces, dashes, slashes, dots and underscores count as one separator. `warnings` lists what does not refuse the document but needs a look: `vat_type_not_valid_on_date`, `vat_type_domestic_for_eu_partner` and `vat_type_intra_eu_for_domestic_partner` as on `sales/invoices/create` (on the document date), and `possible_duplicate` when the supplier already has a document of the same type with the same document date and gross total.
17114
17122
  </dd>
17115
17123
  </dl>
17116
17124
  </dd>
@@ -17281,6 +17289,30 @@ client.purchases.invoices_create(
17281
17289
  <dl>
17282
17290
  <dd>
17283
17291
 
17292
+ **net_total:** `String`
17293
+
17294
+ </dd>
17295
+ </dl>
17296
+
17297
+ <dl>
17298
+ <dd>
17299
+
17300
+ **vat_total:** `String`
17301
+
17302
+ </dd>
17303
+ </dl>
17304
+
17305
+ <dl>
17306
+ <dd>
17307
+
17308
+ **gross_total:** `String`
17309
+
17310
+ </dd>
17311
+ </dl>
17312
+
17313
+ <dl>
17314
+ <dd>
17315
+
17284
17316
  **request_options:** `Nordlet::Purchases::RequestOptions`
17285
17317
 
17286
17318
  </dd>
@@ -17367,7 +17399,7 @@ client.purchases.invoices_get(id: "id")
17367
17399
  <dl>
17368
17400
  <dd>
17369
17401
 
17370
- Change a draft purchase invoice (409 once registered); only the fields sent are changed, and `lines` replace all existing lines with the totals recomputed. `purchaseOrderId` and `operationTypeId` are checked as on `purchases/invoices/create` (422). A `documentNumber` already used for the partner is refused with 409.
17402
+ Change a draft purchase invoice (409 once registered); only the fields sent are changed, and `lines` replace all existing lines with the totals recomputed. `netTotal`, `vatTotal` and `grossTotal` are the printed totals as on `purchases/invoices/create`; sent without `lines`, they are applied to the stored lines. `purchaseOrderId` and `operationTypeId` are checked as on `purchases/invoices/create` (422). A `documentNumber` already used for the partner is refused with 409, compared as on `purchases/invoices/create`.
17371
17403
  </dd>
17372
17404
  </dl>
17373
17405
  </dd>
@@ -17517,6 +17549,30 @@ client.purchases.invoices_update(id: "id")
17517
17549
  <dl>
17518
17550
  <dd>
17519
17551
 
17552
+ **net_total:** `String`
17553
+
17554
+ </dd>
17555
+ </dl>
17556
+
17557
+ <dl>
17558
+ <dd>
17559
+
17560
+ **vat_total:** `String`
17561
+
17562
+ </dd>
17563
+ </dl>
17564
+
17565
+ <dl>
17566
+ <dd>
17567
+
17568
+ **gross_total:** `String`
17569
+
17570
+ </dd>
17571
+ </dl>
17572
+
17573
+ <dl>
17574
+ <dd>
17575
+
17520
17576
  **request_options:** `Nordlet::Purchases::RequestOptions`
17521
17577
 
17522
17578
  </dd>
@@ -17603,7 +17659,7 @@ client.purchases.invoices_delete(id: "id")
17603
17659
  <dl>
17604
17660
  <dd>
17605
17661
 
17606
- Register a draft purchase invoice or credit note: posts the journal entry dated `registrationDate` (default the document date) and sets the status to `registered`. The entry debits each line's expense account (the line's `accountCode`, else the item's purchase or expense account, else the operation type's expense account, else the `purchases.goodsForResale` or `purchases.defaultExpense` rule account), debits VAT receivable (a company that is not a VAT payer books the VAT into the expense instead), credits payables (the operation type's credit account when set) and credits output VAT for self-assessed VAT; a credit note posts the reverse. Lines with `deferralStartDate` and `deferralEndDate` are debited to the `purchases.prepaidExpenses` account instead and get a monthly release schedule for `purchases/deferrals/post`. With `warehouseId` the product lines of an invoice are received into stock at their base-currency cost, into the lot named by the line's `lotNumber` (an unknown lot is created, and the line's `expiryDate` is stored on a lot that has none) (422 on an order-linked invoice, whose goods arrive through `purchases/receipts/create`, for a line that is also deferred and for a lot- or serial-tracked item without `lotNumber`); `returnFromStock` on a credit note that credits an invoice takes the goods back out of stock at their FIFO cost and books the difference to the credited amount on the `inventory.cogs` account (422 on an invoice, without `creditedInvoiceId`, or when no goods of the credited invoice are in stock). A credit note that credits a registered invoice in the same currency is applied to it as a payment up to the open amount. Refused with 409 when already registered or the accounting period is locked, and with 422 when the credit notes would exceed the credited invoice, a posting account is missing or no exchange rate exists for the date. Emits `purchase_invoice.registered`, `purchase_invoice.paid` when the credited invoice becomes fully paid, and `stock.changed` when stock moves.
17662
+ Register a draft purchase invoice or credit note: posts the journal entry dated `registrationDate` (default the document date) and sets the status to `registered`. The entry debits each line's expense account (the line's `accountCode`, else the item's purchase or expense account, else the operation type's expense account, else the `purchases.goodsForResale` or `purchases.defaultExpense` rule account), debits VAT receivable with the deductible VAT (the share of the line's VAT that its VAT type allows to deduct; the rest, and all VAT of a company that is not a VAT payer, is booked into the expense), credits payables (the operation type's credit account when set) and credits output VAT for self-assessed VAT (reverse charge, intra-EU acquisitions and import VAT the buyer declares in its VAT return); a line whose VAT type is import VAT assessed by customs posts only its VAT, owed to the document's partner, and is not received into stock; a credit note posts the reverse. Lines with `deferralStartDate` and `deferralEndDate` are debited to the `purchases.prepaidExpenses` account instead and get a monthly release schedule for `purchases/deferrals/post`. With `warehouseId` the product lines of an invoice are received into stock at their base-currency cost, into the lot named by the line's `lotNumber` (an unknown lot is created, and the line's `expiryDate` is stored on a lot that has none) (422 on an order-linked invoice, whose goods arrive through `purchases/receipts/create`, for a line that is also deferred and for a lot- or serial-tracked item without `lotNumber`); `returnFromStock` on a credit note that credits an invoice takes the goods back out of stock at their FIFO cost and books the difference to the credited amount on the `inventory.cogs` account (422 on an invoice, without `creditedInvoiceId`, or when no goods of the credited invoice are in stock). A credit note that credits a registered invoice in the same currency is applied to it as a payment up to the open amount. Refused with 409 when already registered or the accounting period is locked, and with 422 when the credit notes would exceed the credited invoice, the gross total differs from what the lines give by more than 0.01 (or the converted amounts by more than their conversion rounding), a posting account is missing or no exchange rate exists for the date. Emits `purchase_invoice.registered`, `purchase_invoice.paid` when the credited invoice becomes fully paid, and `stock.changed` when stock moves. `warnings` carries the VAT type warnings of `purchases/invoices/create`.
17607
17663
  </dd>
17608
17664
  </dl>
17609
17665
  </dd>
@@ -17927,7 +17983,7 @@ client.purchases.invoices_list
17927
17983
  </dl>
17928
17984
  </details>
17929
17985
 
17930
- <details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_create</a>(request) -> Nordlet::Purchases::Types::OrdersCreatePurchasesResponse</code></summary>
17986
+ <details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">invoices_reverse</a>(request) -> Nordlet::Purchases::Types::InvoicesReversePurchasesResponse</code></summary>
17931
17987
  <dl>
17932
17988
  <dd>
17933
17989
 
@@ -17939,7 +17995,7 @@ client.purchases.invoices_list
17939
17995
  <dl>
17940
17996
  <dd>
17941
17997
 
17942
- Create a draft purchase order for a supplier. Lines without a unit price take the item's supplier or purchase price; `orderNumber` comes from the `purchase_order` series with prefix PO when not given; `currency` defaults to the company's invoice currency; `documentRef` links an uploaded file to the order. A number already in use is refused with 409. The order continues with `purchases/orders/submit`, `purchases/orders/approve` and `purchases/receipts/create`.
17998
+ Posts a journal entry dated `date` (default the registration date) that mirrors the document's entry (debits and credits swapped), reverses the prepaid-expense releases already posted for it, cancels its pending releases and sets the status to `reversed` with the reason. The reversed document leaves the VAT returns, the open items and payment matching, and its supplier `documentNumber` can be entered again. `date` must be in the month of the registration date and not before it (422; correct an earlier month with a credit note). Answers 409 when the document is not registered, when the accounting period of `date` is locked (naming the period), when registered credit notes credit it, when payments are matched to it (naming them; unmatch them first), and when it moved goods in or out of stock or is the source of a landed cost (post a credit note with `returnFromStock` instead).
17943
17999
  </dd>
17944
18000
  </dl>
17945
18001
  </dd>
@@ -17954,10 +18010,9 @@ Create a draft purchase order for a supplier. Lines without a unit price take th
17954
18010
  <dd>
17955
18011
 
17956
18012
  ```ruby
17957
- client.purchases.orders_create(
17958
- partner_id: "partnerId",
17959
- order_date: "2026-07-01",
17960
- lines: [{}]
18013
+ client.purchases.invoices_reverse(
18014
+ id: "id",
18015
+ reason: "reason"
17961
18016
  )
17962
18017
  ```
17963
18018
  </dd>
@@ -17973,55 +18028,7 @@ client.purchases.orders_create(
17973
18028
  <dl>
17974
18029
  <dd>
17975
18030
 
17976
- **partner_id:** `String`
17977
-
17978
- </dd>
17979
- </dl>
17980
-
17981
- <dl>
17982
- <dd>
17983
-
17984
- **order_number:** `String`
17985
-
17986
- </dd>
17987
- </dl>
17988
-
17989
- <dl>
17990
- <dd>
17991
-
17992
- **order_date:** `String`
17993
-
17994
- </dd>
17995
- </dl>
17996
-
17997
- <dl>
17998
- <dd>
17999
-
18000
- **expected_date:** `String`
18001
-
18002
- </dd>
18003
- </dl>
18004
-
18005
- <dl>
18006
- <dd>
18007
-
18008
- **warehouse_id:** `String`
18009
-
18010
- </dd>
18011
- </dl>
18012
-
18013
- <dl>
18014
- <dd>
18015
-
18016
- **currency:** `String`
18017
-
18018
- </dd>
18019
- </dl>
18020
-
18021
- <dl>
18022
- <dd>
18023
-
18024
- **notes:** `String`
18031
+ **id:** `String`
18025
18032
 
18026
18033
  </dd>
18027
18034
  </dl>
@@ -18029,7 +18036,7 @@ client.purchases.orders_create(
18029
18036
  <dl>
18030
18037
  <dd>
18031
18038
 
18032
- **document_ref:** `String`
18039
+ **reason:** `String`
18033
18040
 
18034
18041
  </dd>
18035
18042
  </dl>
@@ -18037,7 +18044,7 @@ client.purchases.orders_create(
18037
18044
  <dl>
18038
18045
  <dd>
18039
18046
 
18040
- **lines:** `Internal::Types::Array[Nordlet::Purchases::Types::OrdersCreatePurchasesRequestLinesItem]`
18047
+ **date:** `String`
18041
18048
 
18042
18049
  </dd>
18043
18050
  </dl>
@@ -18057,7 +18064,7 @@ client.purchases.orders_create(
18057
18064
  </dl>
18058
18065
  </details>
18059
18066
 
18060
- <details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_update</a>(request) -> Nordlet::Purchases::Types::OrdersUpdatePurchasesResponse</code></summary>
18067
+ <details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_create</a>(request) -> Nordlet::Purchases::Types::OrdersCreatePurchasesResponse</code></summary>
18061
18068
  <dl>
18062
18069
  <dd>
18063
18070
 
@@ -18069,7 +18076,7 @@ client.purchases.orders_create(
18069
18076
  <dl>
18070
18077
  <dd>
18071
18078
 
18072
- Change a draft purchase order (409 once it is submitted); only the fields sent are changed. `lines` replace all existing lines and the totals are recomputed.
18079
+ Create a draft purchase order for a supplier. Lines without a unit price take the item's supplier or purchase price; `orderNumber` comes from the `purchase_order` series with prefix PO when not given; `currency` defaults to the company's invoice currency; `documentRef` links an uploaded file to the order. A number already in use is refused with 409. The order continues with `purchases/orders/submit`, `purchases/orders/approve` and `purchases/receipts/create`.
18073
18080
  </dd>
18074
18081
  </dl>
18075
18082
  </dd>
@@ -18084,7 +18091,11 @@ Change a draft purchase order (409 once it is submitted); only the fields sent a
18084
18091
  <dd>
18085
18092
 
18086
18093
  ```ruby
18087
- client.purchases.orders_update(id: "id")
18094
+ client.purchases.orders_create(
18095
+ partner_id: "partnerId",
18096
+ order_date: "2026-07-01",
18097
+ lines: [{}]
18098
+ )
18088
18099
  ```
18089
18100
  </dd>
18090
18101
  </dl>
@@ -18099,7 +18110,7 @@ client.purchases.orders_update(id: "id")
18099
18110
  <dl>
18100
18111
  <dd>
18101
18112
 
18102
- **id:** `String`
18113
+ **partner_id:** `String`
18103
18114
 
18104
18115
  </dd>
18105
18116
  </dl>
@@ -18107,7 +18118,7 @@ client.purchases.orders_update(id: "id")
18107
18118
  <dl>
18108
18119
  <dd>
18109
18120
 
18110
- **partner_id:** `String`
18121
+ **order_number:** `String`
18111
18122
 
18112
18123
  </dd>
18113
18124
  </dl>
@@ -18155,69 +18166,15 @@ client.purchases.orders_update(id: "id")
18155
18166
  <dl>
18156
18167
  <dd>
18157
18168
 
18158
- **lines:** `Internal::Types::Array[Nordlet::Purchases::Types::OrdersUpdatePurchasesRequestLinesItem]`
18159
-
18160
- </dd>
18161
- </dl>
18162
-
18163
- <dl>
18164
- <dd>
18165
-
18166
- **request_options:** `Nordlet::Purchases::RequestOptions`
18169
+ **document_ref:** `String`
18167
18170
 
18168
18171
  </dd>
18169
18172
  </dl>
18170
- </dd>
18171
- </dl>
18172
-
18173
-
18174
- </dd>
18175
- </dl>
18176
- </details>
18177
-
18178
- <details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_get</a>(request) -> Nordlet::Purchases::Types::OrdersGetPurchasesResponse</code></summary>
18179
- <dl>
18180
- <dd>
18181
-
18182
- #### 📝 Description
18183
-
18184
- <dl>
18185
- <dd>
18186
-
18187
- <dl>
18188
- <dd>
18189
-
18190
- Return one purchase order with its lines; each line carries `receivedQty` and `remainingQty`.
18191
- </dd>
18192
- </dl>
18193
- </dd>
18194
- </dl>
18195
-
18196
- #### 🔌 Usage
18197
-
18198
- <dl>
18199
- <dd>
18200
-
18201
- <dl>
18202
- <dd>
18203
-
18204
- ```ruby
18205
- client.purchases.orders_get(id: "id")
18206
- ```
18207
- </dd>
18208
- </dl>
18209
- </dd>
18210
- </dl>
18211
-
18212
- #### ⚙️ Parameters
18213
-
18214
- <dl>
18215
- <dd>
18216
18173
 
18217
18174
  <dl>
18218
18175
  <dd>
18219
18176
 
18220
- **id:** `String`
18177
+ **lines:** `Internal::Types::Array[Nordlet::Purchases::Types::OrdersCreatePurchasesRequestLinesItem]`
18221
18178
 
18222
18179
  </dd>
18223
18180
  </dl>
@@ -18237,7 +18194,7 @@ client.purchases.orders_get(id: "id")
18237
18194
  </dl>
18238
18195
  </details>
18239
18196
 
18240
- <details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_list</a>(request) -> Nordlet::Purchases::Types::OrdersListPurchasesResponse</code></summary>
18197
+ <details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_update</a>(request) -> Nordlet::Purchases::Types::OrdersUpdatePurchasesResponse</code></summary>
18241
18198
  <dl>
18242
18199
  <dd>
18243
18200
 
@@ -18249,7 +18206,7 @@ client.purchases.orders_get(id: "id")
18249
18206
  <dl>
18250
18207
  <dd>
18251
18208
 
18252
- List purchase orders without lines, with the supplier's `partnerName`. Filterable by `partnerId`, `status`, `orderNumber`, `orderDate`, `currency` and `grossTotal`; sortable by `createdAt`, `orderDate`, `orderNumber` and `grossTotal`.
18209
+ Change a draft purchase order (409 once it is submitted); only the fields sent are changed. `lines` replace all existing lines and the totals are recomputed.
18253
18210
  </dd>
18254
18211
  </dl>
18255
18212
  </dd>
@@ -18264,7 +18221,7 @@ List purchase orders without lines, with the supplier's `partnerName`. Filterabl
18264
18221
  <dd>
18265
18222
 
18266
18223
  ```ruby
18267
- client.purchases.orders_list
18224
+ client.purchases.orders_update(id: "id")
18268
18225
  ```
18269
18226
  </dd>
18270
18227
  </dl>
@@ -18279,7 +18236,7 @@ client.purchases.orders_list
18279
18236
  <dl>
18280
18237
  <dd>
18281
18238
 
18282
- **page:** `Integer`
18239
+ **id:** `String`
18283
18240
 
18284
18241
  </dd>
18285
18242
  </dl>
@@ -18287,7 +18244,7 @@ client.purchases.orders_list
18287
18244
  <dl>
18288
18245
  <dd>
18289
18246
 
18290
- **page_size:** `Integer`
18247
+ **partner_id:** `String`
18291
18248
 
18292
18249
  </dd>
18293
18250
  </dl>
@@ -18295,7 +18252,7 @@ client.purchases.orders_list
18295
18252
  <dl>
18296
18253
  <dd>
18297
18254
 
18298
- **sort:** `Internal::Types::Array[Nordlet::Purchases::Types::OrdersListPurchasesRequestSortItem]`
18255
+ **order_date:** `String`
18299
18256
 
18300
18257
  </dd>
18301
18258
  </dl>
@@ -18303,7 +18260,7 @@ client.purchases.orders_list
18303
18260
  <dl>
18304
18261
  <dd>
18305
18262
 
18306
- **filter:** `Internal::Types::Array[Nordlet::Purchases::Types::OrdersListPurchasesRequestFilterItem]`
18263
+ **expected_date:** `String`
18307
18264
 
18308
18265
  </dd>
18309
18266
  </dl>
@@ -18311,7 +18268,7 @@ client.purchases.orders_list
18311
18268
  <dl>
18312
18269
  <dd>
18313
18270
 
18314
- **totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
18271
+ **warehouse_id:** `String`
18315
18272
 
18316
18273
  </dd>
18317
18274
  </dl>
@@ -18319,61 +18276,15 @@ client.purchases.orders_list
18319
18276
  <dl>
18320
18277
  <dd>
18321
18278
 
18322
- **request_options:** `Nordlet::Purchases::RequestOptions`
18279
+ **currency:** `String`
18323
18280
 
18324
18281
  </dd>
18325
18282
  </dl>
18326
- </dd>
18327
- </dl>
18328
-
18329
-
18330
- </dd>
18331
- </dl>
18332
- </details>
18333
-
18334
- <details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_submit</a>(request) -> Nordlet::Purchases::Types::OrdersSubmitPurchasesResponse</code></summary>
18335
- <dl>
18336
- <dd>
18337
-
18338
- #### 📝 Description
18339
-
18340
- <dl>
18341
- <dd>
18342
-
18343
- <dl>
18344
- <dd>
18345
-
18346
- Move a `draft` purchase order to `submitted` for approval (409 from any other status). `reason` is kept in the audit log.
18347
- </dd>
18348
- </dl>
18349
- </dd>
18350
- </dl>
18351
-
18352
- #### 🔌 Usage
18353
-
18354
- <dl>
18355
- <dd>
18356
-
18357
- <dl>
18358
- <dd>
18359
-
18360
- ```ruby
18361
- client.purchases.orders_submit(id: "id")
18362
- ```
18363
- </dd>
18364
- </dl>
18365
- </dd>
18366
- </dl>
18367
-
18368
- #### ⚙️ Parameters
18369
-
18370
- <dl>
18371
- <dd>
18372
18283
 
18373
18284
  <dl>
18374
18285
  <dd>
18375
18286
 
18376
- **id:** `String`
18287
+ **notes:** `String`
18377
18288
 
18378
18289
  </dd>
18379
18290
  </dl>
@@ -18381,7 +18292,7 @@ client.purchases.orders_submit(id: "id")
18381
18292
  <dl>
18382
18293
  <dd>
18383
18294
 
18384
- **reason:** `String`
18295
+ **lines:** `Internal::Types::Array[Nordlet::Purchases::Types::OrdersUpdatePurchasesRequestLinesItem]`
18385
18296
 
18386
18297
  </dd>
18387
18298
  </dl>
@@ -18401,7 +18312,7 @@ client.purchases.orders_submit(id: "id")
18401
18312
  </dl>
18402
18313
  </details>
18403
18314
 
18404
- <details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_approve</a>(request) -> Nordlet::Purchases::Types::OrdersApprovePurchasesResponse</code></summary>
18315
+ <details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_get</a>(request) -> Nordlet::Purchases::Types::OrdersGetPurchasesResponse</code></summary>
18405
18316
  <dl>
18406
18317
  <dd>
18407
18318
 
@@ -18413,7 +18324,7 @@ client.purchases.orders_submit(id: "id")
18413
18324
  <dl>
18414
18325
  <dd>
18415
18326
 
18416
- Approve a `submitted` purchase order (409 from any other status), recording who approved it and when; needs the `purchases:approve` scope. Goods are then received with `purchases/receipts/create`. Emits `purchase_order.approved`.
18327
+ Return one purchase order with its lines; each line carries `receivedQty` and `remainingQty`.
18417
18328
  </dd>
18418
18329
  </dl>
18419
18330
  </dd>
@@ -18428,7 +18339,233 @@ Approve a `submitted` purchase order (409 from any other status), recording who
18428
18339
  <dd>
18429
18340
 
18430
18341
  ```ruby
18431
- client.purchases.orders_approve(id: "id")
18342
+ client.purchases.orders_get(id: "id")
18343
+ ```
18344
+ </dd>
18345
+ </dl>
18346
+ </dd>
18347
+ </dl>
18348
+
18349
+ #### ⚙️ Parameters
18350
+
18351
+ <dl>
18352
+ <dd>
18353
+
18354
+ <dl>
18355
+ <dd>
18356
+
18357
+ **id:** `String`
18358
+
18359
+ </dd>
18360
+ </dl>
18361
+
18362
+ <dl>
18363
+ <dd>
18364
+
18365
+ **request_options:** `Nordlet::Purchases::RequestOptions`
18366
+
18367
+ </dd>
18368
+ </dl>
18369
+ </dd>
18370
+ </dl>
18371
+
18372
+
18373
+ </dd>
18374
+ </dl>
18375
+ </details>
18376
+
18377
+ <details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_list</a>(request) -> Nordlet::Purchases::Types::OrdersListPurchasesResponse</code></summary>
18378
+ <dl>
18379
+ <dd>
18380
+
18381
+ #### 📝 Description
18382
+
18383
+ <dl>
18384
+ <dd>
18385
+
18386
+ <dl>
18387
+ <dd>
18388
+
18389
+ List purchase orders without lines, with the supplier's `partnerName`. Filterable by `partnerId`, `status`, `orderNumber`, `orderDate`, `currency` and `grossTotal`; sortable by `createdAt`, `orderDate`, `orderNumber` and `grossTotal`.
18390
+ </dd>
18391
+ </dl>
18392
+ </dd>
18393
+ </dl>
18394
+
18395
+ #### 🔌 Usage
18396
+
18397
+ <dl>
18398
+ <dd>
18399
+
18400
+ <dl>
18401
+ <dd>
18402
+
18403
+ ```ruby
18404
+ client.purchases.orders_list
18405
+ ```
18406
+ </dd>
18407
+ </dl>
18408
+ </dd>
18409
+ </dl>
18410
+
18411
+ #### ⚙️ Parameters
18412
+
18413
+ <dl>
18414
+ <dd>
18415
+
18416
+ <dl>
18417
+ <dd>
18418
+
18419
+ **page:** `Integer`
18420
+
18421
+ </dd>
18422
+ </dl>
18423
+
18424
+ <dl>
18425
+ <dd>
18426
+
18427
+ **page_size:** `Integer`
18428
+
18429
+ </dd>
18430
+ </dl>
18431
+
18432
+ <dl>
18433
+ <dd>
18434
+
18435
+ **sort:** `Internal::Types::Array[Nordlet::Purchases::Types::OrdersListPurchasesRequestSortItem]`
18436
+
18437
+ </dd>
18438
+ </dl>
18439
+
18440
+ <dl>
18441
+ <dd>
18442
+
18443
+ **filter:** `Internal::Types::Array[Nordlet::Purchases::Types::OrdersListPurchasesRequestFilterItem]`
18444
+
18445
+ </dd>
18446
+ </dl>
18447
+
18448
+ <dl>
18449
+ <dd>
18450
+
18451
+ **totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
18452
+
18453
+ </dd>
18454
+ </dl>
18455
+
18456
+ <dl>
18457
+ <dd>
18458
+
18459
+ **request_options:** `Nordlet::Purchases::RequestOptions`
18460
+
18461
+ </dd>
18462
+ </dl>
18463
+ </dd>
18464
+ </dl>
18465
+
18466
+
18467
+ </dd>
18468
+ </dl>
18469
+ </details>
18470
+
18471
+ <details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_submit</a>(request) -> Nordlet::Purchases::Types::OrdersSubmitPurchasesResponse</code></summary>
18472
+ <dl>
18473
+ <dd>
18474
+
18475
+ #### 📝 Description
18476
+
18477
+ <dl>
18478
+ <dd>
18479
+
18480
+ <dl>
18481
+ <dd>
18482
+
18483
+ Move a `draft` purchase order to `submitted` for approval (409 from any other status). `reason` is kept in the audit log.
18484
+ </dd>
18485
+ </dl>
18486
+ </dd>
18487
+ </dl>
18488
+
18489
+ #### 🔌 Usage
18490
+
18491
+ <dl>
18492
+ <dd>
18493
+
18494
+ <dl>
18495
+ <dd>
18496
+
18497
+ ```ruby
18498
+ client.purchases.orders_submit(id: "id")
18499
+ ```
18500
+ </dd>
18501
+ </dl>
18502
+ </dd>
18503
+ </dl>
18504
+
18505
+ #### ⚙️ Parameters
18506
+
18507
+ <dl>
18508
+ <dd>
18509
+
18510
+ <dl>
18511
+ <dd>
18512
+
18513
+ **id:** `String`
18514
+
18515
+ </dd>
18516
+ </dl>
18517
+
18518
+ <dl>
18519
+ <dd>
18520
+
18521
+ **reason:** `String`
18522
+
18523
+ </dd>
18524
+ </dl>
18525
+
18526
+ <dl>
18527
+ <dd>
18528
+
18529
+ **request_options:** `Nordlet::Purchases::RequestOptions`
18530
+
18531
+ </dd>
18532
+ </dl>
18533
+ </dd>
18534
+ </dl>
18535
+
18536
+
18537
+ </dd>
18538
+ </dl>
18539
+ </details>
18540
+
18541
+ <details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_approve</a>(request) -> Nordlet::Purchases::Types::OrdersApprovePurchasesResponse</code></summary>
18542
+ <dl>
18543
+ <dd>
18544
+
18545
+ #### 📝 Description
18546
+
18547
+ <dl>
18548
+ <dd>
18549
+
18550
+ <dl>
18551
+ <dd>
18552
+
18553
+ Approve a `submitted` purchase order (409 from any other status), recording who approved it and when; needs the `purchases:approve` scope. Goods are then received with `purchases/receipts/create`. Emits `purchase_order.approved`.
18554
+ </dd>
18555
+ </dl>
18556
+ </dd>
18557
+ </dl>
18558
+
18559
+ #### 🔌 Usage
18560
+
18561
+ <dl>
18562
+ <dd>
18563
+
18564
+ <dl>
18565
+ <dd>
18566
+
18567
+ ```ruby
18568
+ client.purchases.orders_approve(id: "id")
18432
18569
  ```
18433
18570
  </dd>
18434
18571
  </dl>
@@ -19071,61 +19208,7 @@ client.purchases.invoices_match(invoice_id: "invoiceId")
19071
19208
  </details>
19072
19209
 
19073
19210
  ## capture
19074
- <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">settings_get</a>(request) -> Nordlet::Capture::Types::SettingsGetCaptureResponse</code></summary>
19075
- <dl>
19076
- <dd>
19077
-
19078
- #### 📝 Description
19079
-
19080
- <dl>
19081
- <dd>
19082
-
19083
- <dl>
19084
- <dd>
19085
-
19086
- Return the company's document capture settings: whether intake by e-mail is enabled, whether e-mailed documents are read on arrival, the company's intake e-mail address and whether a reading provider is configured. The intake token behind the address is created on the first call.
19087
- </dd>
19088
- </dl>
19089
- </dd>
19090
- </dl>
19091
-
19092
- #### 🔌 Usage
19093
-
19094
- <dl>
19095
- <dd>
19096
-
19097
- <dl>
19098
- <dd>
19099
-
19100
- ```ruby
19101
- client.capture.settings_get
19102
- ```
19103
- </dd>
19104
- </dl>
19105
- </dd>
19106
- </dl>
19107
-
19108
- #### ⚙️ Parameters
19109
-
19110
- <dl>
19111
- <dd>
19112
-
19113
- <dl>
19114
- <dd>
19115
-
19116
- **request_options:** `Nordlet::Capture::RequestOptions`
19117
-
19118
- </dd>
19119
- </dl>
19120
- </dd>
19121
- </dl>
19122
-
19123
-
19124
- </dd>
19125
- </dl>
19126
- </details>
19127
-
19128
- <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">settings_update</a>(request) -> Nordlet::Capture::Types::SettingsUpdateCaptureResponse</code></summary>
19211
+ <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">documents_extract</a>(request) -> Nordlet::Capture::Types::DocumentsExtractCaptureResponse</code></summary>
19129
19212
  <dl>
19130
19213
  <dd>
19131
19214
 
@@ -19137,7 +19220,7 @@ client.capture.settings_get
19137
19220
  <dl>
19138
19221
  <dd>
19139
19222
 
19140
- Switch `intakeEnabled` (documents sent to the intake address are accepted) and `captureAutoExtract` (they are read on arrival) on or off; at least one field is required.
19223
+ Parse a capture received over Peppol from its stored document again and replace its draft (supplier, totals, lines, matched partner). Refused with 422 for a capture that was not received over Peppol and with 409 once the capture is linked to a purchase invoice.
19141
19224
  </dd>
19142
19225
  </dl>
19143
19226
  </dd>
@@ -19152,7 +19235,7 @@ Switch `intakeEnabled` (documents sent to the intake address are accepted) and `
19152
19235
  <dd>
19153
19236
 
19154
19237
  ```ruby
19155
- client.capture.settings_update
19238
+ client.capture.documents_extract(id: "id")
19156
19239
  ```
19157
19240
  </dd>
19158
19241
  </dl>
@@ -19167,15 +19250,7 @@ client.capture.settings_update
19167
19250
  <dl>
19168
19251
  <dd>
19169
19252
 
19170
- **intake_enabled:** `Internal::Types::Boolean`
19171
-
19172
- </dd>
19173
- </dl>
19174
-
19175
- <dl>
19176
- <dd>
19177
-
19178
- **capture_auto_extract:** `Internal::Types::Boolean`
19253
+ **id:** `String`
19179
19254
 
19180
19255
  </dd>
19181
19256
  </dl>
@@ -19195,7 +19270,7 @@ client.capture.settings_update
19195
19270
  </dl>
19196
19271
  </details>
19197
19272
 
19198
- <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">settings_regenerate_intake</a>(request) -> Nordlet::Capture::Types::SettingsRegenerateIntakeCaptureResponse</code></summary>
19273
+ <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">documents_get</a>(request) -> Nordlet::Capture::Types::DocumentsGetCaptureResponse</code></summary>
19199
19274
  <dl>
19200
19275
  <dd>
19201
19276
 
@@ -19207,7 +19282,7 @@ client.capture.settings_update
19207
19282
  <dl>
19208
19283
  <dd>
19209
19284
 
19210
- Replace the company's intake token, so the previous intake e-mail address stops working and the settings come back with the new one.
19285
+ Return one document received over Peppol (a capture) with its draft: supplier, dates, totals and lines.
19211
19286
  </dd>
19212
19287
  </dl>
19213
19288
  </dd>
@@ -19222,7 +19297,7 @@ Replace the company's intake token, so the previous intake e-mail address stops
19222
19297
  <dd>
19223
19298
 
19224
19299
  ```ruby
19225
- client.capture.settings_regenerate_intake
19300
+ client.capture.documents_get(id: "id")
19226
19301
  ```
19227
19302
  </dd>
19228
19303
  </dl>
@@ -19237,6 +19312,14 @@ client.capture.settings_regenerate_intake
19237
19312
  <dl>
19238
19313
  <dd>
19239
19314
 
19315
+ **id:** `String`
19316
+
19317
+ </dd>
19318
+ </dl>
19319
+
19320
+ <dl>
19321
+ <dd>
19322
+
19240
19323
  **request_options:** `Nordlet::Capture::RequestOptions`
19241
19324
 
19242
19325
  </dd>
@@ -19249,7 +19332,7 @@ client.capture.settings_regenerate_intake
19249
19332
  </dl>
19250
19333
  </details>
19251
19334
 
19252
- <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">inbound_email</a>(request) -> Nordlet::Capture::Types::InboundEmailCaptureResponse</code></summary>
19335
+ <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">documents_list</a>(request) -> Nordlet::Capture::Types::DocumentsListCaptureResponse</code></summary>
19253
19336
  <dl>
19254
19337
  <dd>
19255
19338
 
@@ -19261,7 +19344,7 @@ client.capture.settings_regenerate_intake
19261
19344
  <dl>
19262
19345
  <dd>
19263
19346
 
19264
- Endpoint for the inbound e-mail provider (Postmark field names or the generic `to`, `from`, `subject` and `attachments` form). It needs the `x-inbound-secret` header and finds the company by the `intake+<token>@` recipient address (404 when unknown, 403 when intake is disabled). Every PDF, image, Word or PowerPoint attachment up to 10 MB becomes a `pending` capture (`accepted`), anything else is `skipped`; when the company has automatic reading on, is not on trial and a reading provider is configured, each capture is read at once.
19347
+ List the documents received over Peppol (captures) with their drafts. Filterable by `status`, `matchedPartnerId` and `purchaseInvoiceId`; sortable by `createdAt` and `updatedAt`.
19265
19348
  </dd>
19266
19349
  </dl>
19267
19350
  </dd>
@@ -19276,7 +19359,7 @@ Endpoint for the inbound e-mail provider (Postmark field names or the generic `t
19276
19359
  <dd>
19277
19360
 
19278
19361
  ```ruby
19279
- client.capture.inbound_email
19362
+ client.capture.documents_list
19280
19363
  ```
19281
19364
  </dd>
19282
19365
  </dl>
@@ -19291,39 +19374,7 @@ client.capture.inbound_email
19291
19374
  <dl>
19292
19375
  <dd>
19293
19376
 
19294
- **postmark_to:** `String`
19295
-
19296
- </dd>
19297
- </dl>
19298
-
19299
- <dl>
19300
- <dd>
19301
-
19302
- **to_full:** `Internal::Types::Array[Nordlet::Capture::Types::InboundEmailCaptureRequestToFullItem]`
19303
-
19304
- </dd>
19305
- </dl>
19306
-
19307
- <dl>
19308
- <dd>
19309
-
19310
- **postmark_from:** `String`
19311
-
19312
- </dd>
19313
- </dl>
19314
-
19315
- <dl>
19316
- <dd>
19317
-
19318
- **postmark_subject:** `String`
19319
-
19320
- </dd>
19321
- </dl>
19322
-
19323
- <dl>
19324
- <dd>
19325
-
19326
- **postmark_attachments:** `Internal::Types::Array[Nordlet::Capture::Types::InboundEmailCaptureRequestAttachmentsItem]`
19377
+ **page:** `Integer`
19327
19378
 
19328
19379
  </dd>
19329
19380
  </dl>
@@ -19331,7 +19382,7 @@ client.capture.inbound_email
19331
19382
  <dl>
19332
19383
  <dd>
19333
19384
 
19334
- **to:** `Nordlet::Capture::Types::InboundEmailCaptureRequestTo`
19385
+ **page_size:** `Integer`
19335
19386
 
19336
19387
  </dd>
19337
19388
  </dl>
@@ -19339,7 +19390,7 @@ client.capture.inbound_email
19339
19390
  <dl>
19340
19391
  <dd>
19341
19392
 
19342
- **from:** `String`
19393
+ **sort:** `Internal::Types::Array[Nordlet::Capture::Types::DocumentsListCaptureRequestSortItem]`
19343
19394
 
19344
19395
  </dd>
19345
19396
  </dl>
@@ -19347,7 +19398,7 @@ client.capture.inbound_email
19347
19398
  <dl>
19348
19399
  <dd>
19349
19400
 
19350
- **subject:** `String`
19401
+ **filter:** `Internal::Types::Array[Nordlet::Capture::Types::DocumentsListCaptureRequestFilterItem]`
19351
19402
 
19352
19403
  </dd>
19353
19404
  </dl>
@@ -19355,7 +19406,7 @@ client.capture.inbound_email
19355
19406
  <dl>
19356
19407
  <dd>
19357
19408
 
19358
- **attachments:** `Internal::Types::Array[Nordlet::Capture::Types::InboundEmailCaptureRequestAttachmentsItem]`
19409
+ **totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
19359
19410
 
19360
19411
  </dd>
19361
19412
  </dl>
@@ -19375,7 +19426,7 @@ client.capture.inbound_email
19375
19426
  </dl>
19376
19427
  </details>
19377
19428
 
19378
- <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">documents_upload</a>(request) -> Nordlet::Capture::Types::DocumentsUploadCaptureResponse</code></summary>
19429
+ <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">documents_delete</a>(request) -> Nordlet::Capture::Types::DocumentsDeleteCaptureResponse</code></summary>
19379
19430
  <dl>
19380
19431
  <dd>
19381
19432
 
@@ -19387,7 +19438,7 @@ client.capture.inbound_email
19387
19438
  <dl>
19388
19439
  <dd>
19389
19440
 
19390
- Upload a supplier document (PDF, image, Word or PowerPoint, up to 10 MB; 422 for any other type) as a capture and read it at once. The result holds the extracted supplier, dates, totals and lines, the partner matched by VAT code, then partner code, then name, the raw text, and `status` `extracted` or `failed` with `error`. Needs a configured reading provider, is refused with 402 for a company on trial until its first top-up, and counts every page read as `ocr_page` usage. The draft is reviewed and saved with `capture/documents/confirm`.
19441
+ Delete a capture and its stored file (409 once it is linked to a purchase invoice).
19391
19442
  </dd>
19392
19443
  </dl>
19393
19444
  </dd>
@@ -19402,11 +19453,7 @@ Upload a supplier document (PDF, image, Word or PowerPoint, up to 10 MB; 422 for
19402
19453
  <dd>
19403
19454
 
19404
19455
  ```ruby
19405
- client.capture.documents_upload(
19406
- file_name: "fileName",
19407
- mime_type: "mimeType",
19408
- content: "content"
19409
- )
19456
+ client.capture.documents_delete(id: "id")
19410
19457
  ```
19411
19458
  </dd>
19412
19459
  </dl>
@@ -19421,23 +19468,7 @@ client.capture.documents_upload(
19421
19468
  <dl>
19422
19469
  <dd>
19423
19470
 
19424
- **file_name:** `String`
19425
-
19426
- </dd>
19427
- </dl>
19428
-
19429
- <dl>
19430
- <dd>
19431
-
19432
- **mime_type:** `String`
19433
-
19434
- </dd>
19435
- </dl>
19436
-
19437
- <dl>
19438
- <dd>
19439
-
19440
- **content:** `String` — Base64-encoded scan, photo or PDF of the supplier document
19471
+ **id:** `String`
19441
19472
 
19442
19473
  </dd>
19443
19474
  </dl>
@@ -19457,7 +19488,7 @@ client.capture.documents_upload(
19457
19488
  </dl>
19458
19489
  </details>
19459
19490
 
19460
- <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">documents_extract</a>(request) -> Nordlet::Capture::Types::DocumentsExtractCaptureResponse</code></summary>
19491
+ <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">documents_confirm</a>(request) -> Nordlet::Capture::Types::DocumentsConfirmCaptureResponse</code></summary>
19461
19492
  <dl>
19462
19493
  <dd>
19463
19494
 
@@ -19469,7 +19500,7 @@ client.capture.documents_upload(
19469
19500
  <dl>
19470
19501
  <dd>
19471
19502
 
19472
- Read a stored capture again and replace its draft (supplier, totals, lines, matched partner). A capture received over Peppol is parsed from its document again without a reading provider; any other needs the provider and, for a company on trial, the first top-up (402). Refused with 409 once the capture is linked to a purchase invoice.
19503
+ Creates the purchase invoice (or credit note, see `type`) from `lines`. Lines with the opposite sign go in `oppositeLines` and are saved as a second document of the opposite type for the same supplier: a purchase credit note against the new invoice, or a purchase invoice next to the new credit note. It is numbered `oppositeDocumentNumber`, by default the document number followed by "-CR" (credit note) or "-INV" (invoice).
19473
19504
  </dd>
19474
19505
  </dl>
19475
19506
  </dd>
@@ -19484,7 +19515,12 @@ Read a stored capture again and replace its draft (supplier, totals, lines, matc
19484
19515
  <dd>
19485
19516
 
19486
19517
  ```ruby
19487
- client.capture.documents_extract(id: "id")
19518
+ client.capture.documents_confirm(
19519
+ id: "id",
19520
+ document_number: "documentNumber",
19521
+ document_date: "2026-07-01",
19522
+ lines: [{}]
19523
+ )
19488
19524
  ```
19489
19525
  </dd>
19490
19526
  </dl>
@@ -19507,61 +19543,87 @@ client.capture.documents_extract(id: "id")
19507
19543
  <dl>
19508
19544
  <dd>
19509
19545
 
19510
- **request_options:** `Nordlet::Capture::RequestOptions`
19546
+ **partner_id:** `String`
19511
19547
 
19512
19548
  </dd>
19513
19549
  </dl>
19514
- </dd>
19515
- </dl>
19516
19550
 
19551
+ <dl>
19552
+ <dd>
19517
19553
 
19554
+ **new_supplier:** `Nordlet::Capture::Types::DocumentsConfirmCaptureRequestNewSupplier`
19555
+
19518
19556
  </dd>
19519
19557
  </dl>
19520
- </details>
19521
19558
 
19522
- <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">documents_get</a>(request) -> Nordlet::Capture::Types::DocumentsGetCaptureResponse</code></summary>
19523
19559
  <dl>
19524
19560
  <dd>
19525
19561
 
19526
- #### 📝 Description
19562
+ **type:** `Nordlet::Capture::Types::DocumentsConfirmCaptureRequestType`
19563
+
19564
+ </dd>
19565
+ </dl>
19527
19566
 
19528
19567
  <dl>
19529
19568
  <dd>
19530
19569
 
19570
+ **document_number:** `String`
19571
+
19572
+ </dd>
19573
+ </dl>
19574
+
19531
19575
  <dl>
19532
19576
  <dd>
19533
19577
 
19534
- Return one capture with its extraction and raw text.
19578
+ **document_date:** `String`
19579
+
19535
19580
  </dd>
19536
19581
  </dl>
19582
+
19583
+ <dl>
19584
+ <dd>
19585
+
19586
+ **due_date:** `String`
19587
+
19537
19588
  </dd>
19538
19589
  </dl>
19539
19590
 
19540
- #### 🔌 Usage
19541
-
19542
19591
  <dl>
19543
19592
  <dd>
19544
19593
 
19594
+ **currency:** `String`
19595
+
19596
+ </dd>
19597
+ </dl>
19598
+
19545
19599
  <dl>
19546
19600
  <dd>
19547
19601
 
19548
- ```ruby
19549
- client.capture.documents_get(id: "id")
19550
- ```
19602
+ **notes:** `String`
19603
+
19551
19604
  </dd>
19552
19605
  </dl>
19606
+
19607
+ <dl>
19608
+ <dd>
19609
+
19610
+ **lines:** `Internal::Types::Array[Nordlet::Capture::Types::DocumentsConfirmCaptureRequestLinesItem]`
19611
+
19553
19612
  </dd>
19554
19613
  </dl>
19555
19614
 
19556
- #### ⚙️ Parameters
19557
-
19558
19615
  <dl>
19559
19616
  <dd>
19560
19617
 
19618
+ **opposite_lines:** `Internal::Types::Array[Nordlet::Capture::Types::DocumentsConfirmCaptureRequestOppositeLinesItem]`
19619
+
19620
+ </dd>
19621
+ </dl>
19622
+
19561
19623
  <dl>
19562
19624
  <dd>
19563
19625
 
19564
- **id:** `String`
19626
+ **opposite_document_number:** `String`
19565
19627
 
19566
19628
  </dd>
19567
19629
  </dl>
@@ -19581,7 +19643,8 @@ client.capture.documents_get(id: "id")
19581
19643
  </dl>
19582
19644
  </details>
19583
19645
 
19584
- <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">documents_list</a>(request) -> Nordlet::Capture::Types::DocumentsListCaptureResponse</code></summary>
19646
+ ## peppol
19647
+ <details><summary><code>client.peppol.<a href="/lib/nordlet/peppol/client.rb">participants_lookup</a>(request) -> Nordlet::Peppol::Types::ParticipantsLookupPeppolResponse</code></summary>
19585
19648
  <dl>
19586
19649
  <dd>
19587
19650
 
@@ -19593,7 +19656,7 @@ client.capture.documents_get(id: "id")
19593
19656
  <dl>
19594
19657
  <dd>
19595
19658
 
19596
- List captures without raw text. Filterable by `status`, `matchedPartnerId` and `purchaseInvoiceId`; sortable by `createdAt` and `updatedAt`.
19659
+ Look a receiver up on the Peppol network (SML and SMP) and say which Peppol BIS Billing 3.0 documents it accepts. Give `partnerId` to look up a partner by its Peppol ID, VAT code or registration code, or `participantId` as "<scheme>:<identifier>". Works without an access point.
19597
19660
  </dd>
19598
19661
  </dl>
19599
19662
  </dd>
@@ -19608,7 +19671,7 @@ List captures without raw text. Filterable by `status`, `matchedPartnerId` and `
19608
19671
  <dd>
19609
19672
 
19610
19673
  ```ruby
19611
- client.capture.documents_list
19674
+ client.peppol.participants_lookup
19612
19675
  ```
19613
19676
  </dd>
19614
19677
  </dl>
@@ -19623,31 +19686,7 @@ client.capture.documents_list
19623
19686
  <dl>
19624
19687
  <dd>
19625
19688
 
19626
- **page:** `Integer`
19627
-
19628
- </dd>
19629
- </dl>
19630
-
19631
- <dl>
19632
- <dd>
19633
-
19634
- **page_size:** `Integer`
19635
-
19636
- </dd>
19637
- </dl>
19638
-
19639
- <dl>
19640
- <dd>
19641
-
19642
- **sort:** `Internal::Types::Array[Nordlet::Capture::Types::DocumentsListCaptureRequestSortItem]`
19643
-
19644
- </dd>
19645
- </dl>
19646
-
19647
- <dl>
19648
- <dd>
19649
-
19650
- **filter:** `Internal::Types::Array[Nordlet::Capture::Types::DocumentsListCaptureRequestFilterItem]`
19689
+ **partner_id:** `String`
19651
19690
 
19652
19691
  </dd>
19653
19692
  </dl>
@@ -19655,7 +19694,7 @@ client.capture.documents_list
19655
19694
  <dl>
19656
19695
  <dd>
19657
19696
 
19658
- **totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
19697
+ **participant_id:** `String`
19659
19698
 
19660
19699
  </dd>
19661
19700
  </dl>
@@ -19663,7 +19702,7 @@ client.capture.documents_list
19663
19702
  <dl>
19664
19703
  <dd>
19665
19704
 
19666
- **request_options:** `Nordlet::Capture::RequestOptions`
19705
+ **request_options:** `Nordlet::Peppol::RequestOptions`
19667
19706
 
19668
19707
  </dd>
19669
19708
  </dl>
@@ -19675,7 +19714,7 @@ client.capture.documents_list
19675
19714
  </dl>
19676
19715
  </details>
19677
19716
 
19678
- <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">documents_delete</a>(request) -> Nordlet::Capture::Types::DocumentsDeleteCaptureResponse</code></summary>
19717
+ <details><summary><code>client.peppol.<a href="/lib/nordlet/peppol/client.rb">webhooks</a>(provider:, company_id:) -> Nordlet::Peppol::Types::WebhooksPeppolResponse</code></summary>
19679
19718
  <dl>
19680
19719
  <dd>
19681
19720
 
@@ -19687,7 +19726,7 @@ client.capture.documents_list
19687
19726
  <dl>
19688
19727
  <dd>
19689
19728
 
19690
- Delete a capture and its stored file (409 once it is linked to a purchase invoice).
19729
+ Apply one event: a delivery status event updates the Peppol status of the sale invoice with that message id and, when the status changes, emits `sale_invoice.peppol_delivered`, `sale_invoice.peppol_rejected` or `sale_invoice.peppol_failed`; a received-document event fetches the document from the access point, stores it as a document capture with the matched supplier, emits `document_capture.peppol_received` and marks it read at the access point (a document already stored is skipped). `handled` is false when the event matched no invoice or document. A status is not moved back: pending, failed, delivered and rejected come in that order, and an event with an earlier status than the stored one changes nothing. Answers 401, with the same body, when no company uses that provider account, when the signature does not match and, for e-invoice.be, when the `created_at` of the event is more than 5 minutes from the server time.
19691
19730
  </dd>
19692
19731
  </dl>
19693
19732
  </dd>
@@ -19702,7 +19741,10 @@ Delete a capture and its stored file (409 once it is linked to a purchase invoic
19702
19741
  <dd>
19703
19742
 
19704
19743
  ```ruby
19705
- client.capture.documents_delete(id: "id")
19744
+ client.peppol.webhooks(
19745
+ provider: "recommand",
19746
+ company_id: "companyId"
19747
+ )
19706
19748
  ```
19707
19749
  </dd>
19708
19750
  </dl>
@@ -19717,7 +19759,7 @@ client.capture.documents_delete(id: "id")
19717
19759
  <dl>
19718
19760
  <dd>
19719
19761
 
19720
- **id:** `String`
19762
+ **provider:** `Nordlet::Peppol::Types::WebhooksPeppolRequestProvider`
19721
19763
 
19722
19764
  </dd>
19723
19765
  </dl>
@@ -19725,7 +19767,15 @@ client.capture.documents_delete(id: "id")
19725
19767
  <dl>
19726
19768
  <dd>
19727
19769
 
19728
- **request_options:** `Nordlet::Capture::RequestOptions`
19770
+ **company_id:** `String`
19771
+
19772
+ </dd>
19773
+ </dl>
19774
+
19775
+ <dl>
19776
+ <dd>
19777
+
19778
+ **request_options:** `Nordlet::Peppol::RequestOptions`
19729
19779
 
19730
19780
  </dd>
19731
19781
  </dl>
@@ -19737,7 +19787,8 @@ client.capture.documents_delete(id: "id")
19737
19787
  </dl>
19738
19788
  </details>
19739
19789
 
19740
- <details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">documents_confirm</a>(request) -> Nordlet::Capture::Types::DocumentsConfirmCaptureResponse</code></summary>
19790
+ ## declarations
19791
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_intrastat_compute</a>(request) -> Nordlet::Declarations::Types::LtIntrastatComputeDeclarationsResponse</code></summary>
19741
19792
  <dl>
19742
19793
  <dd>
19743
19794
 
@@ -19749,7 +19800,7 @@ client.capture.documents_delete(id: "id")
19749
19800
  <dl>
19750
19801
  <dd>
19751
19802
 
19752
- Creates the purchase invoice (or credit note, see `type`) from `lines`. Lines with the opposite sign go in `oppositeLines` and are saved as a second document of the opposite type for the same supplier: a purchase credit note against the new invoice, or a purchase invoice next to the new credit note. It is numbered `oppositeDocumentNumber`, by default the document number followed by "-CR" (credit note) or "-INV" (invoice).
19803
+ Builds the Lithuanian Intrastat report of a month for one flow as the IDAIS INTRASTATReportSubmission XML: dispatches from the issued sale invoices and purchase credit notes, arrivals from the registered purchase invoices and sale credit notes, grouped into report items. `transactionNature`, `deliveryTerms`, `transportMode` and `regionCode` are the defaults for lines without their own values; `statisticalValueRequired` adds the statistical value to each item. Answers 422 when the company is not a VAT payer. With `persist`, the file is stored and a submission for `lt-intrastat-arrivals` or `lt-intrastat-dispatches` is created.
19753
19804
  </dd>
19754
19805
  </dl>
19755
19806
  </dd>
@@ -19764,11 +19815,10 @@ Creates the purchase invoice (or credit note, see `type`) from `lines`. Lines wi
19764
19815
  <dd>
19765
19816
 
19766
19817
  ```ruby
19767
- client.capture.documents_confirm(
19768
- id: "id",
19769
- document_number: "documentNumber",
19770
- document_date: "2026-07-01",
19771
- lines: [{}]
19818
+ client.declarations.lt_intrastat_compute(
19819
+ year: 1000000,
19820
+ month: 1000000,
19821
+ flow: "arrivals"
19772
19822
  )
19773
19823
  ```
19774
19824
  </dd>
@@ -19784,15 +19834,7 @@ client.capture.documents_confirm(
19784
19834
  <dl>
19785
19835
  <dd>
19786
19836
 
19787
- **id:** `String`
19788
-
19789
- </dd>
19790
- </dl>
19791
-
19792
- <dl>
19793
- <dd>
19794
-
19795
- **partner_id:** `String`
19837
+ **year:** `Integer`
19796
19838
 
19797
19839
  </dd>
19798
19840
  </dl>
@@ -19800,7 +19842,7 @@ client.capture.documents_confirm(
19800
19842
  <dl>
19801
19843
  <dd>
19802
19844
 
19803
- **new_supplier:** `Nordlet::Capture::Types::DocumentsConfirmCaptureRequestNewSupplier`
19845
+ **month:** `Integer`
19804
19846
 
19805
19847
  </dd>
19806
19848
  </dl>
@@ -19808,7 +19850,7 @@ client.capture.documents_confirm(
19808
19850
  <dl>
19809
19851
  <dd>
19810
19852
 
19811
- **type:** `Nordlet::Capture::Types::DocumentsConfirmCaptureRequestType`
19853
+ **flow:** `Nordlet::Declarations::Types::LtIntrastatComputeDeclarationsRequestFlow`
19812
19854
 
19813
19855
  </dd>
19814
19856
  </dl>
@@ -19816,7 +19858,7 @@ client.capture.documents_confirm(
19816
19858
  <dl>
19817
19859
  <dd>
19818
19860
 
19819
- **document_number:** `String`
19861
+ **transaction_nature:** `String`
19820
19862
 
19821
19863
  </dd>
19822
19864
  </dl>
@@ -19824,7 +19866,7 @@ client.capture.documents_confirm(
19824
19866
  <dl>
19825
19867
  <dd>
19826
19868
 
19827
- **document_date:** `String`
19869
+ **delivery_terms:** `String`
19828
19870
 
19829
19871
  </dd>
19830
19872
  </dl>
@@ -19832,7 +19874,7 @@ client.capture.documents_confirm(
19832
19874
  <dl>
19833
19875
  <dd>
19834
19876
 
19835
- **due_date:** `String`
19877
+ **transport_mode:** `Nordlet::Declarations::Types::LtIntrastatComputeDeclarationsRequestTransportMode`
19836
19878
 
19837
19879
  </dd>
19838
19880
  </dl>
@@ -19840,7 +19882,7 @@ client.capture.documents_confirm(
19840
19882
  <dl>
19841
19883
  <dd>
19842
19884
 
19843
- **currency:** `String`
19885
+ **region_code:** `String`
19844
19886
 
19845
19887
  </dd>
19846
19888
  </dl>
@@ -19848,7 +19890,7 @@ client.capture.documents_confirm(
19848
19890
  <dl>
19849
19891
  <dd>
19850
19892
 
19851
- **notes:** `String`
19893
+ **statistical_value_required:** `Internal::Types::Boolean`
19852
19894
 
19853
19895
  </dd>
19854
19896
  </dl>
@@ -19856,7 +19898,7 @@ client.capture.documents_confirm(
19856
19898
  <dl>
19857
19899
  <dd>
19858
19900
 
19859
- **lines:** `Internal::Types::Array[Nordlet::Capture::Types::DocumentsConfirmCaptureRequestLinesItem]`
19901
+ **preparation_time_hours:** `Integer`
19860
19902
 
19861
19903
  </dd>
19862
19904
  </dl>
@@ -19864,7 +19906,7 @@ client.capture.documents_confirm(
19864
19906
  <dl>
19865
19907
  <dd>
19866
19908
 
19867
- **opposite_lines:** `Internal::Types::Array[Nordlet::Capture::Types::DocumentsConfirmCaptureRequestOppositeLinesItem]`
19909
+ **preparation_time_minutes:** `Integer`
19868
19910
 
19869
19911
  </dd>
19870
19912
  </dl>
@@ -19872,7 +19914,7 @@ client.capture.documents_confirm(
19872
19914
  <dl>
19873
19915
  <dd>
19874
19916
 
19875
- **opposite_document_number:** `String`
19917
+ **persist:** `Internal::Types::Boolean`
19876
19918
 
19877
19919
  </dd>
19878
19920
  </dl>
@@ -19880,7 +19922,7 @@ client.capture.documents_confirm(
19880
19922
  <dl>
19881
19923
  <dd>
19882
19924
 
19883
- **request_options:** `Nordlet::Capture::RequestOptions`
19925
+ **request_options:** `Nordlet::Declarations::RequestOptions`
19884
19926
 
19885
19927
  </dd>
19886
19928
  </dl>
@@ -19892,8 +19934,7 @@ client.capture.documents_confirm(
19892
19934
  </dl>
19893
19935
  </details>
19894
19936
 
19895
- ## peppol
19896
- <details><summary><code>client.peppol.<a href="/lib/nordlet/peppol/client.rb">participants_lookup</a>(request) -> Nordlet::Peppol::Types::ParticipantsLookupPeppolResponse</code></summary>
19937
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_ivaz_generate</a>(request) -> Nordlet::Declarations::Types::LtIvazGenerateDeclarationsResponse</code></summary>
19897
19938
  <dl>
19898
19939
  <dd>
19899
19940
 
@@ -19905,7 +19946,7 @@ client.capture.documents_confirm(
19905
19946
  <dl>
19906
19947
  <dd>
19907
19948
 
19908
- Look a receiver up on the Peppol network (SML and SMP) and say which Peppol BIS Billing 3.0 documents it accepts. Give `partnerId` to look up a partner by its Peppol ID, VAT code or registration code, or `participantId` as "<scheme>:<identifier>". Works without an access point.
19949
+ Builds the i.VAZ transport document message (iVAZ1.3.3) for up to 100 issued waybills and returns the XML. Answers 422 when the registration code of the company is not numeric or when a waybill is not issued. With `persist`, the file is stored and a submission for `lt-ivaz` is created.
19909
19950
  </dd>
19910
19951
  </dl>
19911
19952
  </dd>
@@ -19920,7 +19961,7 @@ Look a receiver up on the Peppol network (SML and SMP) and say which Peppol BIS
19920
19961
  <dd>
19921
19962
 
19922
19963
  ```ruby
19923
- client.peppol.participants_lookup
19964
+ client.declarations.lt_ivaz_generate(waybill_ids: ["waybillIds"])
19924
19965
  ```
19925
19966
  </dd>
19926
19967
  </dl>
@@ -19935,7 +19976,7 @@ client.peppol.participants_lookup
19935
19976
  <dl>
19936
19977
  <dd>
19937
19978
 
19938
- **partner_id:** `String`
19979
+ **waybill_ids:** `Internal::Types::Array[String]`
19939
19980
 
19940
19981
  </dd>
19941
19982
  </dl>
@@ -19943,7 +19984,7 @@ client.peppol.participants_lookup
19943
19984
  <dl>
19944
19985
  <dd>
19945
19986
 
19946
- **participant_id:** `String`
19987
+ **persist:** `Internal::Types::Boolean`
19947
19988
 
19948
19989
  </dd>
19949
19990
  </dl>
@@ -19951,7 +19992,7 @@ client.peppol.participants_lookup
19951
19992
  <dl>
19952
19993
  <dd>
19953
19994
 
19954
- **request_options:** `Nordlet::Peppol::RequestOptions`
19995
+ **request_options:** `Nordlet::Declarations::RequestOptions`
19955
19996
 
19956
19997
  </dd>
19957
19998
  </dl>
@@ -19963,7 +20004,7 @@ client.peppol.participants_lookup
19963
20004
  </dl>
19964
20005
  </details>
19965
20006
 
19966
- <details><summary><code>client.peppol.<a href="/lib/nordlet/peppol/client.rb">webhooks</a>(provider:, company_id:) -> Nordlet::Peppol::Types::WebhooksPeppolResponse</code></summary>
20007
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_intrastat_obligation</a>(request) -> Nordlet::Declarations::Types::LtIntrastatObligationDeclarationsResponse</code></summary>
19967
20008
  <dl>
19968
20009
  <dd>
19969
20010
 
@@ -19975,7 +20016,7 @@ client.peppol.participants_lookup
19975
20016
  <dl>
19976
20017
  <dd>
19977
20018
 
19978
- Apply one event: a delivery status event updates the Peppol status of the sale invoice with that message id and, when the status changes, emits `sale_invoice.peppol_delivered`, `sale_invoice.peppol_rejected` or `sale_invoice.peppol_failed`; a received-document event fetches the document from the access point, stores it as a document capture with the matched supplier, emits `document_capture.peppol_received` and marks it read at the access point (a document already stored is skipped). `handled` is false when the event matched no invoice or document. A status is not moved back: pending, failed, delivered and rejected come in that order, and an event with an earlier status than the stored one changes nothing. Answers 401, with the same body, when no company uses that provider account, when the signature does not match and, for e-invoice.be, when the `created_at` of the event is more than 5 minutes from the server time.
20019
+ Checks the Intrastat reporting obligation of a year per flow: the value of goods traded with other Member States in the previous year, the month from which reporting is due (January when that value already passed the reporting threshold, else the month the cumulative value of the year passes it), whether the statistical value is required, and the monthly values. Answers 422 when no thresholds are stored for the year.
19979
20020
  </dd>
19980
20021
  </dl>
19981
20022
  </dd>
@@ -19990,10 +20031,7 @@ Apply one event: a delivery status event updates the Peppol status of the sale i
19990
20031
  <dd>
19991
20032
 
19992
20033
  ```ruby
19993
- client.peppol.webhooks(
19994
- provider: "recommand",
19995
- company_id: "companyId"
19996
- )
20034
+ client.declarations.lt_intrastat_obligation(year: 1000000)
19997
20035
  ```
19998
20036
  </dd>
19999
20037
  </dl>
@@ -20008,15 +20046,7 @@ client.peppol.webhooks(
20008
20046
  <dl>
20009
20047
  <dd>
20010
20048
 
20011
- **provider:** `Nordlet::Peppol::Types::WebhooksPeppolRequestProvider`
20012
-
20013
- </dd>
20014
- </dl>
20015
-
20016
- <dl>
20017
- <dd>
20018
-
20019
- **company_id:** `String`
20049
+ **year:** `Integer`
20020
20050
 
20021
20051
  </dd>
20022
20052
  </dl>
@@ -20024,7 +20054,7 @@ client.peppol.webhooks(
20024
20054
  <dl>
20025
20055
  <dd>
20026
20056
 
20027
- **request_options:** `Nordlet::Peppol::RequestOptions`
20057
+ **request_options:** `Nordlet::Declarations::RequestOptions`
20028
20058
 
20029
20059
  </dd>
20030
20060
  </dl>
@@ -20036,8 +20066,7 @@ client.peppol.webhooks(
20036
20066
  </dl>
20037
20067
  </details>
20038
20068
 
20039
- ## declarations
20040
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_intrastat_compute</a>(request) -> Nordlet::Declarations::Types::LtIntrastatComputeDeclarationsResponse</code></summary>
20069
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_isaf_generate</a>(request) -> Nordlet::Declarations::Types::LtIsafGenerateDeclarationsResponse</code></summary>
20041
20070
  <dl>
20042
20071
  <dd>
20043
20072
 
@@ -20049,7 +20078,7 @@ client.peppol.webhooks(
20049
20078
  <dl>
20050
20079
  <dd>
20051
20080
 
20052
- Builds the Lithuanian Intrastat report of a month for one flow as the IDAIS INTRASTATReportSubmission XML: dispatches from the issued sale invoices and purchase credit notes, arrivals from the registered purchase invoices and sale credit notes, grouped into report items. `transactionNature`, `deliveryTerms`, `transportMode` and `regionCode` are the defaults for lines without their own values; `statisticalValueRequired` adds the statistical value to each item. Answers 422 when the company is not a VAT payer. With `persist`, the file is stored and a submission for `lt-intrastat-arrivals` or `lt-intrastat-dispatches` is created.
20081
+ Builds the Lithuanian i.SAF register XML of a month: `dataType` F covers both registers, S the issued sale invoices only, P the registered purchase invoices only. Returns the XML without storing it; `declarations/submissions/create` stores it as a submission.
20053
20082
  </dd>
20054
20083
  </dl>
20055
20084
  </dd>
@@ -20064,10 +20093,9 @@ Builds the Lithuanian Intrastat report of a month for one flow as the IDAIS INTR
20064
20093
  <dd>
20065
20094
 
20066
20095
  ```ruby
20067
- client.declarations.lt_intrastat_compute(
20096
+ client.declarations.lt_isaf_generate(
20068
20097
  year: 1000000,
20069
- month: 1000000,
20070
- flow: "arrivals"
20098
+ month: 1000000
20071
20099
  )
20072
20100
  ```
20073
20101
  </dd>
@@ -20099,7 +20127,7 @@ client.declarations.lt_intrastat_compute(
20099
20127
  <dl>
20100
20128
  <dd>
20101
20129
 
20102
- **flow:** `Nordlet::Declarations::Types::LtIntrastatComputeDeclarationsRequestFlow`
20130
+ **data_type:** `Nordlet::Declarations::Types::LtIsafGenerateDeclarationsRequestDataType`
20103
20131
 
20104
20132
  </dd>
20105
20133
  </dl>
@@ -20107,39 +20135,64 @@ client.declarations.lt_intrastat_compute(
20107
20135
  <dl>
20108
20136
  <dd>
20109
20137
 
20110
- **transaction_nature:** `String`
20138
+ **request_options:** `Nordlet::Declarations::RequestOptions`
20111
20139
 
20112
20140
  </dd>
20113
20141
  </dl>
20142
+ </dd>
20143
+ </dl>
20114
20144
 
20115
- <dl>
20116
- <dd>
20117
20145
 
20118
- **delivery_terms:** `String`
20119
-
20120
20146
  </dd>
20121
20147
  </dl>
20148
+ </details>
20122
20149
 
20150
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_fr0600compute</a>(request) -> Nordlet::Declarations::Types::LtFr0600ComputeDeclarationsResponse</code></summary>
20123
20151
  <dl>
20124
20152
  <dd>
20125
20153
 
20126
- **transport_mode:** `Nordlet::Declarations::Types::LtIntrastatComputeDeclarationsRequestTransportMode`
20127
-
20154
+ #### 📝 Description
20155
+
20156
+ <dl>
20157
+ <dd>
20158
+
20159
+ <dl>
20160
+ <dd>
20161
+
20162
+ Computes the fields of the Lithuanian VAT return FR0600 for the period of `months` months starting in `month`, with the breakdown by VAT classifier behind them. `deductionPercent` is the share of input VAT deducted and is written to field 28.
20163
+ </dd>
20164
+ </dl>
20128
20165
  </dd>
20129
20166
  </dl>
20130
20167
 
20168
+ #### 🔌 Usage
20169
+
20131
20170
  <dl>
20132
20171
  <dd>
20133
20172
 
20134
- **region_code:** `String`
20135
-
20173
+ <dl>
20174
+ <dd>
20175
+
20176
+ ```ruby
20177
+ client.declarations.lt_fr0600compute(
20178
+ year: 1000000,
20179
+ month: 1000000
20180
+ )
20181
+ ```
20136
20182
  </dd>
20137
20183
  </dl>
20184
+ </dd>
20185
+ </dl>
20186
+
20187
+ #### ⚙️ Parameters
20138
20188
 
20139
20189
  <dl>
20140
20190
  <dd>
20141
20191
 
20142
- **statistical_value_required:** `Internal::Types::Boolean`
20192
+ <dl>
20193
+ <dd>
20194
+
20195
+ **year:** `Integer`
20143
20196
 
20144
20197
  </dd>
20145
20198
  </dl>
@@ -20147,7 +20200,7 @@ client.declarations.lt_intrastat_compute(
20147
20200
  <dl>
20148
20201
  <dd>
20149
20202
 
20150
- **preparation_time_hours:** `Integer`
20203
+ **month:** `Integer`
20151
20204
 
20152
20205
  </dd>
20153
20206
  </dl>
@@ -20155,7 +20208,7 @@ client.declarations.lt_intrastat_compute(
20155
20208
  <dl>
20156
20209
  <dd>
20157
20210
 
20158
- **preparation_time_minutes:** `Integer`
20211
+ **months:** `Integer`
20159
20212
 
20160
20213
  </dd>
20161
20214
  </dl>
@@ -20163,7 +20216,7 @@ client.declarations.lt_intrastat_compute(
20163
20216
  <dl>
20164
20217
  <dd>
20165
20218
 
20166
- **persist:** `Internal::Types::Boolean`
20219
+ **deduction_percent:** `Integer`
20167
20220
 
20168
20221
  </dd>
20169
20222
  </dl>
@@ -20183,7 +20236,7 @@ client.declarations.lt_intrastat_compute(
20183
20236
  </dl>
20184
20237
  </details>
20185
20238
 
20186
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_ivaz_generate</a>(request) -> Nordlet::Declarations::Types::LtIvazGenerateDeclarationsResponse</code></summary>
20239
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_gpm313compute</a>(request) -> Nordlet::Declarations::Types::LtGpm313ComputeDeclarationsResponse</code></summary>
20187
20240
  <dl>
20188
20241
  <dd>
20189
20242
 
@@ -20195,7 +20248,7 @@ client.declarations.lt_intrastat_compute(
20195
20248
  <dl>
20196
20249
  <dd>
20197
20250
 
20198
- Builds the i.VAZ transport document message (iVAZ1.3.3) for up to 100 issued waybills and returns the XML. Answers 422 when the registration code of the company is not numeric or when a waybill is not issued. With `persist`, the file is stored and a submission for `lt-ivaz` is created.
20251
+ Computes fields 5 to 7 of the monthly GPM313 from the payroll run of the month the pay was earned: the run of the previous month with `payoutTiming` `next-month`, the run of the same month with `same-month`. `paymentDay` decides whether the withheld tax goes to field 6 (paid by the 15th) or field 7 (after it). Fields 8 to 12 are returned as zero.
20199
20252
  </dd>
20200
20253
  </dl>
20201
20254
  </dd>
@@ -20210,7 +20263,10 @@ Builds the i.VAZ transport document message (iVAZ1.3.3) for up to 100 issued way
20210
20263
  <dd>
20211
20264
 
20212
20265
  ```ruby
20213
- client.declarations.lt_ivaz_generate(waybill_ids: ["waybillIds"])
20266
+ client.declarations.lt_gpm313compute(
20267
+ year: 1000000,
20268
+ month: 1000000
20269
+ )
20214
20270
  ```
20215
20271
  </dd>
20216
20272
  </dl>
@@ -20225,7 +20281,7 @@ client.declarations.lt_ivaz_generate(waybill_ids: ["waybillIds"])
20225
20281
  <dl>
20226
20282
  <dd>
20227
20283
 
20228
- **waybill_ids:** `Internal::Types::Array[String]`
20284
+ **year:** `Integer`
20229
20285
 
20230
20286
  </dd>
20231
20287
  </dl>
@@ -20233,7 +20289,23 @@ client.declarations.lt_ivaz_generate(waybill_ids: ["waybillIds"])
20233
20289
  <dl>
20234
20290
  <dd>
20235
20291
 
20236
- **persist:** `Internal::Types::Boolean`
20292
+ **month:** `Integer`
20293
+
20294
+ </dd>
20295
+ </dl>
20296
+
20297
+ <dl>
20298
+ <dd>
20299
+
20300
+ **payout_timing:** `Nordlet::Declarations::Types::LtGpm313ComputeDeclarationsRequestPayoutTiming`
20301
+
20302
+ </dd>
20303
+ </dl>
20304
+
20305
+ <dl>
20306
+ <dd>
20307
+
20308
+ **payment_day:** `Integer`
20237
20309
 
20238
20310
  </dd>
20239
20311
  </dl>
@@ -20253,7 +20325,7 @@ client.declarations.lt_ivaz_generate(waybill_ids: ["waybillIds"])
20253
20325
  </dl>
20254
20326
  </details>
20255
20327
 
20256
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_intrastat_obligation</a>(request) -> Nordlet::Declarations::Types::LtIntrastatObligationDeclarationsResponse</code></summary>
20328
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_sam_compute</a>(request) -> Nordlet::Declarations::Types::LtSamComputeDeclarationsResponse</code></summary>
20257
20329
  <dl>
20258
20330
  <dd>
20259
20331
 
@@ -20265,7 +20337,7 @@ client.declarations.lt_ivaz_generate(waybill_ids: ["waybillIds"])
20265
20337
  <dl>
20266
20338
  <dd>
20267
20339
 
20268
- Checks the Intrastat reporting obligation of a year per flow: the value of goods traded with other Member States in the previous year, the month from which reporting is due (January when that value already passed the reporting threshold, else the month the cumulative value of the year passes it), whether the statistical value is required, and the monthly values. Answers 422 when no thresholds are stored for the year.
20340
+ Computes the monthly SAM figures from the payroll run of the month: per employee the insured income, the employee and employer contributions together and the resulting tariff, plus the insured count and the totals. A missing run or a run still in draft is reported in the warnings.
20269
20341
  </dd>
20270
20342
  </dl>
20271
20343
  </dd>
@@ -20280,7 +20352,10 @@ Checks the Intrastat reporting obligation of a year per flow: the value of goods
20280
20352
  <dd>
20281
20353
 
20282
20354
  ```ruby
20283
- client.declarations.lt_intrastat_obligation(year: 1000000)
20355
+ client.declarations.lt_sam_compute(
20356
+ year: 1000000,
20357
+ month: 1000000
20358
+ )
20284
20359
  ```
20285
20360
  </dd>
20286
20361
  </dl>
@@ -20303,6 +20378,14 @@ client.declarations.lt_intrastat_obligation(year: 1000000)
20303
20378
  <dl>
20304
20379
  <dd>
20305
20380
 
20381
+ **month:** `Integer`
20382
+
20383
+ </dd>
20384
+ </dl>
20385
+
20386
+ <dl>
20387
+ <dd>
20388
+
20306
20389
  **request_options:** `Nordlet::Declarations::RequestOptions`
20307
20390
 
20308
20391
  </dd>
@@ -20315,7 +20398,7 @@ client.declarations.lt_intrastat_obligation(year: 1000000)
20315
20398
  </dl>
20316
20399
  </details>
20317
20400
 
20318
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_isaf_generate</a>(request) -> Nordlet::Declarations::Types::LtIsafGenerateDeclarationsResponse</code></summary>
20401
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_sd_generate</a>(request) -> Nordlet::Declarations::Types::LtSdGenerateDeclarationsResponse</code></summary>
20319
20402
  <dl>
20320
20403
  <dd>
20321
20404
 
@@ -20327,7 +20410,7 @@ client.declarations.lt_intrastat_obligation(year: 1000000)
20327
20410
  <dl>
20328
20411
  <dd>
20329
20412
 
20330
- Builds the Lithuanian i.SAF register XML of a month: `dataType` F covers both registers, S the issued sale invoices only, P the registered purchase invoices only. Returns the XML without storing it; `declarations/submissions/create` stores it as a submission.
20413
+ Lists the rows of the 1-SD (employment contracts that start in the date range) or of the 2-SD (contracts that ended in the range, with the final insured income and contributions from the payroll line of the termination month). Answers 422 when `fromDate` is after `toDate`.
20331
20414
  </dd>
20332
20415
  </dl>
20333
20416
  </dd>
@@ -20342,9 +20425,10 @@ Builds the Lithuanian i.SAF register XML of a month: `dataType` F covers both re
20342
20425
  <dd>
20343
20426
 
20344
20427
  ```ruby
20345
- client.declarations.lt_isaf_generate(
20346
- year: 1000000,
20347
- month: 1000000
20428
+ client.declarations.lt_sd_generate(
20429
+ type: "1-SD",
20430
+ from_date: "2026-07-01",
20431
+ to_date: "2026-07-01"
20348
20432
  )
20349
20433
  ```
20350
20434
  </dd>
@@ -20360,7 +20444,7 @@ client.declarations.lt_isaf_generate(
20360
20444
  <dl>
20361
20445
  <dd>
20362
20446
 
20363
- **year:** `Integer`
20447
+ **type:** `Nordlet::Declarations::Types::LtSdGenerateDeclarationsRequestType`
20364
20448
 
20365
20449
  </dd>
20366
20450
  </dl>
@@ -20368,7 +20452,7 @@ client.declarations.lt_isaf_generate(
20368
20452
  <dl>
20369
20453
  <dd>
20370
20454
 
20371
- **month:** `Integer`
20455
+ **from_date:** `String`
20372
20456
 
20373
20457
  </dd>
20374
20458
  </dl>
@@ -20376,7 +20460,7 @@ client.declarations.lt_isaf_generate(
20376
20460
  <dl>
20377
20461
  <dd>
20378
20462
 
20379
- **data_type:** `Nordlet::Declarations::Types::LtIsafGenerateDeclarationsRequestDataType`
20463
+ **to_date:** `String`
20380
20464
 
20381
20465
  </dd>
20382
20466
  </dl>
@@ -20396,7 +20480,7 @@ client.declarations.lt_isaf_generate(
20396
20480
  </dl>
20397
20481
  </details>
20398
20482
 
20399
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_fr0600compute</a>(request) -> Nordlet::Declarations::Types::LtFr0600ComputeDeclarationsResponse</code></summary>
20483
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_saft_generate</a>(request) -> Nordlet::Declarations::Types::LtSaftGenerateDeclarationsResponse</code></summary>
20400
20484
  <dl>
20401
20485
  <dd>
20402
20486
 
@@ -20408,7 +20492,7 @@ client.declarations.lt_isaf_generate(
20408
20492
  <dl>
20409
20493
  <dd>
20410
20494
 
20411
- Computes the fields of the Lithuanian VAT return FR0600 for the period of `months` months starting in `month`, with the breakdown by VAT classifier behind them. `deductionPercent` is the share of input VAT deducted and is written to field 28.
20495
+ Builds the Lithuanian SAF-T (version 2.01) XML for a date range: `dataType` F is the full file, GL, SI, PI, PA, MG and AS limit it to the general ledger, sale invoices, purchase invoices, payments, movements of goods or asset transactions. Answers 422 when `fromDate` is after `toDate`. With `persist`, the file is stored and a submission for `lt-saft` is created.
20412
20496
  </dd>
20413
20497
  </dl>
20414
20498
  </dd>
@@ -20423,9 +20507,9 @@ Computes the fields of the Lithuanian VAT return FR0600 for the period of `month
20423
20507
  <dd>
20424
20508
 
20425
20509
  ```ruby
20426
- client.declarations.lt_fr0600compute(
20427
- year: 1000000,
20428
- month: 1000000
20510
+ client.declarations.lt_saft_generate(
20511
+ from_date: "2026-07-01",
20512
+ to_date: "2026-07-01"
20429
20513
  )
20430
20514
  ```
20431
20515
  </dd>
@@ -20441,7 +20525,7 @@ client.declarations.lt_fr0600compute(
20441
20525
  <dl>
20442
20526
  <dd>
20443
20527
 
20444
- **year:** `Integer`
20528
+ **from_date:** `String`
20445
20529
 
20446
20530
  </dd>
20447
20531
  </dl>
@@ -20449,7 +20533,7 @@ client.declarations.lt_fr0600compute(
20449
20533
  <dl>
20450
20534
  <dd>
20451
20535
 
20452
- **month:** `Integer`
20536
+ **to_date:** `String`
20453
20537
 
20454
20538
  </dd>
20455
20539
  </dl>
@@ -20457,7 +20541,7 @@ client.declarations.lt_fr0600compute(
20457
20541
  <dl>
20458
20542
  <dd>
20459
20543
 
20460
- **months:** `Integer`
20544
+ **data_type:** `Nordlet::Declarations::Types::LtSaftGenerateDeclarationsRequestDataType`
20461
20545
 
20462
20546
  </dd>
20463
20547
  </dl>
@@ -20465,7 +20549,7 @@ client.declarations.lt_fr0600compute(
20465
20549
  <dl>
20466
20550
  <dd>
20467
20551
 
20468
- **deduction_percent:** `Integer`
20552
+ **persist:** `Internal::Types::Boolean`
20469
20553
 
20470
20554
  </dd>
20471
20555
  </dl>
@@ -20485,7 +20569,7 @@ client.declarations.lt_fr0600compute(
20485
20569
  </dl>
20486
20570
  </details>
20487
20571
 
20488
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_gpm313compute</a>(request) -> Nordlet::Declarations::Types::LtGpm313ComputeDeclarationsResponse</code></summary>
20572
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_ivaz_amend</a>(request) -> Nordlet::Declarations::Types::LtIvazAmendDeclarationsResponse</code></summary>
20489
20573
  <dl>
20490
20574
  <dd>
20491
20575
 
@@ -20497,7 +20581,7 @@ client.declarations.lt_fr0600compute(
20497
20581
  <dl>
20498
20582
  <dd>
20499
20583
 
20500
- Computes fields 5 to 7 of the monthly GPM313 from the payroll run of the month the pay was earned: the run of the previous month with `payoutTiming` `next-month`, the run of the same month with `same-month`. `paymentDay` decides whether the withheld tax goes to field 6 (paid by the 15th) or field 7 (after it). Fields 8 to 12 are returned as zero.
20584
+ Builds an i.VAZ amendment message for up to 100 issued waybills as TransportDocumentAmendment elements. `corrections` carries corrected values per waybill: `consigneePartnerId`, `unloadAddress`, `vehiclePlate`, `trailerPlate`, `driverName`, `driverSurname` (the last three can be cleared with null) and line `quantity` by line id; the message carries the waybill with them applied, and with `persist` they are also stored on the waybill. Answers 422 when the registration code of the company is not numeric, when a waybill is not issued, or when a correction names a waybill not in `waybillIds`, a waybill twice, a line not on its waybill or a consignee partner the company does not have. With `persist`, the file is stored and a submission for `lt-ivaz-amendment` is created.
20501
20585
  </dd>
20502
20586
  </dl>
20503
20587
  </dd>
@@ -20512,10 +20596,7 @@ Computes fields 5 to 7 of the monthly GPM313 from the payroll run of the month t
20512
20596
  <dd>
20513
20597
 
20514
20598
  ```ruby
20515
- client.declarations.lt_gpm313compute(
20516
- year: 1000000,
20517
- month: 1000000
20518
- )
20599
+ client.declarations.lt_ivaz_amend(waybill_ids: ["waybillIds"])
20519
20600
  ```
20520
20601
  </dd>
20521
20602
  </dl>
@@ -20530,15 +20611,7 @@ client.declarations.lt_gpm313compute(
20530
20611
  <dl>
20531
20612
  <dd>
20532
20613
 
20533
- **year:** `Integer`
20534
-
20535
- </dd>
20536
- </dl>
20537
-
20538
- <dl>
20539
- <dd>
20540
-
20541
- **month:** `Integer`
20614
+ **waybill_ids:** `Internal::Types::Array[String]`
20542
20615
 
20543
20616
  </dd>
20544
20617
  </dl>
@@ -20546,7 +20619,7 @@ client.declarations.lt_gpm313compute(
20546
20619
  <dl>
20547
20620
  <dd>
20548
20621
 
20549
- **payout_timing:** `Nordlet::Declarations::Types::LtGpm313ComputeDeclarationsRequestPayoutTiming`
20622
+ **persist:** `Internal::Types::Boolean`
20550
20623
 
20551
20624
  </dd>
20552
20625
  </dl>
@@ -20554,7 +20627,7 @@ client.declarations.lt_gpm313compute(
20554
20627
  <dl>
20555
20628
  <dd>
20556
20629
 
20557
- **payment_day:** `Integer`
20630
+ **corrections:** `Internal::Types::Array[Nordlet::Declarations::Types::LtIvazAmendDeclarationsRequestCorrectionsItem]`
20558
20631
 
20559
20632
  </dd>
20560
20633
  </dl>
@@ -20574,7 +20647,7 @@ client.declarations.lt_gpm313compute(
20574
20647
  </dl>
20575
20648
  </details>
20576
20649
 
20577
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_sam_compute</a>(request) -> Nordlet::Declarations::Types::LtSamComputeDeclarationsResponse</code></summary>
20650
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_ivaz_cancel</a>(request) -> Nordlet::Declarations::Types::LtIvazCancelDeclarationsResponse</code></summary>
20578
20651
  <dl>
20579
20652
  <dd>
20580
20653
 
@@ -20586,7 +20659,7 @@ client.declarations.lt_gpm313compute(
20586
20659
  <dl>
20587
20660
  <dd>
20588
20661
 
20589
- Computes the monthly SAM figures from the payroll run of the month: per employee the insured income, the employee and employer contributions together and the resulting tariff, plus the insured count and the totals. A missing run or a run still in draft is reported in the warnings.
20662
+ Builds an i.VAZ cancellation message for up to 100 waybills, each with a cancellation reason code and optional additional information. Answers 422 when the registration code of the company is not numeric; a waybill that was never issued is reported in the warnings. With `persist`, the file is stored and a submission for `lt-ivaz-cancellation` is created.
20590
20663
  </dd>
20591
20664
  </dl>
20592
20665
  </dd>
@@ -20601,10 +20674,10 @@ Computes the monthly SAM figures from the payroll run of the month: per employee
20601
20674
  <dd>
20602
20675
 
20603
20676
  ```ruby
20604
- client.declarations.lt_sam_compute(
20605
- year: 1000000,
20606
- month: 1000000
20607
- )
20677
+ client.declarations.lt_ivaz_cancel(entries: [{
20678
+ waybill_id: "waybillId",
20679
+ reason: "1"
20680
+ }])
20608
20681
  ```
20609
20682
  </dd>
20610
20683
  </dl>
@@ -20619,7 +20692,7 @@ client.declarations.lt_sam_compute(
20619
20692
  <dl>
20620
20693
  <dd>
20621
20694
 
20622
- **year:** `Integer`
20695
+ **entries:** `Internal::Types::Array[Nordlet::Declarations::Types::LtIvazCancelDeclarationsRequestEntriesItem]`
20623
20696
 
20624
20697
  </dd>
20625
20698
  </dl>
@@ -20627,7 +20700,7 @@ client.declarations.lt_sam_compute(
20627
20700
  <dl>
20628
20701
  <dd>
20629
20702
 
20630
- **month:** `Integer`
20703
+ **persist:** `Internal::Types::Boolean`
20631
20704
 
20632
20705
  </dd>
20633
20706
  </dl>
@@ -20647,7 +20720,7 @@ client.declarations.lt_sam_compute(
20647
20720
  </dl>
20648
20721
  </details>
20649
20722
 
20650
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_sd_generate</a>(request) -> Nordlet::Declarations::Types::LtSdGenerateDeclarationsResponse</code></summary>
20723
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_fr0564compute</a>(request) -> Nordlet::Declarations::Types::LtFr0564ComputeDeclarationsResponse</code></summary>
20651
20724
  <dl>
20652
20725
  <dd>
20653
20726
 
@@ -20659,7 +20732,7 @@ client.declarations.lt_sam_compute(
20659
20732
  <dl>
20660
20733
  <dd>
20661
20734
 
20662
- Lists the rows of the 1-SD (employment contracts that start in the date range) or of the 2-SD (contracts that ended in the range, with the final insured income and contributions from the payroll line of the termination month). Answers 422 when `fromDate` is after `toDate`.
20735
+ Computes the rows of the Lithuanian FR0564 report of a month from the issued sale invoices and credit notes with the `intra_eu_b2b` or `reverse_charge` scheme: one row per buyer VAT number of another Member State, with goods and services split by the type of the catalogue item. Invoices not in EUR and buyers without a valid EU VAT number are left out and named in the warnings; the triangular column is always zero.
20663
20736
  </dd>
20664
20737
  </dl>
20665
20738
  </dd>
@@ -20674,10 +20747,9 @@ Lists the rows of the 1-SD (employment contracts that start in the date range) o
20674
20747
  <dd>
20675
20748
 
20676
20749
  ```ruby
20677
- client.declarations.lt_sd_generate(
20678
- type: "1-SD",
20679
- from_date: "2026-07-01",
20680
- to_date: "2026-07-01"
20750
+ client.declarations.lt_fr0564compute(
20751
+ year: 1000000,
20752
+ month: 1000000
20681
20753
  )
20682
20754
  ```
20683
20755
  </dd>
@@ -20693,15 +20765,7 @@ client.declarations.lt_sd_generate(
20693
20765
  <dl>
20694
20766
  <dd>
20695
20767
 
20696
- **type:** `Nordlet::Declarations::Types::LtSdGenerateDeclarationsRequestType`
20697
-
20698
- </dd>
20699
- </dl>
20700
-
20701
- <dl>
20702
- <dd>
20703
-
20704
- **from_date:** `String`
20768
+ **year:** `Integer`
20705
20769
 
20706
20770
  </dd>
20707
20771
  </dl>
@@ -20709,7 +20773,7 @@ client.declarations.lt_sd_generate(
20709
20773
  <dl>
20710
20774
  <dd>
20711
20775
 
20712
- **to_date:** `String`
20776
+ **month:** `Integer`
20713
20777
 
20714
20778
  </dd>
20715
20779
  </dl>
@@ -20729,7 +20793,7 @@ client.declarations.lt_sd_generate(
20729
20793
  </dl>
20730
20794
  </details>
20731
20795
 
20732
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_saft_generate</a>(request) -> Nordlet::Declarations::Types::LtSaftGenerateDeclarationsResponse</code></summary>
20796
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_gpm312compute</a>(request) -> Nordlet::Declarations::Types::LtGpm312ComputeDeclarationsResponse</code></summary>
20733
20797
  <dl>
20734
20798
  <dd>
20735
20799
 
@@ -20741,7 +20805,7 @@ client.declarations.lt_sd_generate(
20741
20805
  <dl>
20742
20806
  <dd>
20743
20807
 
20744
- Builds the Lithuanian SAF-T (version 2.01) XML for a date range: `dataType` F is the full file, GL, SI, PI, PA, MG and AS limit it to the general ledger, sale invoices, purchase invoices, payments, movements of goods or asset transactions. Answers 422 when `fromDate` is after `toDate`. With `persist`, the file is stored and a submission for `lt-saft` is created.
20808
+ Computes the rows of the annual GPM312 from the payroll runs of the payout months of the year (December of the previous year to November with `payoutTiming` `next-month`, January to December with `same-month`): one row per employee and payment type code, with the amount paid, the tax withheld and the rate applied.
20745
20809
  </dd>
20746
20810
  </dl>
20747
20811
  </dd>
@@ -20756,10 +20820,7 @@ Builds the Lithuanian SAF-T (version 2.01) XML for a date range: `dataType` F is
20756
20820
  <dd>
20757
20821
 
20758
20822
  ```ruby
20759
- client.declarations.lt_saft_generate(
20760
- from_date: "2026-07-01",
20761
- to_date: "2026-07-01"
20762
- )
20823
+ client.declarations.lt_gpm312compute(year: 1000000)
20763
20824
  ```
20764
20825
  </dd>
20765
20826
  </dl>
@@ -20774,23 +20835,7 @@ client.declarations.lt_saft_generate(
20774
20835
  <dl>
20775
20836
  <dd>
20776
20837
 
20777
- **from_date:** `String`
20778
-
20779
- </dd>
20780
- </dl>
20781
-
20782
- <dl>
20783
- <dd>
20784
-
20785
- **to_date:** `String`
20786
-
20787
- </dd>
20788
- </dl>
20789
-
20790
- <dl>
20791
- <dd>
20792
-
20793
- **data_type:** `Nordlet::Declarations::Types::LtSaftGenerateDeclarationsRequestDataType`
20838
+ **year:** `Integer`
20794
20839
 
20795
20840
  </dd>
20796
20841
  </dl>
@@ -20798,7 +20843,7 @@ client.declarations.lt_saft_generate(
20798
20843
  <dl>
20799
20844
  <dd>
20800
20845
 
20801
- **persist:** `Internal::Types::Boolean`
20846
+ **payout_timing:** `Nordlet::Declarations::Types::LtGpm312ComputeDeclarationsRequestPayoutTiming`
20802
20847
 
20803
20848
  </dd>
20804
20849
  </dl>
@@ -20818,7 +20863,7 @@ client.declarations.lt_saft_generate(
20818
20863
  </dl>
20819
20864
  </details>
20820
20865
 
20821
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_ivaz_amend</a>(request) -> Nordlet::Declarations::Types::LtIvazAmendDeclarationsResponse</code></summary>
20866
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_pln204compute</a>(request) -> Nordlet::Declarations::Types::LtPln204ComputeDeclarationsResponse</code></summary>
20822
20867
  <dl>
20823
20868
  <dd>
20824
20869
 
@@ -20830,7 +20875,7 @@ client.declarations.lt_saft_generate(
20830
20875
  <dl>
20831
20876
  <dd>
20832
20877
 
20833
- Builds an i.VAZ amendment message for up to 100 issued waybills as TransportDocumentAmendment elements. `corrections` carries corrected values per waybill: `consigneePartnerId`, `unloadAddress`, `vehiclePlate`, `trailerPlate`, `driverName`, `driverSurname` (the last three can be cleared with null) and line `quantity` by line id; the message carries the waybill with them applied, and with `persist` they are also stored on the waybill. Answers 422 when the registration code of the company is not numeric, when a waybill is not issued, or when a correction names a waybill not in `waybillIds`, a waybill twice, a line not on its waybill or a consignee partner the company does not have. With `persist`, the file is stored and a submission for `lt-ivaz-amendment` is created.
20878
+ Computes the boxes of the Lithuanian annual corporate income tax return PLN204 for the fiscal year from the financial statements and the tax adjustments recorded with `declarations/tax-adjustments/create`: the PLN204S annex from the `non_deductible` adjustments and the PLN204Z annex from the `non_taxable_income` ones, by their `code`. The small-entity rate is applied when the size criteria allow it. Answers 422 when such an adjustment has no code or a code the annex does not list, or when no rate table covers the period.
20834
20879
  </dd>
20835
20880
  </dl>
20836
20881
  </dd>
@@ -20845,7 +20890,7 @@ Builds an i.VAZ amendment message for up to 100 issued waybills as TransportDocu
20845
20890
  <dd>
20846
20891
 
20847
20892
  ```ruby
20848
- client.declarations.lt_ivaz_amend(waybill_ids: ["waybillIds"])
20893
+ client.declarations.lt_pln204compute(year: 1000000)
20849
20894
  ```
20850
20895
  </dd>
20851
20896
  </dl>
@@ -20860,23 +20905,7 @@ client.declarations.lt_ivaz_amend(waybill_ids: ["waybillIds"])
20860
20905
  <dl>
20861
20906
  <dd>
20862
20907
 
20863
- **waybill_ids:** `Internal::Types::Array[String]`
20864
-
20865
- </dd>
20866
- </dl>
20867
-
20868
- <dl>
20869
- <dd>
20870
-
20871
- **persist:** `Internal::Types::Boolean`
20872
-
20873
- </dd>
20874
- </dl>
20875
-
20876
- <dl>
20877
- <dd>
20878
-
20879
- **corrections:** `Internal::Types::Array[Nordlet::Declarations::Types::LtIvazAmendDeclarationsRequestCorrectionsItem]`
20908
+ **year:** `Integer`
20880
20909
 
20881
20910
  </dd>
20882
20911
  </dl>
@@ -20896,7 +20925,7 @@ client.declarations.lt_ivaz_amend(waybill_ids: ["waybillIds"])
20896
20925
  </dl>
20897
20926
  </details>
20898
20927
 
20899
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_ivaz_cancel</a>(request) -> Nordlet::Declarations::Types::LtIvazCancelDeclarationsResponse</code></summary>
20928
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">eu_oss_compute</a>(request) -> Nordlet::Declarations::Types::EuOssComputeDeclarationsResponse</code></summary>
20900
20929
  <dl>
20901
20930
  <dd>
20902
20931
 
@@ -20908,7 +20937,7 @@ client.declarations.lt_ivaz_amend(waybill_ids: ["waybillIds"])
20908
20937
  <dl>
20909
20938
  <dd>
20910
20939
 
20911
- Builds an i.VAZ cancellation message for up to 100 waybills, each with a cancellation reason code and optional additional information. Answers 422 when the registration code of the company is not numeric; a waybill that was never issued is reported in the warnings. With `persist`, the file is stored and a submission for `lt-ivaz-cancellation` is created.
20940
+ Computes the Union OSS return of a quarter from the issued invoices and credit notes with the `oss_union` VAT scheme: one row per Member State of consumption and VAT rate, classified as standard or reduced, and a corrections section for the credit notes that credit invoices of earlier periods. Amounts are in EUR, converted at the official rate of the last day of the period. Answers 422 when the company is not established in the EU.
20912
20941
  </dd>
20913
20942
  </dl>
20914
20943
  </dd>
@@ -20923,10 +20952,10 @@ Builds an i.VAZ cancellation message for up to 100 waybills, each with a cancell
20923
20952
  <dd>
20924
20953
 
20925
20954
  ```ruby
20926
- client.declarations.lt_ivaz_cancel(entries: [{
20927
- waybill_id: "waybillId",
20928
- reason: "1"
20929
- }])
20955
+ client.declarations.eu_oss_compute(
20956
+ year: 1000000,
20957
+ quarter: 1000000
20958
+ )
20930
20959
  ```
20931
20960
  </dd>
20932
20961
  </dl>
@@ -20941,7 +20970,7 @@ client.declarations.lt_ivaz_cancel(entries: [{
20941
20970
  <dl>
20942
20971
  <dd>
20943
20972
 
20944
- **entries:** `Internal::Types::Array[Nordlet::Declarations::Types::LtIvazCancelDeclarationsRequestEntriesItem]`
20973
+ **year:** `Integer`
20945
20974
 
20946
20975
  </dd>
20947
20976
  </dl>
@@ -20949,7 +20978,7 @@ client.declarations.lt_ivaz_cancel(entries: [{
20949
20978
  <dl>
20950
20979
  <dd>
20951
20980
 
20952
- **persist:** `Internal::Types::Boolean`
20981
+ **quarter:** `Integer`
20953
20982
 
20954
20983
  </dd>
20955
20984
  </dl>
@@ -20969,7 +20998,7 @@ client.declarations.lt_ivaz_cancel(entries: [{
20969
20998
  </dl>
20970
20999
  </details>
20971
21000
 
20972
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_fr0564compute</a>(request) -> Nordlet::Declarations::Types::LtFr0564ComputeDeclarationsResponse</code></summary>
21001
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">eu_ioss_compute</a>(request) -> Nordlet::Declarations::Types::EuIossComputeDeclarationsResponse</code></summary>
20973
21002
  <dl>
20974
21003
  <dd>
20975
21004
 
@@ -20981,7 +21010,7 @@ client.declarations.lt_ivaz_cancel(entries: [{
20981
21010
  <dl>
20982
21011
  <dd>
20983
21012
 
20984
- Computes the rows of the Lithuanian FR0564 report of a month from the issued sale invoices and credit notes with the `intra_eu_b2b` or `reverse_charge` scheme: one row per buyer VAT number of another Member State, with goods and services split by the type of the catalogue item. Invoices not in EUR and buyers without a valid EU VAT number are left out and named in the warnings; the triangular column is always zero.
21013
+ Computes the IOSS return of a month from the issued invoices and credit notes with the `ioss` VAT scheme, with the same rows, corrections and EUR conversion as `declarations/eu/oss/compute`. Answers 422 when the company is not established in the EU.
20985
21014
  </dd>
20986
21015
  </dl>
20987
21016
  </dd>
@@ -20996,285 +21025,7 @@ Computes the rows of the Lithuanian FR0564 report of a month from the issued sal
20996
21025
  <dd>
20997
21026
 
20998
21027
  ```ruby
20999
- client.declarations.lt_fr0564compute(
21000
- year: 1000000,
21001
- month: 1000000
21002
- )
21003
- ```
21004
- </dd>
21005
- </dl>
21006
- </dd>
21007
- </dl>
21008
-
21009
- #### ⚙️ Parameters
21010
-
21011
- <dl>
21012
- <dd>
21013
-
21014
- <dl>
21015
- <dd>
21016
-
21017
- **year:** `Integer`
21018
-
21019
- </dd>
21020
- </dl>
21021
-
21022
- <dl>
21023
- <dd>
21024
-
21025
- **month:** `Integer`
21026
-
21027
- </dd>
21028
- </dl>
21029
-
21030
- <dl>
21031
- <dd>
21032
-
21033
- **request_options:** `Nordlet::Declarations::RequestOptions`
21034
-
21035
- </dd>
21036
- </dl>
21037
- </dd>
21038
- </dl>
21039
-
21040
-
21041
- </dd>
21042
- </dl>
21043
- </details>
21044
-
21045
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_gpm312compute</a>(request) -> Nordlet::Declarations::Types::LtGpm312ComputeDeclarationsResponse</code></summary>
21046
- <dl>
21047
- <dd>
21048
-
21049
- #### 📝 Description
21050
-
21051
- <dl>
21052
- <dd>
21053
-
21054
- <dl>
21055
- <dd>
21056
-
21057
- Computes the rows of the annual GPM312 from the payroll runs of the payout months of the year (December of the previous year to November with `payoutTiming` `next-month`, January to December with `same-month`): one row per employee and payment type code, with the amount paid, the tax withheld and the rate applied.
21058
- </dd>
21059
- </dl>
21060
- </dd>
21061
- </dl>
21062
-
21063
- #### 🔌 Usage
21064
-
21065
- <dl>
21066
- <dd>
21067
-
21068
- <dl>
21069
- <dd>
21070
-
21071
- ```ruby
21072
- client.declarations.lt_gpm312compute(year: 1000000)
21073
- ```
21074
- </dd>
21075
- </dl>
21076
- </dd>
21077
- </dl>
21078
-
21079
- #### ⚙️ Parameters
21080
-
21081
- <dl>
21082
- <dd>
21083
-
21084
- <dl>
21085
- <dd>
21086
-
21087
- **year:** `Integer`
21088
-
21089
- </dd>
21090
- </dl>
21091
-
21092
- <dl>
21093
- <dd>
21094
-
21095
- **payout_timing:** `Nordlet::Declarations::Types::LtGpm312ComputeDeclarationsRequestPayoutTiming`
21096
-
21097
- </dd>
21098
- </dl>
21099
-
21100
- <dl>
21101
- <dd>
21102
-
21103
- **request_options:** `Nordlet::Declarations::RequestOptions`
21104
-
21105
- </dd>
21106
- </dl>
21107
- </dd>
21108
- </dl>
21109
-
21110
-
21111
- </dd>
21112
- </dl>
21113
- </details>
21114
-
21115
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">lt_pln204compute</a>(request) -> Nordlet::Declarations::Types::LtPln204ComputeDeclarationsResponse</code></summary>
21116
- <dl>
21117
- <dd>
21118
-
21119
- #### 📝 Description
21120
-
21121
- <dl>
21122
- <dd>
21123
-
21124
- <dl>
21125
- <dd>
21126
-
21127
- Computes the boxes of the Lithuanian annual corporate income tax return PLN204 for the fiscal year from the financial statements and the tax adjustments recorded with `declarations/tax-adjustments/create`: the PLN204S annex from the `non_deductible` adjustments and the PLN204Z annex from the `non_taxable_income` ones, by their `code`. The small-entity rate is applied when the size criteria allow it. Answers 422 when such an adjustment has no code or a code the annex does not list, or when no rate table covers the period.
21128
- </dd>
21129
- </dl>
21130
- </dd>
21131
- </dl>
21132
-
21133
- #### 🔌 Usage
21134
-
21135
- <dl>
21136
- <dd>
21137
-
21138
- <dl>
21139
- <dd>
21140
-
21141
- ```ruby
21142
- client.declarations.lt_pln204compute(year: 1000000)
21143
- ```
21144
- </dd>
21145
- </dl>
21146
- </dd>
21147
- </dl>
21148
-
21149
- #### ⚙️ Parameters
21150
-
21151
- <dl>
21152
- <dd>
21153
-
21154
- <dl>
21155
- <dd>
21156
-
21157
- **year:** `Integer`
21158
-
21159
- </dd>
21160
- </dl>
21161
-
21162
- <dl>
21163
- <dd>
21164
-
21165
- **request_options:** `Nordlet::Declarations::RequestOptions`
21166
-
21167
- </dd>
21168
- </dl>
21169
- </dd>
21170
- </dl>
21171
-
21172
-
21173
- </dd>
21174
- </dl>
21175
- </details>
21176
-
21177
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">eu_oss_compute</a>(request) -> Nordlet::Declarations::Types::EuOssComputeDeclarationsResponse</code></summary>
21178
- <dl>
21179
- <dd>
21180
-
21181
- #### 📝 Description
21182
-
21183
- <dl>
21184
- <dd>
21185
-
21186
- <dl>
21187
- <dd>
21188
-
21189
- Computes the Union OSS return of a quarter from the issued invoices and credit notes with the `oss_union` VAT scheme: one row per Member State of consumption and VAT rate, classified as standard or reduced, and a corrections section for the credit notes that credit invoices of earlier periods. Amounts are in EUR, converted at the official rate of the last day of the period. Answers 422 when the company is not established in the EU.
21190
- </dd>
21191
- </dl>
21192
- </dd>
21193
- </dl>
21194
-
21195
- #### 🔌 Usage
21196
-
21197
- <dl>
21198
- <dd>
21199
-
21200
- <dl>
21201
- <dd>
21202
-
21203
- ```ruby
21204
- client.declarations.eu_oss_compute(
21205
- year: 1000000,
21206
- quarter: 1000000
21207
- )
21208
- ```
21209
- </dd>
21210
- </dl>
21211
- </dd>
21212
- </dl>
21213
-
21214
- #### ⚙️ Parameters
21215
-
21216
- <dl>
21217
- <dd>
21218
-
21219
- <dl>
21220
- <dd>
21221
-
21222
- **year:** `Integer`
21223
-
21224
- </dd>
21225
- </dl>
21226
-
21227
- <dl>
21228
- <dd>
21229
-
21230
- **quarter:** `Integer`
21231
-
21232
- </dd>
21233
- </dl>
21234
-
21235
- <dl>
21236
- <dd>
21237
-
21238
- **request_options:** `Nordlet::Declarations::RequestOptions`
21239
-
21240
- </dd>
21241
- </dl>
21242
- </dd>
21243
- </dl>
21244
-
21245
-
21246
- </dd>
21247
- </dl>
21248
- </details>
21249
-
21250
- <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">eu_ioss_compute</a>(request) -> Nordlet::Declarations::Types::EuIossComputeDeclarationsResponse</code></summary>
21251
- <dl>
21252
- <dd>
21253
-
21254
- #### 📝 Description
21255
-
21256
- <dl>
21257
- <dd>
21258
-
21259
- <dl>
21260
- <dd>
21261
-
21262
- Computes the IOSS return of a month from the issued invoices and credit notes with the `ioss` VAT scheme, with the same rows, corrections and EUR conversion as `declarations/eu/oss/compute`. Answers 422 when the company is not established in the EU.
21263
- </dd>
21264
- </dl>
21265
- </dd>
21266
- </dl>
21267
-
21268
- #### 🔌 Usage
21269
-
21270
- <dl>
21271
- <dd>
21272
-
21273
- <dl>
21274
- <dd>
21275
-
21276
- ```ruby
21277
- client.declarations.eu_ioss_compute(
21028
+ client.declarations.eu_ioss_compute(
21278
21029
  year: 1000000,
21279
21030
  month: 1000000
21280
21031
  )
@@ -23065,7 +22816,7 @@ client.declarations.tax_payments_create(
23065
22816
  <dl>
23066
22817
  <dd>
23067
22818
 
23068
- Changes the kind, amount, payment date, reference or description of a recorded tax payment; fields left out keep their value and an empty `reference` clears it. Answers 422 when the new amount is zero.
22819
+ Changes the kind, amount, payment date, reference or description of a recorded tax payment; fields left out keep their value and an empty `reference` clears it. Answers 422 when the new amount is zero, and 409 when the kind or amount of a payment booked from a bank transaction (`bank/transactions/post`) changes.
23069
22820
  </dd>
23070
22821
  </dl>
23071
22822
  </dd>
@@ -23167,7 +22918,7 @@ client.declarations.tax_payments_update(id: "id")
23167
22918
  <dl>
23168
22919
  <dd>
23169
22920
 
23170
- Deletes a recorded tax payment.
22921
+ Deletes a recorded tax payment. Answers 409 when the payment is booked from a bank transaction (`bank/transactions/post`).
23171
22922
  </dd>
23172
22923
  </dl>
23173
22924
  </dd>
@@ -26435,7 +26186,7 @@ client.declarations.li_lohnlisten_generate(year: 1000000)
26435
26186
  <dl>
26436
26187
  <dd>
26437
26188
 
26438
- Lists the filing systems the company can configure: those of the company country (or of `country` when given), the EU-wide systems and the cross-border e-invoicing systems `it_sdi`, `pl_ksef` and `ro_efactura`. Each row carries the stored values, with a secret or certificate field shown as `__secret_set__` and the fields taken from the company profile filled from it.
26189
+ Lists the filing systems the company can configure: those of the company country (or of `country` when given), the EU-wide systems and the cross-border e-invoicing systems `it_sdi`, `pl_ksef` and `ro_efactura`. Each row carries the stored values, with a secret or certificate field shown as `__secret_set__` and the fields taken from the company profile filled from it. Each field carries its `label` in the language of `Accept-Language` (English otherwise) when Nordlet has one, and a `select` field its allowed values in `options`. Set the values with `declarations/configs/update` {system, config: {key: value}}.
26439
26190
  </dd>
26440
26191
  </dl>
26441
26192
  </dd>
@@ -27794,7 +27545,7 @@ client.ledger.periods_list
27794
27545
  <dl>
27795
27546
  <dd>
27796
27547
 
27797
- Locks the month so that postings dated in it are refused with 409 (`ledger/journal/transactions/create`, `cash/orders/create` and `cash/expense-reports/create` among them). Before locking a month that is not locked yet, posts the pending ratable revenue recognition tranches scheduled up to the month end and emits `revenue_recognition.posted` when there were any; when the month is the company's fiscal year end and no year-end close is posted for that year, posts the year-end close that moves the income and expense balances of the fiscal year to the retained earnings account (posting rule `closing.retainedEarnings`).
27548
+ Locks the month so that postings dated in it are refused with 409 (`ledger/journal/transactions/create`, `cash/orders/create` and `cash/expense-reports/create` among them). Before locking a month that is not locked yet, posts the pending ratable revenue recognition tranches scheduled up to the month end and emits `revenue_recognition.posted` when there were any; when the month is the company's fiscal year end and no year-end close is posted for that year, posts the year-end close that moves the income and expense balances of the fiscal year to the retained earnings account (posting rule `closing.retainedEarnings`). The lock is not refused for open items: `warnings` lists them as `reports/period-checklist` does, for the month, or for the fiscal year when the month is the fiscal year end.
27798
27549
  </dd>
27799
27550
  </dl>
27800
27551
  </dd>
@@ -29184,7 +28935,7 @@ client.ledger.owners_list
29184
28935
  <dl>
29185
28936
  <dd>
29186
28937
 
29187
- Returns a journal transaction with its entries, ordered by account code.
28938
+ Returns a journal transaction with its entries, ordered by account code. `reversedByTransactionId` is the transaction posted by `ledger/journal/transactions/reverse` for a manual transaction, else null.
29188
28939
  </dd>
29189
28940
  </dl>
29190
28941
  </dd>
@@ -29246,7 +28997,7 @@ client.ledger.journal_transactions_get(id: "id")
29246
28997
  <dl>
29247
28998
  <dd>
29248
28999
 
29249
- Posts a manual journal transaction (`documentType` `manual`, status `posted`) in the company's base currency. Every `accountCode` must be a postable account of the chart, cost centers must exist and be active, projects must exist, and the debits must equal the credits. Answers 422 for an amount with more than two decimals, for a `currency` other than the base currency and for an inactive cost center, and 409 when the accounting period of `date` is locked.
29000
+ Posts a manual journal transaction (`documentType` `manual`, status `posted`) in the company's base currency. Every `accountCode` must be a postable account of the chart, cost centers must exist and be active, projects must exist, and the debits must equal the credits. Answers 422 for an amount that is not whole cents (a third or fourth decimal other than zero; `10.5000` is accepted), for a `currency` other than the base currency and for an inactive cost center, and 409 when the accounting period of `date` is locked.
29250
29001
  </dd>
29251
29002
  </dl>
29252
29003
  </dd>
@@ -29321,6 +29072,87 @@ client.ledger.journal_transactions_create(
29321
29072
  </dl>
29322
29073
 
29323
29074
 
29075
+ </dd>
29076
+ </dl>
29077
+ </details>
29078
+
29079
+ <details><summary><code>client.ledger.<a href="/lib/nordlet/ledger/client.rb">journal_transactions_reverse</a>(request) -> Nordlet::Ledger::Types::JournalTransactionsReverseLedgerResponse</code></summary>
29080
+ <dl>
29081
+ <dd>
29082
+
29083
+ #### 📝 Description
29084
+
29085
+ <dl>
29086
+ <dd>
29087
+
29088
+ <dl>
29089
+ <dd>
29090
+
29091
+ Posts a journal transaction (`documentType` `manual_reversal`, `documentId` the original) dated `date` (default the original date) whose entries mirror the original's (debits and credits swapped). Only a `manual` transaction is reversed here; a transaction posted by a document is reversed through that document. Answers 409 when the transaction is not manual, when it is already reversed and when the accounting period of `date` is locked, and 400 when `date` is before the original date.
29092
+ </dd>
29093
+ </dl>
29094
+ </dd>
29095
+ </dl>
29096
+
29097
+ #### 🔌 Usage
29098
+
29099
+ <dl>
29100
+ <dd>
29101
+
29102
+ <dl>
29103
+ <dd>
29104
+
29105
+ ```ruby
29106
+ client.ledger.journal_transactions_reverse(
29107
+ id: "id",
29108
+ reason: "reason"
29109
+ )
29110
+ ```
29111
+ </dd>
29112
+ </dl>
29113
+ </dd>
29114
+ </dl>
29115
+
29116
+ #### ⚙️ Parameters
29117
+
29118
+ <dl>
29119
+ <dd>
29120
+
29121
+ <dl>
29122
+ <dd>
29123
+
29124
+ **id:** `String`
29125
+
29126
+ </dd>
29127
+ </dl>
29128
+
29129
+ <dl>
29130
+ <dd>
29131
+
29132
+ **reason:** `String`
29133
+
29134
+ </dd>
29135
+ </dl>
29136
+
29137
+ <dl>
29138
+ <dd>
29139
+
29140
+ **date:** `String`
29141
+
29142
+ </dd>
29143
+ </dl>
29144
+
29145
+ <dl>
29146
+ <dd>
29147
+
29148
+ **request_options:** `Nordlet::Ledger::RequestOptions`
29149
+
29150
+ </dd>
29151
+ </dl>
29152
+ </dd>
29153
+ </dl>
29154
+
29155
+
29324
29156
  </dd>
29325
29157
  </dl>
29326
29158
  </details>
@@ -32336,7 +32168,7 @@ client.hr.positions_list
32336
32168
  <dl>
32337
32169
  <dd>
32338
32170
 
32339
- Creates an employee record. `payrollOptions` holds the country-specific settings the payroll engine reads for the person (see `hr/employees/fields`); `applyAllowance` defaults to true and `pensionAccumulation` to false.
32171
+ Creates an employee record. `payrollOptions` holds the country-specific settings the payroll engine reads for the person (see `hr/employees/fields`); `applyAllowance` defaults to true and `pensionAccumulation` to false. An `iban` whose check digits fail (ISO 13616) is refused with 422.
32340
32172
  </dd>
32341
32173
  </dl>
32342
32174
  </dd>
@@ -32537,7 +32369,7 @@ client.hr.employees_create(
32537
32369
  <dl>
32538
32370
  <dd>
32539
32371
 
32540
- Changes the given fields of an employee; a null clears the fields that allow it (code, personal code, birth date, contact details, address, IBAN, social insurance number and start, hire date, notes). `status` and `terminationDate` are set here too.
32372
+ Changes the given fields of an employee; a null clears the fields that allow it (code, personal code, birth date, contact details, address, IBAN, social insurance number and start, hire date, notes). `status` and `terminationDate` are set here too. An `iban` whose check digits fail (ISO 13616) is refused with 422.
32541
32373
  </dd>
32542
32374
  </dl>
32543
32375
  </dd>
@@ -42996,7 +42828,7 @@ client.ecommerce.stock_list
42996
42828
  <dl>
42997
42829
  <dd>
42998
42830
 
42999
- Creates a numbered cash receipt (series `KPO`) or cash disbursement (`KIO`) and posts it in the base currency between the cash account (`cashAccountCode`, default the cash account of the company's chart) and `counterAccountCode`; a receipt debits the cash account, a disbursement credits it. Linked to an invoice - `saleInvoiceId` for a receipt against an issued invoice or advance invoice or a disbursement against an issued credit note, `purchaseInvoiceId` for a disbursement against a registered purchase invoice - the counter account is the receivable or payable account the invoice was posted to (its operation type's account, else the posting rule), the invoice's paid amount and payment status (`partial` or `paid`) are updated, and `sale_invoice.paid` or `purchase_invoice.paid` is emitted when the invoice becomes fully paid. Answers 422 when both invoice ids are given, a receipt names a purchase invoice, `counterAccountCode` differs from the invoice's account, or the invoice is in another currency or belongs to another partner; 409 when `amount` exceeds the invoice's remaining amount, a disbursement would take the balance of the cash account below zero on `date` or any later date, or the accounting period of `date` is locked.
42831
+ Creates a numbered cash receipt (series `KPO`) or cash disbursement (`KIO`) and posts it in the base currency between the cash account (`cashAccountCode`, default the cash account of the company's chart) and `counterAccountCode`; a receipt debits the cash account, a disbursement credits it. `counterAccountCode` is required (400 without it) unless `saleInvoiceId` or `purchaseInvoiceId` is given, also for an order with `employeeId`. Linked to an invoice - `saleInvoiceId` for a receipt against an issued invoice or advance invoice or a disbursement against an issued credit note, `purchaseInvoiceId` for a disbursement against a registered purchase invoice - the counter account is the receivable or payable account the invoice was posted to (its operation type's account, else the posting rule), the invoice's paid amount and payment status (`partial` or `paid`) are updated, and `sale_invoice.paid` or `purchase_invoice.paid` is emitted when the invoice becomes fully paid. Answers 422 when both invoice ids are given, a receipt names a purchase invoice, `counterAccountCode` differs from the invoice's account, or the invoice is in another currency or belongs to another partner; 409 when `amount` exceeds the invoice's remaining amount, a disbursement would take the balance of the cash account below zero on `date` or any later date, or the accounting period of `date` is locked.
43000
42832
  </dd>
43001
42833
  </dl>
43002
42834
  </dd>
@@ -46967,7 +46799,7 @@ client.calendar.submit(key: "key")
46967
46799
  <dl>
46968
46800
  <dd>
46969
46801
 
46970
- Builds the file of a deadline whose format Nordlet produces but whose administration takes it only through the company's own account or program. Nothing is sent and no filing is recorded.
46802
+ Builds the file of a deadline whose format Nordlet produces but whose administration takes it only through the company's own account or program. Nothing is sent and no filing is recorded. `key` is `<ruleKey>:<period>` as `calendar/list` returns it. Answers 404 for an unknown rule or an invalid period, and 422 with the reason when Nordlet builds no single file for the deadline.
46971
46803
  </dd>
46972
46804
  </dl>
46973
46805
  </dd>
@@ -47739,61 +47571,422 @@ client.webhooks.subscriptions_delete(id: "id")
47739
47571
  <dl>
47740
47572
  <dd>
47741
47573
 
47742
- **request_options:** `Nordlet::Webhooks::RequestOptions`
47743
-
47744
- </dd>
47745
- </dl>
47746
- </dd>
47747
- </dl>
47748
-
47749
-
47750
- </dd>
47751
- </dl>
47752
- </details>
47753
-
47754
- <details><summary><code>client.webhooks.<a href="/lib/nordlet/webhooks/client.rb">deliveries_list</a>(request) -> Nordlet::Webhooks::Types::DeliveriesListWebhooksResponse</code></summary>
47755
- <dl>
47756
- <dd>
47757
-
47758
- #### 📝 Description
47759
-
47760
- <dl>
47761
- <dd>
47762
-
47763
- <dl>
47764
- <dd>
47765
-
47766
- List the company's webhook deliveries, newest first. Filterable by `status`, `eventType` and `subscriptionId`; sortable by `createdAt`.
47767
- </dd>
47768
- </dl>
47769
- </dd>
47770
- </dl>
47771
-
47772
- #### 🔌 Usage
47773
-
47774
- <dl>
47775
- <dd>
47776
-
47777
- <dl>
47778
- <dd>
47779
-
47780
- ```ruby
47781
- client.webhooks.deliveries_list
47782
- ```
47783
- </dd>
47784
- </dl>
47785
- </dd>
47786
- </dl>
47787
-
47788
- #### ⚙️ Parameters
47789
-
47790
- <dl>
47791
- <dd>
47792
-
47793
- <dl>
47794
- <dd>
47795
-
47796
- **page:** `Integer`
47574
+ **request_options:** `Nordlet::Webhooks::RequestOptions`
47575
+
47576
+ </dd>
47577
+ </dl>
47578
+ </dd>
47579
+ </dl>
47580
+
47581
+
47582
+ </dd>
47583
+ </dl>
47584
+ </details>
47585
+
47586
+ <details><summary><code>client.webhooks.<a href="/lib/nordlet/webhooks/client.rb">deliveries_list</a>(request) -> Nordlet::Webhooks::Types::DeliveriesListWebhooksResponse</code></summary>
47587
+ <dl>
47588
+ <dd>
47589
+
47590
+ #### 📝 Description
47591
+
47592
+ <dl>
47593
+ <dd>
47594
+
47595
+ <dl>
47596
+ <dd>
47597
+
47598
+ List the company's webhook deliveries, newest first. Filterable by `status`, `eventType` and `subscriptionId`; sortable by `createdAt`.
47599
+ </dd>
47600
+ </dl>
47601
+ </dd>
47602
+ </dl>
47603
+
47604
+ #### 🔌 Usage
47605
+
47606
+ <dl>
47607
+ <dd>
47608
+
47609
+ <dl>
47610
+ <dd>
47611
+
47612
+ ```ruby
47613
+ client.webhooks.deliveries_list
47614
+ ```
47615
+ </dd>
47616
+ </dl>
47617
+ </dd>
47618
+ </dl>
47619
+
47620
+ #### ⚙️ Parameters
47621
+
47622
+ <dl>
47623
+ <dd>
47624
+
47625
+ <dl>
47626
+ <dd>
47627
+
47628
+ **page:** `Integer`
47629
+
47630
+ </dd>
47631
+ </dl>
47632
+
47633
+ <dl>
47634
+ <dd>
47635
+
47636
+ **page_size:** `Integer`
47637
+
47638
+ </dd>
47639
+ </dl>
47640
+
47641
+ <dl>
47642
+ <dd>
47643
+
47644
+ **sort:** `Internal::Types::Array[Nordlet::Webhooks::Types::DeliveriesListWebhooksRequestSortItem]`
47645
+
47646
+ </dd>
47647
+ </dl>
47648
+
47649
+ <dl>
47650
+ <dd>
47651
+
47652
+ **filter:** `Internal::Types::Array[Nordlet::Webhooks::Types::DeliveriesListWebhooksRequestFilterItem]`
47653
+
47654
+ </dd>
47655
+ </dl>
47656
+
47657
+ <dl>
47658
+ <dd>
47659
+
47660
+ **totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
47661
+
47662
+ </dd>
47663
+ </dl>
47664
+
47665
+ <dl>
47666
+ <dd>
47667
+
47668
+ **request_options:** `Nordlet::Webhooks::RequestOptions`
47669
+
47670
+ </dd>
47671
+ </dl>
47672
+ </dd>
47673
+ </dl>
47674
+
47675
+
47676
+ </dd>
47677
+ </dl>
47678
+ </details>
47679
+
47680
+ <details><summary><code>client.webhooks.<a href="/lib/nordlet/webhooks/client.rb">deliveries_redeliver</a>(request) -> Nordlet::Webhooks::Types::DeliveriesRedeliverWebhooksResponse</code></summary>
47681
+ <dl>
47682
+ <dd>
47683
+
47684
+ #### 📝 Description
47685
+
47686
+ <dl>
47687
+ <dd>
47688
+
47689
+ <dl>
47690
+ <dd>
47691
+
47692
+ Send a delivery again now: its status goes back to `pending` with the attempt count and last error cleared. Answers 409 when the subscription is inactive.
47693
+ </dd>
47694
+ </dl>
47695
+ </dd>
47696
+ </dl>
47697
+
47698
+ #### 🔌 Usage
47699
+
47700
+ <dl>
47701
+ <dd>
47702
+
47703
+ <dl>
47704
+ <dd>
47705
+
47706
+ ```ruby
47707
+ client.webhooks.deliveries_redeliver(id: "id")
47708
+ ```
47709
+ </dd>
47710
+ </dl>
47711
+ </dd>
47712
+ </dl>
47713
+
47714
+ #### ⚙️ Parameters
47715
+
47716
+ <dl>
47717
+ <dd>
47718
+
47719
+ <dl>
47720
+ <dd>
47721
+
47722
+ **id:** `String`
47723
+
47724
+ </dd>
47725
+ </dl>
47726
+
47727
+ <dl>
47728
+ <dd>
47729
+
47730
+ **request_options:** `Nordlet::Webhooks::RequestOptions`
47731
+
47732
+ </dd>
47733
+ </dl>
47734
+ </dd>
47735
+ </dl>
47736
+
47737
+
47738
+ </dd>
47739
+ </dl>
47740
+ </details>
47741
+
47742
+ ## bank
47743
+ <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">accounts_create</a>(request) -> Nordlet::Bank::Types::AccountsCreateBankResponse</code></summary>
47744
+ <dl>
47745
+ <dd>
47746
+
47747
+ #### 📝 Description
47748
+
47749
+ <dl>
47750
+ <dd>
47751
+
47752
+ <dl>
47753
+ <dd>
47754
+
47755
+ Create a bank, Stripe or broker account. `currency` defaults to the company base currency and `accountCode` to the default bank account of the chart of accounts. A `documentRef` also creates a bank agreement with that document attached. A Stripe account with an `iban` is refused with 422; an account with the same IBAN already existing answers 409.
47756
+ </dd>
47757
+ </dl>
47758
+ </dd>
47759
+ </dl>
47760
+
47761
+ #### 🔌 Usage
47762
+
47763
+ <dl>
47764
+ <dd>
47765
+
47766
+ <dl>
47767
+ <dd>
47768
+
47769
+ ```ruby
47770
+ client.bank.accounts_create(name: "name")
47771
+ ```
47772
+ </dd>
47773
+ </dl>
47774
+ </dd>
47775
+ </dl>
47776
+
47777
+ #### ⚙️ Parameters
47778
+
47779
+ <dl>
47780
+ <dd>
47781
+
47782
+ <dl>
47783
+ <dd>
47784
+
47785
+ **name:** `String`
47786
+
47787
+ </dd>
47788
+ </dl>
47789
+
47790
+ <dl>
47791
+ <dd>
47792
+
47793
+ **type:** `Nordlet::Bank::Types::AccountsCreateBankRequestType`
47794
+
47795
+ </dd>
47796
+ </dl>
47797
+
47798
+ <dl>
47799
+ <dd>
47800
+
47801
+ **iban:** `String`
47802
+
47803
+ </dd>
47804
+ </dl>
47805
+
47806
+ <dl>
47807
+ <dd>
47808
+
47809
+ **currency:** `String`
47810
+
47811
+ </dd>
47812
+ </dl>
47813
+
47814
+ <dl>
47815
+ <dd>
47816
+
47817
+ **account_code:** `String`
47818
+
47819
+ </dd>
47820
+ </dl>
47821
+
47822
+ <dl>
47823
+ <dd>
47824
+
47825
+ **document_ref:** `String`
47826
+
47827
+ </dd>
47828
+ </dl>
47829
+
47830
+ <dl>
47831
+ <dd>
47832
+
47833
+ **request_options:** `Nordlet::Bank::RequestOptions`
47834
+
47835
+ </dd>
47836
+ </dl>
47837
+ </dd>
47838
+ </dl>
47839
+
47840
+
47841
+ </dd>
47842
+ </dl>
47843
+ </details>
47844
+
47845
+ <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">accounts_list</a>(request) -> Nordlet::Bank::Types::AccountsListBankResponse</code></summary>
47846
+ <dl>
47847
+ <dd>
47848
+
47849
+ #### 📝 Description
47850
+
47851
+ <dl>
47852
+ <dd>
47853
+
47854
+ <dl>
47855
+ <dd>
47856
+
47857
+ List the bank accounts of the company. Filterable by name, type, iban and isActive; sortable by name and createdAt.
47858
+ </dd>
47859
+ </dl>
47860
+ </dd>
47861
+ </dl>
47862
+
47863
+ #### 🔌 Usage
47864
+
47865
+ <dl>
47866
+ <dd>
47867
+
47868
+ <dl>
47869
+ <dd>
47870
+
47871
+ ```ruby
47872
+ client.bank.accounts_list
47873
+ ```
47874
+ </dd>
47875
+ </dl>
47876
+ </dd>
47877
+ </dl>
47878
+
47879
+ #### ⚙️ Parameters
47880
+
47881
+ <dl>
47882
+ <dd>
47883
+
47884
+ <dl>
47885
+ <dd>
47886
+
47887
+ **page:** `Integer`
47888
+
47889
+ </dd>
47890
+ </dl>
47891
+
47892
+ <dl>
47893
+ <dd>
47894
+
47895
+ **page_size:** `Integer`
47896
+
47897
+ </dd>
47898
+ </dl>
47899
+
47900
+ <dl>
47901
+ <dd>
47902
+
47903
+ **sort:** `Internal::Types::Array[Nordlet::Bank::Types::AccountsListBankRequestSortItem]`
47904
+
47905
+ </dd>
47906
+ </dl>
47907
+
47908
+ <dl>
47909
+ <dd>
47910
+
47911
+ **filter:** `Internal::Types::Array[Nordlet::Bank::Types::AccountsListBankRequestFilterItem]`
47912
+
47913
+ </dd>
47914
+ </dl>
47915
+
47916
+ <dl>
47917
+ <dd>
47918
+
47919
+ **totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
47920
+
47921
+ </dd>
47922
+ </dl>
47923
+
47924
+ <dl>
47925
+ <dd>
47926
+
47927
+ **request_options:** `Nordlet::Bank::RequestOptions`
47928
+
47929
+ </dd>
47930
+ </dl>
47931
+ </dd>
47932
+ </dl>
47933
+
47934
+
47935
+ </dd>
47936
+ </dl>
47937
+ </details>
47938
+
47939
+ <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">accounts_update</a>(request) -> Nordlet::Bank::Types::AccountsUpdateBankResponse</code></summary>
47940
+ <dl>
47941
+ <dd>
47942
+
47943
+ #### 📝 Description
47944
+
47945
+ <dl>
47946
+ <dd>
47947
+
47948
+ <dl>
47949
+ <dd>
47950
+
47951
+ Change the name, type, IBAN, ledger account code or active flag of a bank account. Setting type to stripe clears the IBAN, and sending an `iban` together with it is refused with 422.
47952
+ </dd>
47953
+ </dl>
47954
+ </dd>
47955
+ </dl>
47956
+
47957
+ #### 🔌 Usage
47958
+
47959
+ <dl>
47960
+ <dd>
47961
+
47962
+ <dl>
47963
+ <dd>
47964
+
47965
+ ```ruby
47966
+ client.bank.accounts_update(id: "id")
47967
+ ```
47968
+ </dd>
47969
+ </dl>
47970
+ </dd>
47971
+ </dl>
47972
+
47973
+ #### ⚙️ Parameters
47974
+
47975
+ <dl>
47976
+ <dd>
47977
+
47978
+ <dl>
47979
+ <dd>
47980
+
47981
+ **id:** `String`
47982
+
47983
+ </dd>
47984
+ </dl>
47985
+
47986
+ <dl>
47987
+ <dd>
47988
+
47989
+ **name:** `String`
47797
47990
 
47798
47991
  </dd>
47799
47992
  </dl>
@@ -47801,7 +47994,7 @@ client.webhooks.deliveries_list
47801
47994
  <dl>
47802
47995
  <dd>
47803
47996
 
47804
- **page_size:** `Integer`
47997
+ **type:** `Nordlet::Bank::Types::AccountsUpdateBankRequestType`
47805
47998
 
47806
47999
  </dd>
47807
48000
  </dl>
@@ -47809,7 +48002,7 @@ client.webhooks.deliveries_list
47809
48002
  <dl>
47810
48003
  <dd>
47811
48004
 
47812
- **sort:** `Internal::Types::Array[Nordlet::Webhooks::Types::DeliveriesListWebhooksRequestSortItem]`
48005
+ **iban:** `String`
47813
48006
 
47814
48007
  </dd>
47815
48008
  </dl>
@@ -47817,7 +48010,7 @@ client.webhooks.deliveries_list
47817
48010
  <dl>
47818
48011
  <dd>
47819
48012
 
47820
- **filter:** `Internal::Types::Array[Nordlet::Webhooks::Types::DeliveriesListWebhooksRequestFilterItem]`
48013
+ **account_code:** `String`
47821
48014
 
47822
48015
  </dd>
47823
48016
  </dl>
@@ -47825,7 +48018,7 @@ client.webhooks.deliveries_list
47825
48018
  <dl>
47826
48019
  <dd>
47827
48020
 
47828
- **totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
48021
+ **is_active:** `Internal::Types::Boolean`
47829
48022
 
47830
48023
  </dd>
47831
48024
  </dl>
@@ -47833,7 +48026,7 @@ client.webhooks.deliveries_list
47833
48026
  <dl>
47834
48027
  <dd>
47835
48028
 
47836
- **request_options:** `Nordlet::Webhooks::RequestOptions`
48029
+ **request_options:** `Nordlet::Bank::RequestOptions`
47837
48030
 
47838
48031
  </dd>
47839
48032
  </dl>
@@ -47845,7 +48038,7 @@ client.webhooks.deliveries_list
47845
48038
  </dl>
47846
48039
  </details>
47847
48040
 
47848
- <details><summary><code>client.webhooks.<a href="/lib/nordlet/webhooks/client.rb">deliveries_redeliver</a>(request) -> Nordlet::Webhooks::Types::DeliveriesRedeliverWebhooksResponse</code></summary>
48041
+ <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_import</a>(request) -> Nordlet::Bank::Types::TransactionsImportBankResponse</code></summary>
47849
48042
  <dl>
47850
48043
  <dd>
47851
48044
 
@@ -47857,7 +48050,7 @@ client.webhooks.deliveries_list
47857
48050
  <dl>
47858
48051
  <dd>
47859
48052
 
47860
- Send a delivery again now: its status goes back to `pending` with the attempt count and last error cleared. Answers 409 when the subscription is inactive.
48053
+ Insert statement lines (up to 1000 per call) into a bank account as new transactions. A line without `currency` takes the account currency; a line in another currency is refused with 422. A line whose `externalId` is already on the account is skipped and counted in `skipped`. A line without `externalId` that is identical to a line already on the account (same booking date, amount, counterparty IBAN, or name when either IBAN is missing, and description) is skipped, counted in `skipped` and listed in `duplicates`. When `openingBalance` and `closingBalance` are both given, the opening balance plus the lines must give the closing balance (422 with both figures otherwise), and the closing balance is kept for `bank/reconciliation/get` as the balance on the latest line date. An incoming line that an active match rule (`bank/match-rules/create`) recognises is linked to its settlement batch.
47861
48054
  </dd>
47862
48055
  </dl>
47863
48056
  </dd>
@@ -47872,7 +48065,13 @@ Send a delivery again now: its status goes back to `pending` with the attempt co
47872
48065
  <dd>
47873
48066
 
47874
48067
  ```ruby
47875
- client.webhooks.deliveries_redeliver(id: "id")
48068
+ client.bank.transactions_import(
48069
+ bank_account_id: "bankAccountId",
48070
+ transactions: [{
48071
+ date: "2026-07-01",
48072
+ amount: "-121.0000"
48073
+ }]
48074
+ )
47876
48075
  ```
47877
48076
  </dd>
47878
48077
  </dl>
@@ -47887,7 +48086,7 @@ client.webhooks.deliveries_redeliver(id: "id")
47887
48086
  <dl>
47888
48087
  <dd>
47889
48088
 
47890
- **id:** `String`
48089
+ **bank_account_id:** `String`
47891
48090
 
47892
48091
  </dd>
47893
48092
  </dl>
@@ -47895,7 +48094,31 @@ client.webhooks.deliveries_redeliver(id: "id")
47895
48094
  <dl>
47896
48095
  <dd>
47897
48096
 
47898
- **request_options:** `Nordlet::Webhooks::RequestOptions`
48097
+ **transactions:** `Internal::Types::Array[Nordlet::Bank::Types::TransactionsImportBankRequestTransactionsItem]`
48098
+
48099
+ </dd>
48100
+ </dl>
48101
+
48102
+ <dl>
48103
+ <dd>
48104
+
48105
+ **opening_balance:** `String`
48106
+
48107
+ </dd>
48108
+ </dl>
48109
+
48110
+ <dl>
48111
+ <dd>
48112
+
48113
+ **closing_balance:** `String`
48114
+
48115
+ </dd>
48116
+ </dl>
48117
+
48118
+ <dl>
48119
+ <dd>
48120
+
48121
+ **request_options:** `Nordlet::Bank::RequestOptions`
47899
48122
 
47900
48123
  </dd>
47901
48124
  </dl>
@@ -47907,8 +48130,7 @@ client.webhooks.deliveries_redeliver(id: "id")
47907
48130
  </dl>
47908
48131
  </details>
47909
48132
 
47910
- ## bank
47911
- <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">accounts_create</a>(request) -> Nordlet::Bank::Types::AccountsCreateBankResponse</code></summary>
48133
+ <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">statements_import</a>(request) -> Nordlet::Bank::Types::StatementsImportBankResponse</code></summary>
47912
48134
  <dl>
47913
48135
  <dd>
47914
48136
 
@@ -47920,7 +48142,7 @@ client.webhooks.deliveries_redeliver(id: "id")
47920
48142
  <dl>
47921
48143
  <dd>
47922
48144
 
47923
- Create a bank, Stripe or broker account. `currency` defaults to the company base currency and `accountCode` to the default bank account of the chart of accounts. A `documentRef` also creates a bank agreement with that document attached. A Stripe account with an `iban` is refused with 422; an account with the same IBAN already existing answers 409.
48145
+ Import a statement file into a bank account: camt.053 XML, MT940, a Stripe balance CSV or a Revolut Business CSV, chosen by `format` or by the type of `templateId` (an iso20022 template also takes MT940 content). Statements whose IBAN or currency differ from the account are left out; the call is refused with 422 when none remains, when a line is in another currency, when the opening balance plus the lines of a camt.053 or MT940 statement does not give its closing balance (the message names both figures), when the file lacks the columns or elements the template requires or when it holds more than 50000 lines. The closing balance of each statement is kept for `bank/reconciliation/get`. Lines already on the account are skipped, and Stripe movements already posted through a settlement payout are skipped with a warning. With a template, the mapped fields are posted to their ledger accounts, partners are created, payments are matched to the invoices they reference, and invoices, credit notes or advance invoices are issued where the template asks for them (`invoiceMetaField`, `advanceInvoices`); `transfersCsv` posts the lender payouts and commissions of a Stripe template. Invoices issued this way are announced as `sale_invoice.issued`.
47924
48146
  </dd>
47925
48147
  </dl>
47926
48148
  </dd>
@@ -47935,7 +48157,10 @@ Create a bank, Stripe or broker account. `currency` defaults to the company base
47935
48157
  <dd>
47936
48158
 
47937
48159
  ```ruby
47938
- client.bank.accounts_create(name: "name")
48160
+ client.bank.statements_import(
48161
+ bank_account_id: "bankAccountId",
48162
+ content: "content"
48163
+ )
47939
48164
  ```
47940
48165
  </dd>
47941
48166
  </dl>
@@ -47950,15 +48175,7 @@ client.bank.accounts_create(name: "name")
47950
48175
  <dl>
47951
48176
  <dd>
47952
48177
 
47953
- **name:** `String`
47954
-
47955
- </dd>
47956
- </dl>
47957
-
47958
- <dl>
47959
- <dd>
47960
-
47961
- **type:** `Nordlet::Bank::Types::AccountsCreateBankRequestType`
48178
+ **bank_account_id:** `String`
47962
48179
 
47963
48180
  </dd>
47964
48181
  </dl>
@@ -47966,7 +48183,7 @@ client.bank.accounts_create(name: "name")
47966
48183
  <dl>
47967
48184
  <dd>
47968
48185
 
47969
- **iban:** `String`
48186
+ **template_id:** `String`
47970
48187
 
47971
48188
  </dd>
47972
48189
  </dl>
@@ -47974,7 +48191,7 @@ client.bank.accounts_create(name: "name")
47974
48191
  <dl>
47975
48192
  <dd>
47976
48193
 
47977
- **currency:** `String`
48194
+ **format:** `Nordlet::Bank::Types::StatementsImportBankRequestFormat`
47978
48195
 
47979
48196
  </dd>
47980
48197
  </dl>
@@ -47982,7 +48199,7 @@ client.bank.accounts_create(name: "name")
47982
48199
  <dl>
47983
48200
  <dd>
47984
48201
 
47985
- **account_code:** `String`
48202
+ **content:** `String`
47986
48203
 
47987
48204
  </dd>
47988
48205
  </dl>
@@ -47990,7 +48207,7 @@ client.bank.accounts_create(name: "name")
47990
48207
  <dl>
47991
48208
  <dd>
47992
48209
 
47993
- **document_ref:** `String`
48210
+ **transfers_csv:** `String` — Stripe transfers export (plain CSV or base64) used to post lender payouts and commissions
47994
48211
 
47995
48212
  </dd>
47996
48213
  </dl>
@@ -48010,7 +48227,7 @@ client.bank.accounts_create(name: "name")
48010
48227
  </dl>
48011
48228
  </details>
48012
48229
 
48013
- <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">accounts_list</a>(request) -> Nordlet::Bank::Types::AccountsListBankResponse</code></summary>
48230
+ <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_list</a>(request) -> Nordlet::Bank::Types::TransactionsListBankResponse</code></summary>
48014
48231
  <dl>
48015
48232
  <dd>
48016
48233
 
@@ -48022,7 +48239,7 @@ client.bank.accounts_create(name: "name")
48022
48239
  <dl>
48023
48240
  <dd>
48024
48241
 
48025
- List the bank accounts of the company. Filterable by name, type, iban and isActive; sortable by name and createdAt.
48242
+ List the bank transactions of the company. Filterable by id, bankAccountId, status, matchedDocumentId, date, amount, counterpartyIban, counterpartyName and externalId; sortable by date, createdAt and amount.
48026
48243
  </dd>
48027
48244
  </dl>
48028
48245
  </dd>
@@ -48037,7 +48254,7 @@ List the bank accounts of the company. Filterable by name, type, iban and isActi
48037
48254
  <dd>
48038
48255
 
48039
48256
  ```ruby
48040
- client.bank.accounts_list
48257
+ client.bank.transactions_list
48041
48258
  ```
48042
48259
  </dd>
48043
48260
  </dl>
@@ -48068,7 +48285,7 @@ client.bank.accounts_list
48068
48285
  <dl>
48069
48286
  <dd>
48070
48287
 
48071
- **sort:** `Internal::Types::Array[Nordlet::Bank::Types::AccountsListBankRequestSortItem]`
48288
+ **sort:** `Internal::Types::Array[Nordlet::Bank::Types::TransactionsListBankRequestSortItem]`
48072
48289
 
48073
48290
  </dd>
48074
48291
  </dl>
@@ -48076,7 +48293,7 @@ client.bank.accounts_list
48076
48293
  <dl>
48077
48294
  <dd>
48078
48295
 
48079
- **filter:** `Internal::Types::Array[Nordlet::Bank::Types::AccountsListBankRequestFilterItem]`
48296
+ **filter:** `Internal::Types::Array[Nordlet::Bank::Types::TransactionsListBankRequestFilterItem]`
48080
48297
 
48081
48298
  </dd>
48082
48299
  </dl>
@@ -48104,7 +48321,7 @@ client.bank.accounts_list
48104
48321
  </dl>
48105
48322
  </details>
48106
48323
 
48107
- <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">accounts_update</a>(request) -> Nordlet::Bank::Types::AccountsUpdateBankResponse</code></summary>
48324
+ <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_match</a>(request) -> Nordlet::Bank::Types::TransactionsMatchBankResponse</code></summary>
48108
48325
  <dl>
48109
48326
  <dd>
48110
48327
 
@@ -48116,7 +48333,7 @@ client.bank.accounts_list
48116
48333
  <dl>
48117
48334
  <dd>
48118
48335
 
48119
- Change the name, type, IBAN, ledger account code or active flag of a bank account. Setting type to stripe clears the IBAN, and sending an `iban` together with it is refused with 422.
48336
+ Match one new bank transaction to a document: an issued sale invoice or advance for incoming money; an issued sale credit note, a registered purchase invoice or an approved payroll run (company currency only) for outgoing money. Posts the payment journal transaction between the bank account and the receivable or payable account the invoice was posted to (the account of its operation type, else the posting rule) or the net payable account, with any exchange difference on the gain or loss account, raises the paid amount of the document and sets the line to matched. A payment in another currency is converted into the invoice currency at the rate of the line date, and the difference against the invoice's own rate is the exchange difference; `invoiceAmount` states the amount settled instead; in the same currency it must equal the payment (422). `remainder` settles a payment that differs from the remaining balance of a sale or purchase invoice in its own currency: `advance` books an overpayment beyond the balance to the advances-received posting rule (customer payments) or to `remainder.accountCode`, which a supplier overpayment must name, on the line's partner; `write_off` books the over- or underpayment to `remainder.accountCode` and settles the invoice in full; `leave_open` settles an underpayment as a partial payment and leaves the rest open. Answers 409 when the line is already matched or ignored, when the amount (converted, beyond one cent of the payment) exceeds the remaining balance of the document and no `remainder` is given, or when the accounting period of the line date is locked. A document that becomes fully paid is announced as `sale_invoice.paid` or `purchase_invoice.paid`.
48120
48337
  </dd>
48121
48338
  </dl>
48122
48339
  </dd>
@@ -48131,7 +48348,11 @@ Change the name, type, IBAN, ledger account code or active flag of a bank accoun
48131
48348
  <dd>
48132
48349
 
48133
48350
  ```ruby
48134
- client.bank.accounts_update(id: "id")
48351
+ client.bank.transactions_match(
48352
+ transaction_id: "transactionId",
48353
+ document_type: "sale_invoice",
48354
+ document_id: "documentId"
48355
+ )
48135
48356
  ```
48136
48357
  </dd>
48137
48358
  </dl>
@@ -48146,15 +48367,7 @@ client.bank.accounts_update(id: "id")
48146
48367
  <dl>
48147
48368
  <dd>
48148
48369
 
48149
- **id:** `String`
48150
-
48151
- </dd>
48152
- </dl>
48153
-
48154
- <dl>
48155
- <dd>
48156
-
48157
- **name:** `String`
48370
+ **transaction_id:** `String`
48158
48371
 
48159
48372
  </dd>
48160
48373
  </dl>
@@ -48162,7 +48375,7 @@ client.bank.accounts_update(id: "id")
48162
48375
  <dl>
48163
48376
  <dd>
48164
48377
 
48165
- **type:** `Nordlet::Bank::Types::AccountsUpdateBankRequestType`
48378
+ **document_type:** `Nordlet::Bank::Types::TransactionsMatchBankRequestDocumentType`
48166
48379
 
48167
48380
  </dd>
48168
48381
  </dl>
@@ -48170,7 +48383,7 @@ client.bank.accounts_update(id: "id")
48170
48383
  <dl>
48171
48384
  <dd>
48172
48385
 
48173
- **iban:** `String`
48386
+ **document_id:** `String`
48174
48387
 
48175
48388
  </dd>
48176
48389
  </dl>
@@ -48178,7 +48391,7 @@ client.bank.accounts_update(id: "id")
48178
48391
  <dl>
48179
48392
  <dd>
48180
48393
 
48181
- **account_code:** `String`
48394
+ **invoice_amount:** `String`
48182
48395
 
48183
48396
  </dd>
48184
48397
  </dl>
@@ -48186,7 +48399,7 @@ client.bank.accounts_update(id: "id")
48186
48399
  <dl>
48187
48400
  <dd>
48188
48401
 
48189
- **is_active:** `Internal::Types::Boolean`
48402
+ **remainder:** `Nordlet::Bank::Types::TransactionsMatchBankRequestRemainder`
48190
48403
 
48191
48404
  </dd>
48192
48405
  </dl>
@@ -48206,7 +48419,7 @@ client.bank.accounts_update(id: "id")
48206
48419
  </dl>
48207
48420
  </details>
48208
48421
 
48209
- <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_import</a>(request) -> Nordlet::Bank::Types::TransactionsImportBankResponse</code></summary>
48422
+ <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_match_many</a>(request) -> Nordlet::Bank::Types::TransactionsMatchManyBankResponse</code></summary>
48210
48423
  <dl>
48211
48424
  <dd>
48212
48425
 
@@ -48218,7 +48431,7 @@ client.bank.accounts_update(id: "id")
48218
48431
  <dl>
48219
48432
  <dd>
48220
48433
 
48221
- Insert statement lines (up to 1000 per call) into a bank account as new transactions. A line without `currency` takes the account currency; a line in another currency is refused with 422. A line whose `externalId` is already on the account is skipped and counted in `skipped`. An incoming line that an active match rule (`bank/match-rules/create`) recognises is linked to its settlement batch.
48434
+ The documents are issued sale invoices or advances for incoming money; issued sale credit notes, registered purchase invoices or approved payroll runs for outgoing money. Each must be in the currency of the payment, each allocation must be above zero, a document may appear once and the allocations must add up to the payment (422 otherwise). One journal transaction carries the bank entry, one entry per document and any exchange difference; the line is matched as an `invoice_allocation`. Answers 409 when the line is already matched, when an allocation exceeds the remaining balance of its document or when the accounting period of the line date is locked. Each document that becomes fully paid is announced as `sale_invoice.paid` or `purchase_invoice.paid`.
48222
48435
  </dd>
48223
48436
  </dl>
48224
48437
  </dd>
@@ -48233,11 +48446,12 @@ Insert statement lines (up to 1000 per call) into a bank account as new transact
48233
48446
  <dd>
48234
48447
 
48235
48448
  ```ruby
48236
- client.bank.transactions_import(
48237
- bank_account_id: "bankAccountId",
48238
- transactions: [{
48239
- date: "2026-07-01",
48240
- amount: "-121.0000"
48449
+ client.bank.transactions_match_many(
48450
+ transaction_id: "transactionId",
48451
+ allocations: [{
48452
+ document_type: "sale_invoice",
48453
+ document_id: "documentId",
48454
+ amount: "121.0000"
48241
48455
  }]
48242
48456
  )
48243
48457
  ```
@@ -48254,7 +48468,7 @@ client.bank.transactions_import(
48254
48468
  <dl>
48255
48469
  <dd>
48256
48470
 
48257
- **bank_account_id:** `String`
48471
+ **transaction_id:** `String`
48258
48472
 
48259
48473
  </dd>
48260
48474
  </dl>
@@ -48262,7 +48476,7 @@ client.bank.transactions_import(
48262
48476
  <dl>
48263
48477
  <dd>
48264
48478
 
48265
- **transactions:** `Internal::Types::Array[Nordlet::Bank::Types::TransactionsImportBankRequestTransactionsItem]`
48479
+ **allocations:** `Internal::Types::Array[Nordlet::Bank::Types::TransactionsMatchManyBankRequestAllocationsItem]`
48266
48480
 
48267
48481
  </dd>
48268
48482
  </dl>
@@ -48282,7 +48496,7 @@ client.bank.transactions_import(
48282
48496
  </dl>
48283
48497
  </details>
48284
48498
 
48285
- <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">statements_import</a>(request) -> Nordlet::Bank::Types::StatementsImportBankResponse</code></summary>
48499
+ <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_unmatch</a>(request) -> Nordlet::Bank::Types::TransactionsUnmatchBankResponse</code></summary>
48286
48500
  <dl>
48287
48501
  <dd>
48288
48502
 
@@ -48294,7 +48508,7 @@ client.bank.transactions_import(
48294
48508
  <dl>
48295
48509
  <dd>
48296
48510
 
48297
- Import a statement file into a bank account: camt.053 XML, MT940, a Stripe balance CSV or a Revolut Business CSV, chosen by `format` or by the type of `templateId` (an iso20022 template also takes MT940 content). Statements whose IBAN or currency differ from the account are left out; the call is refused with 422 when none remains, when a line is in another currency, when the file lacks the columns or elements the template requires or when it holds more than 50000 lines. Lines already on the account are skipped, and Stripe movements already posted through a settlement payout are skipped with a warning. With a template, the mapped fields are posted to their ledger accounts, partners are created, payments are matched to the invoices they reference, and invoices, credit notes or advance invoices are issued where the template asks for them (`invoiceMetaField`, `advanceInvoices`); `transfersCsv` posts the lender payouts and commissions of a Stripe template. Invoices issued this way are announced as `sale_invoice.issued`.
48511
+ Undo a match. A payment matched to an invoice, a line posted by an import template or by `bank/transactions/post` (to an account or a tax payment) gets a reversing journal transaction dated date (default: today) and the invoice paid amount and payment status are restored; a line linked to a payment-provider settlement is only unlinked; an ignored line is restored as with `bank/transactions/unignore`. The line returns to status new.
48298
48512
  </dd>
48299
48513
  </dl>
48300
48514
  </dd>
@@ -48309,10 +48523,7 @@ Import a statement file into a bank account: camt.053 XML, MT940, a Stripe balan
48309
48523
  <dd>
48310
48524
 
48311
48525
  ```ruby
48312
- client.bank.statements_import(
48313
- bank_account_id: "bankAccountId",
48314
- content: "content"
48315
- )
48526
+ client.bank.transactions_unmatch(transaction_id: "transactionId")
48316
48527
  ```
48317
48528
  </dd>
48318
48529
  </dl>
@@ -48327,31 +48538,7 @@ client.bank.statements_import(
48327
48538
  <dl>
48328
48539
  <dd>
48329
48540
 
48330
- **bank_account_id:** `String`
48331
-
48332
- </dd>
48333
- </dl>
48334
-
48335
- <dl>
48336
- <dd>
48337
-
48338
- **template_id:** `String`
48339
-
48340
- </dd>
48341
- </dl>
48342
-
48343
- <dl>
48344
- <dd>
48345
-
48346
- **format:** `Nordlet::Bank::Types::StatementsImportBankRequestFormat`
48347
-
48348
- </dd>
48349
- </dl>
48350
-
48351
- <dl>
48352
- <dd>
48353
-
48354
- **content:** `String`
48541
+ **transaction_id:** `String`
48355
48542
 
48356
48543
  </dd>
48357
48544
  </dl>
@@ -48359,7 +48546,7 @@ client.bank.statements_import(
48359
48546
  <dl>
48360
48547
  <dd>
48361
48548
 
48362
- **transfers_csv:** `String` — Stripe transfers export (plain CSV or base64) used to post lender payouts and commissions
48549
+ **date:** `String`
48363
48550
 
48364
48551
  </dd>
48365
48552
  </dl>
@@ -48379,7 +48566,7 @@ client.bank.statements_import(
48379
48566
  </dl>
48380
48567
  </details>
48381
48568
 
48382
- <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_list</a>(request) -> Nordlet::Bank::Types::TransactionsListBankResponse</code></summary>
48569
+ <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_post</a>(request) -> Nordlet::Bank::Types::TransactionsPostBankResponse</code></summary>
48383
48570
  <dl>
48384
48571
  <dd>
48385
48572
 
@@ -48391,7 +48578,7 @@ client.bank.statements_import(
48391
48578
  <dl>
48392
48579
  <dd>
48393
48580
 
48394
- List the bank transactions of the company. Filterable by id, bankAccountId, status, matchedDocumentId, date, amount, counterpartyIban, counterpartyName and externalId; sortable by date, createdAt and amount.
48581
+ Book one new bank transaction against a ledger account, for lines that settle no invoice (bank fees, interest, tax payments, transfers). Posts a journal transaction dated on the line's booking date between the bank account's ledger account and `accountCode` (incoming money: debit bank, credit the account; outgoing money the reverse), with the optional `partnerId` on the transaction and `costCenterId` and `projectId` on the counter entry, and sets the line to matched with `matchedDocumentType` `journal_transaction`. With `taxPaymentId` the line settles a tax payment recorded with `declarations/tax-payments/create`: an outgoing line for a payment, an incoming line for a refund, in the company currency and for the same amount (422 otherwise), not yet booked from another line (409); the line is matched as `tax_payment`. VAT is not booked here, because VAT returns are built from documents: a `vatClassifierCode` answers 422, and a fee with VAT is registered as a purchase invoice and the line matched to it. Answers 409 when the line is already matched or ignored or when the accounting period of the line date is locked. `bank/transactions/unmatch` reverses the posting.
48395
48582
  </dd>
48396
48583
  </dl>
48397
48584
  </dd>
@@ -48406,7 +48593,10 @@ List the bank transactions of the company. Filterable by id, bankAccountId, stat
48406
48593
  <dd>
48407
48594
 
48408
48595
  ```ruby
48409
- client.bank.transactions_list
48596
+ client.bank.transactions_post(
48597
+ transaction_id: "transactionId",
48598
+ account_code: "accountCode"
48599
+ )
48410
48600
  ```
48411
48601
  </dd>
48412
48602
  </dl>
@@ -48421,7 +48611,7 @@ client.bank.transactions_list
48421
48611
  <dl>
48422
48612
  <dd>
48423
48613
 
48424
- **page:** `Integer`
48614
+ **transaction_id:** `String`
48425
48615
 
48426
48616
  </dd>
48427
48617
  </dl>
@@ -48429,7 +48619,7 @@ client.bank.transactions_list
48429
48619
  <dl>
48430
48620
  <dd>
48431
48621
 
48432
- **page_size:** `Integer`
48622
+ **account_code:** `String`
48433
48623
 
48434
48624
  </dd>
48435
48625
  </dl>
@@ -48437,7 +48627,7 @@ client.bank.transactions_list
48437
48627
  <dl>
48438
48628
  <dd>
48439
48629
 
48440
- **sort:** `Internal::Types::Array[Nordlet::Bank::Types::TransactionsListBankRequestSortItem]`
48630
+ **tax_payment_id:** `String`
48441
48631
 
48442
48632
  </dd>
48443
48633
  </dl>
@@ -48445,7 +48635,7 @@ client.bank.transactions_list
48445
48635
  <dl>
48446
48636
  <dd>
48447
48637
 
48448
- **filter:** `Internal::Types::Array[Nordlet::Bank::Types::TransactionsListBankRequestFilterItem]`
48638
+ **partner_id:** `String`
48449
48639
 
48450
48640
  </dd>
48451
48641
  </dl>
@@ -48453,7 +48643,31 @@ client.bank.transactions_list
48453
48643
  <dl>
48454
48644
  <dd>
48455
48645
 
48456
- **totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
48646
+ **cost_center_id:** `String`
48647
+
48648
+ </dd>
48649
+ </dl>
48650
+
48651
+ <dl>
48652
+ <dd>
48653
+
48654
+ **project_id:** `String`
48655
+
48656
+ </dd>
48657
+ </dl>
48658
+
48659
+ <dl>
48660
+ <dd>
48661
+
48662
+ **description:** `String`
48663
+
48664
+ </dd>
48665
+ </dl>
48666
+
48667
+ <dl>
48668
+ <dd>
48669
+
48670
+ **vat_classifier_code:** `String`
48457
48671
 
48458
48672
  </dd>
48459
48673
  </dl>
@@ -48473,7 +48687,7 @@ client.bank.transactions_list
48473
48687
  </dl>
48474
48688
  </details>
48475
48689
 
48476
- <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_match</a>(request) -> Nordlet::Bank::Types::TransactionsMatchBankResponse</code></summary>
48690
+ <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_ignore</a>(request) -> Nordlet::Bank::Types::TransactionsIgnoreBankResponse</code></summary>
48477
48691
  <dl>
48478
48692
  <dd>
48479
48693
 
@@ -48485,7 +48699,7 @@ client.bank.transactions_list
48485
48699
  <dl>
48486
48700
  <dd>
48487
48701
 
48488
- Match one new bank transaction to a document: an issued sale invoice or advance for incoming money; an issued sale credit note, a registered purchase invoice or an approved payroll run (company currency only) for outgoing money. Posts the payment journal transaction between the bank account and the receivable or payable account the invoice was posted to (the account of its operation type, else the posting rule) or the net payable account, with any exchange difference on the gain or loss account, raises the paid amount of the document and sets the line to matched. A payment in another currency is converted into the invoice currency at the rate of the line date, and the difference against the invoice's own rate is the exchange difference; `invoiceAmount` states the amount settled instead; in the same currency it must equal the payment (422). Answers 409 when the line is already matched, when the amount (converted, beyond one cent of the payment) exceeds the remaining balance of the document or when the accounting period of the line date is locked. A document that becomes fully paid is announced as `sale_invoice.paid` or `purchase_invoice.paid`.
48702
+ Mark a new bank transaction as ignored, for a line that needs no booking (a duplicate the bank sent, a line booked another way), with the reason kept on the line. Nothing is posted. Answers 409 when the line is matched or already ignored; `bank/transactions/unignore` returns it to new.
48489
48703
  </dd>
48490
48704
  </dl>
48491
48705
  </dd>
@@ -48500,10 +48714,9 @@ Match one new bank transaction to a document: an issued sale invoice or advance
48500
48714
  <dd>
48501
48715
 
48502
48716
  ```ruby
48503
- client.bank.transactions_match(
48717
+ client.bank.transactions_ignore(
48504
48718
  transaction_id: "transactionId",
48505
- document_type: "sale_invoice",
48506
- document_id: "documentId"
48719
+ reason: "reason"
48507
48720
  )
48508
48721
  ```
48509
48722
  </dd>
@@ -48527,23 +48740,7 @@ client.bank.transactions_match(
48527
48740
  <dl>
48528
48741
  <dd>
48529
48742
 
48530
- **document_type:** `Nordlet::Bank::Types::TransactionsMatchBankRequestDocumentType`
48531
-
48532
- </dd>
48533
- </dl>
48534
-
48535
- <dl>
48536
- <dd>
48537
-
48538
- **document_id:** `String`
48539
-
48540
- </dd>
48541
- </dl>
48542
-
48543
- <dl>
48544
- <dd>
48545
-
48546
- **invoice_amount:** `String`
48743
+ **reason:** `String`
48547
48744
 
48548
48745
  </dd>
48549
48746
  </dl>
@@ -48563,7 +48760,7 @@ client.bank.transactions_match(
48563
48760
  </dl>
48564
48761
  </details>
48565
48762
 
48566
- <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_match_many</a>(request) -> Nordlet::Bank::Types::TransactionsMatchManyBankResponse</code></summary>
48763
+ <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_unignore</a>(request) -> Nordlet::Bank::Types::TransactionsUnignoreBankResponse</code></summary>
48567
48764
  <dl>
48568
48765
  <dd>
48569
48766
 
@@ -48575,7 +48772,7 @@ client.bank.transactions_match(
48575
48772
  <dl>
48576
48773
  <dd>
48577
48774
 
48578
- The documents are issued sale invoices or advances for incoming money; issued sale credit notes, registered purchase invoices or approved payroll runs for outgoing money. Each must be in the currency of the payment, each allocation must be above zero, a document may appear once and the allocations must add up to the payment (422 otherwise). One journal transaction carries the bank entry, one entry per document and any exchange difference; the line is matched as an `invoice_allocation`. Answers 409 when the line is already matched, when an allocation exceeds the remaining balance of its document or when the accounting period of the line date is locked. Each document that becomes fully paid is announced as `sale_invoice.paid` or `purchase_invoice.paid`.
48775
+ Return an ignored bank transaction to status new and clear its reason. Answers 409 when the line is not ignored.
48579
48776
  </dd>
48580
48777
  </dl>
48581
48778
  </dd>
@@ -48590,14 +48787,7 @@ The documents are issued sale invoices or advances for incoming money; issued sa
48590
48787
  <dd>
48591
48788
 
48592
48789
  ```ruby
48593
- client.bank.transactions_match_many(
48594
- transaction_id: "transactionId",
48595
- allocations: [{
48596
- document_type: "sale_invoice",
48597
- document_id: "documentId",
48598
- amount: "121.0000"
48599
- }]
48600
- )
48790
+ client.bank.transactions_unignore(transaction_id: "transactionId")
48601
48791
  ```
48602
48792
  </dd>
48603
48793
  </dl>
@@ -48620,14 +48810,6 @@ client.bank.transactions_match_many(
48620
48810
  <dl>
48621
48811
  <dd>
48622
48812
 
48623
- **allocations:** `Internal::Types::Array[Nordlet::Bank::Types::TransactionsMatchManyBankRequestAllocationsItem]`
48624
-
48625
- </dd>
48626
- </dl>
48627
-
48628
- <dl>
48629
- <dd>
48630
-
48631
48813
  **request_options:** `Nordlet::Bank::RequestOptions`
48632
48814
 
48633
48815
  </dd>
@@ -48640,7 +48822,7 @@ client.bank.transactions_match_many(
48640
48822
  </dl>
48641
48823
  </details>
48642
48824
 
48643
- <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_unmatch</a>(request) -> Nordlet::Bank::Types::TransactionsUnmatchBankResponse</code></summary>
48825
+ <details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">reconciliation_get</a>(request) -> Nordlet::Bank::Types::ReconciliationGetBankResponse</code></summary>
48644
48826
  <dl>
48645
48827
  <dd>
48646
48828
 
@@ -48652,7 +48834,7 @@ client.bank.transactions_match_many(
48652
48834
  <dl>
48653
48835
  <dd>
48654
48836
 
48655
- Undo a match. A payment matched to an invoice, or a line posted by an import template, gets a reversing journal transaction dated date (default: today) and the invoice paid amount and payment status are restored; a line linked to a payment-provider settlement is only unlinked. The line returns to status new.
48837
+ Compare a bank account's statement balance with its ledger balance on `date`. The statement balance is `statementBalance` when given, else the latest closing balance kept from an imported statement on or before `date` (`statementClosingDate`) plus the lines on the account dated after it up to `date`. The ledger balance is the posted balance of the bank account's ledger account up to `date`, in the account currency (for an account in another currency than the company's, the sum of the entries' currency amounts in that currency). `difference` is the statement balance less the ledger balance. `unbookedLines` are the lines up to `date` still in status new (at most 1000; `unbookedCount` and `unbookedTotal` cover all of them). Answers 404 when the bank account does not exist.
48656
48838
  </dd>
48657
48839
  </dl>
48658
48840
  </dd>
@@ -48667,7 +48849,10 @@ Undo a match. A payment matched to an invoice, or a line posted by an import tem
48667
48849
  <dd>
48668
48850
 
48669
48851
  ```ruby
48670
- client.bank.transactions_unmatch(transaction_id: "transactionId")
48852
+ client.bank.reconciliation_get(
48853
+ bank_account_id: "bankAccountId",
48854
+ date: "2026-07-01"
48855
+ )
48671
48856
  ```
48672
48857
  </dd>
48673
48858
  </dl>
@@ -48682,7 +48867,7 @@ client.bank.transactions_unmatch(transaction_id: "transactionId")
48682
48867
  <dl>
48683
48868
  <dd>
48684
48869
 
48685
- **transaction_id:** `String`
48870
+ **bank_account_id:** `String`
48686
48871
 
48687
48872
  </dd>
48688
48873
  </dl>
@@ -48698,6 +48883,14 @@ client.bank.transactions_unmatch(transaction_id: "transactionId")
48698
48883
  <dl>
48699
48884
  <dd>
48700
48885
 
48886
+ **statement_balance:** `String`
48887
+
48888
+ </dd>
48889
+ </dl>
48890
+
48891
+ <dl>
48892
+ <dd>
48893
+
48701
48894
  **request_options:** `Nordlet::Bank::RequestOptions`
48702
48895
 
48703
48896
  </dd>
@@ -48722,7 +48915,7 @@ client.bank.transactions_unmatch(transaction_id: "transactionId")
48722
48915
  <dl>
48723
48916
  <dd>
48724
48917
 
48725
- Record a payment that is on no imported statement: inserts a bank transaction on the account dated `date` (positive for a sale invoice, negative for a purchase invoice or payroll run, in the account currency) and matches it to the document with the checks, posting and `sale_invoice.paid` or `purchase_invoice.paid` event of `bank/transactions/match`.
48918
+ Record a payment that is on no imported statement: inserts a bank transaction on the account dated `date` (`amount` is always positive, in the account currency: money received for a sale invoice, money paid out for a purchase invoice or payroll run) and matches it to the document with the checks, posting and `sale_invoice.paid` or `purchase_invoice.paid` event of `bank/transactions/match`.
48726
48919
  </dd>
48727
48920
  </dl>
48728
48921
  </dd>
@@ -53785,6 +53978,68 @@ client.reports.fec(
53785
53978
  </dl>
53786
53979
 
53787
53980
 
53981
+ </dd>
53982
+ </dl>
53983
+ </details>
53984
+
53985
+ <details><summary><code>client.reports.<a href="/lib/nordlet/reports/client.rb">period_checklist</a>(request) -> Nordlet::Reports::Types::PeriodChecklistReportsResponse</code></summary>
53986
+ <dl>
53987
+ <dd>
53988
+
53989
+ #### 📝 Description
53990
+
53991
+ <dl>
53992
+ <dd>
53993
+
53994
+ <dl>
53995
+ <dd>
53996
+
53997
+ Lists what is still open for `period`: a month (`YYYY-MM`) or the fiscal year that ends in `YYYY`. Items: draft sale documents (invoices, credit notes and advance invoices with an issue date in the period) and draft purchase documents dated in the period, bank lines dated in the period with status `new`, assets with depreciation months not posted up to the period end, expense deferral rows due by the period end and not posted, active recurring invoices whose next run date is on or before the period end, payroll runs of the period's months still in draft, and for a fiscal year the issued sale and registered purchase documents in a currency other than the base currency still open at the year end. Each item carries the `count` and the `ids` of the documents, rows, assets, recurring invoices or runs; an item with nothing open is left out. `ledger/periods/lock` returns the same items as `warnings`.
53998
+ </dd>
53999
+ </dl>
54000
+ </dd>
54001
+ </dl>
54002
+
54003
+ #### 🔌 Usage
54004
+
54005
+ <dl>
54006
+ <dd>
54007
+
54008
+ <dl>
54009
+ <dd>
54010
+
54011
+ ```ruby
54012
+ client.reports.period_checklist(period: "period")
54013
+ ```
54014
+ </dd>
54015
+ </dl>
54016
+ </dd>
54017
+ </dl>
54018
+
54019
+ #### ⚙️ Parameters
54020
+
54021
+ <dl>
54022
+ <dd>
54023
+
54024
+ <dl>
54025
+ <dd>
54026
+
54027
+ **period:** `String`
54028
+
54029
+ </dd>
54030
+ </dl>
54031
+
54032
+ <dl>
54033
+ <dd>
54034
+
54035
+ **request_options:** `Nordlet::Reports::RequestOptions`
54036
+
54037
+ </dd>
54038
+ </dl>
54039
+ </dd>
54040
+ </dl>
54041
+
54042
+
53788
54043
  </dd>
53789
54044
  </dl>
53790
54045
  </details>
@@ -56415,7 +56670,155 @@ client.billing.account_set_overdraft_cap(cap_cents: 1000000)
56415
56670
  <dl>
56416
56671
  <dd>
56417
56672
 
56418
- Open a Stripe Checkout session for a one-time credit top-up of `amountCents` and return its URL; a Stripe customer is created for the user when there is none. `returnTo` chooses whether Checkout returns to the credits page or to the onboarding plan page, in `locale`. Answers 409 on a site without top-ups and 503 when online payments are not configured.
56673
+ Open a Stripe Checkout session for a one-time credit top-up of `amountCents` and return its URL; a Stripe customer is created for the user when there is none. `returnTo` chooses whether Checkout returns to the credits page or to the onboarding plan page, in `locale`; with `convertCompanyId` it returns to the onboarding plan page, which then converts that sandbox company to a live company. Answers 409 on a site without top-ups and 503 when online payments are not configured.
56674
+ </dd>
56675
+ </dl>
56676
+ </dd>
56677
+ </dl>
56678
+
56679
+ #### 🔌 Usage
56680
+
56681
+ <dl>
56682
+ <dd>
56683
+
56684
+ <dl>
56685
+ <dd>
56686
+
56687
+ ```ruby
56688
+ client.billing.topup_create(amount_cents: 1000000)
56689
+ ```
56690
+ </dd>
56691
+ </dl>
56692
+ </dd>
56693
+ </dl>
56694
+
56695
+ #### ⚙️ Parameters
56696
+
56697
+ <dl>
56698
+ <dd>
56699
+
56700
+ <dl>
56701
+ <dd>
56702
+
56703
+ **amount_cents:** `Integer`
56704
+
56705
+ </dd>
56706
+ </dl>
56707
+
56708
+ <dl>
56709
+ <dd>
56710
+
56711
+ **locale:** `Nordlet::Billing::Types::TopupCreateBillingRequestLocale`
56712
+
56713
+ </dd>
56714
+ </dl>
56715
+
56716
+ <dl>
56717
+ <dd>
56718
+
56719
+ **return_to:** `Nordlet::Billing::Types::TopupCreateBillingRequestReturnTo`
56720
+
56721
+ </dd>
56722
+ </dl>
56723
+
56724
+ <dl>
56725
+ <dd>
56726
+
56727
+ **convert_company_id:** `String`
56728
+
56729
+ </dd>
56730
+ </dl>
56731
+
56732
+ <dl>
56733
+ <dd>
56734
+
56735
+ **request_options:** `Nordlet::Billing::RequestOptions`
56736
+
56737
+ </dd>
56738
+ </dl>
56739
+ </dd>
56740
+ </dl>
56741
+
56742
+
56743
+ </dd>
56744
+ </dl>
56745
+ </details>
56746
+
56747
+ <details><summary><code>client.billing.<a href="/lib/nordlet/billing/client.rb">topup_confirm</a>(request) -> Nordlet::Billing::Types::TopupConfirmBillingResponse</code></summary>
56748
+ <dl>
56749
+ <dd>
56750
+
56751
+ #### 📝 Description
56752
+
56753
+ <dl>
56754
+ <dd>
56755
+
56756
+ <dl>
56757
+ <dd>
56758
+
56759
+ Confirm a paid top-up Checkout session by `sessionId` and credit the account at once instead of waiting for the Stripe webhook; a session is credited only once. Answers 404 when the session is not the user's own or is not paid, and 409 on a site without top-ups.
56760
+ </dd>
56761
+ </dl>
56762
+ </dd>
56763
+ </dl>
56764
+
56765
+ #### 🔌 Usage
56766
+
56767
+ <dl>
56768
+ <dd>
56769
+
56770
+ <dl>
56771
+ <dd>
56772
+
56773
+ ```ruby
56774
+ client.billing.topup_confirm(session_id: "sessionId")
56775
+ ```
56776
+ </dd>
56777
+ </dl>
56778
+ </dd>
56779
+ </dl>
56780
+
56781
+ #### ⚙️ Parameters
56782
+
56783
+ <dl>
56784
+ <dd>
56785
+
56786
+ <dl>
56787
+ <dd>
56788
+
56789
+ **session_id:** `String`
56790
+
56791
+ </dd>
56792
+ </dl>
56793
+
56794
+ <dl>
56795
+ <dd>
56796
+
56797
+ **request_options:** `Nordlet::Billing::RequestOptions`
56798
+
56799
+ </dd>
56800
+ </dl>
56801
+ </dd>
56802
+ </dl>
56803
+
56804
+
56805
+ </dd>
56806
+ </dl>
56807
+ </details>
56808
+
56809
+ <details><summary><code>client.billing.<a href="/lib/nordlet/billing/client.rb">free_sandbox_start</a>(request) -> Nordlet::Billing::Types::FreeSandboxStartBillingResponse</code></summary>
56810
+ <dl>
56811
+ <dd>
56812
+
56813
+ #### 📝 Description
56814
+
56815
+ <dl>
56816
+ <dd>
56817
+
56818
+ <dl>
56819
+ <dd>
56820
+
56821
+ Start the free sandbox plan of the caller's `app` billing account: one sandbox company, free for 14 days from now, without a payment. A free sandbox that is already running keeps its end date. After `trialEndsAt` the sandbox company answers 402 until a paid plan is chosen. Answers 409 on the `invoice` site, when a paid plan is already active, and when the free sandbox of this account has already ended.
56419
56822
  </dd>
56420
56823
  </dl>
56421
56824
  </dd>
@@ -56430,7 +56833,7 @@ Open a Stripe Checkout session for a one-time credit top-up of `amountCents` and
56430
56833
  <dd>
56431
56834
 
56432
56835
  ```ruby
56433
- client.billing.topup_create(amount_cents: 1000000)
56836
+ client.billing.free_sandbox_start
56434
56837
  ```
56435
56838
  </dd>
56436
56839
  </dl>
@@ -56445,30 +56848,6 @@ client.billing.topup_create(amount_cents: 1000000)
56445
56848
  <dl>
56446
56849
  <dd>
56447
56850
 
56448
- **amount_cents:** `Integer`
56449
-
56450
- </dd>
56451
- </dl>
56452
-
56453
- <dl>
56454
- <dd>
56455
-
56456
- **locale:** `Nordlet::Billing::Types::TopupCreateBillingRequestLocale`
56457
-
56458
- </dd>
56459
- </dl>
56460
-
56461
- <dl>
56462
- <dd>
56463
-
56464
- **return_to:** `Nordlet::Billing::Types::TopupCreateBillingRequestReturnTo`
56465
-
56466
- </dd>
56467
- </dl>
56468
-
56469
- <dl>
56470
- <dd>
56471
-
56472
56851
  **request_options:** `Nordlet::Billing::RequestOptions`
56473
56852
 
56474
56853
  </dd>
@@ -56481,7 +56860,7 @@ client.billing.topup_create(amount_cents: 1000000)
56481
56860
  </dl>
56482
56861
  </details>
56483
56862
 
56484
- <details><summary><code>client.billing.<a href="/lib/nordlet/billing/client.rb">topup_confirm</a>(request) -> Nordlet::Billing::Types::TopupConfirmBillingResponse</code></summary>
56863
+ <details><summary><code>client.billing.<a href="/lib/nordlet/billing/client.rb">flat_rate_create</a>(request) -> Nordlet::Billing::Types::FlatRateCreateBillingResponse</code></summary>
56485
56864
  <dl>
56486
56865
  <dd>
56487
56866
 
@@ -56493,7 +56872,7 @@ client.billing.topup_create(amount_cents: 1000000)
56493
56872
  <dl>
56494
56873
  <dd>
56495
56874
 
56496
- Confirm a paid top-up Checkout session by `sessionId` and credit the account at once instead of waiting for the Stripe webhook; a session is credited only once. Answers 404 when the session is not the user's own or is not paid, and 409 on a site without top-ups.
56875
+ Open a Stripe Checkout session for a flat-rate subscription on `plan` (by default the first plan of the request's site) for the billing account of the request's site and return its URL; a Stripe customer is created for that account when it has none. The plans of the `app` site have no trial period: the first month is charged at checkout. The `invoicing` plan of the `invoice` site takes its trial days from the server setting `INVOICE_PLAN_TRIAL_DAYS` and returns to the invoice app. With `convertCompanyId` Checkout returns to the onboarding plan page, which then converts that sandbox company to a live company. Answers 422 when the plan is not one of the site's plans, 409 when the site's flat-rate subscription is already active and 503 when online payments are not configured, the plan has no price, or the Invoicing trial is not set.
56497
56876
  </dd>
56498
56877
  </dl>
56499
56878
  </dd>
@@ -56508,7 +56887,7 @@ Confirm a paid top-up Checkout session by `sessionId` and credit the account at
56508
56887
  <dd>
56509
56888
 
56510
56889
  ```ruby
56511
- client.billing.topup_confirm(session_id: "sessionId")
56890
+ client.billing.flat_rate_create
56512
56891
  ```
56513
56892
  </dd>
56514
56893
  </dl>
@@ -56523,69 +56902,15 @@ client.billing.topup_confirm(session_id: "sessionId")
56523
56902
  <dl>
56524
56903
  <dd>
56525
56904
 
56526
- **session_id:** `String`
56527
-
56528
- </dd>
56529
- </dl>
56530
-
56531
- <dl>
56532
- <dd>
56533
-
56534
- **request_options:** `Nordlet::Billing::RequestOptions`
56905
+ **locale:** `Nordlet::Billing::Types::FlatRateCreateBillingRequestLocale`
56535
56906
 
56536
56907
  </dd>
56537
56908
  </dl>
56538
- </dd>
56539
- </dl>
56540
-
56541
-
56542
- </dd>
56543
- </dl>
56544
- </details>
56545
-
56546
- <details><summary><code>client.billing.<a href="/lib/nordlet/billing/client.rb">flat_rate_create</a>(request) -> Nordlet::Billing::Types::FlatRateCreateBillingResponse</code></summary>
56547
- <dl>
56548
- <dd>
56549
-
56550
- #### 📝 Description
56551
56909
 
56552
56910
  <dl>
56553
56911
  <dd>
56554
56912
 
56555
- <dl>
56556
- <dd>
56557
-
56558
- Open a Stripe Checkout session for a flat-rate subscription on `plan` (by default the first plan of the request's site) for the billing account of the request's site, with the trial period of `trialDays` days, and return its URL; a Stripe customer is created for that account when it has none. The `invoicing` plan of the `invoice` site takes its trial days from the server setting `INVOICE_PLAN_TRIAL_DAYS` and returns to the invoice app. Answers 422 when the plan is not one of the site's plans, 409 when the site's flat-rate subscription is already active and 503 when online payments are not configured, the plan has no price, or the Invoicing trial is not set.
56559
- </dd>
56560
- </dl>
56561
- </dd>
56562
- </dl>
56563
-
56564
- #### 🔌 Usage
56565
-
56566
- <dl>
56567
- <dd>
56568
-
56569
- <dl>
56570
- <dd>
56571
-
56572
- ```ruby
56573
- client.billing.flat_rate_create
56574
- ```
56575
- </dd>
56576
- </dl>
56577
- </dd>
56578
- </dl>
56579
-
56580
- #### ⚙️ Parameters
56581
-
56582
- <dl>
56583
- <dd>
56584
-
56585
- <dl>
56586
- <dd>
56587
-
56588
- **locale:** `Nordlet::Billing::Types::FlatRateCreateBillingRequestLocale`
56913
+ **plan:** `Nordlet::Billing::Types::FlatRateCreateBillingRequestPlan`
56589
56914
 
56590
56915
  </dd>
56591
56916
  </dl>
@@ -56593,7 +56918,7 @@ client.billing.flat_rate_create
56593
56918
  <dl>
56594
56919
  <dd>
56595
56920
 
56596
- **plan:** `Nordlet::Billing::Types::FlatRateCreateBillingRequestPlan`
56921
+ **convert_company_id:** `String`
56597
56922
 
56598
56923
  </dd>
56599
56924
  </dl>
@@ -56865,7 +57190,7 @@ client.billing.transactions_list
56865
57190
  <dl>
56866
57191
  <dd>
56867
57192
 
56868
- List the daily usage records of the request's site in the companies the user pays for, from `from` to `to`: one row per company, date and metric (API requests, OCR pages, file storage bytes, database bytes, sale invoices). Requests, OCR pages and invoices count on the site the request came from; storage counts on the `app` site.
57193
+ List the daily usage records of the request's site in the companies the user pays for, from `from` to `to`: one row per company, date and metric (API requests, file storage bytes, database bytes, sale invoices; `ocr_page` rows remain from the time document scanning was charged). Requests and invoices count on the site the request came from; storage counts on the `app` site.
56869
57194
  </dd>
56870
57195
  </dl>
56871
57196
  </dd>
@@ -57157,7 +57482,7 @@ client.account.logout
57157
57482
  <dl>
57158
57483
  <dd>
57159
57484
 
57160
- Return the signed-in user, their active company and role in it, the companies they belong to and their consent state. `billing` is the billing account of the request's site (the `x-nordlet-site` header, `app` when absent) that pays for the active company (its payer, or the user when there is none or no company), with `isPayer` saying whether that is the user; `referralPoints` is the user's current points balance. An API key may call it too: the active company is then the one named in the `x-nordlet-company` header, and `companies` lists every company the key works in.
57485
+ Return the signed-in user, their active company and role in it, the companies they belong to and their consent state. `billing` is the billing account of the request's site (the `x-nordlet-site` header, `app` when absent) that pays for the active company (its payer, or the user when there is none or no company), with `isPayer` saying whether that is the user; `referralPoints` is the user's current points balance; `user.whiteLabel` says the user is a white-label partner, who may call `account/brand/get` and `account/brand/update`. An API key may call it too: the active company is then the one named in the `x-nordlet-company` header, and `companies` lists every company the key works in, each with its country, base currency, VAT payer flag, VAT period and the month its fiscal year ends in.
57161
57486
  </dd>
57162
57487
  </dl>
57163
57488
  </dd>
@@ -57885,7 +58210,7 @@ client.account.locale_set(locale: "en")
57885
58210
  <dl>
57886
58211
  <dd>
57887
58212
 
57888
- Create a company with the caller as its owner and payer, seed its chart of accounts from the template of `countryCode`, and make it the active company of the session. `timeZone` defaults to the country's, `isVatPayer` to true and `defaultInvoiceCurrency` to the base currency. Refused with 422 when `baseCurrency` is not a supported currency.
58213
+ Create a company with the caller as its owner and payer, seed its chart of accounts from the template of `countryCode`, and make it the active company of the session. `timeZone` defaults to the country's, `isVatPayer` to true and `defaultInvoiceCurrency` to the base currency. Without a paid plan the caller may create only one sandbox company, which starts the free sandbox plan; a live company, a second sandbox company, or a sandbox company after the free sandbox has ended is refused with 402. Refused with 422 when `baseCurrency` is not a supported currency. An API key may call it when it holds the `account:write` scope (403 otherwise): the company is created for the person the key belongs to, and the key works in it like in their other companies.
57889
58214
  </dd>
57890
58215
  </dl>
57891
58216
  </dd>
@@ -58195,7 +58520,7 @@ client.account.companies_create(name: "name")
58195
58520
  <dl>
58196
58521
  <dd>
58197
58522
 
58198
- **is_sandbox:** `Internal::Types::Boolean` — Sandbox companies hold test data and are purged immediately on delete (immutable after creation)
58523
+ **is_sandbox:** `Internal::Types::Boolean` — Sandbox companies hold test data and are purged immediately on delete; `companies/convert-to-live` turns one into a live company
58199
58524
 
58200
58525
  </dd>
58201
58526
  </dl>
@@ -58297,7 +58622,7 @@ client.account.companies_select(company_id: "companyId")
58297
58622
  <dl>
58298
58623
  <dd>
58299
58624
 
58300
- Return the profile of the active company.
58625
+ Return the profile of the active company. An API key reads the company named in the `x-nordlet-company` header and needs the `account:read` scope.
58301
58626
  </dd>
58302
58627
  </dl>
58303
58628
  </dd>
@@ -58351,7 +58676,7 @@ client.account.companies_profile
58351
58676
  <dl>
58352
58677
  <dd>
58353
58678
 
58354
- Change the profile of the active company; owners and admins may call it. Only the fields sent are changed, and the nullable ones can be sent as null to clear them. `logo` stores a base64-encoded image as a file of the company and sets `logoFileId`. The country, base currency, sandbox flag and cash-basis flag are fixed at creation.
58679
+ Change the profile of the active company; owners and admins may call it. Only the fields sent are changed, and the nullable ones can be sent as null to clear them. `logo` stores a base64-encoded image as a file of the company and sets `logoFileId`. The country, base currency, sandbox flag and cash-basis flag are fixed at creation. An API key changes the company named in the `x-nordlet-company` header, needs the `account:write` scope and the owner or admin role there, and may send only `code`, `vatCode`, `smeExemptionNumber`, `legalForm`, `registryName`, `incorporatedOn`, `shareCapital`, `address`, `email`, `phone`, `accountsKeptBy`, `bookkeeperName`, `auditorName`, `auditorRegistrationNumber`, `auditRequired`; any other field is refused with 403.
58355
58680
  </dd>
58356
58681
  </dl>
58357
58682
  </dd>
@@ -58785,6 +59110,68 @@ client.account.companies_delete(company_id: "companyId")
58785
59110
  </dl>
58786
59111
 
58787
59112
 
59113
+ </dd>
59114
+ </dl>
59115
+ </details>
59116
+
59117
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">companies_convert_to_live</a>(request) -> Nordlet::Account::Types::CompaniesConvertToLiveAccountResponse</code></summary>
59118
+ <dl>
59119
+ <dd>
59120
+
59121
+ #### 📝 Description
59122
+
59123
+ <dl>
59124
+ <dd>
59125
+
59126
+ <dl>
59127
+ <dd>
59128
+
59129
+ Turn the sandbox company `companyId` into a live company and keep all of its data: from then on its filings go to the authorities' production systems and a delete is no longer purged at once. The caller must be the company's owner and payer and have a paid plan (a flat-rate subscription or per-request billing). Refused with 403 when the caller is not the owner or not the payer, 409 when the company is not a sandbox company and 402 when the caller has no paid plan.
59130
+ </dd>
59131
+ </dl>
59132
+ </dd>
59133
+ </dl>
59134
+
59135
+ #### 🔌 Usage
59136
+
59137
+ <dl>
59138
+ <dd>
59139
+
59140
+ <dl>
59141
+ <dd>
59142
+
59143
+ ```ruby
59144
+ client.account.companies_convert_to_live(company_id: "companyId")
59145
+ ```
59146
+ </dd>
59147
+ </dl>
59148
+ </dd>
59149
+ </dl>
59150
+
59151
+ #### ⚙️ Parameters
59152
+
59153
+ <dl>
59154
+ <dd>
59155
+
59156
+ <dl>
59157
+ <dd>
59158
+
59159
+ **company_id:** `String`
59160
+
59161
+ </dd>
59162
+ </dl>
59163
+
59164
+ <dl>
59165
+ <dd>
59166
+
59167
+ **request_options:** `Nordlet::Account::RequestOptions`
59168
+
59169
+ </dd>
59170
+ </dl>
59171
+ </dd>
59172
+ </dl>
59173
+
59174
+
58788
59175
  </dd>
58789
59176
  </dl>
58790
59177
  </details>
@@ -59254,6 +59641,146 @@ client.account.profile_update
59254
59641
  </dl>
59255
59642
 
59256
59643
 
59644
+ </dd>
59645
+ </dl>
59646
+ </details>
59647
+
59648
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">brand_get</a>(request) -> Nordlet::Account::Types::BrandGetAccountResponse</code></summary>
59649
+ <dl>
59650
+ <dd>
59651
+
59652
+ #### 📝 Description
59653
+
59654
+ <dl>
59655
+ <dd>
59656
+
59657
+ <dl>
59658
+ <dd>
59659
+
59660
+ Return the brand settings of the signed-in white-label partner: `name`, `logoUrl`, `color` and `footer`, each null when not set. Refused with 403 when the user is not a white-label partner.
59661
+ </dd>
59662
+ </dl>
59663
+ </dd>
59664
+ </dl>
59665
+
59666
+ #### 🔌 Usage
59667
+
59668
+ <dl>
59669
+ <dd>
59670
+
59671
+ <dl>
59672
+ <dd>
59673
+
59674
+ ```ruby
59675
+ client.account.brand_get
59676
+ ```
59677
+ </dd>
59678
+ </dl>
59679
+ </dd>
59680
+ </dl>
59681
+
59682
+ #### ⚙️ Parameters
59683
+
59684
+ <dl>
59685
+ <dd>
59686
+
59687
+ <dl>
59688
+ <dd>
59689
+
59690
+ **request_options:** `Nordlet::Account::RequestOptions`
59691
+
59692
+ </dd>
59693
+ </dl>
59694
+ </dd>
59695
+ </dl>
59696
+
59697
+
59698
+ </dd>
59699
+ </dl>
59700
+ </details>
59701
+
59702
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">brand_update</a>(request) -> Nordlet::Account::Types::BrandUpdateAccountResponse</code></summary>
59703
+ <dl>
59704
+ <dd>
59705
+
59706
+ #### 📝 Description
59707
+
59708
+ <dl>
59709
+ <dd>
59710
+
59711
+ <dl>
59712
+ <dd>
59713
+
59714
+ Set the brand settings of the signed-in white-label partner; all four fields are sent and null clears one. They apply to every company the user pays for: the invoice, quote and payment reminder e-mails show `logoUrl` (an https address of an image) in the header, use `color` (`#rrggbb`) for the top line, the brand name and the buttons, and print `footer`, or `name` when there is no footer, in place of the Nordlet footer line; the public invoice page prints `name` in its "Sent with" line and leaves the line out when there is no name (`sentWith` of `public/invoices/get`); filled official form PDFs carry `name` as their producer and creator. Refused with 403 when the user is not a white-label partner.
59715
+ </dd>
59716
+ </dl>
59717
+ </dd>
59718
+ </dl>
59719
+
59720
+ #### 🔌 Usage
59721
+
59722
+ <dl>
59723
+ <dd>
59724
+
59725
+ <dl>
59726
+ <dd>
59727
+
59728
+ ```ruby
59729
+ client.account.brand_update
59730
+ ```
59731
+ </dd>
59732
+ </dl>
59733
+ </dd>
59734
+ </dl>
59735
+
59736
+ #### ⚙️ Parameters
59737
+
59738
+ <dl>
59739
+ <dd>
59740
+
59741
+ <dl>
59742
+ <dd>
59743
+
59744
+ **name:** `String`
59745
+
59746
+ </dd>
59747
+ </dl>
59748
+
59749
+ <dl>
59750
+ <dd>
59751
+
59752
+ **logo_url:** `String`
59753
+
59754
+ </dd>
59755
+ </dl>
59756
+
59757
+ <dl>
59758
+ <dd>
59759
+
59760
+ **color:** `String`
59761
+
59762
+ </dd>
59763
+ </dl>
59764
+
59765
+ <dl>
59766
+ <dd>
59767
+
59768
+ **footer:** `String`
59769
+
59770
+ </dd>
59771
+ </dl>
59772
+
59773
+ <dl>
59774
+ <dd>
59775
+
59776
+ **request_options:** `Nordlet::Account::RequestOptions`
59777
+
59778
+ </dd>
59779
+ </dl>
59780
+ </dd>
59781
+ </dl>
59782
+
59783
+
59257
59784
  </dd>
59258
59785
  </dl>
59259
59786
  </details>