Ajoute une nouvelle ligne à un devis existant.
Les totaux sont automatiquement recalculés après l'ajout.
Body
Required
-
Unique identifier for the line
-
Description of the line
-
Price without tax
Default value is
0. -
Quantity
Default value is
1. -
Reference of the product
-
Title of the line
-
Total amount without tax
Default value is
0. -
Total amount with tax
Default value is
0. -
VAT rate
-
Type of the line
Values are
product,header,subtotal, orglobalDiscount. Default value isproduct. -
Unit of measurement
POST
/quote/{uid}/line
curl \
--request POST 'https://wuro.pro/api/v3.2/quote/{uid}/line' \
--header "X-APP-ID: $API_KEY" \
--header "X-APP-SECRET: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"_id":"string","description":"string","price_ht":0,"quantity":1,"reference":"string","title":"string","total_ht":0,"total_ttc":0,"tva_rate":42.0,"type":"product","unit":"string"}'
Request examples
{
"_id": "string",
"description": "string",
"price_ht": 0,
"quantity": 1,
"reference": "string",
"title": "string",
"total_ht": 0,
"total_ttc": 0,
"tva_rate": 42.0,
"type": "product",
"unit": "string"
}
Response examples (200)
{
"updatedQuote": {
"_id": "string",
"VATRates": [
{
"amount": 42.0,
"rate": "string",
"total": 42.0
}
],
"accept_date": "2025-05-04T09:42:00Z",
"acomptes": [
{
"_id": "string",
"amount": 42.0,
"amount_ht": 42.0,
"credit": false,
"date": "2025-05-04T09:42:00Z",
"sold": false,
"number": "string",
"type": "advance"
}
],
"base_currency": "EUR",
"client": "string",
"client_name": "string",
"client_address": "string",
"client_city": "string",
"client_zip_code": "string",
"client_country": "France",
"client_email": "string",
"client_phone": "string",
"company": "string",
"company_name": "string",
"date": "2025-05-04T09:42:00Z",
"expiry_date": "2025-05-04T09:42:00Z",
"quote_lines": [
{
"_id": "string",
"description": "string",
"price_ht": 0,
"quantity": 1,
"reference": "string",
"title": "string",
"total_ht": 0,
"total_ttc": 0,
"tva_rate": 42.0,
"type": "product",
"unit": "string"
}
],
"number": "string",
"state": "waiting",
"title": "string",
"total_ht": 42.0,
"total_ttc": 42.0,
"total_tva": 42.0,
"type": "quote"
},
"line": {
"_id": "string",
"description": "string",
"price_ht": 0,
"quantity": 1,
"reference": "string",
"title": "string",
"total_ht": 0,
"total_ttc": 0,
"tva_rate": 42.0,
"type": "product",
"unit": "string"
}
}