Update a supplier invoice
Changed onThis endpoint allows you to update a supplier invoice.
ℹ️ This endpoint requires the following scope: supplier_invoices:all
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/supplier_invoices/{id}
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token scopes: supplier_invoices:all
Path parameters
Supplier invoice identifier
Headers
Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.
Request body
Example request
{
"supplier_id": 456,
"date": "2021-01-30",
"deadline": "2021-01-30",
"invoice_number": "F20230001",
"label": "Custom accounting label",
"currency_amount_before_tax": "100.00",
"currency_amount": "120.00",
"amount": "120.00",
"currency_tax": "20.00",
"tax": "20.00",
"transaction_reference": {
"banking_provider": "bank",
"provider_field_name": "label",
"provider_field_value": "invoice_number"
},
"invoice_lines": {
"create": [
{
"label": "Demo label",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor",
"currency_amount": "120.00",
"amount": "120.00",
"currency_tax": "20.00",
"tax": "20.00",
"ledger_account_id": 1255,
"vat_rate": "FR_200",
"imputation_dates": {
"start_date": "2020-06-30",
"end_date": "2021-06-30"
},
"performance_period": {
"start_date": "2023-07-01",
"end_date": "2023-07-31"
},
"ledger_entry_line": {
"label": "Demo label"
}
}
],
"update": [
{
"id": 123,
"label": "Demo label",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor",
"currency_amount": "120.00",
"amount": "120.00",
"currency_tax": "20.00",
"tax": "20.00",
"ledger_account_id": 1255,
"vat_rate": "FR_200",
"imputation_dates": {
"start_date": "2020-06-30",
"end_date": "2021-06-30"
},
"performance_period": {
"start_date": "2023-07-01",
"end_date": "2023-07-31"
},
"ledger_entry_line": {
"label": "Demo label"
}
}
],
"delete": [
{
"id": 123
}
]
},
"external_reference": "FR123"
}Response
The updated supplier invoice
Example response
{
"id": 123,
"label": "Demo label",
"invoice_number": "F20230001",
"amount": "230.32",
"currency_amount": "230.32",
"currency_amount_before_tax": "196.32",
"exchange_rate": "1.0",
"date": "2023-08-30",
"deadline": "2023-09-30",
"performance_date": "2023-07-31",
"currency_tax": "34.0",
"tax": "34.0",
"filename": "my_file.pdf",
"public_file_url": "https://app.pennylane.com/public/invoice/pdf?encrypted_id=bzjoVJe...3D%3D",
"remaining_amount_with_tax": "20.0",
"remaining_amount_without_tax": "16.0",
"ledger_entry": {
"id": 42003
},
"supplier": {
"id": 456,
"url": "https://app.pennylane.com/api/external/v2/suppliers/42"
},
"payment_method_ledger_account": {
"id": 1255,
"url": "https://app.pennylane.com/api/external/v2/ledger_accounts/1255"
},
"invoice_lines": {
"url": "https://app.pennylane.com/api/external/v2/supplier_invoices/42/invoice_lines"
},
"categories": {
"url": "https://app.pennylane.com/api/external/v2/supplier_invoices/42/categories"
},
"transaction_reference": {
"banking_provider": "bank",
"provider_field_name": "label",
"provider_field_value": "invoice_number"
},
"payments": {
"url": "https://app.pennylane.com/api/external/v2/supplier_invoices/42/payments"
},
"matched_transactions": {
"url": "https://app.pennylane.com/api/external/v2/supplier_invoices/42/matched_transactions"
},
"external_reference": "FR123",
"import_source": {
"source": "dropbox",
"path": "/ACCOUNTING INVOICES/2024/invoice.pdf"
},
"e_invoicing": {
"source_file_url": "https://app.pennylane.com/rails/active_storage/blobs/redirect/abc123/invoice.xml",
"electronic_billing_address": "0009:123456789"
},
"archived_at": "2023-08-30T10:08:08.146343Z",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}Changes
- breaking
the
//request property type changed from no type tostring - warning
added the new
VESenum value to theresponse property for the response status - info
added the new optional
headerrequest parameterX-Company-Id - info
added the new optional request property
/// - info
added the new optional request property
/// - info
added the new
DE_intracom_exempt_BU0233enum value to the request property/// - info
added the new
DE_intracom_exempt_BU0233enum value to the request property/// - info
added the new
ES_intracom_sales_goodsenum value to the request property/// - info
added the new
ES_intracom_sales_goodsenum value to the request property/// - info
added the new
ES_intracom_sales_servicesenum value to the request property/// - info
added the new
ES_intracom_sales_servicesenum value to the request property/// - info
added the new
ES_isp_purchases_100enum value to the request property/// - info
added the new
ES_isp_purchases_100enum value to the request property/// - info
added the new
ES_isp_purchases_210enum value to the request property/// - info
added the new
ES_isp_purchases_210enum value to the request property/// - info
added the new
ES_isp_salesenum value to the request property/// - info
added the new
ES_isp_salesenum value to the request property/// - info
added the new
ES_suplidoenum value to the request property/// - info
added the new
ES_suplidoenum value to the request property/// - info
added the new
VESenum value to the request property - info
added the new
helloassoenum value to the request property/ - info
added the new
order_idenum value to the request property/ - info
added the required property
/to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking