GET
/
v2
/
protected
/
admin
/
consumption
const request = require('request');

const options = {
  method: 'GET',
  url: 'https://api.fluximmo.io/v2/protected/admin/consumption',
  qs: {to_date: 'SOME_STRING_VALUE', from_date: 'SOME_STRING_VALUE'},
  headers: {'x_api_key': 'REPLACE_KEY_VALUE'}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
{
  "error": {
    "code": 123,
    "message": "<string>"
  }
}

Authorizations

x-api-key
string
headerrequired

Query Parameters

to_date
string
required

Credit consumption to date (ex: 2023-01-01)

from_date
string
required

Credit consumption from date (ex: 2023-01-01)

Response

400 - application/json
error
object
required

Error object