API Documentation - Add Order Line
Endpoint
POST /orderline/add
Parameters
The following parameters can be included in the request:
Parameter | Type | Description | Required |
---|---|---|---|
guid | string | The GUID of the order | Yes |
arcleunik | string | The unique code of the product | Yes |
qty | int | The quantity of the product | Yes |
data | string | Additional data in the format 'arcleunik_qty' | No |
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",
"title": "Product title",
"price": "Unit price of the product",
"taxeRate": "Tax rate",
"quantity": "Quantity of the product"
}
}
Error Handling
If an error occurs, the response will contain the following fields:
{
"success": "false",
"message": "Error description",
"result": {
"order": "GUID of the order"
}
}
Example Request
POST /orderline/add
Content-Type: application/json
{
"guid": "unique-guid-12345",
"arcleunik": "product-code-123",
"qty": 5
}
Example Response
{
"success": true,
"message": "Line added",
"result": {
"guid": "unique-guid-line-12345",
"title": "Example Product",
"price": 100.00,
"taxeRate": 20,
"quantity": 5
}
}