---
title: "Validate the accounting of a supplier invoice"
method: PUT
path: "/api/external/v2/supplier_invoices/{id}/validate_accounting"
tags: ["Supplier Invoices"]
---

# Validate the accounting of a supplier invoice

`PUT /api/external/v2/supplier_invoices/{id}/validate_accounting`

Turn the supplier invoice into a Complete state.

> ℹ️
> This endpoint requires the following scope: `supplier_invoices:all`

## Path parameters

- `id` integer, required

## Response `200`

A Supplier Invoice

- object
  - `id` integer, required — The ID of the supplier invoice
  - `label` string, nullable, required
  - `invoice_number` string, required
  - `currency` 'EUR' | 'USD' | 'GBP' | 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'FJD' | 'FKP' | 'GEL' | 'GGP' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'IMP' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JEP' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SLE' | 'SOS' | 'SRD' | 'STD' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'UYU' | 'UZS' | 'VEF' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XDR' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMK' | 'ZMW' | 'ZWL', required
  - `amount` string, required — Invoice amount (total value of the invoice in euros). If the currency is euro, `currency_amount` and `amount` are identical.
  - `currency_amount` string, required — Invoice currency amount (total value of the invoice in the currency of the invoice)
  - `currency_amount_before_tax` string, required — Invoice currency amount before tax (total value before tax of the invoice in the currency of the invoice)
  - `exchange_rate` string, required — Invoice exchange rate (used to convert the invoice to euros. If the invoice currency is euro it will be 1.0)
  - `date` string, date, nullable, required — Invoice issue date (ISO 8601)
  - `deadline` string, date, nullable, required — Invoice payment deadline (ISO 8601)
  - `currency_tax` string, required — Invoice taxable amount (in invoice currency)
  - `tax` string, required — Invoice taxable amount (in euros). If the currency is euro, `currency_tax` and `tax` are identical.
  - `reconciled` boolean, required — Whether the invoice has been reconciled or not
  - `accounting_status` 'draft' | 'archived' | 'entry' | 'validation_needed' | 'complete', required — The accounting state of the invoice. - `draft`: The invoice is not yet sent to the accountant. - `archived`: The invoice has been archived. - `entry`: The invoice is incomplete. Some information is missing on the invoice and needs to be completed by SME. - `validation_needed`: The invoice is sent to the accountant and needs validation. - `complete`: The invoice has been validated by the accountant.
  - `filename` string, nullable, required — Name of the file attached to the invoice
  - `public_file_url` string, nullable, required — Public URL of the invoice file. The URL will expire after 30 minutes.
  - `remaining_amount_with_tax` string, nullable, required — The remaining amount with VAT to pay for the invoice to be considered paid
  - `remaining_amount_without_tax` string, nullable, required — The remaining amount without VAT to pay for the invoice to be considered paid
  - `ledger_entry` object, required
    - `id` integer, required — Ledger entry identifier
  - `supplier` object, nullable, required
    - `id` integer, required
    - `url` string, required — URL to get the supplier.
  - `invoice_lines` object, required
    - `url` string, required — URL to get the invoice lines of the invoice.
  - `categories` object, required
    - `url` string, required — URL to get the categories of the invoice.
  - `transaction_reference` object, nullable, required — This reconciles the invoice with a transaction. See documentation about [automatic payment matching](https://pennylane.readme.io/v2.0/docs/automating-payment-matching).
    - `banking_provider` string, required — The banking provider for the transaction
    - `provider_field_name` string, required — Name of the field that you want to match
    - `provider_field_value` string, required — Value that you want to match
  - `payment_status` 'to_be_processed' | 'to_be_paid' | 'partially_paid' | 'payment_error' | 'payment_scheduled' | 'payment_in_progress' | 'payment_emitted' | 'payment_found' | 'paid_offline' | 'fully_paid', required
  - `paid` boolean, required — Invoice paid status (set to true if the invoice is paid)
  - `payments` object, required
    - `url` string, required — URL to get the payments of the invoice.
  - `matched_transactions` object, required
    - `url` string, required — URL to get the transactions of the invoice.
  - `external_reference` string, required — The unique external reference that was assigned during creation either by you or Pennylane
  - `e_invoicing` object, nullable, required — E-invoicing lifecycle information managed by the PA. Contains the current status and associated reason when applicable. This field is only present for invoices received through e-invoicing.
    - `status` union, required
      - 'waiting_for_validation' | 'approved' | 'rejected' | 'disputed' | 'refused' | 'collected' | 'partially_collected'
      - unknown
    - `reason` union, required
      - 'incorrect_vat_rate' | 'incorrect_unit_prices' | 'incorrect_billed_quantity' | 'incorrect_billed_item' | 'defective_delivered_item' | 'delivery_issue' | 'bank_details_error' | 'incorrect_payment_terms' | 'missing_legal_notice' | 'missing_contractual_reference' | 'recipient_error' | 'contract_completed' | 'duplicate_invoice' | 'incorrect_prices' | 'non_compliant_invoice'
      - unknown
    - `flow` object, nullable, required — The AFNOR flow associated with this e-invoice.
      - `id` string, uuid, required
    - `source_file_url` string, nullable, required — URL to download the original e-invoice file as received from the PA (CII, UBL, or Factur-X). Pennylane may replace the main invoice file with a generated PDF; this field preserves the untouched file received from the PA.
  - `archived_at` string, date-time, nullable, required — The time the invoice has been archived
  - `created_at` string, date-time, required — The time the invoice has been created
  - `updated_at` string, date-time, required — The last time the invoice has been updated

## Other responses

- `400` — Bad request
- `401` — Access token is missing or invalid
- `403` — Access to this resource forbidden
- `404` — The resource was not found
- `422` — Unprocessable content

---

[API](https://skmtc.net/pennylane/apis/company-v2.md) · [All operations](https://skmtc.net/pennylane/apis/company-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pennylane/company-v2/versions/a5b7236473c6/schema)
