POST
/
api
/
external
/
v2
/
supplier_invoices
/
import
{
  "amount": "230.32",
  "archived_at": "2023-08-30T10:08:08.146343Z",
  "categories": {
    "url": "https://app.pennylane.com/api/external/v2/supplier_invoices/42/categories"
  },
  "created_at": "2023-08-30T10:08:08.146343Z",
  "currency": "EUR",
  "currency_amount": "230.32",
  "currency_amount_before_tax": "196.32",
  "currency_tax": "34.0",
  "date": "2023-08-30",
  "deadline": "2023-09-30",
  "exchange_rate": "1.0",
  "external_reference": "FR123",
  "filename": "my_file.pdf",
  "id": 123,
  "invoice_lines": {
    "url": "https://app.pennylane.com/api/external/v2/supplier_invoices/42/invoice_lines"
  },
  "invoice_number": "F20230001",
  "label": "Demo label",
  "ledger_entry": {
    "id": 42003
  },
  "matched_transactions": {
    "url": "https://app.pennylane.com/api/external/v2/supplier_invoices/42/matched_transactions"
  },
  "payment_status": "payment_emitted",
  "payments": {
    "url": "https://app.pennylane.com/api/external/v2/supplier_invoices/42/payments"
  },
  "public_file_url": "https://app.pennylane.com/public/invoice/pdf?encrypted_id=bzjoVJe...3D%3D",
  "reconciled": false,
  "remaining_amount_with_tax": "20.0",
  "remaining_amount_without_tax": "16.0",
  "supplier": {
    "id": 456,
    "url": "https://app.pennylane.com/api/external/v2/suppliers/42"
  },
  "tax": "34.0",
  "transaction_reference": {
    "banking_provider": "stripe",
    "provider_field_name": "label",
    "provider_field_value": "invoice_number"
  },
  "updated_at": "2023-08-30T10:08:08.146343Z"
}

Body

application/json

Response

201
application/json

The imported supplier invoice

The response is of type object.