Spenda.Services.Data

Default

warehousingGetStocktake

Warehousing-GetStocktake

Warehousing-GetStocktake


/Spenda/Data/warehousing/stocktake

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Data/warehousing/stocktake?warehouseId=56&tenantLocationId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer warehouseId = 56; // Integer | Optional Warehouse ID filter
        Integer tenantLocationId = 56; // Integer | Optional Tenant Location ID filter

        try {
            Warehousing_GetStocktake_200_response result = apiInstance.warehousingGetStocktake(warehouseId, tenantLocationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#warehousingGetStocktake");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer warehouseId = new Integer(); // Integer | Optional Warehouse ID filter
final Integer tenantLocationId = new Integer(); // Integer | Optional Tenant Location ID filter

try {
    final result = await api_instance.warehousingGetStocktake(warehouseId, tenantLocationId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->warehousingGetStocktake: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer warehouseId = 56; // Integer | Optional Warehouse ID filter
        Integer tenantLocationId = 56; // Integer | Optional Tenant Location ID filter

        try {
            Warehousing_GetStocktake_200_response result = apiInstance.warehousingGetStocktake(warehouseId, tenantLocationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#warehousingGetStocktake");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *warehouseId = 56; // Optional Warehouse ID filter (optional) (default to null)
Integer *tenantLocationId = 56; // Optional Tenant Location ID filter (optional) (default to null)

// Warehousing-GetStocktake
[apiInstance warehousingGetStocktakeWith:warehouseId
    tenantLocationId:tenantLocationId
              completionHandler: ^(Warehousing_GetStocktake_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesData = require('spenda_services_data');

// Create an instance of the API class
var api = new SpendaServicesData.DefaultApi()
var opts = {
  'warehouseId': 56, // {Integer} Optional Warehouse ID filter
  'tenantLocationId': 56 // {Integer} Optional Tenant Location ID filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.warehousingGetStocktake(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class warehousingGetStocktakeExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var warehouseId = 56;  // Integer | Optional Warehouse ID filter (optional)  (default to null)
            var tenantLocationId = 56;  // Integer | Optional Tenant Location ID filter (optional)  (default to null)

            try {
                // Warehousing-GetStocktake
                Warehousing_GetStocktake_200_response result = apiInstance.warehousingGetStocktake(warehouseId, tenantLocationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.warehousingGetStocktake: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$warehouseId = 56; // Integer | Optional Warehouse ID filter
$tenantLocationId = 56; // Integer | Optional Tenant Location ID filter

try {
    $result = $api_instance->warehousingGetStocktake($warehouseId, $tenantLocationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->warehousingGetStocktake: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $warehouseId = 56; # Integer | Optional Warehouse ID filter
my $tenantLocationId = 56; # Integer | Optional Tenant Location ID filter

eval {
    my $result = $api_instance->warehousingGetStocktake(warehouseId => $warehouseId, tenantLocationId => $tenantLocationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->warehousingGetStocktake: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
warehouseId = 56 # Integer | Optional Warehouse ID filter (optional) (default to null)
tenantLocationId = 56 # Integer | Optional Tenant Location ID filter (optional) (default to null)

try:
    # Warehousing-GetStocktake
    api_response = api_instance.warehousing_get_stocktake(warehouseId=warehouseId, tenantLocationId=tenantLocationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->warehousingGetStocktake: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let warehouseId = 56; // Integer
    let tenantLocationId = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.warehousingGetStocktake(warehouseId, tenantLocationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
warehouseId
Integer (int32)
Optional Warehouse ID filter
tenantLocationId
Integer (int32)
Optional Tenant Location ID filter

Responses


warehousingGetStocktakeLines

Warehousing-getStocktakeLines

Warehousing-getStocktakeLines


/Spenda/Data/warehousing/stocktakelines

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Data/warehousing/stocktakelines?stocktakeId=56&stocktakeLineId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeId = 56; // Integer | Stocktake ID filter
        Integer stocktakeLineId = 56; // Integer | Optional Stocktake Line ID filter

        try {
            Warehousing_getStocktakeLines_200_response result = apiInstance.warehousingGetStocktakeLines(stocktakeId, stocktakeLineId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#warehousingGetStocktakeLines");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer stocktakeId = new Integer(); // Integer | Stocktake ID filter
final Integer stocktakeLineId = new Integer(); // Integer | Optional Stocktake Line ID filter

try {
    final result = await api_instance.warehousingGetStocktakeLines(stocktakeId, stocktakeLineId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->warehousingGetStocktakeLines: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeId = 56; // Integer | Stocktake ID filter
        Integer stocktakeLineId = 56; // Integer | Optional Stocktake Line ID filter

        try {
            Warehousing_getStocktakeLines_200_response result = apiInstance.warehousingGetStocktakeLines(stocktakeId, stocktakeLineId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#warehousingGetStocktakeLines");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *stocktakeId = 56; // Stocktake ID filter (default to null)
Integer *stocktakeLineId = 56; // Optional Stocktake Line ID filter (optional) (default to null)

// Warehousing-getStocktakeLines
[apiInstance warehousingGetStocktakeLinesWith:stocktakeId
    stocktakeLineId:stocktakeLineId
              completionHandler: ^(Warehousing_getStocktakeLines_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesData = require('spenda_services_data');

// Create an instance of the API class
var api = new SpendaServicesData.DefaultApi()
var stocktakeId = 56; // {Integer} Stocktake ID filter
var opts = {
  'stocktakeLineId': 56 // {Integer} Optional Stocktake Line ID filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.warehousingGetStocktakeLines(stocktakeId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class warehousingGetStocktakeLinesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var stocktakeId = 56;  // Integer | Stocktake ID filter (default to null)
            var stocktakeLineId = 56;  // Integer | Optional Stocktake Line ID filter (optional)  (default to null)

            try {
                // Warehousing-getStocktakeLines
                Warehousing_getStocktakeLines_200_response result = apiInstance.warehousingGetStocktakeLines(stocktakeId, stocktakeLineId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.warehousingGetStocktakeLines: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$stocktakeId = 56; // Integer | Stocktake ID filter
$stocktakeLineId = 56; // Integer | Optional Stocktake Line ID filter

try {
    $result = $api_instance->warehousingGetStocktakeLines($stocktakeId, $stocktakeLineId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->warehousingGetStocktakeLines: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $stocktakeId = 56; # Integer | Stocktake ID filter
my $stocktakeLineId = 56; # Integer | Optional Stocktake Line ID filter

eval {
    my $result = $api_instance->warehousingGetStocktakeLines(stocktakeId => $stocktakeId, stocktakeLineId => $stocktakeLineId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->warehousingGetStocktakeLines: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
stocktakeId = 56 # Integer | Stocktake ID filter (default to null)
stocktakeLineId = 56 # Integer | Optional Stocktake Line ID filter (optional) (default to null)

try:
    # Warehousing-getStocktakeLines
    api_response = api_instance.warehousing_get_stocktake_lines(stocktakeId, stocktakeLineId=stocktakeLineId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->warehousingGetStocktakeLines: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let stocktakeId = 56; // Integer
    let stocktakeLineId = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.warehousingGetStocktakeLines(stocktakeId, stocktakeLineId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
stocktakeId*
Integer (int32)
Stocktake ID filter
Required
stocktakeLineId
Integer (int32)
Optional Stocktake Line ID filter

Responses


Reports

reportsGetInvoicesBySalesRep

Reports-GetInvoicesBySalesRep

Retrieves a list of invoices associated with a specific sales representative.


/Spenda/Data/reports/invoices-by-sales-rep

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Data/reports/invoices-by-sales-rep?salesRepUserID=38090&useCustomRange=false&fromDate=Wed Oct 01 00:00:00 UTC 2025&toDate=Fri Oct 31 00:00:00 UTC 2025&month=10&year=2025"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ReportsApi;

import java.io.File;
import java.util.*;

public class ReportsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ReportsApi apiInstance = new ReportsApi();
        Integer salesRepUserID = 38090; // Integer | The unique identifier for the sales representative.
        Boolean useCustomRange = false; // Boolean | Set to 1 to use custom date range.
        date fromDate = Wed Oct 01 00:00:00 UTC 2025; // date | Start date (YYYY-MM-DD).
        date toDate = Fri Oct 31 00:00:00 UTC 2025; // date | End date (YYYY-MM-DD).
        Integer month = 10; // Integer | Month (1–12).
        Integer year = 2025; // Integer | Year.

        try {
            Reports_GetQuotesBySalesRep_200_response result = apiInstance.reportsGetInvoicesBySalesRep(salesRepUserID, useCustomRange, fromDate, toDate, month, year);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportsApi#reportsGetInvoicesBySalesRep");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer salesRepUserID = new Integer(); // Integer | The unique identifier for the sales representative.
final Boolean useCustomRange = new Boolean(); // Boolean | Set to 1 to use custom date range.
final date fromDate = new date(); // date | Start date (YYYY-MM-DD).
final date toDate = new date(); // date | End date (YYYY-MM-DD).
final Integer month = new Integer(); // Integer | Month (1–12).
final Integer year = new Integer(); // Integer | Year.

try {
    final result = await api_instance.reportsGetInvoicesBySalesRep(salesRepUserID, useCustomRange, fromDate, toDate, month, year);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->reportsGetInvoicesBySalesRep: $e\n');
}

import org.openapitools.client.api.ReportsApi;

public class ReportsApiExample {
    public static void main(String[] args) {
        ReportsApi apiInstance = new ReportsApi();
        Integer salesRepUserID = 38090; // Integer | The unique identifier for the sales representative.
        Boolean useCustomRange = false; // Boolean | Set to 1 to use custom date range.
        date fromDate = Wed Oct 01 00:00:00 UTC 2025; // date | Start date (YYYY-MM-DD).
        date toDate = Fri Oct 31 00:00:00 UTC 2025; // date | End date (YYYY-MM-DD).
        Integer month = 10; // Integer | Month (1–12).
        Integer year = 2025; // Integer | Year.

        try {
            Reports_GetQuotesBySalesRep_200_response result = apiInstance.reportsGetInvoicesBySalesRep(salesRepUserID, useCustomRange, fromDate, toDate, month, year);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportsApi#reportsGetInvoicesBySalesRep");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ReportsApi *apiInstance = [[ReportsApi alloc] init];
Integer *salesRepUserID = 38090; // The unique identifier for the sales representative. (optional) (default to null)
Boolean *useCustomRange = false; // Set to 1 to use custom date range. (optional) (default to null)
date *fromDate = Wed Oct 01 00:00:00 UTC 2025; // Start date (YYYY-MM-DD). (optional) (default to null)
date *toDate = Fri Oct 31 00:00:00 UTC 2025; // End date (YYYY-MM-DD). (optional) (default to null)
Integer *month = 10; // Month (1–12). (optional) (default to null)
Integer *year = 2025; // Year. (optional) (default to null)

// Reports-GetInvoicesBySalesRep
[apiInstance reportsGetInvoicesBySalesRepWith:salesRepUserID
    useCustomRange:useCustomRange
    fromDate:fromDate
    toDate:toDate
    month:month
    year:year
              completionHandler: ^(Reports_GetQuotesBySalesRep_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesData = require('spenda_services_data');

// Create an instance of the API class
var api = new SpendaServicesData.ReportsApi()
var opts = {
  'salesRepUserID': 38090, // {Integer} The unique identifier for the sales representative.
  'useCustomRange': false, // {Boolean} Set to 1 to use custom date range.
  'fromDate': Wed Oct 01 00:00:00 UTC 2025, // {date} Start date (YYYY-MM-DD).
  'toDate': Fri Oct 31 00:00:00 UTC 2025, // {date} End date (YYYY-MM-DD).
  'month': 10, // {Integer} Month (1–12).
  'year': 2025 // {Integer} Year.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.reportsGetInvoicesBySalesRep(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class reportsGetInvoicesBySalesRepExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ReportsApi();
            var salesRepUserID = 38090;  // Integer | The unique identifier for the sales representative. (optional)  (default to null)
            var useCustomRange = false;  // Boolean | Set to 1 to use custom date range. (optional)  (default to null)
            var fromDate = Wed Oct 01 00:00:00 UTC 2025;  // date | Start date (YYYY-MM-DD). (optional)  (default to null)
            var toDate = Fri Oct 31 00:00:00 UTC 2025;  // date | End date (YYYY-MM-DD). (optional)  (default to null)
            var month = 10;  // Integer | Month (1–12). (optional)  (default to null)
            var year = 2025;  // Integer | Year. (optional)  (default to null)

            try {
                // Reports-GetInvoicesBySalesRep
                Reports_GetQuotesBySalesRep_200_response result = apiInstance.reportsGetInvoicesBySalesRep(salesRepUserID, useCustomRange, fromDate, toDate, month, year);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ReportsApi.reportsGetInvoicesBySalesRep: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ReportsApi();
$salesRepUserID = 38090; // Integer | The unique identifier for the sales representative.
$useCustomRange = false; // Boolean | Set to 1 to use custom date range.
$fromDate = Wed Oct 01 00:00:00 UTC 2025; // date | Start date (YYYY-MM-DD).
$toDate = Fri Oct 31 00:00:00 UTC 2025; // date | End date (YYYY-MM-DD).
$month = 10; // Integer | Month (1–12).
$year = 2025; // Integer | Year.

try {
    $result = $api_instance->reportsGetInvoicesBySalesRep($salesRepUserID, $useCustomRange, $fromDate, $toDate, $month, $year);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReportsApi->reportsGetInvoicesBySalesRep: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ReportsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ReportsApi->new();
my $salesRepUserID = 38090; # Integer | The unique identifier for the sales representative.
my $useCustomRange = false; # Boolean | Set to 1 to use custom date range.
my $fromDate = Wed Oct 01 00:00:00 UTC 2025; # date | Start date (YYYY-MM-DD).
my $toDate = Fri Oct 31 00:00:00 UTC 2025; # date | End date (YYYY-MM-DD).
my $month = 10; # Integer | Month (1–12).
my $year = 2025; # Integer | Year.

eval {
    my $result = $api_instance->reportsGetInvoicesBySalesRep(salesRepUserID => $salesRepUserID, useCustomRange => $useCustomRange, fromDate => $fromDate, toDate => $toDate, month => $month, year => $year);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReportsApi->reportsGetInvoicesBySalesRep: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ReportsApi()
salesRepUserID = 38090 # Integer | The unique identifier for the sales representative. (optional) (default to null)
useCustomRange = false # Boolean | Set to 1 to use custom date range. (optional) (default to null)
fromDate = Wed Oct 01 00:00:00 UTC 2025 # date | Start date (YYYY-MM-DD). (optional) (default to null)
toDate = Fri Oct 31 00:00:00 UTC 2025 # date | End date (YYYY-MM-DD). (optional) (default to null)
month = 10 # Integer | Month (1–12). (optional) (default to null)
year = 2025 # Integer | Year. (optional) (default to null)

try:
    # Reports-GetInvoicesBySalesRep
    api_response = api_instance.reports_get_invoices_by_sales_rep(salesRepUserID=salesRepUserID, useCustomRange=useCustomRange, fromDate=fromDate, toDate=toDate, month=month, year=year)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportsApi->reportsGetInvoicesBySalesRep: %s\n" % e)
extern crate ReportsApi;

pub fn main() {
    let salesRepUserID = 38090; // Integer
    let useCustomRange = false; // Boolean
    let fromDate = Wed Oct 01 00:00:00 UTC 2025; // date
    let toDate = Fri Oct 31 00:00:00 UTC 2025; // date
    let month = 10; // Integer
    let year = 2025; // Integer

    let mut context = ReportsApi::Context::default();
    let result = client.reportsGetInvoicesBySalesRep(salesRepUserID, useCustomRange, fromDate, toDate, month, year, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
salesRepUserID
Integer
The unique identifier for the sales representative.
useCustomRange
Boolean
Set to 1 to use custom date range.
fromDate
date (date)
Start date (YYYY-MM-DD).
toDate
date (date)
End date (YYYY-MM-DD).
month
Integer
Month (1–12).
year
Integer
Year.

Responses


reportsGetQuotesBySalesRep

Reports-GetQuotesBySalesRep

Retrieves a list of quotes associated with a specific sales representative, filtered by month/year or custom date range. Optionally filters on the earliest deposit payment date.


/Spenda/Data/reports/quotes-by-sales-rep

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Data/reports/quotes-by-sales-rep?salesRepUserID=37667&useCustomRange=false&fromDate=Wed Oct 01 00:00:00 UTC 2025&toDate=Fri Oct 31 00:00:00 UTC 2025&month=10&year=2025&filterOnDepositEarliestPaymentDateTime=false&filterOnApprovedDateTime=false"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ReportsApi;

import java.io.File;
import java.util.*;

public class ReportsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ReportsApi apiInstance = new ReportsApi();
        Integer salesRepUserID = 37667; // Integer | The unique identifier for the sales representative.
        Boolean useCustomRange = false; // Boolean | Set to 1 to use custom date range (`fromDate` / `toDate`) instead of `month` / `year`.
        date fromDate = Wed Oct 01 00:00:00 UTC 2025; // date | Start date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
        date toDate = Fri Oct 31 00:00:00 UTC 2025; // date | End date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
        Integer month = 10; // Integer | Month for the report period (1–12). Used when `useCustomRange` = false.
        Integer year = 2025; // Integer | Year for the report period. Used when `useCustomRange` = false.
        Boolean filterOnDepositEarliestPaymentDateTime = false; // Boolean | Set to 1 to filter results using the earliest deposit payment date instead of report date.
        Boolean filterOnApprovedDateTime = false; // Boolean | Set to 1 to filter results using quote approved date instead of report date.

        try {
            Reports_GetQuotesBySalesRep_200_response result = apiInstance.reportsGetQuotesBySalesRep(salesRepUserID, useCustomRange, fromDate, toDate, month, year, filterOnDepositEarliestPaymentDateTime, filterOnApprovedDateTime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportsApi#reportsGetQuotesBySalesRep");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer salesRepUserID = new Integer(); // Integer | The unique identifier for the sales representative.
final Boolean useCustomRange = new Boolean(); // Boolean | Set to 1 to use custom date range (`fromDate` / `toDate`) instead of `month` / `year`.
final date fromDate = new date(); // date | Start date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
final date toDate = new date(); // date | End date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
final Integer month = new Integer(); // Integer | Month for the report period (1–12). Used when `useCustomRange` = false.
final Integer year = new Integer(); // Integer | Year for the report period. Used when `useCustomRange` = false.
final Boolean filterOnDepositEarliestPaymentDateTime = new Boolean(); // Boolean | Set to 1 to filter results using the earliest deposit payment date instead of report date.
final Boolean filterOnApprovedDateTime = new Boolean(); // Boolean | Set to 1 to filter results using quote approved date instead of report date.

try {
    final result = await api_instance.reportsGetQuotesBySalesRep(salesRepUserID, useCustomRange, fromDate, toDate, month, year, filterOnDepositEarliestPaymentDateTime, filterOnApprovedDateTime);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->reportsGetQuotesBySalesRep: $e\n');
}

import org.openapitools.client.api.ReportsApi;

public class ReportsApiExample {
    public static void main(String[] args) {
        ReportsApi apiInstance = new ReportsApi();
        Integer salesRepUserID = 37667; // Integer | The unique identifier for the sales representative.
        Boolean useCustomRange = false; // Boolean | Set to 1 to use custom date range (`fromDate` / `toDate`) instead of `month` / `year`.
        date fromDate = Wed Oct 01 00:00:00 UTC 2025; // date | Start date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
        date toDate = Fri Oct 31 00:00:00 UTC 2025; // date | End date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
        Integer month = 10; // Integer | Month for the report period (1–12). Used when `useCustomRange` = false.
        Integer year = 2025; // Integer | Year for the report period. Used when `useCustomRange` = false.
        Boolean filterOnDepositEarliestPaymentDateTime = false; // Boolean | Set to 1 to filter results using the earliest deposit payment date instead of report date.
        Boolean filterOnApprovedDateTime = false; // Boolean | Set to 1 to filter results using quote approved date instead of report date.

        try {
            Reports_GetQuotesBySalesRep_200_response result = apiInstance.reportsGetQuotesBySalesRep(salesRepUserID, useCustomRange, fromDate, toDate, month, year, filterOnDepositEarliestPaymentDateTime, filterOnApprovedDateTime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportsApi#reportsGetQuotesBySalesRep");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ReportsApi *apiInstance = [[ReportsApi alloc] init];
Integer *salesRepUserID = 37667; // The unique identifier for the sales representative. (optional) (default to null)
Boolean *useCustomRange = false; // Set to 1 to use custom date range (`fromDate` / `toDate`) instead of `month` / `year`. (optional) (default to null)
date *fromDate = Wed Oct 01 00:00:00 UTC 2025; // Start date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true. (optional) (default to null)
date *toDate = Fri Oct 31 00:00:00 UTC 2025; // End date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true. (optional) (default to null)
Integer *month = 10; // Month for the report period (1–12). Used when `useCustomRange` = false. (optional) (default to null)
Integer *year = 2025; // Year for the report period. Used when `useCustomRange` = false. (optional) (default to null)
Boolean *filterOnDepositEarliestPaymentDateTime = false; // Set to 1 to filter results using the earliest deposit payment date instead of report date. (optional) (default to null)
Boolean *filterOnApprovedDateTime = false; // Set to 1 to filter results using quote approved date instead of report date. (optional) (default to null)

// Reports-GetQuotesBySalesRep
[apiInstance reportsGetQuotesBySalesRepWith:salesRepUserID
    useCustomRange:useCustomRange
    fromDate:fromDate
    toDate:toDate
    month:month
    year:year
    filterOnDepositEarliestPaymentDateTime:filterOnDepositEarliestPaymentDateTime
    filterOnApprovedDateTime:filterOnApprovedDateTime
              completionHandler: ^(Reports_GetQuotesBySalesRep_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesData = require('spenda_services_data');

// Create an instance of the API class
var api = new SpendaServicesData.ReportsApi()
var opts = {
  'salesRepUserID': 37667, // {Integer} The unique identifier for the sales representative.
  'useCustomRange': false, // {Boolean} Set to 1 to use custom date range (`fromDate` / `toDate`) instead of `month` / `year`.
  'fromDate': Wed Oct 01 00:00:00 UTC 2025, // {date} Start date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
  'toDate': Fri Oct 31 00:00:00 UTC 2025, // {date} End date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
  'month': 10, // {Integer} Month for the report period (1–12). Used when `useCustomRange` = false.
  'year': 2025, // {Integer} Year for the report period. Used when `useCustomRange` = false.
  'filterOnDepositEarliestPaymentDateTime': false, // {Boolean} Set to 1 to filter results using the earliest deposit payment date instead of report date.
  'filterOnApprovedDateTime': false // {Boolean} Set to 1 to filter results using quote approved date instead of report date.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.reportsGetQuotesBySalesRep(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class reportsGetQuotesBySalesRepExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ReportsApi();
            var salesRepUserID = 37667;  // Integer | The unique identifier for the sales representative. (optional)  (default to null)
            var useCustomRange = false;  // Boolean | Set to 1 to use custom date range (`fromDate` / `toDate`) instead of `month` / `year`. (optional)  (default to null)
            var fromDate = Wed Oct 01 00:00:00 UTC 2025;  // date | Start date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true. (optional)  (default to null)
            var toDate = Fri Oct 31 00:00:00 UTC 2025;  // date | End date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true. (optional)  (default to null)
            var month = 10;  // Integer | Month for the report period (1–12). Used when `useCustomRange` = false. (optional)  (default to null)
            var year = 2025;  // Integer | Year for the report period. Used when `useCustomRange` = false. (optional)  (default to null)
            var filterOnDepositEarliestPaymentDateTime = false;  // Boolean | Set to 1 to filter results using the earliest deposit payment date instead of report date. (optional)  (default to null)
            var filterOnApprovedDateTime = false;  // Boolean | Set to 1 to filter results using quote approved date instead of report date. (optional)  (default to null)

            try {
                // Reports-GetQuotesBySalesRep
                Reports_GetQuotesBySalesRep_200_response result = apiInstance.reportsGetQuotesBySalesRep(salesRepUserID, useCustomRange, fromDate, toDate, month, year, filterOnDepositEarliestPaymentDateTime, filterOnApprovedDateTime);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ReportsApi.reportsGetQuotesBySalesRep: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ReportsApi();
$salesRepUserID = 37667; // Integer | The unique identifier for the sales representative.
$useCustomRange = false; // Boolean | Set to 1 to use custom date range (`fromDate` / `toDate`) instead of `month` / `year`.
$fromDate = Wed Oct 01 00:00:00 UTC 2025; // date | Start date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
$toDate = Fri Oct 31 00:00:00 UTC 2025; // date | End date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
$month = 10; // Integer | Month for the report period (1–12). Used when `useCustomRange` = false.
$year = 2025; // Integer | Year for the report period. Used when `useCustomRange` = false.
$filterOnDepositEarliestPaymentDateTime = false; // Boolean | Set to 1 to filter results using the earliest deposit payment date instead of report date.
$filterOnApprovedDateTime = false; // Boolean | Set to 1 to filter results using quote approved date instead of report date.

try {
    $result = $api_instance->reportsGetQuotesBySalesRep($salesRepUserID, $useCustomRange, $fromDate, $toDate, $month, $year, $filterOnDepositEarliestPaymentDateTime, $filterOnApprovedDateTime);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReportsApi->reportsGetQuotesBySalesRep: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ReportsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ReportsApi->new();
my $salesRepUserID = 37667; # Integer | The unique identifier for the sales representative.
my $useCustomRange = false; # Boolean | Set to 1 to use custom date range (`fromDate` / `toDate`) instead of `month` / `year`.
my $fromDate = Wed Oct 01 00:00:00 UTC 2025; # date | Start date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
my $toDate = Fri Oct 31 00:00:00 UTC 2025; # date | End date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
my $month = 10; # Integer | Month for the report period (1–12). Used when `useCustomRange` = false.
my $year = 2025; # Integer | Year for the report period. Used when `useCustomRange` = false.
my $filterOnDepositEarliestPaymentDateTime = false; # Boolean | Set to 1 to filter results using the earliest deposit payment date instead of report date.
my $filterOnApprovedDateTime = false; # Boolean | Set to 1 to filter results using quote approved date instead of report date.

eval {
    my $result = $api_instance->reportsGetQuotesBySalesRep(salesRepUserID => $salesRepUserID, useCustomRange => $useCustomRange, fromDate => $fromDate, toDate => $toDate, month => $month, year => $year, filterOnDepositEarliestPaymentDateTime => $filterOnDepositEarliestPaymentDateTime, filterOnApprovedDateTime => $filterOnApprovedDateTime);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReportsApi->reportsGetQuotesBySalesRep: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ReportsApi()
salesRepUserID = 37667 # Integer | The unique identifier for the sales representative. (optional) (default to null)
useCustomRange = false # Boolean | Set to 1 to use custom date range (`fromDate` / `toDate`) instead of `month` / `year`. (optional) (default to null)
fromDate = Wed Oct 01 00:00:00 UTC 2025 # date | Start date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true. (optional) (default to null)
toDate = Fri Oct 31 00:00:00 UTC 2025 # date | End date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true. (optional) (default to null)
month = 10 # Integer | Month for the report period (1–12). Used when `useCustomRange` = false. (optional) (default to null)
year = 2025 # Integer | Year for the report period. Used when `useCustomRange` = false. (optional) (default to null)
filterOnDepositEarliestPaymentDateTime = false # Boolean | Set to 1 to filter results using the earliest deposit payment date instead of report date. (optional) (default to null)
filterOnApprovedDateTime = false # Boolean | Set to 1 to filter results using quote approved date instead of report date. (optional) (default to null)

try:
    # Reports-GetQuotesBySalesRep
    api_response = api_instance.reports_get_quotes_by_sales_rep(salesRepUserID=salesRepUserID, useCustomRange=useCustomRange, fromDate=fromDate, toDate=toDate, month=month, year=year, filterOnDepositEarliestPaymentDateTime=filterOnDepositEarliestPaymentDateTime, filterOnApprovedDateTime=filterOnApprovedDateTime)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportsApi->reportsGetQuotesBySalesRep: %s\n" % e)
extern crate ReportsApi;

pub fn main() {
    let salesRepUserID = 37667; // Integer
    let useCustomRange = false; // Boolean
    let fromDate = Wed Oct 01 00:00:00 UTC 2025; // date
    let toDate = Fri Oct 31 00:00:00 UTC 2025; // date
    let month = 10; // Integer
    let year = 2025; // Integer
    let filterOnDepositEarliestPaymentDateTime = false; // Boolean
    let filterOnApprovedDateTime = false; // Boolean

    let mut context = ReportsApi::Context::default();
    let result = client.reportsGetQuotesBySalesRep(salesRepUserID, useCustomRange, fromDate, toDate, month, year, filterOnDepositEarliestPaymentDateTime, filterOnApprovedDateTime, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
salesRepUserID
Integer
The unique identifier for the sales representative.
useCustomRange
Boolean
Set to 1 to use custom date range (`fromDate` / `toDate`) instead of `month` / `year`.
fromDate
date (date)
Start date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
toDate
date (date)
End date for the report range (ISO 8601 format: YYYY-MM-DD). Used only when `useCustomRange` = true.
month
Integer
Month for the report period (1–12). Used when `useCustomRange` = false.
year
Integer
Year for the report period. Used when `useCustomRange` = false.
filterOnDepositEarliestPaymentDateTime
Boolean
Set to 1 to filter results using the earliest deposit payment date instead of report date.
filterOnApprovedDateTime
Boolean
Set to 1 to filter results using quote approved date instead of report date.

Responses


reportsGetServiceJobsCostAnalysisReport

Reports-GetServiceJobsCostAnalysisReport

Retrieve a report of completed service jobs with invoice attachments, including financial analysis.


/Spenda/Data/service-jobs-cost-analysis-report

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Data/service-jobs-cost-analysis-report?useCustomRange=false&fromDate=Mon Jan 01 00:00:00 UTC 2024&toDate=Wed Jan 31 00:00:00 UTC 2024&month=10&year=2025"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ReportsApi;

import java.io.File;
import java.util.*;

public class ReportsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ReportsApi apiInstance = new ReportsApi();
        Boolean useCustomRange = false; // Boolean | Whether to use custom date range instead of month/year.
        date fromDate = Mon Jan 01 00:00:00 UTC 2024; // date | Start date for custom range (ISO 8601 format). Required if useCustomRange is true.
        date toDate = Wed Jan 31 00:00:00 UTC 2024; // date | End date for custom range (ISO 8601 format). Required if useCustomRange is true.
        Integer month = 10; // Integer | Month for report (1–12). Required if useCustomRange is false.
        Integer year = 2025; // Integer | Year for report. Required if useCustomRange is false.

        try {
            Reports_GetQuotesBySalesRep_200_response result = apiInstance.reportsGetServiceJobsCostAnalysisReport(useCustomRange, fromDate, toDate, month, year);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportsApi#reportsGetServiceJobsCostAnalysisReport");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Boolean useCustomRange = new Boolean(); // Boolean | Whether to use custom date range instead of month/year.
final date fromDate = new date(); // date | Start date for custom range (ISO 8601 format). Required if useCustomRange is true.
final date toDate = new date(); // date | End date for custom range (ISO 8601 format). Required if useCustomRange is true.
final Integer month = new Integer(); // Integer | Month for report (1–12). Required if useCustomRange is false.
final Integer year = new Integer(); // Integer | Year for report. Required if useCustomRange is false.

try {
    final result = await api_instance.reportsGetServiceJobsCostAnalysisReport(useCustomRange, fromDate, toDate, month, year);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->reportsGetServiceJobsCostAnalysisReport: $e\n');
}

import org.openapitools.client.api.ReportsApi;

public class ReportsApiExample {
    public static void main(String[] args) {
        ReportsApi apiInstance = new ReportsApi();
        Boolean useCustomRange = false; // Boolean | Whether to use custom date range instead of month/year.
        date fromDate = Mon Jan 01 00:00:00 UTC 2024; // date | Start date for custom range (ISO 8601 format). Required if useCustomRange is true.
        date toDate = Wed Jan 31 00:00:00 UTC 2024; // date | End date for custom range (ISO 8601 format). Required if useCustomRange is true.
        Integer month = 10; // Integer | Month for report (1–12). Required if useCustomRange is false.
        Integer year = 2025; // Integer | Year for report. Required if useCustomRange is false.

        try {
            Reports_GetQuotesBySalesRep_200_response result = apiInstance.reportsGetServiceJobsCostAnalysisReport(useCustomRange, fromDate, toDate, month, year);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportsApi#reportsGetServiceJobsCostAnalysisReport");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ReportsApi *apiInstance = [[ReportsApi alloc] init];
Boolean *useCustomRange = false; // Whether to use custom date range instead of month/year. (optional) (default to null)
date *fromDate = Mon Jan 01 00:00:00 UTC 2024; // Start date for custom range (ISO 8601 format). Required if useCustomRange is true. (optional) (default to null)
date *toDate = Wed Jan 31 00:00:00 UTC 2024; // End date for custom range (ISO 8601 format). Required if useCustomRange is true. (optional) (default to null)
Integer *month = 10; // Month for report (1–12). Required if useCustomRange is false. (optional) (default to null)
Integer *year = 2025; // Year for report. Required if useCustomRange is false. (optional) (default to null)

// Reports-GetServiceJobsCostAnalysisReport
[apiInstance reportsGetServiceJobsCostAnalysisReportWith:useCustomRange
    fromDate:fromDate
    toDate:toDate
    month:month
    year:year
              completionHandler: ^(Reports_GetQuotesBySalesRep_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesData = require('spenda_services_data');

// Create an instance of the API class
var api = new SpendaServicesData.ReportsApi()
var opts = {
  'useCustomRange': false, // {Boolean} Whether to use custom date range instead of month/year.
  'fromDate': Mon Jan 01 00:00:00 UTC 2024, // {date} Start date for custom range (ISO 8601 format). Required if useCustomRange is true.
  'toDate': Wed Jan 31 00:00:00 UTC 2024, // {date} End date for custom range (ISO 8601 format). Required if useCustomRange is true.
  'month': 10, // {Integer} Month for report (1–12). Required if useCustomRange is false.
  'year': 2025 // {Integer} Year for report. Required if useCustomRange is false.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.reportsGetServiceJobsCostAnalysisReport(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class reportsGetServiceJobsCostAnalysisReportExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ReportsApi();
            var useCustomRange = false;  // Boolean | Whether to use custom date range instead of month/year. (optional)  (default to null)
            var fromDate = Mon Jan 01 00:00:00 UTC 2024;  // date | Start date for custom range (ISO 8601 format). Required if useCustomRange is true. (optional)  (default to null)
            var toDate = Wed Jan 31 00:00:00 UTC 2024;  // date | End date for custom range (ISO 8601 format). Required if useCustomRange is true. (optional)  (default to null)
            var month = 10;  // Integer | Month for report (1–12). Required if useCustomRange is false. (optional)  (default to null)
            var year = 2025;  // Integer | Year for report. Required if useCustomRange is false. (optional)  (default to null)

            try {
                // Reports-GetServiceJobsCostAnalysisReport
                Reports_GetQuotesBySalesRep_200_response result = apiInstance.reportsGetServiceJobsCostAnalysisReport(useCustomRange, fromDate, toDate, month, year);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ReportsApi.reportsGetServiceJobsCostAnalysisReport: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ReportsApi();
$useCustomRange = false; // Boolean | Whether to use custom date range instead of month/year.
$fromDate = Mon Jan 01 00:00:00 UTC 2024; // date | Start date for custom range (ISO 8601 format). Required if useCustomRange is true.
$toDate = Wed Jan 31 00:00:00 UTC 2024; // date | End date for custom range (ISO 8601 format). Required if useCustomRange is true.
$month = 10; // Integer | Month for report (1–12). Required if useCustomRange is false.
$year = 2025; // Integer | Year for report. Required if useCustomRange is false.

try {
    $result = $api_instance->reportsGetServiceJobsCostAnalysisReport($useCustomRange, $fromDate, $toDate, $month, $year);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReportsApi->reportsGetServiceJobsCostAnalysisReport: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ReportsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ReportsApi->new();
my $useCustomRange = false; # Boolean | Whether to use custom date range instead of month/year.
my $fromDate = Mon Jan 01 00:00:00 UTC 2024; # date | Start date for custom range (ISO 8601 format). Required if useCustomRange is true.
my $toDate = Wed Jan 31 00:00:00 UTC 2024; # date | End date for custom range (ISO 8601 format). Required if useCustomRange is true.
my $month = 10; # Integer | Month for report (1–12). Required if useCustomRange is false.
my $year = 2025; # Integer | Year for report. Required if useCustomRange is false.

eval {
    my $result = $api_instance->reportsGetServiceJobsCostAnalysisReport(useCustomRange => $useCustomRange, fromDate => $fromDate, toDate => $toDate, month => $month, year => $year);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReportsApi->reportsGetServiceJobsCostAnalysisReport: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ReportsApi()
useCustomRange = false # Boolean | Whether to use custom date range instead of month/year. (optional) (default to null)
fromDate = Mon Jan 01 00:00:00 UTC 2024 # date | Start date for custom range (ISO 8601 format). Required if useCustomRange is true. (optional) (default to null)
toDate = Wed Jan 31 00:00:00 UTC 2024 # date | End date for custom range (ISO 8601 format). Required if useCustomRange is true. (optional) (default to null)
month = 10 # Integer | Month for report (1–12). Required if useCustomRange is false. (optional) (default to null)
year = 2025 # Integer | Year for report. Required if useCustomRange is false. (optional) (default to null)

try:
    # Reports-GetServiceJobsCostAnalysisReport
    api_response = api_instance.reports_get_service_jobs_cost_analysis_report(useCustomRange=useCustomRange, fromDate=fromDate, toDate=toDate, month=month, year=year)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportsApi->reportsGetServiceJobsCostAnalysisReport: %s\n" % e)
extern crate ReportsApi;

pub fn main() {
    let useCustomRange = false; // Boolean
    let fromDate = Mon Jan 01 00:00:00 UTC 2024; // date
    let toDate = Wed Jan 31 00:00:00 UTC 2024; // date
    let month = 10; // Integer
    let year = 2025; // Integer

    let mut context = ReportsApi::Context::default();
    let result = client.reportsGetServiceJobsCostAnalysisReport(useCustomRange, fromDate, toDate, month, year, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
useCustomRange
Boolean
Whether to use custom date range instead of month/year.
fromDate
date (date)
Start date for custom range (ISO 8601 format). Required if useCustomRange is true.
toDate
date (date)
End date for custom range (ISO 8601 format). Required if useCustomRange is true.
month
Integer
Month for report (1–12). Required if useCustomRange is false.
year
Integer
Year for report. Required if useCustomRange is false.

Responses


Subscriptions

reachSysGetAllSubscriptionsForTenant

ReachSys-GetAllSubscriptionsForTenant

Get tenant's subscriptions


/Spenda/Data/Tenant/Subscriptions

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Data/Tenant/Subscriptions"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SubscriptionsApi;

import java.io.File;
import java.util.*;

public class SubscriptionsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        SubscriptionsApi apiInstance = new SubscriptionsApi();

        try {
            ReachSys_GetAllSubscriptionsForTenant_200_response result = apiInstance.reachSysGetAllSubscriptionsForTenant();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionsApi#reachSysGetAllSubscriptionsForTenant");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.reachSysGetAllSubscriptionsForTenant();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->reachSysGetAllSubscriptionsForTenant: $e\n');
}

import org.openapitools.client.api.SubscriptionsApi;

public class SubscriptionsApiExample {
    public static void main(String[] args) {
        SubscriptionsApi apiInstance = new SubscriptionsApi();

        try {
            ReachSys_GetAllSubscriptionsForTenant_200_response result = apiInstance.reachSysGetAllSubscriptionsForTenant();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionsApi#reachSysGetAllSubscriptionsForTenant");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
SubscriptionsApi *apiInstance = [[SubscriptionsApi alloc] init];

// ReachSys-GetAllSubscriptionsForTenant
[apiInstance reachSysGetAllSubscriptionsForTenantWithCompletionHandler: 
              ^(ReachSys_GetAllSubscriptionsForTenant_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesData = require('spenda_services_data');

// Create an instance of the API class
var api = new SpendaServicesData.SubscriptionsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.reachSysGetAllSubscriptionsForTenant(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class reachSysGetAllSubscriptionsForTenantExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new SubscriptionsApi();

            try {
                // ReachSys-GetAllSubscriptionsForTenant
                ReachSys_GetAllSubscriptionsForTenant_200_response result = apiInstance.reachSysGetAllSubscriptionsForTenant();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SubscriptionsApi.reachSysGetAllSubscriptionsForTenant: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SubscriptionsApi();

try {
    $result = $api_instance->reachSysGetAllSubscriptionsForTenant();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubscriptionsApi->reachSysGetAllSubscriptionsForTenant: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SubscriptionsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SubscriptionsApi->new();

eval {
    my $result = $api_instance->reachSysGetAllSubscriptionsForTenant();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscriptionsApi->reachSysGetAllSubscriptionsForTenant: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.SubscriptionsApi()

try:
    # ReachSys-GetAllSubscriptionsForTenant
    api_response = api_instance.reach_sys_get_all_subscriptions_for_tenant()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscriptionsApi->reachSysGetAllSubscriptionsForTenant: %s\n" % e)
extern crate SubscriptionsApi;

pub fn main() {

    let mut context = SubscriptionsApi::Context::default();
    let result = client.reachSysGetAllSubscriptionsForTenant(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses