# ✅ Accept an inbound invoice

Accept an inbound invoice, in full or in part.
Supplying `details.partial_approval` approves only part of the invoice: it reports the
invoice as partially approved, and states the motive and the amounts approved and not approved.
An amount must state the VAT rate it applies to, unless the invoice charges a single one.

Endpoint: POST /invoicing/invoices/{invoice_id}/accept
Version: 0.29.6
Security: APIKeyHeader

## Path parameters:

  - `invoice_id` (string, required)

## Header parameters:

  - `X-PDP-Client-Id` (string, required)
    ID of the PDP Client for which the operation is performed

## Request fields (application/json):

  - `details` (any)
    Acceptance details. Supplying `partial_approval` approves only part of the invoice and reports it as partially approved instead of approved.

  - `details.comment` (any)
    Optional free-text note attached to the acceptance (MDT-126).

  - `details.partial_approval` (any)
    Approve only part of the invoice: the motive and the amounts approved and not approved. Omit to approve the invoice in full.

  - `details.partial_approval.reason_code` (string, required)
    The motives (MDT-113) a partial approval (206) may carry.
BR-FR-CDV-CL-09 restricts the motive to the codes the status allows; these thirteen are
the ones the AFNOR Annexe A v1.4 motive table marks for "Approuvée partiellement". A code
valid on a refusal or a rejection is not necessarily valid here, which is why these live
apart from RejectionReasonCode rather than widening it.
Annexe A spells the order-number motive CMD_ERR where Annexe 7 v1.9 spells it CMD_EJ_ERR;
the CDV annex is the one BR-FR-CDV-CL-09 points at.
    Enum: "ART_ERR", "AUTRE", "CMD_ERR", "CODE_ROUTAGE_ERR", "LIVR_INCOMP", "MODPAI_ERR", "PU_ERR", "QTE_ERR", "QUALITE_ERR", "REF_CT_ABSENT", "REF_ERR", "REM_ERR", "SIRET_ERR"

  - `details.partial_approval.reason_text` (any)
    Reason label (MDT-114).

  - `details.partial_approval.amounts` (array, required)
    The approved and unapproved amounts (MDG-43). At least one is required: a partial approval that does not say which part is approved cannot be acted on.

  - `details.partial_approval.amounts.type` (string, required)
    Amount type codes (MDT-207) qualifying an amount reported on a partial approval (206).
These are the four approval codes of BR-FR-CDV-CL-11's MDT-207 list — an approved and a
non-approved amount, each stated either excluding or including VAT. The rest of that list
qualifies other statuses (a collection, a payment, a discount) and says nothing about what
an approval covers.
    Enum: "MAP", "MAPTTC", "MNA", "MNATTC"

  - `details.partial_approval.amounts.amount` (any, required)

  - `details.partial_approval.amounts.tax_rate` (any)
    VAT rate the amount applies to (MDT-224), mandatory alongside an amount per rule P1.18. Optional only when the invoice charges a single VAT rate.

## Response 200 fields (application/json):

  - `invoice_id` (string, required)

  - `status` (string, required)

  - `success` (boolean, required)

