nordlet 0.6.6 → 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.
- checksums.yaml +4 -4
- data/lib/nordlet/account/client.rb +89 -6
- data/lib/nordlet/account/types/brand_get_account_request.rb +9 -0
- data/lib/nordlet/account/types/brand_get_account_response.rb +17 -0
- data/lib/nordlet/account/types/brand_update_account_request.rb +17 -0
- data/lib/nordlet/account/types/brand_update_account_response.rb +17 -0
- data/lib/nordlet/account/types/companies_create_account_response.rb +10 -0
- data/lib/nordlet/account/types/companies_create_account_response_vat_period.rb +17 -0
- data/lib/nordlet/account/types/me_account_response_companies_item.rb +10 -0
- data/lib/nordlet/account/types/me_account_response_companies_item_vat_period.rb +17 -0
- data/lib/nordlet/account/types/me_account_response_user.rb +2 -0
- data/lib/nordlet/bank/client.rb +183 -14
- data/lib/nordlet/bank/types/reconciliation_get_bank_request.rb +15 -0
- data/lib/nordlet/bank/types/reconciliation_get_bank_response.rb +35 -0
- data/lib/nordlet/bank/types/reconciliation_get_bank_response_statement_balance_source.rb +14 -0
- data/lib/nordlet/bank/types/reconciliation_get_bank_response_unbooked_lines_item.rb +39 -0
- data/lib/nordlet/bank/types/reconciliation_get_bank_response_unbooked_lines_item_status.rb +15 -0
- data/lib/nordlet/bank/types/transactions_ignore_bank_request.rb +13 -0
- data/lib/nordlet/bank/types/transactions_ignore_bank_response.rb +39 -0
- data/lib/nordlet/bank/types/transactions_ignore_bank_response_status.rb +15 -0
- data/lib/nordlet/bank/types/transactions_import_bank_request.rb +4 -0
- data/lib/nordlet/bank/types/transactions_import_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/transactions_import_bank_response_duplicates_item.rb +17 -0
- data/lib/nordlet/bank/types/transactions_list_bank_response_rows_item.rb +2 -0
- data/lib/nordlet/bank/types/transactions_list_bank_response_rows_item_status.rb +1 -0
- data/lib/nordlet/bank/types/transactions_match_bank_request.rb +2 -0
- data/lib/nordlet/bank/types/transactions_match_bank_request_remainder.rb +13 -0
- data/lib/nordlet/bank/types/transactions_match_bank_request_remainder_treatment.rb +15 -0
- data/lib/nordlet/bank/types/transactions_match_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/transactions_match_bank_response_status.rb +1 -0
- data/lib/nordlet/bank/types/transactions_match_many_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/transactions_match_many_bank_response_status.rb +1 -0
- data/lib/nordlet/bank/types/transactions_post_bank_request.rb +25 -0
- data/lib/nordlet/bank/types/transactions_post_bank_response.rb +39 -0
- data/lib/nordlet/bank/types/transactions_post_bank_response_status.rb +15 -0
- data/lib/nordlet/bank/types/transactions_record_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/transactions_record_bank_response_status.rb +1 -0
- data/lib/nordlet/bank/types/transactions_unignore_bank_request.rb +11 -0
- data/lib/nordlet/bank/types/transactions_unignore_bank_response.rb +39 -0
- data/lib/nordlet/bank/types/transactions_unignore_bank_response_status.rb +15 -0
- data/lib/nordlet/bank/types/transactions_unmatch_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/transactions_unmatch_bank_response_status.rb +1 -0
- data/lib/nordlet/billing/client.rb +3 -2
- data/lib/nordlet/billing/types/account_get_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/account_set_plan_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/subscription_cancel_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/topup_confirm_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/calendar/client.rb +3 -1
- data/lib/nordlet/capture/client.rb +6 -188
- data/lib/nordlet/capture/types/documents_confirm_capture_response_invoice.rb +6 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_invoice_status.rb +1 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice.rb +6 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_status.rb +1 -0
- data/lib/nordlet/cash/client.rb +11 -10
- data/lib/nordlet/declarations/client.rb +7 -3
- data/lib/nordlet/declarations/types/configs_list_declarations_response_rows_item_fields_item.rb +2 -0
- data/lib/nordlet/declarations/types/configs_update_declarations_response_fields_item.rb +2 -0
- data/lib/nordlet/hr/client.rb +3 -2
- data/lib/nordlet/ledger/client.rb +46 -5
- data/lib/nordlet/ledger/types/journal_transactions_get_ledger_response.rb +2 -0
- data/lib/nordlet/ledger/types/journal_transactions_reverse_ledger_request.rb +15 -0
- data/lib/nordlet/ledger/types/journal_transactions_reverse_ledger_response.rb +27 -0
- data/lib/nordlet/ledger/types/journal_transactions_reverse_ledger_response_status.rb +14 -0
- data/lib/nordlet/ledger/types/periods_lock_ledger_response.rb +2 -0
- data/lib/nordlet/ledger/types/periods_lock_ledger_response_warnings_item.rb +17 -0
- data/lib/nordlet/ledger/types/periods_lock_ledger_response_warnings_item_code.rb +21 -0
- data/lib/nordlet/partners/client.rb +10 -8
- data/lib/nordlet/public/types/invoices_get_public_response.rb +2 -0
- data/lib/nordlet/purchases/client.rb +77 -20
- data/lib/nordlet/purchases/types/invoices_create_purchases_request.rb +6 -0
- data/lib/nordlet/purchases/types/invoices_create_purchases_response.rb +8 -0
- data/lib/nordlet/purchases/types/invoices_create_purchases_response_status.rb +1 -0
- data/lib/nordlet/purchases/types/invoices_create_purchases_response_warnings_item.rb +13 -0
- data/lib/nordlet/purchases/types/invoices_get_purchases_response.rb +6 -0
- data/lib/nordlet/purchases/types/invoices_get_purchases_response_status.rb +1 -0
- data/lib/nordlet/purchases/types/invoices_list_purchases_response_rows_item.rb +6 -0
- data/lib/nordlet/purchases/types/invoices_list_purchases_response_rows_item_status.rb +1 -0
- data/lib/nordlet/purchases/types/invoices_register_purchases_response.rb +8 -0
- data/lib/nordlet/purchases/types/invoices_register_purchases_response_status.rb +1 -0
- data/lib/nordlet/purchases/types/invoices_register_purchases_response_warnings_item.rb +13 -0
- data/lib/nordlet/purchases/types/invoices_reverse_purchases_request.rb +15 -0
- data/lib/nordlet/purchases/types/invoices_reverse_purchases_response.rb +71 -0
- data/lib/nordlet/purchases/types/invoices_reverse_purchases_response_lines_item.rb +53 -0
- data/lib/nordlet/purchases/types/invoices_reverse_purchases_response_payment_status.rb +15 -0
- data/lib/nordlet/purchases/types/invoices_reverse_purchases_response_status.rb +15 -0
- data/lib/nordlet/{capture/types/documents_upload_capture_response_extraction_document_type.rb → purchases/types/invoices_reverse_purchases_response_type.rb} +2 -2
- data/lib/nordlet/purchases/types/invoices_update_purchases_request.rb +6 -0
- data/lib/nordlet/purchases/types/invoices_update_purchases_response.rb +6 -0
- data/lib/nordlet/purchases/types/invoices_update_purchases_response_status.rb +1 -0
- data/lib/nordlet/reference/client.rb +8 -2
- data/lib/nordlet/reference/types/vat_resolve_reference_request.rb +2 -0
- data/lib/nordlet/reference/types/vat_resolve_reference_request_side.rb +14 -0
- data/lib/nordlet/reference/types/vat_resolve_reference_response.rb +2 -0
- data/lib/nordlet/reports/client.rb +42 -0
- data/lib/nordlet/reports/types/period_checklist_reports_request.rb +11 -0
- data/lib/nordlet/reports/types/period_checklist_reports_response.rb +17 -0
- data/lib/nordlet/reports/types/period_checklist_reports_response_items_item.rb +17 -0
- data/lib/nordlet/reports/types/period_checklist_reports_response_items_item_code.rb +21 -0
- data/lib/nordlet/sales/client.rb +19 -8
- data/lib/nordlet/sales/types/invoices_create_sales_response.rb +2 -0
- data/lib/nordlet/sales/types/invoices_create_sales_response_warnings_item.rb +13 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +2 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response_warnings_item.rb +13 -0
- data/lib/nordlet/sales/types/invoices_view_sales_response.rb +2 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet.rb +43 -19
- data/reference.md +863 -468
- metadata +45 -21
- data/lib/nordlet/capture/types/documents_upload_capture_request.rb +0 -15
- data/lib/nordlet/capture/types/documents_upload_capture_response.rb +0 -43
- data/lib/nordlet/capture/types/documents_upload_capture_response_extraction.rb +0 -33
- data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_lines_item.rb +0 -25
- data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_opposite_lines_item.rb +0 -25
- data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_supplier.rb +0 -19
- data/lib/nordlet/capture/types/documents_upload_capture_response_status.rb +0 -16
- data/lib/nordlet/capture/types/inbound_email_capture_request.rb +0 -27
- data/lib/nordlet/capture/types/inbound_email_capture_request_attachments_item.rb +0 -21
- data/lib/nordlet/capture/types/inbound_email_capture_request_to.rb +0 -15
- data/lib/nordlet/capture/types/inbound_email_capture_request_to_full_item.rb +0 -11
- data/lib/nordlet/capture/types/inbound_email_capture_response.rb +0 -15
- data/lib/nordlet/capture/types/settings_get_capture_request.rb +0 -9
- data/lib/nordlet/capture/types/settings_get_capture_response.rb +0 -17
- data/lib/nordlet/capture/types/settings_regenerate_intake_capture_request.rb +0 -9
- data/lib/nordlet/capture/types/settings_regenerate_intake_capture_response.rb +0 -17
- data/lib/nordlet/capture/types/settings_update_capture_request.rb +0 -13
- 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 `
|
|
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
|
|
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
|
|
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
|
|
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">
|
|
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
|
-
|
|
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.
|
|
17958
|
-
|
|
17959
|
-
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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">
|
|
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
|
-
|
|
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.
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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">
|
|
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
|
-
|
|
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.
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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">
|
|
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
|
-
|
|
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,7 @@ Approve a `submitted` purchase order (409 from any other status), recording who
|
|
|
18428
18339
|
<dd>
|
|
18429
18340
|
|
|
18430
18341
|
```ruby
|
|
18431
|
-
client.purchases.
|
|
18342
|
+
client.purchases.orders_get(id: "id")
|
|
18432
18343
|
```
|
|
18433
18344
|
</dd>
|
|
18434
18345
|
</dl>
|
|
@@ -18451,14 +18362,6 @@ client.purchases.orders_approve(id: "id")
|
|
|
18451
18362
|
<dl>
|
|
18452
18363
|
<dd>
|
|
18453
18364
|
|
|
18454
|
-
**reason:** `String`
|
|
18455
|
-
|
|
18456
|
-
</dd>
|
|
18457
|
-
</dl>
|
|
18458
|
-
|
|
18459
|
-
<dl>
|
|
18460
|
-
<dd>
|
|
18461
|
-
|
|
18462
18365
|
**request_options:** `Nordlet::Purchases::RequestOptions`
|
|
18463
18366
|
|
|
18464
18367
|
</dd>
|
|
@@ -18471,7 +18374,7 @@ client.purchases.orders_approve(id: "id")
|
|
|
18471
18374
|
</dl>
|
|
18472
18375
|
</details>
|
|
18473
18376
|
|
|
18474
|
-
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">
|
|
18377
|
+
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_list</a>(request) -> Nordlet::Purchases::Types::OrdersListPurchasesResponse</code></summary>
|
|
18475
18378
|
<dl>
|
|
18476
18379
|
<dd>
|
|
18477
18380
|
|
|
@@ -18483,7 +18386,7 @@ client.purchases.orders_approve(id: "id")
|
|
|
18483
18386
|
<dl>
|
|
18484
18387
|
<dd>
|
|
18485
18388
|
|
|
18486
|
-
|
|
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`.
|
|
18487
18390
|
</dd>
|
|
18488
18391
|
</dl>
|
|
18489
18392
|
</dd>
|
|
@@ -18498,7 +18401,7 @@ Send a `submitted` purchase order back to `draft` (409 from any other status); n
|
|
|
18498
18401
|
<dd>
|
|
18499
18402
|
|
|
18500
18403
|
```ruby
|
|
18501
|
-
client.purchases.
|
|
18404
|
+
client.purchases.orders_list
|
|
18502
18405
|
```
|
|
18503
18406
|
</dd>
|
|
18504
18407
|
</dl>
|
|
@@ -18513,7 +18416,7 @@ client.purchases.orders_reject(id: "id")
|
|
|
18513
18416
|
<dl>
|
|
18514
18417
|
<dd>
|
|
18515
18418
|
|
|
18516
|
-
**
|
|
18419
|
+
**page:** `Integer`
|
|
18517
18420
|
|
|
18518
18421
|
</dd>
|
|
18519
18422
|
</dl>
|
|
@@ -18521,7 +18424,7 @@ client.purchases.orders_reject(id: "id")
|
|
|
18521
18424
|
<dl>
|
|
18522
18425
|
<dd>
|
|
18523
18426
|
|
|
18524
|
-
**
|
|
18427
|
+
**page_size:** `Integer`
|
|
18525
18428
|
|
|
18526
18429
|
</dd>
|
|
18527
18430
|
</dl>
|
|
@@ -18529,61 +18432,15 @@ client.purchases.orders_reject(id: "id")
|
|
|
18529
18432
|
<dl>
|
|
18530
18433
|
<dd>
|
|
18531
18434
|
|
|
18532
|
-
**
|
|
18435
|
+
**sort:** `Internal::Types::Array[Nordlet::Purchases::Types::OrdersListPurchasesRequestSortItem]`
|
|
18533
18436
|
|
|
18534
18437
|
</dd>
|
|
18535
18438
|
</dl>
|
|
18536
|
-
</dd>
|
|
18537
|
-
</dl>
|
|
18538
|
-
|
|
18539
|
-
|
|
18540
|
-
</dd>
|
|
18541
|
-
</dl>
|
|
18542
|
-
</details>
|
|
18543
|
-
|
|
18544
|
-
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_cancel</a>(request) -> Nordlet::Purchases::Types::OrdersCancelPurchasesResponse</code></summary>
|
|
18545
|
-
<dl>
|
|
18546
|
-
<dd>
|
|
18547
|
-
|
|
18548
|
-
#### 📝 Description
|
|
18549
|
-
|
|
18550
|
-
<dl>
|
|
18551
|
-
<dd>
|
|
18552
|
-
|
|
18553
|
-
<dl>
|
|
18554
|
-
<dd>
|
|
18555
|
-
|
|
18556
|
-
Cancel a `draft`, `submitted` or `approved` purchase order (409 from any other status, or when the order already has a goods receipt).
|
|
18557
|
-
</dd>
|
|
18558
|
-
</dl>
|
|
18559
|
-
</dd>
|
|
18560
|
-
</dl>
|
|
18561
|
-
|
|
18562
|
-
#### 🔌 Usage
|
|
18563
|
-
|
|
18564
|
-
<dl>
|
|
18565
|
-
<dd>
|
|
18566
|
-
|
|
18567
|
-
<dl>
|
|
18568
|
-
<dd>
|
|
18569
|
-
|
|
18570
|
-
```ruby
|
|
18571
|
-
client.purchases.orders_cancel(id: "id")
|
|
18572
|
-
```
|
|
18573
|
-
</dd>
|
|
18574
|
-
</dl>
|
|
18575
|
-
</dd>
|
|
18576
|
-
</dl>
|
|
18577
|
-
|
|
18578
|
-
#### ⚙️ Parameters
|
|
18579
18439
|
|
|
18580
18440
|
<dl>
|
|
18581
18441
|
<dd>
|
|
18582
18442
|
|
|
18583
|
-
|
|
18584
|
-
<dd>
|
|
18585
|
-
|
|
18586
|
-
**id:** `String`
|
|
18443
|
+
**filter:** `Internal::Types::Array[Nordlet::Purchases::Types::OrdersListPurchasesRequestFilterItem]`
|
|
18587
18444
|
|
|
18588
18445
|
</dd>
|
|
18589
18446
|
</dl>
|
|
@@ -18591,7 +18448,7 @@ client.purchases.orders_cancel(id: "id")
|
|
|
18591
18448
|
<dl>
|
|
18592
18449
|
<dd>
|
|
18593
18450
|
|
|
18594
|
-
**
|
|
18451
|
+
**totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
|
|
18595
18452
|
|
|
18596
18453
|
</dd>
|
|
18597
18454
|
</dl>
|
|
@@ -18611,7 +18468,7 @@ client.purchases.orders_cancel(id: "id")
|
|
|
18611
18468
|
</dl>
|
|
18612
18469
|
</details>
|
|
18613
18470
|
|
|
18614
|
-
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">
|
|
18471
|
+
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_submit</a>(request) -> Nordlet::Purchases::Types::OrdersSubmitPurchasesResponse</code></summary>
|
|
18615
18472
|
<dl>
|
|
18616
18473
|
<dd>
|
|
18617
18474
|
|
|
@@ -18623,7 +18480,7 @@ client.purchases.orders_cancel(id: "id")
|
|
|
18623
18480
|
<dl>
|
|
18624
18481
|
<dd>
|
|
18625
18482
|
|
|
18626
|
-
|
|
18483
|
+
Move a `draft` purchase order to `submitted` for approval (409 from any other status). `reason` is kept in the audit log.
|
|
18627
18484
|
</dd>
|
|
18628
18485
|
</dl>
|
|
18629
18486
|
</dd>
|
|
@@ -18638,7 +18495,7 @@ Close an `approved`, `partially_received` or `received` purchase order (409 from
|
|
|
18638
18495
|
<dd>
|
|
18639
18496
|
|
|
18640
18497
|
```ruby
|
|
18641
|
-
client.purchases.
|
|
18498
|
+
client.purchases.orders_submit(id: "id")
|
|
18642
18499
|
```
|
|
18643
18500
|
</dd>
|
|
18644
18501
|
</dl>
|
|
@@ -18681,7 +18538,7 @@ client.purchases.orders_close(id: "id")
|
|
|
18681
18538
|
</dl>
|
|
18682
18539
|
</details>
|
|
18683
18540
|
|
|
18684
|
-
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">
|
|
18541
|
+
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_approve</a>(request) -> Nordlet::Purchases::Types::OrdersApprovePurchasesResponse</code></summary>
|
|
18685
18542
|
<dl>
|
|
18686
18543
|
<dd>
|
|
18687
18544
|
|
|
@@ -18693,7 +18550,7 @@ client.purchases.orders_close(id: "id")
|
|
|
18693
18550
|
<dl>
|
|
18694
18551
|
<dd>
|
|
18695
18552
|
|
|
18696
|
-
|
|
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`.
|
|
18697
18554
|
</dd>
|
|
18698
18555
|
</dl>
|
|
18699
18556
|
</dd>
|
|
@@ -18708,7 +18565,7 @@ Mark a `draft` purchase order as deleted (409 once it is submitted).
|
|
|
18708
18565
|
<dd>
|
|
18709
18566
|
|
|
18710
18567
|
```ruby
|
|
18711
|
-
client.purchases.
|
|
18568
|
+
client.purchases.orders_approve(id: "id")
|
|
18712
18569
|
```
|
|
18713
18570
|
</dd>
|
|
18714
18571
|
</dl>
|
|
@@ -18731,6 +18588,14 @@ client.purchases.orders_delete(id: "id")
|
|
|
18731
18588
|
<dl>
|
|
18732
18589
|
<dd>
|
|
18733
18590
|
|
|
18591
|
+
**reason:** `String`
|
|
18592
|
+
|
|
18593
|
+
</dd>
|
|
18594
|
+
</dl>
|
|
18595
|
+
|
|
18596
|
+
<dl>
|
|
18597
|
+
<dd>
|
|
18598
|
+
|
|
18734
18599
|
**request_options:** `Nordlet::Purchases::RequestOptions`
|
|
18735
18600
|
|
|
18736
18601
|
</dd>
|
|
@@ -18743,7 +18608,7 @@ client.purchases.orders_delete(id: "id")
|
|
|
18743
18608
|
</dl>
|
|
18744
18609
|
</details>
|
|
18745
18610
|
|
|
18746
|
-
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">
|
|
18611
|
+
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_reject</a>(request) -> Nordlet::Purchases::Types::OrdersRejectPurchasesResponse</code></summary>
|
|
18747
18612
|
<dl>
|
|
18748
18613
|
<dd>
|
|
18749
18614
|
|
|
@@ -18755,7 +18620,7 @@ client.purchases.orders_delete(id: "id")
|
|
|
18755
18620
|
<dl>
|
|
18756
18621
|
<dd>
|
|
18757
18622
|
|
|
18758
|
-
|
|
18623
|
+
Send a `submitted` purchase order back to `draft` (409 from any other status); needs the `purchases:approve` scope. `reason` is kept in the audit log.
|
|
18759
18624
|
</dd>
|
|
18760
18625
|
</dl>
|
|
18761
18626
|
</dd>
|
|
@@ -18770,14 +18635,7 @@ Record a goods receipt against an `approved` or `partially_received` purchase or
|
|
|
18770
18635
|
<dd>
|
|
18771
18636
|
|
|
18772
18637
|
```ruby
|
|
18773
|
-
client.purchases.
|
|
18774
|
-
order_id: "orderId",
|
|
18775
|
-
receipt_date: "2026-07-01",
|
|
18776
|
-
lines: [{
|
|
18777
|
-
order_line_id: "orderLineId",
|
|
18778
|
-
quantity: "121.0000"
|
|
18779
|
-
}]
|
|
18780
|
-
)
|
|
18638
|
+
client.purchases.orders_reject(id: "id")
|
|
18781
18639
|
```
|
|
18782
18640
|
</dd>
|
|
18783
18641
|
</dl>
|
|
@@ -18792,31 +18650,7 @@ client.purchases.receipts_create(
|
|
|
18792
18650
|
<dl>
|
|
18793
18651
|
<dd>
|
|
18794
18652
|
|
|
18795
|
-
**
|
|
18796
|
-
|
|
18797
|
-
</dd>
|
|
18798
|
-
</dl>
|
|
18799
|
-
|
|
18800
|
-
<dl>
|
|
18801
|
-
<dd>
|
|
18802
|
-
|
|
18803
|
-
**receipt_date:** `String`
|
|
18804
|
-
|
|
18805
|
-
</dd>
|
|
18806
|
-
</dl>
|
|
18807
|
-
|
|
18808
|
-
<dl>
|
|
18809
|
-
<dd>
|
|
18810
|
-
|
|
18811
|
-
**warehouse_id:** `String`
|
|
18812
|
-
|
|
18813
|
-
</dd>
|
|
18814
|
-
</dl>
|
|
18815
|
-
|
|
18816
|
-
<dl>
|
|
18817
|
-
<dd>
|
|
18818
|
-
|
|
18819
|
-
**notes:** `String`
|
|
18653
|
+
**id:** `String`
|
|
18820
18654
|
|
|
18821
18655
|
</dd>
|
|
18822
18656
|
</dl>
|
|
@@ -18824,7 +18658,7 @@ client.purchases.receipts_create(
|
|
|
18824
18658
|
<dl>
|
|
18825
18659
|
<dd>
|
|
18826
18660
|
|
|
18827
|
-
**
|
|
18661
|
+
**reason:** `String`
|
|
18828
18662
|
|
|
18829
18663
|
</dd>
|
|
18830
18664
|
</dl>
|
|
@@ -18844,7 +18678,7 @@ client.purchases.receipts_create(
|
|
|
18844
18678
|
</dl>
|
|
18845
18679
|
</details>
|
|
18846
18680
|
|
|
18847
|
-
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">
|
|
18681
|
+
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_cancel</a>(request) -> Nordlet::Purchases::Types::OrdersCancelPurchasesResponse</code></summary>
|
|
18848
18682
|
<dl>
|
|
18849
18683
|
<dd>
|
|
18850
18684
|
|
|
@@ -18856,7 +18690,7 @@ client.purchases.receipts_create(
|
|
|
18856
18690
|
<dl>
|
|
18857
18691
|
<dd>
|
|
18858
18692
|
|
|
18859
|
-
|
|
18693
|
+
Cancel a `draft`, `submitted` or `approved` purchase order (409 from any other status, or when the order already has a goods receipt).
|
|
18860
18694
|
</dd>
|
|
18861
18695
|
</dl>
|
|
18862
18696
|
</dd>
|
|
@@ -18871,7 +18705,7 @@ Return one goods receipt with its lines and their stock movement ids.
|
|
|
18871
18705
|
<dd>
|
|
18872
18706
|
|
|
18873
18707
|
```ruby
|
|
18874
|
-
client.purchases.
|
|
18708
|
+
client.purchases.orders_cancel(id: "id")
|
|
18875
18709
|
```
|
|
18876
18710
|
</dd>
|
|
18877
18711
|
</dl>
|
|
@@ -18894,6 +18728,14 @@ client.purchases.receipts_get(id: "id")
|
|
|
18894
18728
|
<dl>
|
|
18895
18729
|
<dd>
|
|
18896
18730
|
|
|
18731
|
+
**reason:** `String`
|
|
18732
|
+
|
|
18733
|
+
</dd>
|
|
18734
|
+
</dl>
|
|
18735
|
+
|
|
18736
|
+
<dl>
|
|
18737
|
+
<dd>
|
|
18738
|
+
|
|
18897
18739
|
**request_options:** `Nordlet::Purchases::RequestOptions`
|
|
18898
18740
|
|
|
18899
18741
|
</dd>
|
|
@@ -18906,7 +18748,7 @@ client.purchases.receipts_get(id: "id")
|
|
|
18906
18748
|
</dl>
|
|
18907
18749
|
</details>
|
|
18908
18750
|
|
|
18909
|
-
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">
|
|
18751
|
+
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_close</a>(request) -> Nordlet::Purchases::Types::OrdersClosePurchasesResponse</code></summary>
|
|
18910
18752
|
<dl>
|
|
18911
18753
|
<dd>
|
|
18912
18754
|
|
|
@@ -18918,7 +18760,7 @@ client.purchases.receipts_get(id: "id")
|
|
|
18918
18760
|
<dl>
|
|
18919
18761
|
<dd>
|
|
18920
18762
|
|
|
18921
|
-
|
|
18763
|
+
Close an `approved`, `partially_received` or `received` purchase order (409 from any other status); a closed order accepts no further goods receipts.
|
|
18922
18764
|
</dd>
|
|
18923
18765
|
</dl>
|
|
18924
18766
|
</dd>
|
|
@@ -18933,7 +18775,7 @@ List goods receipts without lines. Filterable by `orderId`, `warehouseId`, `rece
|
|
|
18933
18775
|
<dd>
|
|
18934
18776
|
|
|
18935
18777
|
```ruby
|
|
18936
|
-
client.purchases.
|
|
18778
|
+
client.purchases.orders_close(id: "id")
|
|
18937
18779
|
```
|
|
18938
18780
|
</dd>
|
|
18939
18781
|
</dl>
|
|
@@ -18948,31 +18790,7 @@ client.purchases.receipts_list
|
|
|
18948
18790
|
<dl>
|
|
18949
18791
|
<dd>
|
|
18950
18792
|
|
|
18951
|
-
**
|
|
18952
|
-
|
|
18953
|
-
</dd>
|
|
18954
|
-
</dl>
|
|
18955
|
-
|
|
18956
|
-
<dl>
|
|
18957
|
-
<dd>
|
|
18958
|
-
|
|
18959
|
-
**page_size:** `Integer`
|
|
18960
|
-
|
|
18961
|
-
</dd>
|
|
18962
|
-
</dl>
|
|
18963
|
-
|
|
18964
|
-
<dl>
|
|
18965
|
-
<dd>
|
|
18966
|
-
|
|
18967
|
-
**sort:** `Internal::Types::Array[Nordlet::Purchases::Types::ReceiptsListPurchasesRequestSortItem]`
|
|
18968
|
-
|
|
18969
|
-
</dd>
|
|
18970
|
-
</dl>
|
|
18971
|
-
|
|
18972
|
-
<dl>
|
|
18973
|
-
<dd>
|
|
18974
|
-
|
|
18975
|
-
**filter:** `Internal::Types::Array[Nordlet::Purchases::Types::ReceiptsListPurchasesRequestFilterItem]`
|
|
18793
|
+
**id:** `String`
|
|
18976
18794
|
|
|
18977
18795
|
</dd>
|
|
18978
18796
|
</dl>
|
|
@@ -18980,7 +18798,7 @@ client.purchases.receipts_list
|
|
|
18980
18798
|
<dl>
|
|
18981
18799
|
<dd>
|
|
18982
18800
|
|
|
18983
|
-
**
|
|
18801
|
+
**reason:** `String`
|
|
18984
18802
|
|
|
18985
18803
|
</dd>
|
|
18986
18804
|
</dl>
|
|
@@ -19000,7 +18818,7 @@ client.purchases.receipts_list
|
|
|
19000
18818
|
</dl>
|
|
19001
18819
|
</details>
|
|
19002
18820
|
|
|
19003
|
-
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">
|
|
18821
|
+
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">orders_delete</a>(request) -> Nordlet::Purchases::Types::OrdersDeletePurchasesResponse</code></summary>
|
|
19004
18822
|
<dl>
|
|
19005
18823
|
<dd>
|
|
19006
18824
|
|
|
@@ -19012,7 +18830,7 @@ client.purchases.receipts_list
|
|
|
19012
18830
|
<dl>
|
|
19013
18831
|
<dd>
|
|
19014
18832
|
|
|
19015
|
-
|
|
18833
|
+
Mark a `draft` purchase order as deleted (409 once it is submitted).
|
|
19016
18834
|
</dd>
|
|
19017
18835
|
</dl>
|
|
19018
18836
|
</dd>
|
|
@@ -19027,7 +18845,7 @@ Compare a purchase invoice with its linked purchase order and the goods received
|
|
|
19027
18845
|
<dd>
|
|
19028
18846
|
|
|
19029
18847
|
```ruby
|
|
19030
|
-
client.purchases.
|
|
18848
|
+
client.purchases.orders_delete(id: "id")
|
|
19031
18849
|
```
|
|
19032
18850
|
</dd>
|
|
19033
18851
|
</dl>
|
|
@@ -19042,15 +18860,7 @@ client.purchases.invoices_match(invoice_id: "invoiceId")
|
|
|
19042
18860
|
<dl>
|
|
19043
18861
|
<dd>
|
|
19044
18862
|
|
|
19045
|
-
**
|
|
19046
|
-
|
|
19047
|
-
</dd>
|
|
19048
|
-
</dl>
|
|
19049
|
-
|
|
19050
|
-
<dl>
|
|
19051
|
-
<dd>
|
|
19052
|
-
|
|
19053
|
-
**price_tolerance_percent:** `String`
|
|
18863
|
+
**id:** `String`
|
|
19054
18864
|
|
|
19055
18865
|
</dd>
|
|
19056
18866
|
</dl>
|
|
@@ -19070,8 +18880,7 @@ client.purchases.invoices_match(invoice_id: "invoiceId")
|
|
|
19070
18880
|
</dl>
|
|
19071
18881
|
</details>
|
|
19072
18882
|
|
|
19073
|
-
|
|
19074
|
-
<details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">settings_get</a>(request) -> Nordlet::Capture::Types::SettingsGetCaptureResponse</code></summary>
|
|
18883
|
+
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">receipts_create</a>(request) -> Nordlet::Purchases::Types::ReceiptsCreatePurchasesResponse</code></summary>
|
|
19075
18884
|
<dl>
|
|
19076
18885
|
<dd>
|
|
19077
18886
|
|
|
@@ -19083,7 +18892,7 @@ client.purchases.invoices_match(invoice_id: "invoiceId")
|
|
|
19083
18892
|
<dl>
|
|
19084
18893
|
<dd>
|
|
19085
18894
|
|
|
19086
|
-
|
|
18895
|
+
Record a goods receipt against an `approved` or `partially_received` purchase order (409 otherwise), numbered from the `goods_receipt` series with prefix GR. Lines whose item is a product go into stock in `warehouseId`, else the order's warehouse (422 when neither is set), at their share of the order line's net amount converted at the receipt date's rate; `lotNumber` and `expiryDate` receive them into a lot, and an item that needs lot or serial tracking is refused with 422 without one. A quantity above the line's remaining quantity is refused with 409; the order becomes `received` when every line is fully received, else `partially_received`. Emits `goods_receipt.posted`, `stock.changed` and, when fully received, `purchase_order.received`.
|
|
19087
18896
|
</dd>
|
|
19088
18897
|
</dl>
|
|
19089
18898
|
</dd>
|
|
@@ -19098,7 +18907,14 @@ Return the company's document capture settings: whether intake by e-mail is enab
|
|
|
19098
18907
|
<dd>
|
|
19099
18908
|
|
|
19100
18909
|
```ruby
|
|
19101
|
-
client.
|
|
18910
|
+
client.purchases.receipts_create(
|
|
18911
|
+
order_id: "orderId",
|
|
18912
|
+
receipt_date: "2026-07-01",
|
|
18913
|
+
lines: [{
|
|
18914
|
+
order_line_id: "orderLineId",
|
|
18915
|
+
quantity: "121.0000"
|
|
18916
|
+
}]
|
|
18917
|
+
)
|
|
19102
18918
|
```
|
|
19103
18919
|
</dd>
|
|
19104
18920
|
</dl>
|
|
@@ -19113,61 +18929,31 @@ client.capture.settings_get
|
|
|
19113
18929
|
<dl>
|
|
19114
18930
|
<dd>
|
|
19115
18931
|
|
|
19116
|
-
**
|
|
18932
|
+
**order_id:** `String`
|
|
19117
18933
|
|
|
19118
18934
|
</dd>
|
|
19119
18935
|
</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>
|
|
19129
|
-
<dl>
|
|
19130
|
-
<dd>
|
|
19131
|
-
|
|
19132
|
-
#### 📝 Description
|
|
19133
|
-
|
|
19134
|
-
<dl>
|
|
19135
|
-
<dd>
|
|
19136
18936
|
|
|
19137
18937
|
<dl>
|
|
19138
18938
|
<dd>
|
|
19139
18939
|
|
|
19140
|
-
|
|
19141
|
-
|
|
19142
|
-
</dl>
|
|
18940
|
+
**receipt_date:** `String`
|
|
18941
|
+
|
|
19143
18942
|
</dd>
|
|
19144
18943
|
</dl>
|
|
19145
18944
|
|
|
19146
|
-
#### 🔌 Usage
|
|
19147
|
-
|
|
19148
18945
|
<dl>
|
|
19149
18946
|
<dd>
|
|
19150
18947
|
|
|
19151
|
-
|
|
19152
|
-
|
|
19153
|
-
|
|
19154
|
-
```ruby
|
|
19155
|
-
client.capture.settings_update
|
|
19156
|
-
```
|
|
19157
|
-
</dd>
|
|
19158
|
-
</dl>
|
|
18948
|
+
**warehouse_id:** `String`
|
|
18949
|
+
|
|
19159
18950
|
</dd>
|
|
19160
18951
|
</dl>
|
|
19161
18952
|
|
|
19162
|
-
#### ⚙️ Parameters
|
|
19163
|
-
|
|
19164
|
-
<dl>
|
|
19165
|
-
<dd>
|
|
19166
|
-
|
|
19167
18953
|
<dl>
|
|
19168
18954
|
<dd>
|
|
19169
18955
|
|
|
19170
|
-
**
|
|
18956
|
+
**notes:** `String`
|
|
19171
18957
|
|
|
19172
18958
|
</dd>
|
|
19173
18959
|
</dl>
|
|
@@ -19175,7 +18961,7 @@ client.capture.settings_update
|
|
|
19175
18961
|
<dl>
|
|
19176
18962
|
<dd>
|
|
19177
18963
|
|
|
19178
|
-
**
|
|
18964
|
+
**lines:** `Internal::Types::Array[Nordlet::Purchases::Types::ReceiptsCreatePurchasesRequestLinesItem]`
|
|
19179
18965
|
|
|
19180
18966
|
</dd>
|
|
19181
18967
|
</dl>
|
|
@@ -19183,7 +18969,7 @@ client.capture.settings_update
|
|
|
19183
18969
|
<dl>
|
|
19184
18970
|
<dd>
|
|
19185
18971
|
|
|
19186
|
-
**request_options:** `Nordlet::
|
|
18972
|
+
**request_options:** `Nordlet::Purchases::RequestOptions`
|
|
19187
18973
|
|
|
19188
18974
|
</dd>
|
|
19189
18975
|
</dl>
|
|
@@ -19195,7 +18981,7 @@ client.capture.settings_update
|
|
|
19195
18981
|
</dl>
|
|
19196
18982
|
</details>
|
|
19197
18983
|
|
|
19198
|
-
<details><summary><code>client.
|
|
18984
|
+
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">receipts_get</a>(request) -> Nordlet::Purchases::Types::ReceiptsGetPurchasesResponse</code></summary>
|
|
19199
18985
|
<dl>
|
|
19200
18986
|
<dd>
|
|
19201
18987
|
|
|
@@ -19207,7 +18993,7 @@ client.capture.settings_update
|
|
|
19207
18993
|
<dl>
|
|
19208
18994
|
<dd>
|
|
19209
18995
|
|
|
19210
|
-
|
|
18996
|
+
Return one goods receipt with its lines and their stock movement ids.
|
|
19211
18997
|
</dd>
|
|
19212
18998
|
</dl>
|
|
19213
18999
|
</dd>
|
|
@@ -19222,7 +19008,7 @@ Replace the company's intake token, so the previous intake e-mail address stops
|
|
|
19222
19008
|
<dd>
|
|
19223
19009
|
|
|
19224
19010
|
```ruby
|
|
19225
|
-
client.
|
|
19011
|
+
client.purchases.receipts_get(id: "id")
|
|
19226
19012
|
```
|
|
19227
19013
|
</dd>
|
|
19228
19014
|
</dl>
|
|
@@ -19237,7 +19023,15 @@ client.capture.settings_regenerate_intake
|
|
|
19237
19023
|
<dl>
|
|
19238
19024
|
<dd>
|
|
19239
19025
|
|
|
19240
|
-
**
|
|
19026
|
+
**id:** `String`
|
|
19027
|
+
|
|
19028
|
+
</dd>
|
|
19029
|
+
</dl>
|
|
19030
|
+
|
|
19031
|
+
<dl>
|
|
19032
|
+
<dd>
|
|
19033
|
+
|
|
19034
|
+
**request_options:** `Nordlet::Purchases::RequestOptions`
|
|
19241
19035
|
|
|
19242
19036
|
</dd>
|
|
19243
19037
|
</dl>
|
|
@@ -19249,7 +19043,7 @@ client.capture.settings_regenerate_intake
|
|
|
19249
19043
|
</dl>
|
|
19250
19044
|
</details>
|
|
19251
19045
|
|
|
19252
|
-
<details><summary><code>client.
|
|
19046
|
+
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">receipts_list</a>(request) -> Nordlet::Purchases::Types::ReceiptsListPurchasesResponse</code></summary>
|
|
19253
19047
|
<dl>
|
|
19254
19048
|
<dd>
|
|
19255
19049
|
|
|
@@ -19261,7 +19055,7 @@ client.capture.settings_regenerate_intake
|
|
|
19261
19055
|
<dl>
|
|
19262
19056
|
<dd>
|
|
19263
19057
|
|
|
19264
|
-
|
|
19058
|
+
List goods receipts without lines. Filterable by `orderId`, `warehouseId`, `receiptDate` and `receiptNumber`; sortable by `createdAt` and `receiptDate`.
|
|
19265
19059
|
</dd>
|
|
19266
19060
|
</dl>
|
|
19267
19061
|
</dd>
|
|
@@ -19276,7 +19070,7 @@ Endpoint for the inbound e-mail provider (Postmark field names or the generic `t
|
|
|
19276
19070
|
<dd>
|
|
19277
19071
|
|
|
19278
19072
|
```ruby
|
|
19279
|
-
client.
|
|
19073
|
+
client.purchases.receipts_list
|
|
19280
19074
|
```
|
|
19281
19075
|
</dd>
|
|
19282
19076
|
</dl>
|
|
@@ -19291,39 +19085,7 @@ client.capture.inbound_email
|
|
|
19291
19085
|
<dl>
|
|
19292
19086
|
<dd>
|
|
19293
19087
|
|
|
19294
|
-
**
|
|
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]`
|
|
19088
|
+
**page:** `Integer`
|
|
19327
19089
|
|
|
19328
19090
|
</dd>
|
|
19329
19091
|
</dl>
|
|
@@ -19331,7 +19093,7 @@ client.capture.inbound_email
|
|
|
19331
19093
|
<dl>
|
|
19332
19094
|
<dd>
|
|
19333
19095
|
|
|
19334
|
-
**
|
|
19096
|
+
**page_size:** `Integer`
|
|
19335
19097
|
|
|
19336
19098
|
</dd>
|
|
19337
19099
|
</dl>
|
|
@@ -19339,7 +19101,7 @@ client.capture.inbound_email
|
|
|
19339
19101
|
<dl>
|
|
19340
19102
|
<dd>
|
|
19341
19103
|
|
|
19342
|
-
**
|
|
19104
|
+
**sort:** `Internal::Types::Array[Nordlet::Purchases::Types::ReceiptsListPurchasesRequestSortItem]`
|
|
19343
19105
|
|
|
19344
19106
|
</dd>
|
|
19345
19107
|
</dl>
|
|
@@ -19347,7 +19109,7 @@ client.capture.inbound_email
|
|
|
19347
19109
|
<dl>
|
|
19348
19110
|
<dd>
|
|
19349
19111
|
|
|
19350
|
-
**
|
|
19112
|
+
**filter:** `Internal::Types::Array[Nordlet::Purchases::Types::ReceiptsListPurchasesRequestFilterItem]`
|
|
19351
19113
|
|
|
19352
19114
|
</dd>
|
|
19353
19115
|
</dl>
|
|
@@ -19355,7 +19117,7 @@ client.capture.inbound_email
|
|
|
19355
19117
|
<dl>
|
|
19356
19118
|
<dd>
|
|
19357
19119
|
|
|
19358
|
-
**
|
|
19120
|
+
**totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
|
|
19359
19121
|
|
|
19360
19122
|
</dd>
|
|
19361
19123
|
</dl>
|
|
@@ -19363,7 +19125,7 @@ client.capture.inbound_email
|
|
|
19363
19125
|
<dl>
|
|
19364
19126
|
<dd>
|
|
19365
19127
|
|
|
19366
|
-
**request_options:** `Nordlet::
|
|
19128
|
+
**request_options:** `Nordlet::Purchases::RequestOptions`
|
|
19367
19129
|
|
|
19368
19130
|
</dd>
|
|
19369
19131
|
</dl>
|
|
@@ -19375,7 +19137,7 @@ client.capture.inbound_email
|
|
|
19375
19137
|
</dl>
|
|
19376
19138
|
</details>
|
|
19377
19139
|
|
|
19378
|
-
<details><summary><code>client.
|
|
19140
|
+
<details><summary><code>client.purchases.<a href="/lib/nordlet/purchases/client.rb">invoices_match</a>(request) -> Nordlet::Purchases::Types::InvoicesMatchPurchasesResponse</code></summary>
|
|
19379
19141
|
<dl>
|
|
19380
19142
|
<dd>
|
|
19381
19143
|
|
|
@@ -19387,7 +19149,7 @@ client.capture.inbound_email
|
|
|
19387
19149
|
<dl>
|
|
19388
19150
|
<dd>
|
|
19389
19151
|
|
|
19390
|
-
|
|
19152
|
+
Compare a purchase invoice with its linked purchase order and the goods received so far, grouped by item (by description for lines without one). Each row is `matched`, `not_received` (invoiced but nothing received), `over_invoiced` (invoiced more than received), `price_mismatch` (unit price differs by more than `priceTolerancePercent`), `not_on_order` or `not_invoiced`; `status` is `mismatched` when any row other than `not_invoiced` is not matched. Refused with 422 when the invoice has no `purchaseOrderId` or its currency differs from the order's. Nothing is changed.
|
|
19391
19153
|
</dd>
|
|
19392
19154
|
</dl>
|
|
19393
19155
|
</dd>
|
|
@@ -19402,11 +19164,7 @@ Upload a supplier document (PDF, image, Word or PowerPoint, up to 10 MB; 422 for
|
|
|
19402
19164
|
<dd>
|
|
19403
19165
|
|
|
19404
19166
|
```ruby
|
|
19405
|
-
client.
|
|
19406
|
-
file_name: "fileName",
|
|
19407
|
-
mime_type: "mimeType",
|
|
19408
|
-
content: "content"
|
|
19409
|
-
)
|
|
19167
|
+
client.purchases.invoices_match(invoice_id: "invoiceId")
|
|
19410
19168
|
```
|
|
19411
19169
|
</dd>
|
|
19412
19170
|
</dl>
|
|
@@ -19421,15 +19179,7 @@ client.capture.documents_upload(
|
|
|
19421
19179
|
<dl>
|
|
19422
19180
|
<dd>
|
|
19423
19181
|
|
|
19424
|
-
**
|
|
19425
|
-
|
|
19426
|
-
</dd>
|
|
19427
|
-
</dl>
|
|
19428
|
-
|
|
19429
|
-
<dl>
|
|
19430
|
-
<dd>
|
|
19431
|
-
|
|
19432
|
-
**mime_type:** `String`
|
|
19182
|
+
**invoice_id:** `String`
|
|
19433
19183
|
|
|
19434
19184
|
</dd>
|
|
19435
19185
|
</dl>
|
|
@@ -19437,7 +19187,7 @@ client.capture.documents_upload(
|
|
|
19437
19187
|
<dl>
|
|
19438
19188
|
<dd>
|
|
19439
19189
|
|
|
19440
|
-
**
|
|
19190
|
+
**price_tolerance_percent:** `String`
|
|
19441
19191
|
|
|
19442
19192
|
</dd>
|
|
19443
19193
|
</dl>
|
|
@@ -19445,7 +19195,7 @@ client.capture.documents_upload(
|
|
|
19445
19195
|
<dl>
|
|
19446
19196
|
<dd>
|
|
19447
19197
|
|
|
19448
|
-
**request_options:** `Nordlet::
|
|
19198
|
+
**request_options:** `Nordlet::Purchases::RequestOptions`
|
|
19449
19199
|
|
|
19450
19200
|
</dd>
|
|
19451
19201
|
</dl>
|
|
@@ -19457,6 +19207,7 @@ client.capture.documents_upload(
|
|
|
19457
19207
|
</dl>
|
|
19458
19208
|
</details>
|
|
19459
19209
|
|
|
19210
|
+
## capture
|
|
19460
19211
|
<details><summary><code>client.capture.<a href="/lib/nordlet/capture/client.rb">documents_extract</a>(request) -> Nordlet::Capture::Types::DocumentsExtractCaptureResponse</code></summary>
|
|
19461
19212
|
<dl>
|
|
19462
19213
|
<dd>
|
|
@@ -19469,7 +19220,7 @@ client.capture.documents_upload(
|
|
|
19469
19220
|
<dl>
|
|
19470
19221
|
<dd>
|
|
19471
19222
|
|
|
19472
|
-
|
|
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.
|
|
19473
19224
|
</dd>
|
|
19474
19225
|
</dl>
|
|
19475
19226
|
</dd>
|
|
@@ -19531,7 +19282,7 @@ client.capture.documents_extract(id: "id")
|
|
|
19531
19282
|
<dl>
|
|
19532
19283
|
<dd>
|
|
19533
19284
|
|
|
19534
|
-
Return one capture with its
|
|
19285
|
+
Return one document received over Peppol (a capture) with its draft: supplier, dates, totals and lines.
|
|
19535
19286
|
</dd>
|
|
19536
19287
|
</dl>
|
|
19537
19288
|
</dd>
|
|
@@ -19593,7 +19344,7 @@ client.capture.documents_get(id: "id")
|
|
|
19593
19344
|
<dl>
|
|
19594
19345
|
<dd>
|
|
19595
19346
|
|
|
19596
|
-
List captures
|
|
19347
|
+
List the documents received over Peppol (captures) with their drafts. Filterable by `status`, `matchedPartnerId` and `purchaseInvoiceId`; sortable by `createdAt` and `updatedAt`.
|
|
19597
19348
|
</dd>
|
|
19598
19349
|
</dl>
|
|
19599
19350
|
</dd>
|
|
@@ -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
|
|
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>
|
|
@@ -48218,7 +48050,7 @@ client.bank.accounts_update(id: "id")
|
|
|
48218
48050
|
<dl>
|
|
48219
48051
|
<dd>
|
|
48220
48052
|
|
|
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.
|
|
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.
|
|
48222
48054
|
</dd>
|
|
48223
48055
|
</dl>
|
|
48224
48056
|
</dd>
|
|
@@ -48270,6 +48102,22 @@ client.bank.transactions_import(
|
|
|
48270
48102
|
<dl>
|
|
48271
48103
|
<dd>
|
|
48272
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
|
+
|
|
48273
48121
|
**request_options:** `Nordlet::Bank::RequestOptions`
|
|
48274
48122
|
|
|
48275
48123
|
</dd>
|
|
@@ -48294,7 +48142,7 @@ client.bank.transactions_import(
|
|
|
48294
48142
|
<dl>
|
|
48295
48143
|
<dd>
|
|
48296
48144
|
|
|
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`.
|
|
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`.
|
|
48298
48146
|
</dd>
|
|
48299
48147
|
</dl>
|
|
48300
48148
|
</dd>
|
|
@@ -48485,7 +48333,7 @@ client.bank.transactions_list
|
|
|
48485
48333
|
<dl>
|
|
48486
48334
|
<dd>
|
|
48487
48335
|
|
|
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`.
|
|
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`.
|
|
48489
48337
|
</dd>
|
|
48490
48338
|
</dl>
|
|
48491
48339
|
</dd>
|
|
@@ -48551,6 +48399,14 @@ client.bank.transactions_match(
|
|
|
48551
48399
|
<dl>
|
|
48552
48400
|
<dd>
|
|
48553
48401
|
|
|
48402
|
+
**remainder:** `Nordlet::Bank::Types::TransactionsMatchBankRequestRemainder`
|
|
48403
|
+
|
|
48404
|
+
</dd>
|
|
48405
|
+
</dl>
|
|
48406
|
+
|
|
48407
|
+
<dl>
|
|
48408
|
+
<dd>
|
|
48409
|
+
|
|
48554
48410
|
**request_options:** `Nordlet::Bank::RequestOptions`
|
|
48555
48411
|
|
|
48556
48412
|
</dd>
|
|
@@ -48652,7 +48508,271 @@ client.bank.transactions_match_many(
|
|
|
48652
48508
|
<dl>
|
|
48653
48509
|
<dd>
|
|
48654
48510
|
|
|
48655
|
-
Undo a match. A payment matched to an invoice,
|
|
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.
|
|
48512
|
+
</dd>
|
|
48513
|
+
</dl>
|
|
48514
|
+
</dd>
|
|
48515
|
+
</dl>
|
|
48516
|
+
|
|
48517
|
+
#### 🔌 Usage
|
|
48518
|
+
|
|
48519
|
+
<dl>
|
|
48520
|
+
<dd>
|
|
48521
|
+
|
|
48522
|
+
<dl>
|
|
48523
|
+
<dd>
|
|
48524
|
+
|
|
48525
|
+
```ruby
|
|
48526
|
+
client.bank.transactions_unmatch(transaction_id: "transactionId")
|
|
48527
|
+
```
|
|
48528
|
+
</dd>
|
|
48529
|
+
</dl>
|
|
48530
|
+
</dd>
|
|
48531
|
+
</dl>
|
|
48532
|
+
|
|
48533
|
+
#### ⚙️ Parameters
|
|
48534
|
+
|
|
48535
|
+
<dl>
|
|
48536
|
+
<dd>
|
|
48537
|
+
|
|
48538
|
+
<dl>
|
|
48539
|
+
<dd>
|
|
48540
|
+
|
|
48541
|
+
**transaction_id:** `String`
|
|
48542
|
+
|
|
48543
|
+
</dd>
|
|
48544
|
+
</dl>
|
|
48545
|
+
|
|
48546
|
+
<dl>
|
|
48547
|
+
<dd>
|
|
48548
|
+
|
|
48549
|
+
**date:** `String`
|
|
48550
|
+
|
|
48551
|
+
</dd>
|
|
48552
|
+
</dl>
|
|
48553
|
+
|
|
48554
|
+
<dl>
|
|
48555
|
+
<dd>
|
|
48556
|
+
|
|
48557
|
+
**request_options:** `Nordlet::Bank::RequestOptions`
|
|
48558
|
+
|
|
48559
|
+
</dd>
|
|
48560
|
+
</dl>
|
|
48561
|
+
</dd>
|
|
48562
|
+
</dl>
|
|
48563
|
+
|
|
48564
|
+
|
|
48565
|
+
</dd>
|
|
48566
|
+
</dl>
|
|
48567
|
+
</details>
|
|
48568
|
+
|
|
48569
|
+
<details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_post</a>(request) -> Nordlet::Bank::Types::TransactionsPostBankResponse</code></summary>
|
|
48570
|
+
<dl>
|
|
48571
|
+
<dd>
|
|
48572
|
+
|
|
48573
|
+
#### 📝 Description
|
|
48574
|
+
|
|
48575
|
+
<dl>
|
|
48576
|
+
<dd>
|
|
48577
|
+
|
|
48578
|
+
<dl>
|
|
48579
|
+
<dd>
|
|
48580
|
+
|
|
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.
|
|
48582
|
+
</dd>
|
|
48583
|
+
</dl>
|
|
48584
|
+
</dd>
|
|
48585
|
+
</dl>
|
|
48586
|
+
|
|
48587
|
+
#### 🔌 Usage
|
|
48588
|
+
|
|
48589
|
+
<dl>
|
|
48590
|
+
<dd>
|
|
48591
|
+
|
|
48592
|
+
<dl>
|
|
48593
|
+
<dd>
|
|
48594
|
+
|
|
48595
|
+
```ruby
|
|
48596
|
+
client.bank.transactions_post(
|
|
48597
|
+
transaction_id: "transactionId",
|
|
48598
|
+
account_code: "accountCode"
|
|
48599
|
+
)
|
|
48600
|
+
```
|
|
48601
|
+
</dd>
|
|
48602
|
+
</dl>
|
|
48603
|
+
</dd>
|
|
48604
|
+
</dl>
|
|
48605
|
+
|
|
48606
|
+
#### ⚙️ Parameters
|
|
48607
|
+
|
|
48608
|
+
<dl>
|
|
48609
|
+
<dd>
|
|
48610
|
+
|
|
48611
|
+
<dl>
|
|
48612
|
+
<dd>
|
|
48613
|
+
|
|
48614
|
+
**transaction_id:** `String`
|
|
48615
|
+
|
|
48616
|
+
</dd>
|
|
48617
|
+
</dl>
|
|
48618
|
+
|
|
48619
|
+
<dl>
|
|
48620
|
+
<dd>
|
|
48621
|
+
|
|
48622
|
+
**account_code:** `String`
|
|
48623
|
+
|
|
48624
|
+
</dd>
|
|
48625
|
+
</dl>
|
|
48626
|
+
|
|
48627
|
+
<dl>
|
|
48628
|
+
<dd>
|
|
48629
|
+
|
|
48630
|
+
**tax_payment_id:** `String`
|
|
48631
|
+
|
|
48632
|
+
</dd>
|
|
48633
|
+
</dl>
|
|
48634
|
+
|
|
48635
|
+
<dl>
|
|
48636
|
+
<dd>
|
|
48637
|
+
|
|
48638
|
+
**partner_id:** `String`
|
|
48639
|
+
|
|
48640
|
+
</dd>
|
|
48641
|
+
</dl>
|
|
48642
|
+
|
|
48643
|
+
<dl>
|
|
48644
|
+
<dd>
|
|
48645
|
+
|
|
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`
|
|
48671
|
+
|
|
48672
|
+
</dd>
|
|
48673
|
+
</dl>
|
|
48674
|
+
|
|
48675
|
+
<dl>
|
|
48676
|
+
<dd>
|
|
48677
|
+
|
|
48678
|
+
**request_options:** `Nordlet::Bank::RequestOptions`
|
|
48679
|
+
|
|
48680
|
+
</dd>
|
|
48681
|
+
</dl>
|
|
48682
|
+
</dd>
|
|
48683
|
+
</dl>
|
|
48684
|
+
|
|
48685
|
+
|
|
48686
|
+
</dd>
|
|
48687
|
+
</dl>
|
|
48688
|
+
</details>
|
|
48689
|
+
|
|
48690
|
+
<details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_ignore</a>(request) -> Nordlet::Bank::Types::TransactionsIgnoreBankResponse</code></summary>
|
|
48691
|
+
<dl>
|
|
48692
|
+
<dd>
|
|
48693
|
+
|
|
48694
|
+
#### 📝 Description
|
|
48695
|
+
|
|
48696
|
+
<dl>
|
|
48697
|
+
<dd>
|
|
48698
|
+
|
|
48699
|
+
<dl>
|
|
48700
|
+
<dd>
|
|
48701
|
+
|
|
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.
|
|
48703
|
+
</dd>
|
|
48704
|
+
</dl>
|
|
48705
|
+
</dd>
|
|
48706
|
+
</dl>
|
|
48707
|
+
|
|
48708
|
+
#### 🔌 Usage
|
|
48709
|
+
|
|
48710
|
+
<dl>
|
|
48711
|
+
<dd>
|
|
48712
|
+
|
|
48713
|
+
<dl>
|
|
48714
|
+
<dd>
|
|
48715
|
+
|
|
48716
|
+
```ruby
|
|
48717
|
+
client.bank.transactions_ignore(
|
|
48718
|
+
transaction_id: "transactionId",
|
|
48719
|
+
reason: "reason"
|
|
48720
|
+
)
|
|
48721
|
+
```
|
|
48722
|
+
</dd>
|
|
48723
|
+
</dl>
|
|
48724
|
+
</dd>
|
|
48725
|
+
</dl>
|
|
48726
|
+
|
|
48727
|
+
#### ⚙️ Parameters
|
|
48728
|
+
|
|
48729
|
+
<dl>
|
|
48730
|
+
<dd>
|
|
48731
|
+
|
|
48732
|
+
<dl>
|
|
48733
|
+
<dd>
|
|
48734
|
+
|
|
48735
|
+
**transaction_id:** `String`
|
|
48736
|
+
|
|
48737
|
+
</dd>
|
|
48738
|
+
</dl>
|
|
48739
|
+
|
|
48740
|
+
<dl>
|
|
48741
|
+
<dd>
|
|
48742
|
+
|
|
48743
|
+
**reason:** `String`
|
|
48744
|
+
|
|
48745
|
+
</dd>
|
|
48746
|
+
</dl>
|
|
48747
|
+
|
|
48748
|
+
<dl>
|
|
48749
|
+
<dd>
|
|
48750
|
+
|
|
48751
|
+
**request_options:** `Nordlet::Bank::RequestOptions`
|
|
48752
|
+
|
|
48753
|
+
</dd>
|
|
48754
|
+
</dl>
|
|
48755
|
+
</dd>
|
|
48756
|
+
</dl>
|
|
48757
|
+
|
|
48758
|
+
|
|
48759
|
+
</dd>
|
|
48760
|
+
</dl>
|
|
48761
|
+
</details>
|
|
48762
|
+
|
|
48763
|
+
<details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">transactions_unignore</a>(request) -> Nordlet::Bank::Types::TransactionsUnignoreBankResponse</code></summary>
|
|
48764
|
+
<dl>
|
|
48765
|
+
<dd>
|
|
48766
|
+
|
|
48767
|
+
#### 📝 Description
|
|
48768
|
+
|
|
48769
|
+
<dl>
|
|
48770
|
+
<dd>
|
|
48771
|
+
|
|
48772
|
+
<dl>
|
|
48773
|
+
<dd>
|
|
48774
|
+
|
|
48775
|
+
Return an ignored bank transaction to status new and clear its reason. Answers 409 when the line is not ignored.
|
|
48656
48776
|
</dd>
|
|
48657
48777
|
</dl>
|
|
48658
48778
|
</dd>
|
|
@@ -48667,7 +48787,7 @@ Undo a match. A payment matched to an invoice, or a line posted by an import tem
|
|
|
48667
48787
|
<dd>
|
|
48668
48788
|
|
|
48669
48789
|
```ruby
|
|
48670
|
-
client.bank.
|
|
48790
|
+
client.bank.transactions_unignore(transaction_id: "transactionId")
|
|
48671
48791
|
```
|
|
48672
48792
|
</dd>
|
|
48673
48793
|
</dl>
|
|
@@ -48690,6 +48810,71 @@ client.bank.transactions_unmatch(transaction_id: "transactionId")
|
|
|
48690
48810
|
<dl>
|
|
48691
48811
|
<dd>
|
|
48692
48812
|
|
|
48813
|
+
**request_options:** `Nordlet::Bank::RequestOptions`
|
|
48814
|
+
|
|
48815
|
+
</dd>
|
|
48816
|
+
</dl>
|
|
48817
|
+
</dd>
|
|
48818
|
+
</dl>
|
|
48819
|
+
|
|
48820
|
+
|
|
48821
|
+
</dd>
|
|
48822
|
+
</dl>
|
|
48823
|
+
</details>
|
|
48824
|
+
|
|
48825
|
+
<details><summary><code>client.bank.<a href="/lib/nordlet/bank/client.rb">reconciliation_get</a>(request) -> Nordlet::Bank::Types::ReconciliationGetBankResponse</code></summary>
|
|
48826
|
+
<dl>
|
|
48827
|
+
<dd>
|
|
48828
|
+
|
|
48829
|
+
#### 📝 Description
|
|
48830
|
+
|
|
48831
|
+
<dl>
|
|
48832
|
+
<dd>
|
|
48833
|
+
|
|
48834
|
+
<dl>
|
|
48835
|
+
<dd>
|
|
48836
|
+
|
|
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.
|
|
48838
|
+
</dd>
|
|
48839
|
+
</dl>
|
|
48840
|
+
</dd>
|
|
48841
|
+
</dl>
|
|
48842
|
+
|
|
48843
|
+
#### 🔌 Usage
|
|
48844
|
+
|
|
48845
|
+
<dl>
|
|
48846
|
+
<dd>
|
|
48847
|
+
|
|
48848
|
+
<dl>
|
|
48849
|
+
<dd>
|
|
48850
|
+
|
|
48851
|
+
```ruby
|
|
48852
|
+
client.bank.reconciliation_get(
|
|
48853
|
+
bank_account_id: "bankAccountId",
|
|
48854
|
+
date: "2026-07-01"
|
|
48855
|
+
)
|
|
48856
|
+
```
|
|
48857
|
+
</dd>
|
|
48858
|
+
</dl>
|
|
48859
|
+
</dd>
|
|
48860
|
+
</dl>
|
|
48861
|
+
|
|
48862
|
+
#### ⚙️ Parameters
|
|
48863
|
+
|
|
48864
|
+
<dl>
|
|
48865
|
+
<dd>
|
|
48866
|
+
|
|
48867
|
+
<dl>
|
|
48868
|
+
<dd>
|
|
48869
|
+
|
|
48870
|
+
**bank_account_id:** `String`
|
|
48871
|
+
|
|
48872
|
+
</dd>
|
|
48873
|
+
</dl>
|
|
48874
|
+
|
|
48875
|
+
<dl>
|
|
48876
|
+
<dd>
|
|
48877
|
+
|
|
48693
48878
|
**date:** `String`
|
|
48694
48879
|
|
|
48695
48880
|
</dd>
|
|
@@ -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,
|
|
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>
|
|
@@ -56935,7 +57190,7 @@ client.billing.transactions_list
|
|
|
56935
57190
|
<dl>
|
|
56936
57191
|
<dd>
|
|
56937
57192
|
|
|
56938
|
-
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,
|
|
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.
|
|
56939
57194
|
</dd>
|
|
56940
57195
|
</dl>
|
|
56941
57196
|
</dd>
|
|
@@ -57227,7 +57482,7 @@ client.account.logout
|
|
|
57227
57482
|
<dl>
|
|
57228
57483
|
<dd>
|
|
57229
57484
|
|
|
57230
|
-
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.
|
|
57231
57486
|
</dd>
|
|
57232
57487
|
</dl>
|
|
57233
57488
|
</dd>
|
|
@@ -57955,7 +58210,7 @@ client.account.locale_set(locale: "en")
|
|
|
57955
58210
|
<dl>
|
|
57956
58211
|
<dd>
|
|
57957
58212
|
|
|
57958
|
-
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.
|
|
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.
|
|
57959
58214
|
</dd>
|
|
57960
58215
|
</dl>
|
|
57961
58216
|
</dd>
|
|
@@ -58367,7 +58622,7 @@ client.account.companies_select(company_id: "companyId")
|
|
|
58367
58622
|
<dl>
|
|
58368
58623
|
<dd>
|
|
58369
58624
|
|
|
58370
|
-
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.
|
|
58371
58626
|
</dd>
|
|
58372
58627
|
</dl>
|
|
58373
58628
|
</dd>
|
|
@@ -58421,7 +58676,7 @@ client.account.companies_profile
|
|
|
58421
58676
|
<dl>
|
|
58422
58677
|
<dd>
|
|
58423
58678
|
|
|
58424
|
-
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.
|
|
58425
58680
|
</dd>
|
|
58426
58681
|
</dl>
|
|
58427
58682
|
</dd>
|
|
@@ -59386,6 +59641,146 @@ client.account.profile_update
|
|
|
59386
59641
|
</dl>
|
|
59387
59642
|
|
|
59388
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
|
+
|
|
59389
59784
|
</dd>
|
|
59390
59785
|
</dl>
|
|
59391
59786
|
</details>
|