Met deze resource is het mogelijk offerteregels voor offertes te beheren
HTTP Request Type | Resource Type | Vereisten Rechten |
---|---|---|
POST |
Collectie | Quotations.write |
GET |
Element | Quotations.read |
POST |
Element | Quotations.write |
DELETE |
Element | Quotations.write |
Depth | Resource |
---|---|
0 |
Geen containments |
1 |
|
2 |
Veld | Beschrijving | Zichbaar | Aanpasbaar | Vereist bij aanmaken |
---|---|---|---|---|
id |
Het indificatie nummer van de offerteregel. | Ja | Nee | Nee |
name |
Ja | Ja | Ja | |
price |
Standaard waarde: 0 | Ja | Ja | Nee |
quotation_id |
Een geldig en bestaand offerte id. | Ja | Ja | Ja |
article_id |
Ja | Ja | Nee | |
amount |
Standaard waarde: 1 | Ja | Ja | Nee |
reference |
Ja | Ja | Nee | |
tax_rate_id |
Ja | Ja | Ja | |
discount |
Ja | Ja | Nee | |
unit_type |
Standaard waarde: STK | Ja | Ja | Nee |
sort |
Ja | Nee | Nee |
POST
POST
Collectie
Een POST request op de collectie zal resulteren in het aanmaken van een nieuw element.
Bij een POST Request via het HTTP protocol wordt de header Content-Type:
application/x-www-form-urlencoded
verwacht.
Errors
Action | HTTP Reponse Code | Message |
---|---|---|
POST |
400 Bad Request | Something went wrong while saving the data. |
GET
GET
Element
Een GET
request op het element zal resulteren op een enkele offerteregel.
Parameters | |
---|---|
{id} |
Het indentificatie nummer van de offerteregel in formaat (0-9) |
{
"response": {
"message": "success",
"exception": [],
"code": 200,
"data": {
"QuotationLine": {
"id": "22550",
"name": "test Regel",
"price": "0",
"quotation_id": "53",
"amount": "1",
"reference": null,
"tax_rate_id": "4870",
"unit_type": "STK",
"sort": "0"
},
"TaxRate": {
"id": "4870",
"percentage": "21",
"display": true,
"name": "21% BTW",
"type": "invoice",
"sort": "1"
}
}
}
}
POST
POST
Element
Een POST
request op het element zal resulteren in het aanpassen van het
element. Alleen specifieke velden zijn aanpasbaar.
Parameters | |
---|---|
{id} |
Het indentificatie nummer van de offerteregel in formaat (0-9) |
Bij een POST Request via het HTTP protocol wordt de header Content-Type:
application/x-www-form-urlencoded
verwacht.
Errors
Action | HTTP Reponse Code | Message |
---|---|---|
POST |
400 Bad Request | Something went wrong while saving the data. |
POST |
404 Not Found | Quotationline not found. |
DELETE
DELETE
Element
Een DELETE
request op het element zal resulteren in het verwijderen van het
element.
Parameters | |
---|---|
{id} |
Het indentificatie nummer van de offerteregel in formaat (0-9) |
Errors
Action | HTTP Reponse Code | Message |
---|---|---|
DELETE |
404 Not Found | Quotationline not found. |