curl --request PUT \
--url https://app.pennylane.com/api/external/v2/supplier_invoices/{id}/validate_accounting \
--header 'Authorization: Bearer <token>'
{
"id": 123,
"label": "Demo label",
"invoice_number": "F20230001",
"currency": "EUR",
"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",
"currency_tax": "34.0",
"tax": "34.0",
"reconciled": false,
"accounting_status": "draft",
"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"
},
"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"
},
"payment_status": "to_be_processed",
"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",
"archived_at": "2023-08-30T10:08:08.146343Z",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}
Turn the supplier invoice into a Complete state.
ℹ️ This endpoint requires one of the following scopes:
supplier_invoices:all
curl --request PUT \
--url https://app.pennylane.com/api/external/v2/supplier_invoices/{id}/validate_accounting \
--header 'Authorization: Bearer <token>'
{
"id": 123,
"label": "Demo label",
"invoice_number": "F20230001",
"currency": "EUR",
"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",
"currency_tax": "34.0",
"tax": "34.0",
"reconciled": false,
"accounting_status": "draft",
"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"
},
"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"
},
"payment_status": "to_be_processed",
"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",
"archived_at": "2023-08-30T10:08:08.146343Z",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}
The access token received from the authorization server in the OAuth 2.0 flow.
A Supplier Invoice
The response is of type object
.
Was this page helpful?