Get order count
GEThttps://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
- 200
The order count has been successfully retrieved.
- application/json
- Schema
- Example (auto)
Schema
ok boolean
Default value:
true
request_id string
method string
path string
code integer
Default value:
200
result object[]
{
"ok": true,
"request_id": "string",
"method": "string",
"path": "string",
"code": 200,
"result": [
{
"period": "string",
"revenue": "string",
"currency": "string",
"formatted": "string",
"sales": 0
}
]
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear