Facture Électronique France
v0.9.1MCP server for French e-invoicing (XP Z12-013).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
submit_flow Submit Flow
Submit an electronic invoice, e-reporting, or lifecycle status to the Approved Platform. Scope: Compatible Solution (CS) mode, no payload validation. See README "Scope" section. This is the primary action for sending B2B invoices (Factur-X, UBL, CII), B2BInt/B2C e-reportings, or CDAR lifecycle status messages. HUMAN-IN-THE-LOOP: This tool requires explicit user confirmation. Call without confirmation_token first; show the returned summary to the user; then call again with the provided token to execute the submission. BEHAVIOR: - Submission is asynchronous: the AP returns a flowId and an in…
| Parameter | Type | Description |
|---|---|---|
file_base64 * | string | File content encoded in base64. Accepted formats: Factur-X (PDF/A-3 with embedded XML), UBL 2.1 (XML), UN/CEFACT CII D22B (XML). Maximum file size is defined by the Approved Platform (typically a few… |
file_name * | string | File name with extension (e.g. 'invoice_2024_001.xml', 'invoice_2024_001.pdf'). The AP uses the extension to detect the format when flow_syntax is ambiguous. |
flow_syntax * | string | Syntax/format of the submitted file (required). Common values: FacturX — PDF/A-3 with embedded Factur-X XML; UBL — UBL 2.1 XML invoice or credit note; CII — UN/CEFACT CII D22B XML invoice; CDAR… |
flow_type * | string | Business type of the submitted flow. Common values: Invoice, CreditNote, DebitNote, EReportingB2B, EReportingB2C, LifecycleStatus. Refer to your Approved Platform's documentation for the exhaustive li… |
processing_rule * | string | Processing rule that determines routing and PPF transmission obligations. B2B: domestic invoice between French VAT-registered entities (routed + reported to PPF). B2BInt: international invoice or cros… |
confirmation_token | Confirmation token returned by a previous call to this tool. Required to actually submit; omit on the first call to receive a summary and token for user approval. | |
tracking_id | Sender-assigned tracking identifier (free-form, maxLength 36). Recommended: use the invoice number or an internal UUID. Allows retrieving this specific flow later via search_flows(tracking_id=...). |
search_flows Search Flows
Search flows (invoices, statuses, e-reportings) in the Approved Platform by criteria: flow type, status, processingRule, period, trackingId. Pagination via updatedAfter: use the 'nextUpdatedAfter' field from the response as the updated_after parameter value to get the next page.
| Parameter | Type | Description |
|---|---|---|
flow_type | Filter by flow type: Invoice, CreditNote, EReportingB2B, EReportingB2C, LifecycleStatus, etc. | |
limit | integer | Maximum number of flows to return (1-500, default 50). |
processing_rule | Filter by processing rule: B2B, B2BInt, B2C, OutOfScope, ArchiveOnly, NotApplicable. | |
status | Filter by flow status. Examples: Deposited, Processing, Delivered, Rejected, Approved, Refused. Refer to the AP documentation for the complete list. | |
tracking_id | Filter by trackingId (sender free-form identifier, maxLength 36). | |
updated_after | Pagination: only return flows updated after this date/time (ISO 8601 format, e.g. 2024-09-01T00:00:00Z). Use the 'nextUpdatedAfter' value from the previous response to paginate. |
get_flow Get Flow
Retrieve a flow by its identifier. docType allows choosing between JSON metadata (Metadata), the original document (Original), the converted document (Converted), or the readable representation (ReadableView). By default, returns the JSON metadata (status, dates, identifiers).
| Parameter | Type | Description |
|---|---|---|
flow_id * | string | Flow identifier assigned by the Approved Platform (returned by submit_flow or search_flows, maxLength 36). |
doc_type | string | Document type to retrieve: Metadata (default, returns the flow's JSON metadata — recommended), Original (original submitted document, returned as base64), Converted (document converted by the AP, re… |
submit_lifecycle_status Submit Lifecycle Status
Emit a processing status on a received invoice: Refused, Approved, PartiallyApproved, Disputed, Suspended, Cashed, PaymentTransmitted, Cancelled. Refused and Cashed are mandatory transmissions to PPF. Reason is mandatory for Refused, Disputed, PartiallyApproved, and Suspended. Builds a real CDAR (CrossDomainAcknowledgementAndResponse, XP Z12-014 v1.4) document — see mcp_facture_electronique_fr.clients.flow_client for the MDT-* field mapping this depends on. HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again wi…
| Parameter | Type | Description |
|---|---|---|
invoice_id * | string | BT-1 invoice number of the referenced invoice (CDAR MDT-87). |
invoice_issue_date * | string | BT-2 invoice date, ISO 8601 (YYYY-MM-DD) (CDAR MDT-100). |
issuer_party_id * | string | GlobalID (e.g. SIREN) of the party emitting this status — you or the counterparty, whichever this MCP server acts on behalf of (CDAR MDT-38). |
issuer_party_name * | string | Name of the emitting party (CDAR MDT-39). |
issuer_role_code * | string | Role of the emitting party: SE (seller) or BY (buyer) (CDAR MDT-40). |
recipient_party_id * | string | GlobalID of the counterparty receiving this status (CDAR MDT-57). |
recipient_party_name * | string | Name of the counterparty (CDAR MDT-58). |
recipient_role_code * | string | Role of the counterparty — opposite of issuer_role_code (CDAR MDT-59). |
referenced_flow_id * | string | Identifier of the invoice flow to which this status applies (flowId returned upon receipt, maxLength 36). Used only for the platform's own flow tracking (flowInfo.trackingId) — not part of the CDAR… |
status_code * | string | Lifecycle status code to emit. Values defined in XP Z12-014 v1.4 (June 2026): Refused (transmitted to PPF), Approved, PartiallyApproved, Disputed, Suspended, Cashed (transmitted to PPF), PaymentTransm… |
confirmation_token | Confirmation token from a previous call. Omit on the first call; supply on the second call to execute. | |
currency | string | ISO 4217 currency code for payment_amount (default EUR). |
included_note | Free-text note (CDAR IncludedNote/Content) per the bundled Rejetee worked example. | |
invoice_type_code | string | BT-3 invoice type code (CDAR MDT-91, default '380' = Invoice). |
party_id_scheme | string | schemeID attribute shared by both party GlobalIDs (default '0002' = SIRENE, per every bundled AFNOR worked example). |
payment_amount | Payment amount (decimal string, e.g. '1250.00'). Provided for Cashed and PaymentTransmitted statuses. | |
payment_date | Payment date (ISO 8601 format: YYYY-MM-DD). Provided for Cashed and PaymentTransmitted statuses. | |
reason | Status reason (CDAR MDT-114), mandatory per XP Z12-014 Annex A for Refused, Disputed, PartiallyApproved, and Suspended. Free text. | |
reason_code | Coded reason (CDAR MDT-113) from the per-status motif list in XP Z12-014 Annex A 'Tableau des motifs de STATUTS' (e.g. TX_TVA_ERR, DOUBLON). Not validated against that list. | |
receipt_datetime | Original receipt timestamp of the referenced invoice, ISO 8601 (CDAR MDT-95). Defaults to the current time if omitted — supply the real value when known for an accurate audit trail. | |
recipient_uri | Counterparty's electronic address on the CEF network, if known (CDAR MDT-73). | |
requested_action | Free-text requested action (CDAR MDT-122). | |
requested_action_code | Coded requested action (CDAR MDT-121), e.g. 'CNF' ('Créer un Avoir total') per the bundled En_litige worked example. Typically used with Disputed. |
healthcheck_flow Healthcheck Flow
Check the availability of the Approved Platform's Flow Service. Returns the operational status of the service (ok/degraded/unavailable). Use before an invoice submission session to ensure the AP is reachable.
validate_ereporting_xml Validate Ereporting Xml
Validate a DGFiP e-reporting (Flux 10) FRR XML payload. Scope: XSD schema validation only, no business-rule checks. See README "Scope" section. Checks the XML against the DGFiP Spécifications Externes v3.2 ereporting.xsd. Returns validation result with errors if any. Use this before submitting to catch structural problems early. Validation levels (in order of preference): - xsd — full schema validation - wellformedness — XML failed to parse (malformed or unsafe input) - none — XSD files not found on disk
| Parameter | Type | Description |
|---|---|---|
xml_content * | string | FRR XML content to validate. Must be a complete Report document per DGFiP Spécifications Externes v3.2 ereporting.xsd. |
submit_transaction_report Submit Transaction Report
Submit a DGFiP Flux 10.1 / 10.3 transaction e-reporting flow. Scope: Compatible Solution (CS) mode, no payload validation. See README "Scope" section. Builds a FRR XML payload conforming to DGFiP Spécifications Externes v3.2 (transaction.xsd / ereporting.xsd) and submits it to the Approved Platform via POST /v1/flows with flowSyntax="FRR". Use for: - International B2B outbound sales (processing_rule=B2BInt, flow_type=IndividualCustomerTransactionReport) - International B2B inbound purchases (processing_rule=B2BInt, flow_type=UnitarySupplierTransactionReport) - B2C individual…
| Parameter | Type | Description |
|---|---|---|
flow_type * | string | XP Z12-013 FlowType for this e-reporting submission: IndividualCustomerTransactionReport — Flux 10.1 individual B2C or intl B2B AggregatedCustomerTransactionReport — Flux 10.3 aggregated B2C… |
invoices_json * | string | JSON array of invoice transaction records. Each invoice in the `invoices` JSON list must have: Required fields: id TT-19 Invoice number / identifier issue_date… |
issue_datetime * | string | TT-3: Transmission creation timestamp, e.g. '20250115T120000+0100'. |
issuer_id * | string | TT-13: SIREN or SIRET of the French taxable entity (déclarant). |
issuer_id_scheme * | string | TT-12: ID scheme for issuer, typically 'SIREN' or 'SIRET'. |
issuer_name * | string | TT-14: Legal name of the declarant. |
issuer_role_code * | string | TT-15: Issuer role code. Use 'MOA' (assujetti / declarant) or 'OD' (obligataire délégant). |
period_end * | string | TT-18: Report period end date in ISO 8601 format (e.g. '2025-01-31'). |
period_start * | string | TT-17: Report period start date in ISO 8601 format (e.g. '2025-01-01'). |
processing_rule * | string | XP Z12-013 ProcessingRule: B2BInt — international B2B e-reporting B2C — B2C e-reporting |
sender_id * | string | TT-8: Identifier of the CS/PDP platform submitting the report. |
sender_id_scheme * | string | TT-7: ID scheme for sender, e.g. 'SIREN', 'SIRET', 'TVA', '0088'. |
sender_name * | string | TT-9: Legal name of the sender platform. |
sender_role_code * | string | TT-10: Sender role code. Use 'CS' (Compatible Solution), 'PDP', 'OD' (obligataire délégant), or 'MOA' (assujetti). |
transmission_id * | string | TT-1: Unique identifier for this transmission (generated by sender). |
type_code * | string | TT-4: Transmission type code, e.g. '380' (invoice report). |
confirmation_token | Confirmation token returned by a prior pending response. | |
tracking_id | Optional external tracking identifier for this flow. | |
transmission_name | TT-2: Optional human-readable name for the transmission. |
submit_payment_report Submit Payment Report
Submit a DGFiP Flux 10.2 / 10.4 payment e-reporting flow. Scope: Compatible Solution (CS) mode, no payload validation. See README "Scope" section. Builds a FRR XML payload conforming to DGFiP Spécifications Externes v3.2 (payment.xsd / ereporting.xsd) and submits it to the Approved Platform via POST /v1/flows with flowSyntax="FRR". Use for: - International B2B payment reporting (processing_rule=B2BInt, flow_type=UnitaryCustomerPaymentReport) - B2C individual payment reporting (processing_rule=B2C, flow_type=UnitaryCustomerPaymentReport) - Aggregated B2C payment reporting (pro…
| Parameter | Type | Description |
|---|---|---|
flow_type * | string | XP Z12-013 FlowType for this payment report: UnitaryCustomerPaymentReport — Flux 10.2 unit payment AggregatedCustomerPaymentReport — Flux 10.4 aggregated B2C payment |
invoices_json * | string | JSON array of payment records. Each invoice in the `invoices` JSON list must have: Required fields: invoice_id TT-91 Invoice number (reference to the original invoice) issue_date TT-102 I… |
issue_datetime * | string | TT-3: Transmission creation timestamp, e.g. '20250115T120000+0100'. |
issuer_id * | string | TT-13: SIREN or SIRET of the French declarant. |
issuer_id_scheme * | string | TT-12: ID scheme for issuer: 'SIREN' or 'SIRET'. |
issuer_name * | string | TT-14: Legal name of the declarant. |
issuer_role_code * | string | TT-15: Issuer role: 'MOA' or 'OD'. |
period_end * | string | TT-90: Report period end date (ISO 8601, e.g. '2025-01-31'). |
period_start * | string | TT-89: Report period start date (ISO 8601, e.g. '2025-01-01'). |
processing_rule * | string | B2BInt for international B2B payments, B2C for B2C payments. |
sender_id * | string | TT-8: Identifier of the CS/PDP platform submitting the report. |
sender_id_scheme * | string | TT-7: ID scheme for sender, e.g. 'SIREN', 'SIRET'. |
sender_name * | string | TT-9: Legal name of the sender platform. |
sender_role_code * | string | TT-10: Sender role code: 'CS', 'PDP', 'OD', or 'MOA'. |
transmission_id * | string | TT-1: Unique identifier for this transmission (generated by sender). |
type_code * | string | TT-4: Transmission type code, e.g. '380'. |
confirmation_token | Confirmation token returned by a prior pending response. | |
tracking_id | Optional external tracking identifier for this flow. | |
transmission_name | TT-2: Optional human-readable name for the transmission. |
validate_facturx Validate Facturx
Validate a Factur-X CII XML document against its profile's Schematron ruleset. Scope: Schematron (SVRL) business-rule validation only, no XSD structural check. Returns is_valid, errors, and warnings (rule_id, location, text). Use this before embedding the XML into a PDF/A-3 or submitting via submit_flow. Requires the optional `saxonche` extra (FR-XSLT2-1, resolved in mcp-einvoicing-core 1.14.0): the bundled Factur-X 1.09.2 Schematron stylesheets require XSLT 2.0, which lxml/libxslt (XSLT 1.0 only) cannot compile. Install with `pip install mcp-facture-electronique-fr[xslt2]`. If it is missing…
| Parameter | Type | Description |
|---|---|---|
profile * | string | Factur-X profile to validate against. One of: MINIMUM, BASICWL, BASIC, EN16931, EXTENDED, EXTENDED-CTC-FR. EXTENDED-CTC-FR is validated against the generic EXTENDED ruleset only — AFNOR has not publ… |
xml_content * | string | Factur-X CII XML content to validate (the embedded XML, not the PDF/A-3). |
search_company Search Company
Search legal units (SIRENs) in the PPF Annuaire (POST /siren/recherche). A company must appear here before its establishments (SIRETs) or directory lines (ligne-annuaire) can be resolved. Prefer get_company_by_siren when the exact SIREN is already known.
| Parameter | Type | Description |
|---|---|---|
etat_administratif | Administrative status filter (etatAdministratif). | |
ignorer | integer | Number of results to skip for pagination (ignorer). |
limite | integer | Maximum number of results (limite). |
raison_sociale | Legal/trade name (partial match). Use when the SIREN is unknown. | |
siren | Exact SIREN (9 digits, no spaces). | |
type_entite | Entity type filter (typeEntite). |
get_company_by_siren Get Company By Siren
Look up a legal unit by SIREN (GET /siren/code-insee:{siren}).
| Parameter | Type | Description |
|---|---|---|
siren * | string | Exact SIREN (9 digits, no spaces). |
get_company_by_id_instance Get Company By Id Instance
Look up a legal unit by directory instance ID (GET /siren/id-instance:{id-instance}).
| Parameter | Type | Description |
|---|---|---|
id_instance * | string | Directory instance ID (idInstance) of the legal unit, from a previous search. |
search_establishment Search Establishment
Search establishments (SIRETs) in the PPF Annuaire (POST /siret/recherche).
| Parameter | Type | Description |
|---|---|---|
denomination | Establishment name (partial match). | |
etat_administratif | Administrative status filter (etatAdministratif). | |
ignorer | integer | Number of results to skip for pagination (ignorer). |
limite | integer | Maximum number of results (limite). |
siren | Parent SIREN (9 digits). Lists all establishments. | |
siret | Exact SIRET (14 digits, no spaces). |
get_establishment_by_siret Get Establishment By Siret
Look up an establishment by SIRET (GET /siret/code-insee:{siret}).
| Parameter | Type | Description |
|---|---|---|
siret * | string | Exact SIRET (14 digits, no spaces). |
get_establishment_by_id_instance Get Establishment By Id Instance
Look up an establishment by directory instance ID (GET /siret/id-instance:{id-instance}).
| Parameter | Type | Description |
|---|---|---|
id_instance * | string | Directory instance ID (idInstance) of the establishment, from a previous search. |
search_routing_code Search Routing Code
Search routing codes (POST /code-routage/recherche).
| Parameter | Type | Description |
|---|---|---|
etat_administratif | 'A' (active) or 'F' (closed). | |
identifiant_routage | Exact routing-code identifier (identifiantRoutage). | |
ignorer | integer | Number of results to skip for pagination (ignorer). |
libelle_code_routage | Routing code label (partial match). | |
limite | integer | Maximum number of results (limite). |
siret | Establishment SIRET (14 digits). |
get_routing_code_by_siret_and_code Get Routing Code By Siret And Code
Look up a routing code by SIRET and code (GET /code-routage/siret:{siret}/code:{identifiant-routage}).
| Parameter | Type | Description |
|---|---|---|
identifiant_routage * | string | Routing-code identifier (identifiantRoutage). |
siret * | string | Establishment SIRET (14 digits). |
get_routing_code_by_id_instance Get Routing Code By Id Instance
Look up a routing code by directory instance ID (GET /code-routage/id-instance:{id-instance}).
| Parameter | Type | Description |
|---|---|---|
id_instance * | string | Directory instance ID (idInstance) of the routing code. |
create_routing_code Create Routing Code
Create a routing code (POST /code-routage). HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.
| Parameter | Type | Description |
|---|---|---|
identifiant_routage * | string | Routing-code identifier to create (max 100 chars, pattern [-_/@a-zA-Z0-9]). |
libelle_code_routage * | string | Human-readable label for the routing code. |
nature_etablissement * | string | Whether the establishment is private or public. |
siret * | string | Establishment SIRET (14 digits) this routing code belongs to. |
type_identifiant_routage * | string | 4-digit type code for the routing-code identifier (typeIdentifiantRoutage). |
confirmation_token | Confirmation token from a previous call. Omit on the first call. | |
etat_administratif | string | 'A' (active) or 'F' (closed). |
gestion_engagement_juridique | Whether a legal-commitment number (engagement juridique) is mandatory. |
update_routing_code Update Routing Code
Partially update a routing code (PATCH /code-routage/id-instance:{id-instance}). Only provided fields are modified.
| Parameter | Type | Description |
|---|---|---|
id_instance * | string | Directory instance ID (idInstance) of the routing code. |
etat_administratif | New status. Omit to leave unchanged. | |
libelle_code_routage | New label. Omit to leave unchanged. | |
type_identifiant_routage | New 4-digit type code. Omit to leave unchanged. |
replace_routing_code Replace Routing Code
Fully replace a routing code (PUT /code-routage/id-instance:{id-instance}). Unlike update_routing_code, all fields are required and replace the existing object entirely. HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.
| Parameter | Type | Description |
|---|---|---|
etat_administratif * | string | 'A' (active) or 'F' (closed). |
id_instance * | string | Directory instance ID (idInstance) of the routing code. |
libelle_code_routage * | string | Label for the routing code. |
type_identifiant_routage * | string | 4-digit type code (typeIdentifiantRoutage). |
confirmation_token | Confirmation token from a previous call. Omit on the first call. |
search_directory_line Search Directory Line
Search directory lines (electronic invoice receiving addresses) (POST /ligne-annuaire/recherche). Call before sending an invoice to verify the recipient has a registered line and to identify their Approved Platform.
| Parameter | Type | Description |
|---|---|---|
identifiant_adressage | Exact addressing identifier (identifiantAdressage). | |
identifiant_routage | Routing-code identifier. | |
ignorer | integer | Number of results to skip for pagination (ignorer). |
limite | integer | Maximum number of results (limite). |
matricule_plateforme | 4-digit Approved Platform registration number. | |
siren | SIREN (9 digits). | |
siret | SIRET (14 digits). |
get_directory_line_by_code Get Directory Line By Code
Look up a directory line by addressing code (GET /ligne-annuaire/code:{identifiant-adressage}).
| Parameter | Type | Description |
|---|---|---|
identifiant_adressage * | string | Addressing identifier (identifiantAdressage). |
get_directory_line Get Directory Line
Look up a directory line by directory instance ID (GET /ligne-annuaire/id-instance:{id-instance}).
| Parameter | Type | Description |
|---|---|---|
id_instance * | string | Directory instance ID (idInstance) of the directory line. |
create_directory_line Create Directory Line
Create a directory line (electronic invoice receiving address) (POST /ligne-annuaire). HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.
| Parameter | Type | Description |
|---|---|---|
date_debut_effet * | string | Effective start date, ISO YYYY-MM-DD (dateDebutEffet). |
matricule_plateforme * | string | 4-digit Approved Platform registration number receiving the invoices. |
siren * | string | SIREN of the taxable entity creating this receiving address. |
confirmation_token | Confirmation token from a previous call. Omit on the first call. | |
date_fin_effet | Effective end date, ISO YYYY-MM-DD, if known. | |
identifiant_routage | Routing-code identifier to refine the address. | |
siret | Specific establishment SIRET. If absent, applies to the whole SIREN. | |
suffixe_adressage | Addressing suffix (suffixeAdressage). |
update_directory_line Update Directory Line
Partially update a directory line (PATCH /ligne-annuaire/id-instance:{id-instance}). Only provided fields are modified.
| Parameter | Type | Description |
|---|---|---|
id_instance * | string | Directory instance ID (idInstance) of the directory line. |
date_fin_effet | New effective end date, ISO YYYY-MM-DD. | |
matricule_plateforme | New Approved Platform registration number. |
replace_directory_line Replace Directory Line
Fully replace a directory line (PUT /ligne-annuaire/id-instance:{id-instance}). HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.
| Parameter | Type | Description |
|---|---|---|
id_instance * | string | Directory instance ID (idInstance) of the directory line. |
matricule_plateforme * | string | Approved Platform registration number. |
confirmation_token | Confirmation token from a previous call. Omit on the first call. | |
date_fin_effet | Effective end date, ISO YYYY-MM-DD, if any. |
delete_directory_line Delete Directory Line
Delete a directory line (DELETE /ligne-annuaire/id-instance:{id-instance}). HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.
| Parameter | Type | Description |
|---|---|---|
id_instance * | string | Directory instance ID (idInstance) of the directory line to delete. WARNING: this action is permanent. After deletion, senders will no longer be able to send invoices via this address. |
confirmation_token | Confirmation token from a previous call. Omit on the first call. |
check_ppf_annuaire_health Check Ppf Annuaire Health
Check the availability of the PPF Annuaire service (GET /healthcheck). Use before a directory-management session to ensure the service is reachable.
list_webhooks List Webhooks
List all webhook subscription IDs owned by the current OAuth2 token holder. Returns a list of webhook UUIDs. Use get_webhook with each ID to retrieve the full subscription details (callback URL, filters, authentication).
get_webhook Get Webhook
Retrieve the full details of a webhook subscription: callback URL, authentication mode, signature configuration, and metadata filters (flow type, direction, processing rule, ack status).
| Parameter | Type | Description |
|---|---|---|
webhook_uid * | string | UUID of the webhook subscription to retrieve. |
create_webhook Create Webhook
Subscribe to webhook notifications from the Approved Platform. The AP will POST event payloads to the callback URL whenever a flow matching the specified filters (flow type, direction, processing rule, ack status) is created or updated. HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.
| Parameter | Type | Description |
|---|---|---|
callback_url * | string | URL the Approved Platform will POST notifications to. Must be HTTPS and reachable from the AP network. |
flow_direction * | string | Direction filter: 'In' for incoming flows (from PDP to OD), 'Out' for outgoing flows (from OD to PDP). |
flow_type * | string | Flow type to subscribe to: CustomerInvoice, SupplierInvoice, CustomerInvoiceLC, SupplierInvoiceLC, AggregatedCustomerTransactionReport, UnitaryCustomerTransactionReport, AggregatedCustomerPaymentRepor… |
ack_status | Optional acknowledgement status filter: Pending, Ok, Error. | |
auth_client_id | Client ID for OAUTH2 authentication on the callback. | |
auth_client_secret | Client secret for OAUTH2 authentication on the callback. | |
auth_token_url | Token URL for OAUTH2 authentication on the callback. | |
auth_type | Authentication type for the callback: BASIC or OAUTH2. | |
auth_user_id | User ID for BASIC authentication on the callback URL. | |
auth_user_password | Password for BASIC authentication on the callback URL. | |
confirmation_token | Confirmation token from a previous call. Omit on the first call; supply on the second call to execute. | |
processing_rule | Optional processing rule filter: B2B, B2BInt, B2C, B2G, etc. | |
signature_algo | Signature algorithm: RS256, HS256, ECDSA, EDDSA_25519, RSA_PSS, EDDSA_448. | |
signature_key | Base64-encoded signing key for webhook payload verification. |
update_webhook Update Webhook
Update a webhook subscription's technical parameters (authentication, signature, custom headers). Metadata filters (flow type, direction) cannot be changed; delete and recreate the webhook instead. Only provided fields are modified (PATCH semantics).
| Parameter | Type | Description |
|---|---|---|
webhook_uid * | string | UUID of the webhook subscription to update. |
auth_client_id | Client ID for OAUTH2 authentication. | |
auth_client_secret | Client secret for OAUTH2 authentication. | |
auth_token_url | Token URL for OAUTH2 authentication. | |
auth_type | New authentication type for the callback: BASIC or OAUTH2. | |
auth_user_id | User ID for BASIC authentication. | |
auth_user_password | Password for BASIC authentication. | |
signature_algo | New signature algorithm. | |
signature_key | New base64-encoded signing key. |
delete_webhook Delete Webhook
Delete (unsubscribe from) a webhook. After deletion, the AP will stop sending notifications to the callback URL. HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.
| Parameter | Type | Description |
|---|---|---|
webhook_uid * | string | UUID of the webhook subscription to delete. |
confirmation_token | Confirmation token from a previous call. Omit on the first call; supply on the second call to execute. |