Skip to main content

Get order count

GET 

https://api.botsubscription.com/v1/bot:bot_id/:api_key/orders/count

Retrieve a list of daily, monthly, or yearly revenue and sales data.

Request

Path Parameters

    bot_id integerrequired

    The unique identifier of the bot.

    api_key stringrequired

    The API key of the bot.

Query Parameters

    interval_unit string

    Possible values: [day, month, year]

    Specifies the interval unit. Must be one of: day, month, year. Default is day.

    interval_count string

    Specifies the number of intervals to return. Must be a positive integer. Default is 1.

    currency string

    The currency of the order. Must be a valid ISO 4217 currency code.

Responses

The order count has been successfully retrieved.
Schema
    ok boolean
    Default value: true
    request_id string
    method string
    path string
    code integer
    Default value: 200
    result object[]
  • Array [
  • period string
    revenue string
    currency string
    formatted string
    sales integer
  • ]
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.botsubscription.com");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.botsubscription.com
Parameters
— pathrequired
— pathrequired
— query
— query
— query
ResponseClear

Click the Send API Request button above and see the response here!