Update a quote
Changed onThis endpoint allows you to update a quote
ℹ️ This endpoint requires the following scope: quotes:all
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/quotes/{id}
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token scopes: quotes:all
Path parameters
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
{
"date": "2023-08-30",
"deadline": "2024-08-30",
"customer_id": 42,
"quote_template_id": 42,
"pdf_invoice_free_text": "Additional free field",
"pdf_invoice_subject": "Quote title",
"pdf_description": "Quote description",
"special_mention": "Additional details",
"discount": {
"value": "25"
},
"invoice_lines": {
"create": [
{
"product_id": 42,
"quantity": 2,
"label": "Consulting fees",
"ledger_account_id": 1255,
"raw_currency_unit_price": "33.333334",
"unit": "piece",
"vat_rate": "FR_200",
"description": "Consulting services for August",
"section_rank": 1,
"discount": {
"value": "10"
},
"custom_fields": [
{
"name": "color"
}
]
}
],
"update": [
{
"id": 42,
"label": "Demo label",
"quantity": 12,
"ledger_account_id": 1255,
"raw_currency_unit_price": "33.333334",
"unit": "piece",
"vat_rate": "FR_200",
"product_id": 42,
"discount": {
"value": "25"
},
"section_rank": 1,
"custom_fields": [
{
"name": "color"
}
]
}
],
"delete": [
{
"id": 42
}
]
},
"external_reference": "FR123"
}Response
A quote
Example response
{
"id": 42,
"label": "Quote label",
"quote_number": "PLERYGTXYOIMZZ",
"amount": "230.32",
"currency_amount": "230.32",
"currency_amount_before_tax": "196.32",
"exchange_rate": "1.0",
"date": "2020-01-01",
"deadline": "2020-12-31",
"currency_tax": "34.0",
"tax": "34.0",
"discount": {
"value": "25"
},
"public_file_url": "https://app.pennylane.com/public/quote/pdf?encrypted_id=bzjoVJe...3D%3D",
"filename": "my_file.pdf",
"special_mention": "Additional details",
"customer": {
"id": 42,
"url": "https://app.pennylane.com/api/external/v2/customers/42"
},
"invoice_line_sections": {
"url": "https://app.pennylane.com/api/external/v2/quotes/42/invoice_line_sections"
},
"invoice_lines": {
"url": "https://app.pennylane.com/api/external/v2/quotes/42/invoice_lines"
},
"linked_invoices": {
"url": "https://app.pennylane.com/api/external/v2/customer_invoices?filter=%5B%7B%22field%22%3A%22quote_id%22%2C%22operator%22%3A%22eq%22%2C%22value%22%3A1927271459%7D%5D"
},
"pdf_invoice_free_text": "Quote details",
"pdf_invoice_subject": "Quote subject",
"pdf_description": "Quote description",
"appendices": {
"url": "https://app.pennylane.com/api/external/v2/quotes/42/appendices"
},
"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"
}Changes
- warning
added the new
VESenum value to theresponse property for the response status - warning
added the new
es_ESenum 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 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
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_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_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_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_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_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
ES_suplidoenum value to the request property/// - info
added the new
es_ESenum value to the request property
- warning