API Documentation - Total Order

Endpoint

GET /order/total

Parameters

The following query parameter can be included in the request:

Parameter Type Description Required
guid string The GUID of the order to calculate total for Yes

Response

The response is a JSON object containing the following fields:

{
    "success": "true or false",
    "message": "Description of the response",
    "result": {
        "total": [
            {
                "htva": "Total HTVA",
                "tvac": "Total TVAC"
            }
        ]
    }
}

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

GET /order/total?guid=unique-order-guid-12345

Example Response

{
    "success": true,
    "message": "ORDERLINE List",
    "result": {
        "total": [
            {
                "htva": 100.00,
                "tvac": 121.00
            }
        ]
    }
}