API Documentation - Update Order Line
Endpoint
POST /orderline/update
Parameters
The following parameters can be included in the request:
Parameter | Type | Description | Required |
---|---|---|---|
guid | string | The GUID of the order line to update | Yes |
champs | string | The field to update | Yes |
valeur | string | The new value for the field | Yes |
Response
The response is a JSON object containing the following fields:
{
"success": "true or false",
"message": "Description of the response",
"result": {
"guid": "GUID of the order line"
}
}
Error Handling
If an error occurs, the response will contain the following fields:
{
"success": "false",
"message": "Error description",
"result": {
"guid": "GUID of the order line"
}
}
Example Request
POST /orderline/update
Content-Type: application/json
{
"guid": "unique-guid-line-12345",
"champs": "quantity",
"valeur": 10
}
Example Response
{
"success": true,
"message": "Line updated",
"result": {
"guid": "unique-guid-line-12345"
}
}