These docs are for v1.0. Click to read the latest docs for v2.0.
added

V2 - E-Invoices Import Endpoint

We are happy to announce the introduction of the e-invoices import endpoint. This new BETA feature allows you to programmatically import electronic invoices into Pennylane. Refer to the api docs for more details.

New API endpoint for importing e-invoices

A new endpoint POST /api/external/v2/e-invoices/imports has been added to import electronic invoices directly into the system. This endpoint supports both customer and supplier invoice types.

Authentication & Scopes

  • Write Operations: e_invoices:all (required for importing)

E-Invoices Import endpoint

1. Import e-invoice

  • Route: POST /api/external/v2/e-invoices/imports
  • Scopes: e_invoices:all
  • Content-Type: multipart/form-data

Request Parameters:

  • file (required): The e-invoice file in electronic format (binary)
  • type (required): Invoice type - either customer or supplier

Response (201 - Success):

{
  "url": "https://app.pennylane.com/api/external/v2/INVOICE_TYPE/12345" 
   # INVOICE_TYPE = customer_invoices OR supplier_invoices based on the type passed as a parameter in the request body
}

The returned URL can be used to access the imported document.

Note: This endpoint is currently in BETA and may be subject to changes.