API Documentation - Add Order

Endpoint

POST /order/add

Parameters

The following parameters can be included in the request:

Parameter Type Description Required
clcleunik string The unique customer code Yes, if use is clcleunik
idCustomer int The customer ID Yes, if use is id
use string Specifies which parameter to use for the query. Can be clcleunik or id No (defaults to clcleunik)

Response

The response is a JSON object containing the following fields:

{
    "success": "true or false",
    "message": "Description of the response",
    "result": {
        "guid": "Generated unique identifier for the order"
    }
}

Error Handling

If an error occurs, the response will contain the following fields:

{
    "success": "false",
    "message": "Error description"
}

Example Request

POST /order/add
Content-Type: application/json

{
    "clcleunik": "12345",
    "use": "clcleunik"
}

Example Response

{
    "success": true,
    "message": "Order added",
    "result": {
        "guid": "unique-guid-12345"
    }
}