EN
Español
English
Português
    Query of measurements by ID

    The related operation for querying inventory measures by ID is described.

    Details of the request:

    • Base URL: {host}/AFLSAPI/
    • URI: /api/inventory/measure/{UniqueCode}
    • Type: GET 9

    • Required headings:

    • Content-Type: application/json
    • X-Authorization: Bearer {Token}

    URL Description

    • {host}: It represents the domain of the environment in which the API is located.
    • AFLSAPI/: Fixed API prefix.
    • URI: Specific endpoint for the request.


    EXAMPLE URL:

    https://{host}/AFLSAPI/api/inventory/measure/{UniqueCode}
    


    Parameters:

    Name Data type Obligatory Description
    UniqueCode Integer Yes Measure ID

    Answer:

    As an answer, a JSON object is obtained, with the following information:

    {
        "description": "Metros",
        "isActive": true,
        "name": "Metros",
        "uniqueCode": 1
    }
    

    Error messages:

    Code HTTP status Error Message
    400 BadRequest No information found.
    500 Internal Server Error FailureLogin