Environment

This app command allows users to retrieve the environment variables such as the register id, register location, user credentials.

GET

Description:
Retrieve register id, print size, location data and employee data.

Request Body:

{
    command: 'Environment', 
    method: 'get',
    version: '1.0'
}

Response Body:

{
    command: 'Environment',
    method: 'get',
    version: '1.0',
    status_code: 200,
    error: null,
    register_id: 2,
    print_size: '58mm',
    location_data:{
        location_id: 005521, 
        outlet: 'Village Mall' 
    },
    employee_data: {
        admin_id: 1111220, 
        designation: 'cashier' 
    }
}

Parameters:

Attribute NameAttribute TypeDescriptionEnumRequired (binary)
commandstringHigh level command name to interact with Olivernull1
methodstringThese correspond to create, read, update, and delete (or CRUD) operationsnull1
versionstringThe version of the command usednull1