Spenda.Services.ServiceJobs

ServiceJob

serviceCancelServiceJob

Cancel a service job

Allows a tenant to cancel a service job


/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/Cancel

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/Cancel" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID
        CancelServiceJobRequest cancelServiceJobRequest = {"serviceJobID":0,"cancelReason":"string"}; // CancelServiceJobRequest | 

        try {
            apiInstance.serviceCancelServiceJob(serviceJobID, cancelServiceJobRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceCancelServiceJob");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID
final CancelServiceJobRequest cancelServiceJobRequest = new CancelServiceJobRequest(); // CancelServiceJobRequest | 

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID
        CancelServiceJobRequest cancelServiceJobRequest = {"serviceJobID":0,"cancelReason":"string"}; // CancelServiceJobRequest | 

        try {
            apiInstance.serviceCancelServiceJob(serviceJobID, cancelServiceJobRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceCancelServiceJob");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)
CancelServiceJobRequest *cancelServiceJobRequest = {"serviceJobID":0,"cancelReason":"string"}; //  (optional)

// Cancel a service job
[apiInstance serviceCancelServiceJobWith:serviceJobID
    cancelServiceJobRequest:cancelServiceJobRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID
var opts = {
  'cancelServiceJobRequest': {"serviceJobID":0,"cancelReason":"string"} // {CancelServiceJobRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)
            var cancelServiceJobRequest = new CancelServiceJobRequest(); // CancelServiceJobRequest |  (optional) 

            try {
                // Cancel a service job
                apiInstance.serviceCancelServiceJob(serviceJobID, cancelServiceJobRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceCancelServiceJob: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID
$cancelServiceJobRequest = {"serviceJobID":0,"cancelReason":"string"}; // CancelServiceJobRequest | 

try {
    $api_instance->serviceCancelServiceJob($serviceJobID, $cancelServiceJobRequest);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceCancelServiceJob: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID
my $cancelServiceJobRequest = WWW::OPenAPIClient::Object::CancelServiceJobRequest->new(); # CancelServiceJobRequest | 

eval {
    $api_instance->serviceCancelServiceJob(serviceJobID => $serviceJobID, cancelServiceJobRequest => $cancelServiceJobRequest);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceCancelServiceJob: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)
cancelServiceJobRequest = {"serviceJobID":0,"cancelReason":"string"} # CancelServiceJobRequest |  (optional)

try:
    # Cancel a service job
    api_instance.service_cancel_service_job(serviceJobID, cancelServiceJobRequest=cancelServiceJobRequest)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceCancelServiceJob: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let serviceJobID = 56; // Integer
    let cancelServiceJobRequest = {"serviceJobID":0,"cancelReason":"string"}; // CancelServiceJobRequest

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceCancelServiceJob(serviceJobID, cancelServiceJobRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required
Body parameters
Name Description
cancelServiceJobRequest

Responses


serviceCreateInvoicesForServiceJobs

Create invoices for service jobs

Create invoices for service jobs


/Spenda/ServiceJobs/ServiceJobs/Invoices

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/Invoices" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        CreateInvoicesForServiceJobsRequest createInvoicesForServiceJobsRequest = {"serviceJobIDs":[0]}; // CreateInvoicesForServiceJobsRequest | 

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

final api_instance = DefaultApi();

final CreateInvoicesForServiceJobsRequest createInvoicesForServiceJobsRequest = new CreateInvoicesForServiceJobsRequest(); // CreateInvoicesForServiceJobsRequest | 

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        CreateInvoicesForServiceJobsRequest createInvoicesForServiceJobsRequest = {"serviceJobIDs":[0]}; // CreateInvoicesForServiceJobsRequest | 

        try {
            httpActionResult_createInvoicesForServiceJobsResponse result = apiInstance.serviceCreateInvoicesForServiceJobs(createInvoicesForServiceJobsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceCreateInvoicesForServiceJobs");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
CreateInvoicesForServiceJobsRequest *createInvoicesForServiceJobsRequest = {"serviceJobIDs":[0]}; //  (optional)

// Create invoices for service jobs
[apiInstance serviceCreateInvoicesForServiceJobsWith:createInvoicesForServiceJobsRequest
              completionHandler: ^(httpActionResult_createInvoicesForServiceJobsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var opts = {
  'createInvoicesForServiceJobsRequest': {"serviceJobIDs":[0]} // {CreateInvoicesForServiceJobsRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var createInvoicesForServiceJobsRequest = new CreateInvoicesForServiceJobsRequest(); // CreateInvoicesForServiceJobsRequest |  (optional) 

            try {
                // Create invoices for service jobs
                httpActionResult_createInvoicesForServiceJobsResponse result = apiInstance.serviceCreateInvoicesForServiceJobs(createInvoicesForServiceJobsRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceCreateInvoicesForServiceJobs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$createInvoicesForServiceJobsRequest = {"serviceJobIDs":[0]}; // CreateInvoicesForServiceJobsRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $createInvoicesForServiceJobsRequest = WWW::OPenAPIClient::Object::CreateInvoicesForServiceJobsRequest->new(); # CreateInvoicesForServiceJobsRequest | 

eval {
    my $result = $api_instance->serviceCreateInvoicesForServiceJobs(createInvoicesForServiceJobsRequest => $createInvoicesForServiceJobsRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceCreateInvoicesForServiceJobs: $@\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.ServiceJobApi()
createInvoicesForServiceJobsRequest = {"serviceJobIDs":[0]} # CreateInvoicesForServiceJobsRequest |  (optional)

try:
    # Create invoices for service jobs
    api_response = api_instance.service_create_invoices_for_service_jobs(createInvoicesForServiceJobsRequest=createInvoicesForServiceJobsRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceCreateInvoicesForServiceJobs: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let createInvoicesForServiceJobsRequest = {"serviceJobIDs":[0]}; // CreateInvoicesForServiceJobsRequest

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceCreateInvoicesForServiceJobs(createInvoicesForServiceJobsRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
createInvoicesForServiceJobsRequest

Responses


serviceCreateServiceJob

Creates a service job

Allows a tenant to create a service job


/Spenda/ServiceJobs/ServiceJobs

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        UpdateServiceJobRequest updateServiceJobRequest = {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; // UpdateServiceJobRequest | 

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

final api_instance = DefaultApi();

final UpdateServiceJobRequest updateServiceJobRequest = new UpdateServiceJobRequest(); // UpdateServiceJobRequest | 

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        UpdateServiceJobRequest updateServiceJobRequest = {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; // UpdateServiceJobRequest | 

        try {
            httpActionResult_getServiceJobResponse result = apiInstance.serviceCreateServiceJob(updateServiceJobRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceCreateServiceJob");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
UpdateServiceJobRequest *updateServiceJobRequest = {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; //  (optional)

// Creates a service job
[apiInstance serviceCreateServiceJobWith:updateServiceJobRequest
              completionHandler: ^(httpActionResult_getServiceJobResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var opts = {
  'updateServiceJobRequest': {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]} // {UpdateServiceJobRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var updateServiceJobRequest = new UpdateServiceJobRequest(); // UpdateServiceJobRequest |  (optional) 

            try {
                // Creates a service job
                httpActionResult_getServiceJobResponse result = apiInstance.serviceCreateServiceJob(updateServiceJobRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceCreateServiceJob: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$updateServiceJobRequest = {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; // UpdateServiceJobRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $updateServiceJobRequest = WWW::OPenAPIClient::Object::UpdateServiceJobRequest->new(); # UpdateServiceJobRequest | 

eval {
    my $result = $api_instance->serviceCreateServiceJob(updateServiceJobRequest => $updateServiceJobRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceCreateServiceJob: $@\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.ServiceJobApi()
updateServiceJobRequest = {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]} # UpdateServiceJobRequest |  (optional)

try:
    # Creates a service job
    api_response = api_instance.service_create_service_job(updateServiceJobRequest=updateServiceJobRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceCreateServiceJob: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let updateServiceJobRequest = {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; // UpdateServiceJobRequest

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceCreateServiceJob(updateServiceJobRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
updateServiceJobRequest

Responses


serviceCreateServiceJobFromQuote

Create service job from quote

Allows a tenant to create service job from a quote


/Spenda/ServiceJobs/ServiceJobs/CreateFromQuote/{quoteID}

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/CreateFromQuote/{quoteID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer quoteID = 56; // Integer | The quote ID

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

final api_instance = DefaultApi();

final Integer quoteID = new Integer(); // Integer | The quote ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer quoteID = 56; // Integer | The quote ID

        try {
            httpActionResult_getServiceJobResponse result = apiInstance.serviceCreateServiceJobFromQuote(quoteID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceCreateServiceJobFromQuote");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *quoteID = 56; // The quote ID (default to null)

// Create service job from quote
[apiInstance serviceCreateServiceJobFromQuoteWith:quoteID
              completionHandler: ^(httpActionResult_getServiceJobResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var quoteID = 56; // {Integer} The quote ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var quoteID = 56;  // Integer | The quote ID (default to null)

            try {
                // Create service job from quote
                httpActionResult_getServiceJobResponse result = apiInstance.serviceCreateServiceJobFromQuote(quoteID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceCreateServiceJobFromQuote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$quoteID = 56; // Integer | The quote ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $quoteID = 56; # Integer | The quote ID

eval {
    my $result = $api_instance->serviceCreateServiceJobFromQuote(quoteID => $quoteID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceCreateServiceJobFromQuote: $@\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.ServiceJobApi()
quoteID = 56 # Integer | The quote ID (default to null)

try:
    # Create service job from quote
    api_response = api_instance.service_create_service_job_from_quote(quoteID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceCreateServiceJobFromQuote: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceCreateServiceJobFromQuote(quoteID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
quoteID*
Integer (int32)
The quote ID
Required

Responses


serviceGetServiceCustomers

Get service jobs customers

Allows a tenant to get the service job customers


/Spenda/ServiceJobs/ServiceJobs/ServiceCustomers

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/ServiceCustomers?StartRow=56&MaxResults=56&SortField=sortField_example&SortOrder=sortOrder_example&SearchString=searchString_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        String sortField = sortField_example; // String | The sort field
        String sortOrder = sortOrder_example; // String | The sort order
        String searchString = searchString_example; // String | The search string

        try {
            httpActionResult_getServiceJobCustomersResponse result = apiInstance.serviceGetServiceCustomers(startRow, maxResults, sortField, sortOrder, searchString);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceGetServiceCustomers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer startRow = new Integer(); // Integer | The start row position
final Integer maxResults = new Integer(); // Integer | The number of results to return
final String sortField = new String(); // String | The sort field
final String sortOrder = new String(); // String | The sort order
final String searchString = new String(); // String | The search string

try {
    final result = await api_instance.serviceGetServiceCustomers(startRow, maxResults, sortField, sortOrder, searchString);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serviceGetServiceCustomers: $e\n');
}

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        String sortField = sortField_example; // String | The sort field
        String sortOrder = sortOrder_example; // String | The sort order
        String searchString = searchString_example; // String | The search string

        try {
            httpActionResult_getServiceJobCustomersResponse result = apiInstance.serviceGetServiceCustomers(startRow, maxResults, sortField, sortOrder, searchString);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceGetServiceCustomers");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *startRow = 56; // The start row position (optional) (default to null)
Integer *maxResults = 56; // The number of results to return (optional) (default to null)
String *sortField = sortField_example; // The sort field (optional) (default to null)
String *sortOrder = sortOrder_example; // The sort order (optional) (default to null)
String *searchString = searchString_example; // The search string (optional) (default to null)

// Get service jobs customers
[apiInstance serviceGetServiceCustomersWith:startRow
    maxResults:maxResults
    sortField:sortField
    sortOrder:sortOrder
    searchString:searchString
              completionHandler: ^(httpActionResult_getServiceJobCustomersResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var opts = {
  'startRow': 56, // {Integer} The start row position
  'maxResults': 56, // {Integer} The number of results to return
  'sortField': sortField_example, // {String} The sort field
  'sortOrder': sortOrder_example, // {String} The sort order
  'searchString': searchString_example // {String} The search string
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var startRow = 56;  // Integer | The start row position (optional)  (default to null)
            var maxResults = 56;  // Integer | The number of results to return (optional)  (default to null)
            var sortField = sortField_example;  // String | The sort field (optional)  (default to null)
            var sortOrder = sortOrder_example;  // String | The sort order (optional)  (default to null)
            var searchString = searchString_example;  // String | The search string (optional)  (default to null)

            try {
                // Get service jobs customers
                httpActionResult_getServiceJobCustomersResponse result = apiInstance.serviceGetServiceCustomers(startRow, maxResults, sortField, sortOrder, searchString);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceGetServiceCustomers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$startRow = 56; // Integer | The start row position
$maxResults = 56; // Integer | The number of results to return
$sortField = sortField_example; // String | The sort field
$sortOrder = sortOrder_example; // String | The sort order
$searchString = searchString_example; // String | The search string

try {
    $result = $api_instance->serviceGetServiceCustomers($startRow, $maxResults, $sortField, $sortOrder, $searchString);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceGetServiceCustomers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $startRow = 56; # Integer | The start row position
my $maxResults = 56; # Integer | The number of results to return
my $sortField = sortField_example; # String | The sort field
my $sortOrder = sortOrder_example; # String | The sort order
my $searchString = searchString_example; # String | The search string

eval {
    my $result = $api_instance->serviceGetServiceCustomers(startRow => $startRow, maxResults => $maxResults, sortField => $sortField, sortOrder => $sortOrder, searchString => $searchString);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceGetServiceCustomers: $@\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.ServiceJobApi()
startRow = 56 # Integer | The start row position (optional) (default to null)
maxResults = 56 # Integer | The number of results to return (optional) (default to null)
sortField = sortField_example # String | The sort field (optional) (default to null)
sortOrder = sortOrder_example # String | The sort order (optional) (default to null)
searchString = searchString_example # String | The search string (optional) (default to null)

try:
    # Get service jobs customers
    api_response = api_instance.service_get_service_customers(startRow=startRow, maxResults=maxResults, sortField=sortField, sortOrder=sortOrder, searchString=searchString)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceGetServiceCustomers: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let startRow = 56; // Integer
    let maxResults = 56; // Integer
    let sortField = sortField_example; // String
    let sortOrder = sortOrder_example; // String
    let searchString = searchString_example; // String

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceGetServiceCustomers(startRow, maxResults, sortField, sortOrder, searchString, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
StartRow
Integer (int32)
The start row position
MaxResults
Integer (int32)
The number of results to return
SortField
String
The sort field
SortOrder
String
The sort order
SearchString
String
The search string

Responses


serviceGetServiceJob

Get service job

Allows a tenant to get a service job


/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

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

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            httpActionResult_getServiceJobResponse result = apiInstance.serviceGetServiceJob(serviceJobID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceGetServiceJob");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)

// Get service job
[apiInstance serviceGetServiceJobWith:serviceJobID
              completionHandler: ^(httpActionResult_getServiceJobResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)

            try {
                // Get service job
                httpActionResult_getServiceJobResponse result = apiInstance.serviceGetServiceJob(serviceJobID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceGetServiceJob: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID

eval {
    my $result = $api_instance->serviceGetServiceJob(serviceJobID => $serviceJobID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceGetServiceJob: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)

try:
    # Get service job
    api_response = api_instance.service_get_service_job(serviceJobID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceGetServiceJob: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceGetServiceJob(serviceJobID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required

Responses


serviceGetServiceJobAttachments

Get service job attachments

Allows a tenant to get attachments for a service job


/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/Attachments

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/Attachments"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

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

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            httpActionResult_getServiceJobAttachmentsResponse result = apiInstance.serviceGetServiceJobAttachments(serviceJobID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceGetServiceJobAttachments");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)

// Get service job attachments
[apiInstance serviceGetServiceJobAttachmentsWith:serviceJobID
              completionHandler: ^(httpActionResult_getServiceJobAttachmentsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)

            try {
                // Get service job attachments
                httpActionResult_getServiceJobAttachmentsResponse result = apiInstance.serviceGetServiceJobAttachments(serviceJobID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceGetServiceJobAttachments: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID

eval {
    my $result = $api_instance->serviceGetServiceJobAttachments(serviceJobID => $serviceJobID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceGetServiceJobAttachments: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)

try:
    # Get service job attachments
    api_response = api_instance.service_get_service_job_attachments(serviceJobID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceGetServiceJobAttachments: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceGetServiceJobAttachments(serviceJobID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required

Responses


serviceGetServiceJobDailySummary

Get service job daily summary

Allows a tenant to get a service job daily summary


/Spenda/ServiceJobs/ServiceJobs/DailySummary

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/DailySummary?StartDate=2013-10-20T19:20:30+01:00&EndDate=2013-10-20T19:20:30+01:00&SearchString=searchString_example&IsShowUnassignedServiceJobs=isShowUnassignedServiceJobs_example&ServiceTechnicianIDs="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Start date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | End date
        String searchString = searchString_example; // String | The search string
        String isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // String | Show unassigned service job
        array[Integer] serviceTechnicianIDs = ; // array[Integer] | Service technician ids

        try {
            httpActionResult_getServiceJobDailySummaryResponse result = apiInstance.serviceGetServiceJobDailySummary(startDate, endDate, searchString, isShowUnassignedServiceJobs, serviceTechnicianIDs);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceGetServiceJobDailySummary");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Date startDate = new Date(); // Date | Start date
final Date endDate = new Date(); // Date | End date
final String searchString = new String(); // String | The search string
final String isShowUnassignedServiceJobs = new String(); // String | Show unassigned service job
final array[Integer] serviceTechnicianIDs = new array[Integer](); // array[Integer] | Service technician ids

try {
    final result = await api_instance.serviceGetServiceJobDailySummary(startDate, endDate, searchString, isShowUnassignedServiceJobs, serviceTechnicianIDs);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serviceGetServiceJobDailySummary: $e\n');
}

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Start date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | End date
        String searchString = searchString_example; // String | The search string
        String isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // String | Show unassigned service job
        array[Integer] serviceTechnicianIDs = ; // array[Integer] | Service technician ids

        try {
            httpActionResult_getServiceJobDailySummaryResponse result = apiInstance.serviceGetServiceJobDailySummary(startDate, endDate, searchString, isShowUnassignedServiceJobs, serviceTechnicianIDs);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceGetServiceJobDailySummary");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Date *startDate = 2013-10-20T19:20:30+01:00; // Start date (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // End date (default to null)
String *searchString = searchString_example; // The search string (optional) (default to null)
String *isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // Show unassigned service job (optional) (default to null)
array[Integer] *serviceTechnicianIDs = ; // Service technician ids (optional) (default to null)

// Get service job daily summary
[apiInstance serviceGetServiceJobDailySummaryWith:startDate
    endDate:endDate
    searchString:searchString
    isShowUnassignedServiceJobs:isShowUnassignedServiceJobs
    serviceTechnicianIDs:serviceTechnicianIDs
              completionHandler: ^(httpActionResult_getServiceJobDailySummaryResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var startDate = 2013-10-20T19:20:30+01:00; // {Date} Start date
var endDate = 2013-10-20T19:20:30+01:00; // {Date} End date
var opts = {
  'searchString': searchString_example, // {String} The search string
  'isShowUnassignedServiceJobs': isShowUnassignedServiceJobs_example, // {String} Show unassigned service job
  'serviceTechnicianIDs':  // {array[Integer]} Service technician ids
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var startDate = 2013-10-20T19:20:30+01:00;  // Date | Start date (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | End date (default to null)
            var searchString = searchString_example;  // String | The search string (optional)  (default to null)
            var isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example;  // String | Show unassigned service job (optional)  (default to null)
            var serviceTechnicianIDs = new array[Integer](); // array[Integer] | Service technician ids (optional)  (default to null)

            try {
                // Get service job daily summary
                httpActionResult_getServiceJobDailySummaryResponse result = apiInstance.serviceGetServiceJobDailySummary(startDate, endDate, searchString, isShowUnassignedServiceJobs, serviceTechnicianIDs);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceGetServiceJobDailySummary: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$startDate = 2013-10-20T19:20:30+01:00; // Date | Start date
$endDate = 2013-10-20T19:20:30+01:00; // Date | End date
$searchString = searchString_example; // String | The search string
$isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // String | Show unassigned service job
$serviceTechnicianIDs = ; // array[Integer] | Service technician ids

try {
    $result = $api_instance->serviceGetServiceJobDailySummary($startDate, $endDate, $searchString, $isShowUnassignedServiceJobs, $serviceTechnicianIDs);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceGetServiceJobDailySummary: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $startDate = 2013-10-20T19:20:30+01:00; # Date | Start date
my $endDate = 2013-10-20T19:20:30+01:00; # Date | End date
my $searchString = searchString_example; # String | The search string
my $isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; # String | Show unassigned service job
my $serviceTechnicianIDs = []; # array[Integer] | Service technician ids

eval {
    my $result = $api_instance->serviceGetServiceJobDailySummary(startDate => $startDate, endDate => $endDate, searchString => $searchString, isShowUnassignedServiceJobs => $isShowUnassignedServiceJobs, serviceTechnicianIDs => $serviceTechnicianIDs);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceGetServiceJobDailySummary: $@\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.ServiceJobApi()
startDate = 2013-10-20T19:20:30+01:00 # Date | Start date (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | End date (default to null)
searchString = searchString_example # String | The search string (optional) (default to null)
isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example # String | Show unassigned service job (optional) (default to null)
serviceTechnicianIDs =  # array[Integer] | Service technician ids (optional) (default to null)

try:
    # Get service job daily summary
    api_response = api_instance.service_get_service_job_daily_summary(startDate, endDate, searchString=searchString, isShowUnassignedServiceJobs=isShowUnassignedServiceJobs, serviceTechnicianIDs=serviceTechnicianIDs)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceGetServiceJobDailySummary: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date
    let searchString = searchString_example; // String
    let isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // String
    let serviceTechnicianIDs = ; // array[Integer]

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceGetServiceJobDailySummary(startDate, endDate, searchString, isShowUnassignedServiceJobs, serviceTechnicianIDs, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
StartDate*
Date (date-time)
Start date
Required
EndDate*
Date (date-time)
End date
Required
SearchString
String
The search string
IsShowUnassignedServiceJobs
String
Show unassigned service job
ServiceTechnicianIDs
array[Integer] (int32)
Service technician ids

Responses


serviceGetServiceJobDashboardForTechnicianUser

Get service job for technician user

Allows a tenant to get a service job


/Spenda/ServiceJobs/ServiceJobs/TechnicianDashboard

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/TechnicianDashboard?SearchString=searchString_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        String searchString = searchString_example; // String | The search string

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

final api_instance = DefaultApi();

final String searchString = new String(); // String | The search string

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        String searchString = searchString_example; // String | The search string

        try {
            httpActionResult_getServiceJobDashboardForTechnicianUserResponse result = apiInstance.serviceGetServiceJobDashboardForTechnicianUser(searchString);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceGetServiceJobDashboardForTechnicianUser");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
String *searchString = searchString_example; // The search string (optional) (default to null)

// Get service job for technician user
[apiInstance serviceGetServiceJobDashboardForTechnicianUserWith:searchString
              completionHandler: ^(httpActionResult_getServiceJobDashboardForTechnicianUserResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var opts = {
  'searchString': searchString_example // {String} The search string
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var searchString = searchString_example;  // String | The search string (optional)  (default to null)

            try {
                // Get service job for technician user
                httpActionResult_getServiceJobDashboardForTechnicianUserResponse result = apiInstance.serviceGetServiceJobDashboardForTechnicianUser(searchString);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceGetServiceJobDashboardForTechnicianUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$searchString = searchString_example; // String | The search string

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $searchString = searchString_example; # String | The search string

eval {
    my $result = $api_instance->serviceGetServiceJobDashboardForTechnicianUser(searchString => $searchString);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceGetServiceJobDashboardForTechnicianUser: $@\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.ServiceJobApi()
searchString = searchString_example # String | The search string (optional) (default to null)

try:
    # Get service job for technician user
    api_response = api_instance.service_get_service_job_dashboard_for_technician_user(searchString=searchString)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceGetServiceJobDashboardForTechnicianUser: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let searchString = searchString_example; // String

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceGetServiceJobDashboardForTechnicianUser(searchString, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
SearchString
String
The search string

Responses


serviceGetServiceJobForTechnicianUser

Get service job for technician user

Allows a tenant to get a service job by id for technician user


/Spenda/ServiceJobs/TechnicianServiceJobs/{serviceJobID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/TechnicianServiceJobs/{serviceJobID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

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

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            httpActionResult_getServiceJobForTechnicianUserResponse result = apiInstance.serviceGetServiceJobForTechnicianUser(serviceJobID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceGetServiceJobForTechnicianUser");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)

// Get service job for technician user
[apiInstance serviceGetServiceJobForTechnicianUserWith:serviceJobID
              completionHandler: ^(httpActionResult_getServiceJobForTechnicianUserResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)

            try {
                // Get service job for technician user
                httpActionResult_getServiceJobForTechnicianUserResponse result = apiInstance.serviceGetServiceJobForTechnicianUser(serviceJobID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceGetServiceJobForTechnicianUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID

eval {
    my $result = $api_instance->serviceGetServiceJobForTechnicianUser(serviceJobID => $serviceJobID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceGetServiceJobForTechnicianUser: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)

try:
    # Get service job for technician user
    api_response = api_instance.service_get_service_job_for_technician_user(serviceJobID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceGetServiceJobForTechnicianUser: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceGetServiceJobForTechnicianUser(serviceJobID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required

Responses


serviceGetServiceJobHistoryForTechnicianUser

Get service job history for technician user

Allows a tenant to get service job history for a technician


/Spenda/ServiceJobs/TechnicianServiceJobs/History

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/TechnicianServiceJobs/History?SearchString=searchString_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        String searchString = searchString_example; // String | The search string

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

final api_instance = DefaultApi();

final String searchString = new String(); // String | The search string

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        String searchString = searchString_example; // String | The search string

        try {
            httpActionResult_getServiceJobHistoryForTechnicianUserResponse result = apiInstance.serviceGetServiceJobHistoryForTechnicianUser(searchString);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceGetServiceJobHistoryForTechnicianUser");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
String *searchString = searchString_example; // The search string (optional) (default to null)

// Get service job history for technician user
[apiInstance serviceGetServiceJobHistoryForTechnicianUserWith:searchString
              completionHandler: ^(httpActionResult_getServiceJobHistoryForTechnicianUserResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var opts = {
  'searchString': searchString_example // {String} The search string
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var searchString = searchString_example;  // String | The search string (optional)  (default to null)

            try {
                // Get service job history for technician user
                httpActionResult_getServiceJobHistoryForTechnicianUserResponse result = apiInstance.serviceGetServiceJobHistoryForTechnicianUser(searchString);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceGetServiceJobHistoryForTechnicianUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$searchString = searchString_example; // String | The search string

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $searchString = searchString_example; # String | The search string

eval {
    my $result = $api_instance->serviceGetServiceJobHistoryForTechnicianUser(searchString => $searchString);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceGetServiceJobHistoryForTechnicianUser: $@\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.ServiceJobApi()
searchString = searchString_example # String | The search string (optional) (default to null)

try:
    # Get service job history for technician user
    api_response = api_instance.service_get_service_job_history_for_technician_user(searchString=searchString)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceGetServiceJobHistoryForTechnicianUser: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let searchString = searchString_example; // String

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceGetServiceJobHistoryForTechnicianUser(searchString, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
SearchString
String
The search string

Responses


serviceGetServiceJobsForCalendar

Get service jobs for calendar

Allows a tenant to get a service jobs for calendar


/Spenda/ServiceJobs/ServiceJobs/Calendar

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/Calendar?StartDate=2013-10-20T19:20:30+01:00&EndDate=2013-10-20T19:20:30+01:00&SearchString=searchString_example&IsShowUnassignedServiceJobs=isShowUnassignedServiceJobs_example&ServiceTechnicianIDs="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Start date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | End date
        String searchString = searchString_example; // String | The search string
        String isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // String | Show unassigned service job
        array[Integer] serviceTechnicianIDs = ; // array[Integer] | Service technician ids

        try {
            httpActionResult_getServiceJobsForCalendarResponse result = apiInstance.serviceGetServiceJobsForCalendar(startDate, endDate, searchString, isShowUnassignedServiceJobs, serviceTechnicianIDs);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceGetServiceJobsForCalendar");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Date startDate = new Date(); // Date | Start date
final Date endDate = new Date(); // Date | End date
final String searchString = new String(); // String | The search string
final String isShowUnassignedServiceJobs = new String(); // String | Show unassigned service job
final array[Integer] serviceTechnicianIDs = new array[Integer](); // array[Integer] | Service technician ids

try {
    final result = await api_instance.serviceGetServiceJobsForCalendar(startDate, endDate, searchString, isShowUnassignedServiceJobs, serviceTechnicianIDs);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serviceGetServiceJobsForCalendar: $e\n');
}

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Start date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | End date
        String searchString = searchString_example; // String | The search string
        String isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // String | Show unassigned service job
        array[Integer] serviceTechnicianIDs = ; // array[Integer] | Service technician ids

        try {
            httpActionResult_getServiceJobsForCalendarResponse result = apiInstance.serviceGetServiceJobsForCalendar(startDate, endDate, searchString, isShowUnassignedServiceJobs, serviceTechnicianIDs);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceGetServiceJobsForCalendar");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Date *startDate = 2013-10-20T19:20:30+01:00; // Start date (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // End date (optional) (default to null)
String *searchString = searchString_example; // The search string (optional) (default to null)
String *isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // Show unassigned service job (optional) (default to null)
array[Integer] *serviceTechnicianIDs = ; // Service technician ids (optional) (default to null)

// Get service jobs for calendar
[apiInstance serviceGetServiceJobsForCalendarWith:startDate
    endDate:endDate
    searchString:searchString
    isShowUnassignedServiceJobs:isShowUnassignedServiceJobs
    serviceTechnicianIDs:serviceTechnicianIDs
              completionHandler: ^(httpActionResult_getServiceJobsForCalendarResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var opts = {
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} Start date
  'endDate': 2013-10-20T19:20:30+01:00, // {Date} End date
  'searchString': searchString_example, // {String} The search string
  'isShowUnassignedServiceJobs': isShowUnassignedServiceJobs_example, // {String} Show unassigned service job
  'serviceTechnicianIDs':  // {array[Integer]} Service technician ids
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var startDate = 2013-10-20T19:20:30+01:00;  // Date | Start date (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | End date (optional)  (default to null)
            var searchString = searchString_example;  // String | The search string (optional)  (default to null)
            var isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example;  // String | Show unassigned service job (optional)  (default to null)
            var serviceTechnicianIDs = new array[Integer](); // array[Integer] | Service technician ids (optional)  (default to null)

            try {
                // Get service jobs for calendar
                httpActionResult_getServiceJobsForCalendarResponse result = apiInstance.serviceGetServiceJobsForCalendar(startDate, endDate, searchString, isShowUnassignedServiceJobs, serviceTechnicianIDs);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceGetServiceJobsForCalendar: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$startDate = 2013-10-20T19:20:30+01:00; // Date | Start date
$endDate = 2013-10-20T19:20:30+01:00; // Date | End date
$searchString = searchString_example; // String | The search string
$isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // String | Show unassigned service job
$serviceTechnicianIDs = ; // array[Integer] | Service technician ids

try {
    $result = $api_instance->serviceGetServiceJobsForCalendar($startDate, $endDate, $searchString, $isShowUnassignedServiceJobs, $serviceTechnicianIDs);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceGetServiceJobsForCalendar: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $startDate = 2013-10-20T19:20:30+01:00; # Date | Start date
my $endDate = 2013-10-20T19:20:30+01:00; # Date | End date
my $searchString = searchString_example; # String | The search string
my $isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; # String | Show unassigned service job
my $serviceTechnicianIDs = []; # array[Integer] | Service technician ids

eval {
    my $result = $api_instance->serviceGetServiceJobsForCalendar(startDate => $startDate, endDate => $endDate, searchString => $searchString, isShowUnassignedServiceJobs => $isShowUnassignedServiceJobs, serviceTechnicianIDs => $serviceTechnicianIDs);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceGetServiceJobsForCalendar: $@\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.ServiceJobApi()
startDate = 2013-10-20T19:20:30+01:00 # Date | Start date (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | End date (optional) (default to null)
searchString = searchString_example # String | The search string (optional) (default to null)
isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example # String | Show unassigned service job (optional) (default to null)
serviceTechnicianIDs =  # array[Integer] | Service technician ids (optional) (default to null)

try:
    # Get service jobs for calendar
    api_response = api_instance.service_get_service_jobs_for_calendar(startDate=startDate, endDate=endDate, searchString=searchString, isShowUnassignedServiceJobs=isShowUnassignedServiceJobs, serviceTechnicianIDs=serviceTechnicianIDs)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceGetServiceJobsForCalendar: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date
    let searchString = searchString_example; // String
    let isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // String
    let serviceTechnicianIDs = ; // array[Integer]

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceGetServiceJobsForCalendar(startDate, endDate, searchString, isShowUnassignedServiceJobs, serviceTechnicianIDs, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
StartDate
Date (date-time)
Start date
EndDate
Date (date-time)
End date
SearchString
String
The search string
IsShowUnassignedServiceJobs
String
Show unassigned service job
ServiceTechnicianIDs
array[Integer] (int32)
Service technician ids

Responses


serviceRequiresAttention

Get service jobs that require attention

Allows a tenant to get service jobs that require attention


/Spenda/ServiceJobs/ServiceJobs/RequiresAttention

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/RequiresAttention?StartRow=56&MaxResults=56&SortField=sortField_example&ServiceTechnicianIDs=&SortOrder=sortOrder_example&SearchString=searchString_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        String sortField = sortField_example; // String | The sort field
        array[Integer] serviceTechnicianIDs = ; // array[Integer] | Service technician ids
        String sortOrder = sortOrder_example; // String | The sort order
        String searchString = searchString_example; // String | The search string

        try {
            httpActionResult_getServiceJobsRequiresAttentionResponse result = apiInstance.serviceRequiresAttention(startRow, maxResults, sortField, serviceTechnicianIDs, sortOrder, searchString);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceRequiresAttention");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer startRow = new Integer(); // Integer | The start row position
final Integer maxResults = new Integer(); // Integer | The number of results to return
final String sortField = new String(); // String | The sort field
final array[Integer] serviceTechnicianIDs = new array[Integer](); // array[Integer] | Service technician ids
final String sortOrder = new String(); // String | The sort order
final String searchString = new String(); // String | The search string

try {
    final result = await api_instance.serviceRequiresAttention(startRow, maxResults, sortField, serviceTechnicianIDs, sortOrder, searchString);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serviceRequiresAttention: $e\n');
}

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        String sortField = sortField_example; // String | The sort field
        array[Integer] serviceTechnicianIDs = ; // array[Integer] | Service technician ids
        String sortOrder = sortOrder_example; // String | The sort order
        String searchString = searchString_example; // String | The search string

        try {
            httpActionResult_getServiceJobsRequiresAttentionResponse result = apiInstance.serviceRequiresAttention(startRow, maxResults, sortField, serviceTechnicianIDs, sortOrder, searchString);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceRequiresAttention");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *startRow = 56; // The start row position (optional) (default to null)
Integer *maxResults = 56; // The number of results to return (optional) (default to null)
String *sortField = sortField_example; // The sort field (optional) (default to null)
array[Integer] *serviceTechnicianIDs = ; // Service technician ids (optional) (default to null)
String *sortOrder = sortOrder_example; // The sort order (optional) (default to null)
String *searchString = searchString_example; // The search string (optional) (default to null)

// Get service jobs that require attention
[apiInstance serviceRequiresAttentionWith:startRow
    maxResults:maxResults
    sortField:sortField
    serviceTechnicianIDs:serviceTechnicianIDs
    sortOrder:sortOrder
    searchString:searchString
              completionHandler: ^(httpActionResult_getServiceJobsRequiresAttentionResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var opts = {
  'startRow': 56, // {Integer} The start row position
  'maxResults': 56, // {Integer} The number of results to return
  'sortField': sortField_example, // {String} The sort field
  'serviceTechnicianIDs': , // {array[Integer]} Service technician ids
  'sortOrder': sortOrder_example, // {String} The sort order
  'searchString': searchString_example // {String} The search string
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var startRow = 56;  // Integer | The start row position (optional)  (default to null)
            var maxResults = 56;  // Integer | The number of results to return (optional)  (default to null)
            var sortField = sortField_example;  // String | The sort field (optional)  (default to null)
            var serviceTechnicianIDs = new array[Integer](); // array[Integer] | Service technician ids (optional)  (default to null)
            var sortOrder = sortOrder_example;  // String | The sort order (optional)  (default to null)
            var searchString = searchString_example;  // String | The search string (optional)  (default to null)

            try {
                // Get service jobs that require attention
                httpActionResult_getServiceJobsRequiresAttentionResponse result = apiInstance.serviceRequiresAttention(startRow, maxResults, sortField, serviceTechnicianIDs, sortOrder, searchString);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceRequiresAttention: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$startRow = 56; // Integer | The start row position
$maxResults = 56; // Integer | The number of results to return
$sortField = sortField_example; // String | The sort field
$serviceTechnicianIDs = ; // array[Integer] | Service technician ids
$sortOrder = sortOrder_example; // String | The sort order
$searchString = searchString_example; // String | The search string

try {
    $result = $api_instance->serviceRequiresAttention($startRow, $maxResults, $sortField, $serviceTechnicianIDs, $sortOrder, $searchString);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceRequiresAttention: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $startRow = 56; # Integer | The start row position
my $maxResults = 56; # Integer | The number of results to return
my $sortField = sortField_example; # String | The sort field
my $serviceTechnicianIDs = []; # array[Integer] | Service technician ids
my $sortOrder = sortOrder_example; # String | The sort order
my $searchString = searchString_example; # String | The search string

eval {
    my $result = $api_instance->serviceRequiresAttention(startRow => $startRow, maxResults => $maxResults, sortField => $sortField, serviceTechnicianIDs => $serviceTechnicianIDs, sortOrder => $sortOrder, searchString => $searchString);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceRequiresAttention: $@\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.ServiceJobApi()
startRow = 56 # Integer | The start row position (optional) (default to null)
maxResults = 56 # Integer | The number of results to return (optional) (default to null)
sortField = sortField_example # String | The sort field (optional) (default to null)
serviceTechnicianIDs =  # array[Integer] | Service technician ids (optional) (default to null)
sortOrder = sortOrder_example # String | The sort order (optional) (default to null)
searchString = searchString_example # String | The search string (optional) (default to null)

try:
    # Get service jobs that require attention
    api_response = api_instance.service_requires_attention(startRow=startRow, maxResults=maxResults, sortField=sortField, serviceTechnicianIDs=serviceTechnicianIDs, sortOrder=sortOrder, searchString=searchString)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceRequiresAttention: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let startRow = 56; // Integer
    let maxResults = 56; // Integer
    let sortField = sortField_example; // String
    let serviceTechnicianIDs = ; // array[Integer]
    let sortOrder = sortOrder_example; // String
    let searchString = searchString_example; // String

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceRequiresAttention(startRow, maxResults, sortField, serviceTechnicianIDs, sortOrder, searchString, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
StartRow
Integer (int32)
The start row position
MaxResults
Integer (int32)
The number of results to return
SortField
String
The sort field
ServiceTechnicianIDs
array[Integer] (int32)
Service technician ids
SortOrder
String
The sort order
SearchString
String
The search string

Responses


serviceSearchServiceJobs

Search service jobs

Allows a tenant to service jobs


/Spenda/ServiceJobs/ServiceJobs

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs?StartRow=56&MaxResults=56&SortField=sortField_example&SortOrder=sortOrder_example&SearchString=searchString_example&Statuses=&CustomerID=56&IsShowUnassignedServiceJobs=isShowUnassignedServiceJobs_example&ServiceTechnicianIDs=&AssetID=56&StartDate=56&EndDate=56&RepUserID=56&JobType=&ViewMode=viewMode_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        String sortField = sortField_example; // String | The sort field
        String sortOrder = sortOrder_example; // String | The sort order
        String searchString = searchString_example; // String | The search string
        array[String] statuses = ; // array[String] | The status filter
        Integer customerID = 56; // Integer | The customer ID filter
        String isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // String | Show unassigned service job
        array[Integer] serviceTechnicianIDs = ; // array[Integer] | Service technician ids
        Integer assetID = 56; // Integer | The Asset ID filter
        Integer startDate = 56; // Integer | The Start date filter
        Integer endDate = 56; // Integer | The End date filter
        Integer repUserID = 56; // Integer | The sales user ID
        array[String] jobType = ; // array[String] | The job type
        String viewMode = viewMode_example; // String | The view mode for the search

        try {
            httpActionResult_searchServiceJobsResponse result = apiInstance.serviceSearchServiceJobs(startRow, maxResults, sortField, sortOrder, searchString, statuses, customerID, isShowUnassignedServiceJobs, serviceTechnicianIDs, assetID, startDate, endDate, repUserID, jobType, viewMode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSearchServiceJobs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer startRow = new Integer(); // Integer | The start row position
final Integer maxResults = new Integer(); // Integer | The number of results to return
final String sortField = new String(); // String | The sort field
final String sortOrder = new String(); // String | The sort order
final String searchString = new String(); // String | The search string
final array[String] statuses = new array[String](); // array[String] | The status filter
final Integer customerID = new Integer(); // Integer | The customer ID filter
final String isShowUnassignedServiceJobs = new String(); // String | Show unassigned service job
final array[Integer] serviceTechnicianIDs = new array[Integer](); // array[Integer] | Service technician ids
final Integer assetID = new Integer(); // Integer | The Asset ID filter
final Integer startDate = new Integer(); // Integer | The Start date filter
final Integer endDate = new Integer(); // Integer | The End date filter
final Integer repUserID = new Integer(); // Integer | The sales user ID
final array[String] jobType = new array[String](); // array[String] | The job type
final String viewMode = new String(); // String | The view mode for the search

try {
    final result = await api_instance.serviceSearchServiceJobs(startRow, maxResults, sortField, sortOrder, searchString, statuses, customerID, isShowUnassignedServiceJobs, serviceTechnicianIDs, assetID, startDate, endDate, repUserID, jobType, viewMode);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serviceSearchServiceJobs: $e\n');
}

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        String sortField = sortField_example; // String | The sort field
        String sortOrder = sortOrder_example; // String | The sort order
        String searchString = searchString_example; // String | The search string
        array[String] statuses = ; // array[String] | The status filter
        Integer customerID = 56; // Integer | The customer ID filter
        String isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // String | Show unassigned service job
        array[Integer] serviceTechnicianIDs = ; // array[Integer] | Service technician ids
        Integer assetID = 56; // Integer | The Asset ID filter
        Integer startDate = 56; // Integer | The Start date filter
        Integer endDate = 56; // Integer | The End date filter
        Integer repUserID = 56; // Integer | The sales user ID
        array[String] jobType = ; // array[String] | The job type
        String viewMode = viewMode_example; // String | The view mode for the search

        try {
            httpActionResult_searchServiceJobsResponse result = apiInstance.serviceSearchServiceJobs(startRow, maxResults, sortField, sortOrder, searchString, statuses, customerID, isShowUnassignedServiceJobs, serviceTechnicianIDs, assetID, startDate, endDate, repUserID, jobType, viewMode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSearchServiceJobs");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *startRow = 56; // The start row position (optional) (default to null)
Integer *maxResults = 56; // The number of results to return (optional) (default to null)
String *sortField = sortField_example; // The sort field (optional) (default to null)
String *sortOrder = sortOrder_example; // The sort order (optional) (default to null)
String *searchString = searchString_example; // The search string (optional) (default to null)
array[String] *statuses = ; // The status filter (optional) (default to null)
Integer *customerID = 56; // The customer ID filter (optional) (default to null)
String *isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // Show unassigned service job (optional) (default to null)
array[Integer] *serviceTechnicianIDs = ; // Service technician ids (optional) (default to null)
Integer *assetID = 56; // The Asset ID filter (optional) (default to null)
Integer *startDate = 56; // The Start date filter (optional) (default to null)
Integer *endDate = 56; // The End date filter (optional) (default to null)
Integer *repUserID = 56; // The sales user ID (optional) (default to null)
array[String] *jobType = ; // The job type (optional) (default to null)
String *viewMode = viewMode_example; // The view mode for the search (optional) (default to all)

// Search service jobs
[apiInstance serviceSearchServiceJobsWith:startRow
    maxResults:maxResults
    sortField:sortField
    sortOrder:sortOrder
    searchString:searchString
    statuses:statuses
    customerID:customerID
    isShowUnassignedServiceJobs:isShowUnassignedServiceJobs
    serviceTechnicianIDs:serviceTechnicianIDs
    assetID:assetID
    startDate:startDate
    endDate:endDate
    repUserID:repUserID
    jobType:jobType
    viewMode:viewMode
              completionHandler: ^(httpActionResult_searchServiceJobsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var opts = {
  'startRow': 56, // {Integer} The start row position
  'maxResults': 56, // {Integer} The number of results to return
  'sortField': sortField_example, // {String} The sort field
  'sortOrder': sortOrder_example, // {String} The sort order
  'searchString': searchString_example, // {String} The search string
  'statuses': , // {array[String]} The status filter
  'customerID': 56, // {Integer} The customer ID filter
  'isShowUnassignedServiceJobs': isShowUnassignedServiceJobs_example, // {String} Show unassigned service job
  'serviceTechnicianIDs': , // {array[Integer]} Service technician ids
  'assetID': 56, // {Integer} The Asset ID filter
  'startDate': 56, // {Integer} The Start date filter
  'endDate': 56, // {Integer} The End date filter
  'repUserID': 56, // {Integer} The sales user ID
  'jobType': , // {array[String]} The job type
  'viewMode': viewMode_example // {String} The view mode for the search
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var startRow = 56;  // Integer | The start row position (optional)  (default to null)
            var maxResults = 56;  // Integer | The number of results to return (optional)  (default to null)
            var sortField = sortField_example;  // String | The sort field (optional)  (default to null)
            var sortOrder = sortOrder_example;  // String | The sort order (optional)  (default to null)
            var searchString = searchString_example;  // String | The search string (optional)  (default to null)
            var statuses = new array[String](); // array[String] | The status filter (optional)  (default to null)
            var customerID = 56;  // Integer | The customer ID filter (optional)  (default to null)
            var isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example;  // String | Show unassigned service job (optional)  (default to null)
            var serviceTechnicianIDs = new array[Integer](); // array[Integer] | Service technician ids (optional)  (default to null)
            var assetID = 56;  // Integer | The Asset ID filter (optional)  (default to null)
            var startDate = 56;  // Integer | The Start date filter (optional)  (default to null)
            var endDate = 56;  // Integer | The End date filter (optional)  (default to null)
            var repUserID = 56;  // Integer | The sales user ID (optional)  (default to null)
            var jobType = new array[String](); // array[String] | The job type (optional)  (default to null)
            var viewMode = viewMode_example;  // String | The view mode for the search (optional)  (default to all)

            try {
                // Search service jobs
                httpActionResult_searchServiceJobsResponse result = apiInstance.serviceSearchServiceJobs(startRow, maxResults, sortField, sortOrder, searchString, statuses, customerID, isShowUnassignedServiceJobs, serviceTechnicianIDs, assetID, startDate, endDate, repUserID, jobType, viewMode);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceSearchServiceJobs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$startRow = 56; // Integer | The start row position
$maxResults = 56; // Integer | The number of results to return
$sortField = sortField_example; // String | The sort field
$sortOrder = sortOrder_example; // String | The sort order
$searchString = searchString_example; // String | The search string
$statuses = ; // array[String] | The status filter
$customerID = 56; // Integer | The customer ID filter
$isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // String | Show unassigned service job
$serviceTechnicianIDs = ; // array[Integer] | Service technician ids
$assetID = 56; // Integer | The Asset ID filter
$startDate = 56; // Integer | The Start date filter
$endDate = 56; // Integer | The End date filter
$repUserID = 56; // Integer | The sales user ID
$jobType = ; // array[String] | The job type
$viewMode = viewMode_example; // String | The view mode for the search

try {
    $result = $api_instance->serviceSearchServiceJobs($startRow, $maxResults, $sortField, $sortOrder, $searchString, $statuses, $customerID, $isShowUnassignedServiceJobs, $serviceTechnicianIDs, $assetID, $startDate, $endDate, $repUserID, $jobType, $viewMode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceSearchServiceJobs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $startRow = 56; # Integer | The start row position
my $maxResults = 56; # Integer | The number of results to return
my $sortField = sortField_example; # String | The sort field
my $sortOrder = sortOrder_example; # String | The sort order
my $searchString = searchString_example; # String | The search string
my $statuses = []; # array[String] | The status filter
my $customerID = 56; # Integer | The customer ID filter
my $isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; # String | Show unassigned service job
my $serviceTechnicianIDs = []; # array[Integer] | Service technician ids
my $assetID = 56; # Integer | The Asset ID filter
my $startDate = 56; # Integer | The Start date filter
my $endDate = 56; # Integer | The End date filter
my $repUserID = 56; # Integer | The sales user ID
my $jobType = []; # array[String] | The job type
my $viewMode = viewMode_example; # String | The view mode for the search

eval {
    my $result = $api_instance->serviceSearchServiceJobs(startRow => $startRow, maxResults => $maxResults, sortField => $sortField, sortOrder => $sortOrder, searchString => $searchString, statuses => $statuses, customerID => $customerID, isShowUnassignedServiceJobs => $isShowUnassignedServiceJobs, serviceTechnicianIDs => $serviceTechnicianIDs, assetID => $assetID, startDate => $startDate, endDate => $endDate, repUserID => $repUserID, jobType => $jobType, viewMode => $viewMode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceSearchServiceJobs: $@\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.ServiceJobApi()
startRow = 56 # Integer | The start row position (optional) (default to null)
maxResults = 56 # Integer | The number of results to return (optional) (default to null)
sortField = sortField_example # String | The sort field (optional) (default to null)
sortOrder = sortOrder_example # String | The sort order (optional) (default to null)
searchString = searchString_example # String | The search string (optional) (default to null)
statuses =  # array[String] | The status filter (optional) (default to null)
customerID = 56 # Integer | The customer ID filter (optional) (default to null)
isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example # String | Show unassigned service job (optional) (default to null)
serviceTechnicianIDs =  # array[Integer] | Service technician ids (optional) (default to null)
assetID = 56 # Integer | The Asset ID filter (optional) (default to null)
startDate = 56 # Integer | The Start date filter (optional) (default to null)
endDate = 56 # Integer | The End date filter (optional) (default to null)
repUserID = 56 # Integer | The sales user ID (optional) (default to null)
jobType =  # array[String] | The job type (optional) (default to null)
viewMode = viewMode_example # String | The view mode for the search (optional) (default to all)

try:
    # Search service jobs
    api_response = api_instance.service_search_service_jobs(startRow=startRow, maxResults=maxResults, sortField=sortField, sortOrder=sortOrder, searchString=searchString, statuses=statuses, customerID=customerID, isShowUnassignedServiceJobs=isShowUnassignedServiceJobs, serviceTechnicianIDs=serviceTechnicianIDs, assetID=assetID, startDate=startDate, endDate=endDate, repUserID=repUserID, jobType=jobType, viewMode=viewMode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceSearchServiceJobs: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let startRow = 56; // Integer
    let maxResults = 56; // Integer
    let sortField = sortField_example; // String
    let sortOrder = sortOrder_example; // String
    let searchString = searchString_example; // String
    let statuses = ; // array[String]
    let customerID = 56; // Integer
    let isShowUnassignedServiceJobs = isShowUnassignedServiceJobs_example; // String
    let serviceTechnicianIDs = ; // array[Integer]
    let assetID = 56; // Integer
    let startDate = 56; // Integer
    let endDate = 56; // Integer
    let repUserID = 56; // Integer
    let jobType = ; // array[String]
    let viewMode = viewMode_example; // String

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceSearchServiceJobs(startRow, maxResults, sortField, sortOrder, searchString, statuses, customerID, isShowUnassignedServiceJobs, serviceTechnicianIDs, assetID, startDate, endDate, repUserID, jobType, viewMode, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
StartRow
Integer (int32)
The start row position
MaxResults
Integer (int32)
The number of results to return
SortField
String
The sort field
SortOrder
String
The sort order
SearchString
String
The search string
Statuses
array[String]
The status filter
CustomerID
Integer (int32)
The customer ID filter
IsShowUnassignedServiceJobs
String
Show unassigned service job
ServiceTechnicianIDs
array[Integer] (int32)
Service technician ids
AssetID
Integer (int32)
The Asset ID filter
StartDate
Integer (int32)
The Start date filter
EndDate
Integer (int32)
The End date filter
RepUserID
Integer (int32)
The sales user ID
JobType
array[String]
The job type
ViewMode
String
The view mode for the search

Responses


serviceSearchTechnicians

Search technicians

Search technicians


/Spenda/ServiceJobs/ServiceJobs/ServiceTechnicians

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/ServiceTechnicians?StartRow=56&MaxResults=56&SortField=sortField_example&SortOrder=sortOrder_example&SearchString=searchString_example&IsSkilledForGeneralService=true&IsSkilledForVehicleService=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        String sortField = sortField_example; // String | The sort field
        String sortOrder = sortOrder_example; // String | The sort order
        String searchString = searchString_example; // String | The search string
        Boolean isSkilledForGeneralService = true; // Boolean | Filter on technicians skilled for general service
        Boolean isSkilledForVehicleService = true; // Boolean | Filter on technicians skilled for vehicle service

        try {
            httpActionResult_searchTechniciansResponse result = apiInstance.serviceSearchTechnicians(startRow, maxResults, sortField, sortOrder, searchString, isSkilledForGeneralService, isSkilledForVehicleService);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSearchTechnicians");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer startRow = new Integer(); // Integer | The start row position
final Integer maxResults = new Integer(); // Integer | The number of results to return
final String sortField = new String(); // String | The sort field
final String sortOrder = new String(); // String | The sort order
final String searchString = new String(); // String | The search string
final Boolean isSkilledForGeneralService = new Boolean(); // Boolean | Filter on technicians skilled for general service
final Boolean isSkilledForVehicleService = new Boolean(); // Boolean | Filter on technicians skilled for vehicle service

try {
    final result = await api_instance.serviceSearchTechnicians(startRow, maxResults, sortField, sortOrder, searchString, isSkilledForGeneralService, isSkilledForVehicleService);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serviceSearchTechnicians: $e\n');
}

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        String sortField = sortField_example; // String | The sort field
        String sortOrder = sortOrder_example; // String | The sort order
        String searchString = searchString_example; // String | The search string
        Boolean isSkilledForGeneralService = true; // Boolean | Filter on technicians skilled for general service
        Boolean isSkilledForVehicleService = true; // Boolean | Filter on technicians skilled for vehicle service

        try {
            httpActionResult_searchTechniciansResponse result = apiInstance.serviceSearchTechnicians(startRow, maxResults, sortField, sortOrder, searchString, isSkilledForGeneralService, isSkilledForVehicleService);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSearchTechnicians");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *startRow = 56; // The start row position (optional) (default to null)
Integer *maxResults = 56; // The number of results to return (optional) (default to null)
String *sortField = sortField_example; // The sort field (optional) (default to null)
String *sortOrder = sortOrder_example; // The sort order (optional) (default to null)
String *searchString = searchString_example; // The search string (optional) (default to null)
Boolean *isSkilledForGeneralService = true; // Filter on technicians skilled for general service (optional) (default to null)
Boolean *isSkilledForVehicleService = true; // Filter on technicians skilled for vehicle service (optional) (default to null)

// Search technicians
[apiInstance serviceSearchTechniciansWith:startRow
    maxResults:maxResults
    sortField:sortField
    sortOrder:sortOrder
    searchString:searchString
    isSkilledForGeneralService:isSkilledForGeneralService
    isSkilledForVehicleService:isSkilledForVehicleService
              completionHandler: ^(httpActionResult_searchTechniciansResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var opts = {
  'startRow': 56, // {Integer} The start row position
  'maxResults': 56, // {Integer} The number of results to return
  'sortField': sortField_example, // {String} The sort field
  'sortOrder': sortOrder_example, // {String} The sort order
  'searchString': searchString_example, // {String} The search string
  'isSkilledForGeneralService': true, // {Boolean} Filter on technicians skilled for general service
  'isSkilledForVehicleService': true // {Boolean} Filter on technicians skilled for vehicle service
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var startRow = 56;  // Integer | The start row position (optional)  (default to null)
            var maxResults = 56;  // Integer | The number of results to return (optional)  (default to null)
            var sortField = sortField_example;  // String | The sort field (optional)  (default to null)
            var sortOrder = sortOrder_example;  // String | The sort order (optional)  (default to null)
            var searchString = searchString_example;  // String | The search string (optional)  (default to null)
            var isSkilledForGeneralService = true;  // Boolean | Filter on technicians skilled for general service (optional)  (default to null)
            var isSkilledForVehicleService = true;  // Boolean | Filter on technicians skilled for vehicle service (optional)  (default to null)

            try {
                // Search technicians
                httpActionResult_searchTechniciansResponse result = apiInstance.serviceSearchTechnicians(startRow, maxResults, sortField, sortOrder, searchString, isSkilledForGeneralService, isSkilledForVehicleService);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceSearchTechnicians: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$startRow = 56; // Integer | The start row position
$maxResults = 56; // Integer | The number of results to return
$sortField = sortField_example; // String | The sort field
$sortOrder = sortOrder_example; // String | The sort order
$searchString = searchString_example; // String | The search string
$isSkilledForGeneralService = true; // Boolean | Filter on technicians skilled for general service
$isSkilledForVehicleService = true; // Boolean | Filter on technicians skilled for vehicle service

try {
    $result = $api_instance->serviceSearchTechnicians($startRow, $maxResults, $sortField, $sortOrder, $searchString, $isSkilledForGeneralService, $isSkilledForVehicleService);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceSearchTechnicians: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $startRow = 56; # Integer | The start row position
my $maxResults = 56; # Integer | The number of results to return
my $sortField = sortField_example; # String | The sort field
my $sortOrder = sortOrder_example; # String | The sort order
my $searchString = searchString_example; # String | The search string
my $isSkilledForGeneralService = true; # Boolean | Filter on technicians skilled for general service
my $isSkilledForVehicleService = true; # Boolean | Filter on technicians skilled for vehicle service

eval {
    my $result = $api_instance->serviceSearchTechnicians(startRow => $startRow, maxResults => $maxResults, sortField => $sortField, sortOrder => $sortOrder, searchString => $searchString, isSkilledForGeneralService => $isSkilledForGeneralService, isSkilledForVehicleService => $isSkilledForVehicleService);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceSearchTechnicians: $@\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.ServiceJobApi()
startRow = 56 # Integer | The start row position (optional) (default to null)
maxResults = 56 # Integer | The number of results to return (optional) (default to null)
sortField = sortField_example # String | The sort field (optional) (default to null)
sortOrder = sortOrder_example # String | The sort order (optional) (default to null)
searchString = searchString_example # String | The search string (optional) (default to null)
isSkilledForGeneralService = true # Boolean | Filter on technicians skilled for general service (optional) (default to null)
isSkilledForVehicleService = true # Boolean | Filter on technicians skilled for vehicle service (optional) (default to null)

try:
    # Search technicians
    api_response = api_instance.service_search_technicians(startRow=startRow, maxResults=maxResults, sortField=sortField, sortOrder=sortOrder, searchString=searchString, isSkilledForGeneralService=isSkilledForGeneralService, isSkilledForVehicleService=isSkilledForVehicleService)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceSearchTechnicians: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let startRow = 56; // Integer
    let maxResults = 56; // Integer
    let sortField = sortField_example; // String
    let sortOrder = sortOrder_example; // String
    let searchString = searchString_example; // String
    let isSkilledForGeneralService = true; // Boolean
    let isSkilledForVehicleService = true; // Boolean

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceSearchTechnicians(startRow, maxResults, sortField, sortOrder, searchString, isSkilledForGeneralService, isSkilledForVehicleService, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
StartRow
Integer (int32)
The start row position
MaxResults
Integer (int32)
The number of results to return
SortField
String
The sort field
SortOrder
String
The sort order
SearchString
String
The search string
IsSkilledForGeneralService
Boolean
Filter on technicians skilled for general service
IsSkilledForVehicleService
Boolean
Filter on technicians skilled for vehicle service

Responses


serviceSetServiceJobAsCompleted

Update Complete service job

Allows a tenant to update a complete service job


/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/Complete

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/Complete"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsCompleted(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsCompleted");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsCompleted(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsCompleted");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)

// Update Complete service job
[apiInstance serviceSetServiceJobAsCompletedWith:serviceJobID
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)

            try {
                // Update Complete service job
                apiInstance.serviceSetServiceJobAsCompleted(serviceJobID);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceSetServiceJobAsCompleted: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID

try {
    $api_instance->serviceSetServiceJobAsCompleted($serviceJobID);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceSetServiceJobAsCompleted: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID

eval {
    $api_instance->serviceSetServiceJobAsCompleted(serviceJobID => $serviceJobID);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceSetServiceJobAsCompleted: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)

try:
    # Update Complete service job
    api_instance.service_set_service_job_as_completed(serviceJobID)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceSetServiceJobAsCompleted: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceSetServiceJobAsCompleted(serviceJobID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required

Responses


serviceSetServiceJobAsCompletedForTechnicianUser

Update Complete service job for technician user

Allows a tenant to update a complete service job for technician user


/Spenda/ServiceJobs/TechnicianServiceJobs/{serviceJobID}/Complete

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/TechnicianServiceJobs/{serviceJobID}/Complete"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsCompletedForTechnicianUser(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsCompletedForTechnicianUser");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsCompletedForTechnicianUser(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsCompletedForTechnicianUser");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)

// Update Complete service job for technician user
[apiInstance serviceSetServiceJobAsCompletedForTechnicianUserWith:serviceJobID
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)

            try {
                // Update Complete service job for technician user
                apiInstance.serviceSetServiceJobAsCompletedForTechnicianUser(serviceJobID);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceSetServiceJobAsCompletedForTechnicianUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID

try {
    $api_instance->serviceSetServiceJobAsCompletedForTechnicianUser($serviceJobID);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceSetServiceJobAsCompletedForTechnicianUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID

eval {
    $api_instance->serviceSetServiceJobAsCompletedForTechnicianUser(serviceJobID => $serviceJobID);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceSetServiceJobAsCompletedForTechnicianUser: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)

try:
    # Update Complete service job for technician user
    api_instance.service_set_service_job_as_completed_for_technician_user(serviceJobID)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceSetServiceJobAsCompletedForTechnicianUser: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceSetServiceJobAsCompletedForTechnicianUser(serviceJobID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required

Responses


serviceSetServiceJobAsInProgress

Set service job as in progress

Set service job in progress


/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/SetAsInProgress

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/SetAsInProgress"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsInProgress(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsInProgress");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsInProgress(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsInProgress");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)

// Set service job as in progress
[apiInstance serviceSetServiceJobAsInProgressWith:serviceJobID
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)

            try {
                // Set service job as in progress
                apiInstance.serviceSetServiceJobAsInProgress(serviceJobID);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceSetServiceJobAsInProgress: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID

try {
    $api_instance->serviceSetServiceJobAsInProgress($serviceJobID);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceSetServiceJobAsInProgress: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID

eval {
    $api_instance->serviceSetServiceJobAsInProgress(serviceJobID => $serviceJobID);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceSetServiceJobAsInProgress: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)

try:
    # Set service job as in progress
    api_instance.service_set_service_job_as_in_progress(serviceJobID)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceSetServiceJobAsInProgress: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceSetServiceJobAsInProgress(serviceJobID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required

Responses


serviceSetServiceJobAsInProgressForTechnicianUser

Set service job as in progress for technician user

Set service job in progress for technician user


/Spenda/ServiceJobs/TechnicianServiceJobs/{serviceJobID}/SetAsInProgress

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/TechnicianServiceJobs/{serviceJobID}/SetAsInProgress"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsInProgressForTechnicianUser(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsInProgressForTechnicianUser");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsInProgressForTechnicianUser(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsInProgressForTechnicianUser");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)

// Set service job as in progress for technician user
[apiInstance serviceSetServiceJobAsInProgressForTechnicianUserWith:serviceJobID
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)

            try {
                // Set service job as in progress for technician user
                apiInstance.serviceSetServiceJobAsInProgressForTechnicianUser(serviceJobID);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceSetServiceJobAsInProgressForTechnicianUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID

try {
    $api_instance->serviceSetServiceJobAsInProgressForTechnicianUser($serviceJobID);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceSetServiceJobAsInProgressForTechnicianUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID

eval {
    $api_instance->serviceSetServiceJobAsInProgressForTechnicianUser(serviceJobID => $serviceJobID);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceSetServiceJobAsInProgressForTechnicianUser: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)

try:
    # Set service job as in progress for technician user
    api_instance.service_set_service_job_as_in_progress_for_technician_user(serviceJobID)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceSetServiceJobAsInProgressForTechnicianUser: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceSetServiceJobAsInProgressForTechnicianUser(serviceJobID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required

Responses


serviceSetServiceJobAsPaused

Set service job as paused

Set service job paused


/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/SetAsPaused

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/SetAsPaused"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsPaused(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsPaused");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsPaused(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsPaused");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)

// Set service job as paused
[apiInstance serviceSetServiceJobAsPausedWith:serviceJobID
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)

            try {
                // Set service job as paused
                apiInstance.serviceSetServiceJobAsPaused(serviceJobID);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceSetServiceJobAsPaused: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID

try {
    $api_instance->serviceSetServiceJobAsPaused($serviceJobID);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceSetServiceJobAsPaused: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID

eval {
    $api_instance->serviceSetServiceJobAsPaused(serviceJobID => $serviceJobID);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceSetServiceJobAsPaused: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)

try:
    # Set service job as paused
    api_instance.service_set_service_job_as_paused(serviceJobID)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceSetServiceJobAsPaused: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceSetServiceJobAsPaused(serviceJobID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required

Responses


serviceSetServiceJobAsPausedForTechnicianUser

Set service job as paused for technician user

Set service job paused for technician user


/Spenda/ServiceJobs/TechnicianServiceJobs/{serviceJobID}/SetAsPaused

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/TechnicianServiceJobs/{serviceJobID}/SetAsPaused"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsPausedForTechnicianUser(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsPausedForTechnicianUser");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsPausedForTechnicianUser(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsPausedForTechnicianUser");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)

// Set service job as paused for technician user
[apiInstance serviceSetServiceJobAsPausedForTechnicianUserWith:serviceJobID
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)

            try {
                // Set service job as paused for technician user
                apiInstance.serviceSetServiceJobAsPausedForTechnicianUser(serviceJobID);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceSetServiceJobAsPausedForTechnicianUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID

try {
    $api_instance->serviceSetServiceJobAsPausedForTechnicianUser($serviceJobID);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceSetServiceJobAsPausedForTechnicianUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID

eval {
    $api_instance->serviceSetServiceJobAsPausedForTechnicianUser(serviceJobID => $serviceJobID);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceSetServiceJobAsPausedForTechnicianUser: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)

try:
    # Set service job as paused for technician user
    api_instance.service_set_service_job_as_paused_for_technician_user(serviceJobID)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceSetServiceJobAsPausedForTechnicianUser: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceSetServiceJobAsPausedForTechnicianUser(serviceJobID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required

Responses


serviceSetServiceJobAsReschedule

Set service job as reschedule

Set service job as reschedule


/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/SetAsReschedule

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/SetAsReschedule"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsReschedule(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsReschedule");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsReschedule(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsReschedule");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)

// Set service job as reschedule
[apiInstance serviceSetServiceJobAsRescheduleWith:serviceJobID
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)

            try {
                // Set service job as reschedule
                apiInstance.serviceSetServiceJobAsReschedule(serviceJobID);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceSetServiceJobAsReschedule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID

try {
    $api_instance->serviceSetServiceJobAsReschedule($serviceJobID);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceSetServiceJobAsReschedule: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID

eval {
    $api_instance->serviceSetServiceJobAsReschedule(serviceJobID => $serviceJobID);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceSetServiceJobAsReschedule: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)

try:
    # Set service job as reschedule
    api_instance.service_set_service_job_as_reschedule(serviceJobID)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceSetServiceJobAsReschedule: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceSetServiceJobAsReschedule(serviceJobID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required

Responses


serviceSetServiceJobAsRescheduleForTechnicianUser

Set service job as reschedule for technician user

Set service job as reschedule for technician user


/Spenda/ServiceJobs/TechnicianServiceJobs/{serviceJobID}/SetAsReschedule

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/TechnicianServiceJobs/{serviceJobID}/SetAsReschedule"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsRescheduleForTechnicianUser(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsRescheduleForTechnicianUser");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsRescheduleForTechnicianUser(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsRescheduleForTechnicianUser");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)

// Set service job as reschedule for technician user
[apiInstance serviceSetServiceJobAsRescheduleForTechnicianUserWith:serviceJobID
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)

            try {
                // Set service job as reschedule for technician user
                apiInstance.serviceSetServiceJobAsRescheduleForTechnicianUser(serviceJobID);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceSetServiceJobAsRescheduleForTechnicianUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID

try {
    $api_instance->serviceSetServiceJobAsRescheduleForTechnicianUser($serviceJobID);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceSetServiceJobAsRescheduleForTechnicianUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID

eval {
    $api_instance->serviceSetServiceJobAsRescheduleForTechnicianUser(serviceJobID => $serviceJobID);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceSetServiceJobAsRescheduleForTechnicianUser: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)

try:
    # Set service job as reschedule for technician user
    api_instance.service_set_service_job_as_reschedule_for_technician_user(serviceJobID)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceSetServiceJobAsRescheduleForTechnicianUser: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceSetServiceJobAsRescheduleForTechnicianUser(serviceJobID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required

Responses


serviceSetServiceJobAsScheduled

Set service job as scheduled

Set service job as scheduled


/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/SetAsScheduled

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/SetAsScheduled"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsScheduled(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsScheduled");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsScheduled(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsScheduled");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)

// Set service job as scheduled
[apiInstance serviceSetServiceJobAsScheduledWith:serviceJobID
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)

            try {
                // Set service job as scheduled
                apiInstance.serviceSetServiceJobAsScheduled(serviceJobID);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceSetServiceJobAsScheduled: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID

try {
    $api_instance->serviceSetServiceJobAsScheduled($serviceJobID);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceSetServiceJobAsScheduled: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID

eval {
    $api_instance->serviceSetServiceJobAsScheduled(serviceJobID => $serviceJobID);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceSetServiceJobAsScheduled: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)

try:
    # Set service job as scheduled
    api_instance.service_set_service_job_as_scheduled(serviceJobID)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceSetServiceJobAsScheduled: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceSetServiceJobAsScheduled(serviceJobID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required

Responses


serviceSetServiceJobAsSent

Set service job as sent

Set service job as sent


/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/Sent

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/Sent"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsSent(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsSent");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID

        try {
            apiInstance.serviceSetServiceJobAsSent(serviceJobID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobAsSent");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)

// Set service job as sent
[apiInstance serviceSetServiceJobAsSentWith:serviceJobID
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)

            try {
                // Set service job as sent
                apiInstance.serviceSetServiceJobAsSent(serviceJobID);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceSetServiceJobAsSent: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID

try {
    $api_instance->serviceSetServiceJobAsSent($serviceJobID);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceSetServiceJobAsSent: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID

eval {
    $api_instance->serviceSetServiceJobAsSent(serviceJobID => $serviceJobID);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceSetServiceJobAsSent: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)

try:
    # Set service job as sent
    api_instance.service_set_service_job_as_sent(serviceJobID)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceSetServiceJobAsSent: %s\n" % e)
extern crate ServiceJobApi;

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

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceSetServiceJobAsSent(serviceJobID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required

Responses


serviceSetServiceJobLineAsEditable

Sets a service job line as editable

Allows a tenant to set a service job line as editable


/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/Line/{serviceJobLineID}/SetAsEditable

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/Line/{serviceJobLineID}/SetAsEditable"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID
        Integer serviceJobLineID = 56; // Integer | The service job line ID

        try {
            httpActionResult_getServiceJobResponse result = apiInstance.serviceSetServiceJobLineAsEditable(serviceJobID, serviceJobLineID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobLineAsEditable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID
final Integer serviceJobLineID = new Integer(); // Integer | The service job line ID

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID
        Integer serviceJobLineID = 56; // Integer | The service job line ID

        try {
            httpActionResult_getServiceJobResponse result = apiInstance.serviceSetServiceJobLineAsEditable(serviceJobID, serviceJobLineID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceSetServiceJobLineAsEditable");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)
Integer *serviceJobLineID = 56; // The service job line ID (default to null)

// Sets a service job line as editable
[apiInstance serviceSetServiceJobLineAsEditableWith:serviceJobID
    serviceJobLineID:serviceJobLineID
              completionHandler: ^(httpActionResult_getServiceJobResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID
var serviceJobLineID = 56; // {Integer} The service job line ID

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)
            var serviceJobLineID = 56;  // Integer | The service job line ID (default to null)

            try {
                // Sets a service job line as editable
                httpActionResult_getServiceJobResponse result = apiInstance.serviceSetServiceJobLineAsEditable(serviceJobID, serviceJobLineID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceSetServiceJobLineAsEditable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID
$serviceJobLineID = 56; // Integer | The service job line ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID
my $serviceJobLineID = 56; # Integer | The service job line ID

eval {
    my $result = $api_instance->serviceSetServiceJobLineAsEditable(serviceJobID => $serviceJobID, serviceJobLineID => $serviceJobLineID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceSetServiceJobLineAsEditable: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)
serviceJobLineID = 56 # Integer | The service job line ID (default to null)

try:
    # Sets a service job line as editable
    api_response = api_instance.service_set_service_job_line_as_editable(serviceJobID, serviceJobLineID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceSetServiceJobLineAsEditable: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let serviceJobID = 56; // Integer
    let serviceJobLineID = 56; // Integer

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceSetServiceJobLineAsEditable(serviceJobID, serviceJobLineID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required
serviceJobLineID*
Integer (int32)
The service job line ID
Required

Responses


serviceUpdateServiceJob

Update a service job

Allows a tenant to update a service job


/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID
        UpdateServiceJobRequest updateServiceJobRequest = {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; // UpdateServiceJobRequest | 

        try {
            httpActionResult_getServiceJobResponse result = apiInstance.serviceUpdateServiceJob(serviceJobID, updateServiceJobRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceUpdateServiceJob");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID
final UpdateServiceJobRequest updateServiceJobRequest = new UpdateServiceJobRequest(); // UpdateServiceJobRequest | 

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID
        UpdateServiceJobRequest updateServiceJobRequest = {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; // UpdateServiceJobRequest | 

        try {
            httpActionResult_getServiceJobResponse result = apiInstance.serviceUpdateServiceJob(serviceJobID, updateServiceJobRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceUpdateServiceJob");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)
UpdateServiceJobRequest *updateServiceJobRequest = {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; //  (optional)

// Update a service job
[apiInstance serviceUpdateServiceJobWith:serviceJobID
    updateServiceJobRequest:updateServiceJobRequest
              completionHandler: ^(httpActionResult_getServiceJobResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID
var opts = {
  'updateServiceJobRequest': {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]} // {UpdateServiceJobRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)
            var updateServiceJobRequest = new UpdateServiceJobRequest(); // UpdateServiceJobRequest |  (optional) 

            try {
                // Update a service job
                httpActionResult_getServiceJobResponse result = apiInstance.serviceUpdateServiceJob(serviceJobID, updateServiceJobRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceUpdateServiceJob: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID
$updateServiceJobRequest = {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; // UpdateServiceJobRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID
my $updateServiceJobRequest = WWW::OPenAPIClient::Object::UpdateServiceJobRequest->new(); # UpdateServiceJobRequest | 

eval {
    my $result = $api_instance->serviceUpdateServiceJob(serviceJobID => $serviceJobID, updateServiceJobRequest => $updateServiceJobRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceUpdateServiceJob: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)
updateServiceJobRequest = {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]} # UpdateServiceJobRequest |  (optional)

try:
    # Update a service job
    api_response = api_instance.service_update_service_job(serviceJobID, updateServiceJobRequest=updateServiceJobRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceUpdateServiceJob: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let serviceJobID = 56; // Integer
    let updateServiceJobRequest = {"description":"string","isActive":true,"customerID":0,"internalNote":"string","billingBusinessContactID":0,"onSiteBusinessContactID":0,"primaryTechnicianUserID":0,"assetID":0,"externalNotes":"string","discount":0,"discountMode":"string","discountModeType":0,"shipping":0,"accountCustomerID":0,"serviceStatus":"string","travelTimeBufferInMinutes":0,"repUserID":0,"stockStatus":"Unknown","billBusinessLocationAddressID":0,"siteBusinessLocationAddressID":0,"preServiceNote":"string","estimatedLabourHours":0,"isDiscountEditable":true,"isShippingEditable":true,"shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","salesOrderID":0,"jobType":"string","lines":[{"serviceJobLineID":0,"inventoryID":0,"sequenceNumber":0,"quantity":0,"costPriceEx":0,"sellPriceEx":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalInc":0,"isActive":true,"comment":"string","salesOrderLineID":0,"marginMode":"string","margin":0}],"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; // UpdateServiceJobRequest

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceUpdateServiceJob(serviceJobID, updateServiceJobRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required
Body parameters
Name Description
updateServiceJobRequest

Responses


serviceUpdateServiceJobForTechnicianUser

Update a service job for technician user

Allows a tenant to update a service job for technician user


/Spenda/ServiceJobs/TechnicianServiceJobs/{serviceJobID}

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/TechnicianServiceJobs/{serviceJobID}" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID
        ServiceJobForTechnicianUserRequest serviceJobForTechnicianUserRequest = {"serviceJobID":0,"internalNote":"string"}; // ServiceJobForTechnicianUserRequest | 

        try {
            apiInstance.serviceUpdateServiceJobForTechnicianUser(serviceJobID, serviceJobForTechnicianUserRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceUpdateServiceJobForTechnicianUser");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID
final ServiceJobForTechnicianUserRequest serviceJobForTechnicianUserRequest = new ServiceJobForTechnicianUserRequest(); // ServiceJobForTechnicianUserRequest | 

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID
        ServiceJobForTechnicianUserRequest serviceJobForTechnicianUserRequest = {"serviceJobID":0,"internalNote":"string"}; // ServiceJobForTechnicianUserRequest | 

        try {
            apiInstance.serviceUpdateServiceJobForTechnicianUser(serviceJobID, serviceJobForTechnicianUserRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceUpdateServiceJobForTechnicianUser");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)
ServiceJobForTechnicianUserRequest *serviceJobForTechnicianUserRequest = {"serviceJobID":0,"internalNote":"string"}; //  (optional)

// Update a service job for technician user
[apiInstance serviceUpdateServiceJobForTechnicianUserWith:serviceJobID
    serviceJobForTechnicianUserRequest:serviceJobForTechnicianUserRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID
var opts = {
  'serviceJobForTechnicianUserRequest': {"serviceJobID":0,"internalNote":"string"} // {ServiceJobForTechnicianUserRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)
            var serviceJobForTechnicianUserRequest = new ServiceJobForTechnicianUserRequest(); // ServiceJobForTechnicianUserRequest |  (optional) 

            try {
                // Update a service job for technician user
                apiInstance.serviceUpdateServiceJobForTechnicianUser(serviceJobID, serviceJobForTechnicianUserRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceUpdateServiceJobForTechnicianUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID
$serviceJobForTechnicianUserRequest = {"serviceJobID":0,"internalNote":"string"}; // ServiceJobForTechnicianUserRequest | 

try {
    $api_instance->serviceUpdateServiceJobForTechnicianUser($serviceJobID, $serviceJobForTechnicianUserRequest);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceUpdateServiceJobForTechnicianUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID
my $serviceJobForTechnicianUserRequest = WWW::OPenAPIClient::Object::ServiceJobForTechnicianUserRequest->new(); # ServiceJobForTechnicianUserRequest | 

eval {
    $api_instance->serviceUpdateServiceJobForTechnicianUser(serviceJobID => $serviceJobID, serviceJobForTechnicianUserRequest => $serviceJobForTechnicianUserRequest);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceUpdateServiceJobForTechnicianUser: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)
serviceJobForTechnicianUserRequest = {"serviceJobID":0,"internalNote":"string"} # ServiceJobForTechnicianUserRequest |  (optional)

try:
    # Update a service job for technician user
    api_instance.service_update_service_job_for_technician_user(serviceJobID, serviceJobForTechnicianUserRequest=serviceJobForTechnicianUserRequest)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceUpdateServiceJobForTechnicianUser: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let serviceJobID = 56; // Integer
    let serviceJobForTechnicianUserRequest = {"serviceJobID":0,"internalNote":"string"}; // ServiceJobForTechnicianUserRequest

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceUpdateServiceJobForTechnicianUser(serviceJobID, serviceJobForTechnicianUserRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required
Body parameters
Name Description
serviceJobForTechnicianUserRequest

Responses


serviceUpsertCalendarBlockAndSlotsForTechnician

Upsert calendar block and slot for technician

Allows a tenant to upsert technician calendar block and slots


/Spenda/ServiceJobs/ServiceJobs/TechnicianBlockSlots

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/TechnicianBlockSlots" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        UpsertCalendarBlockAndSlotsForTechnicianRequest upsertCalendarBlockAndSlotsForTechnicianRequest = {"technicians":[{"technicianUserID":0,"action":"string"}],"blocks":[{"technicianCalendarBlockID":0,"name":"string","description":"string","action":"string"}],"slots":[{"technicianCalendarBlockSlotID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":"string"}]}; // UpsertCalendarBlockAndSlotsForTechnicianRequest | 

        try {
            apiInstance.serviceUpsertCalendarBlockAndSlotsForTechnician(upsertCalendarBlockAndSlotsForTechnicianRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceUpsertCalendarBlockAndSlotsForTechnician");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpsertCalendarBlockAndSlotsForTechnicianRequest upsertCalendarBlockAndSlotsForTechnicianRequest = new UpsertCalendarBlockAndSlotsForTechnicianRequest(); // UpsertCalendarBlockAndSlotsForTechnicianRequest | 

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        UpsertCalendarBlockAndSlotsForTechnicianRequest upsertCalendarBlockAndSlotsForTechnicianRequest = {"technicians":[{"technicianUserID":0,"action":"string"}],"blocks":[{"technicianCalendarBlockID":0,"name":"string","description":"string","action":"string"}],"slots":[{"technicianCalendarBlockSlotID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":"string"}]}; // UpsertCalendarBlockAndSlotsForTechnicianRequest | 

        try {
            apiInstance.serviceUpsertCalendarBlockAndSlotsForTechnician(upsertCalendarBlockAndSlotsForTechnicianRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceUpsertCalendarBlockAndSlotsForTechnician");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
UpsertCalendarBlockAndSlotsForTechnicianRequest *upsertCalendarBlockAndSlotsForTechnicianRequest = {"technicians":[{"technicianUserID":0,"action":"string"}],"blocks":[{"technicianCalendarBlockID":0,"name":"string","description":"string","action":"string"}],"slots":[{"technicianCalendarBlockSlotID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":"string"}]}; //  (optional)

// Upsert calendar block and slot for technician
[apiInstance serviceUpsertCalendarBlockAndSlotsForTechnicianWith:upsertCalendarBlockAndSlotsForTechnicianRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var opts = {
  'upsertCalendarBlockAndSlotsForTechnicianRequest': {"technicians":[{"technicianUserID":0,"action":"string"}],"blocks":[{"technicianCalendarBlockID":0,"name":"string","description":"string","action":"string"}],"slots":[{"technicianCalendarBlockSlotID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":"string"}]} // {UpsertCalendarBlockAndSlotsForTechnicianRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var upsertCalendarBlockAndSlotsForTechnicianRequest = new UpsertCalendarBlockAndSlotsForTechnicianRequest(); // UpsertCalendarBlockAndSlotsForTechnicianRequest |  (optional) 

            try {
                // Upsert calendar block and slot for technician
                apiInstance.serviceUpsertCalendarBlockAndSlotsForTechnician(upsertCalendarBlockAndSlotsForTechnicianRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceUpsertCalendarBlockAndSlotsForTechnician: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$upsertCalendarBlockAndSlotsForTechnicianRequest = {"technicians":[{"technicianUserID":0,"action":"string"}],"blocks":[{"technicianCalendarBlockID":0,"name":"string","description":"string","action":"string"}],"slots":[{"technicianCalendarBlockSlotID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":"string"}]}; // UpsertCalendarBlockAndSlotsForTechnicianRequest | 

try {
    $api_instance->serviceUpsertCalendarBlockAndSlotsForTechnician($upsertCalendarBlockAndSlotsForTechnicianRequest);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceUpsertCalendarBlockAndSlotsForTechnician: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $upsertCalendarBlockAndSlotsForTechnicianRequest = WWW::OPenAPIClient::Object::UpsertCalendarBlockAndSlotsForTechnicianRequest->new(); # UpsertCalendarBlockAndSlotsForTechnicianRequest | 

eval {
    $api_instance->serviceUpsertCalendarBlockAndSlotsForTechnician(upsertCalendarBlockAndSlotsForTechnicianRequest => $upsertCalendarBlockAndSlotsForTechnicianRequest);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceUpsertCalendarBlockAndSlotsForTechnician: $@\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.ServiceJobApi()
upsertCalendarBlockAndSlotsForTechnicianRequest = {"technicians":[{"technicianUserID":0,"action":"string"}],"blocks":[{"technicianCalendarBlockID":0,"name":"string","description":"string","action":"string"}],"slots":[{"technicianCalendarBlockSlotID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":"string"}]} # UpsertCalendarBlockAndSlotsForTechnicianRequest |  (optional)

try:
    # Upsert calendar block and slot for technician
    api_instance.service_upsert_calendar_block_and_slots_for_technician(upsertCalendarBlockAndSlotsForTechnicianRequest=upsertCalendarBlockAndSlotsForTechnicianRequest)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceUpsertCalendarBlockAndSlotsForTechnician: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let upsertCalendarBlockAndSlotsForTechnicianRequest = {"technicians":[{"technicianUserID":0,"action":"string"}],"blocks":[{"technicianCalendarBlockID":0,"name":"string","description":"string","action":"string"}],"slots":[{"technicianCalendarBlockSlotID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":"string"}]}; // UpsertCalendarBlockAndSlotsForTechnicianRequest

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceUpsertCalendarBlockAndSlotsForTechnician(upsertCalendarBlockAndSlotsForTechnicianRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
upsertCalendarBlockAndSlotsForTechnicianRequest

Responses


serviceUpsertServiceJobBookings

Upsert service job bookings

Allows a tenant to upsert service job bookings


/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/Bookings

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/ServiceJobs/ServiceJobs/{serviceJobID}/Bookings" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServiceJobApi;

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

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

        // Create an instance of the API class
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID
        UpsertServiceJobBookingsRequest upsertServiceJobBookingsRequest = {"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; // UpsertServiceJobBookingsRequest | 

        try {
            apiInstance.serviceUpsertServiceJobBookings(serviceJobID, upsertServiceJobBookingsRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceUpsertServiceJobBookings");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serviceJobID = new Integer(); // Integer | The service job ID
final UpsertServiceJobBookingsRequest upsertServiceJobBookingsRequest = new UpsertServiceJobBookingsRequest(); // UpsertServiceJobBookingsRequest | 

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

import org.openapitools.client.api.ServiceJobApi;

public class ServiceJobApiExample {
    public static void main(String[] args) {
        ServiceJobApi apiInstance = new ServiceJobApi();
        Integer serviceJobID = 56; // Integer | The service job ID
        UpsertServiceJobBookingsRequest upsertServiceJobBookingsRequest = {"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; // UpsertServiceJobBookingsRequest | 

        try {
            apiInstance.serviceUpsertServiceJobBookings(serviceJobID, upsertServiceJobBookingsRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceJobApi#serviceUpsertServiceJobBookings");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ServiceJobApi *apiInstance = [[ServiceJobApi alloc] init];
Integer *serviceJobID = 56; // The service job ID (default to null)
UpsertServiceJobBookingsRequest *upsertServiceJobBookingsRequest = {"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; //  (optional)

// Upsert service job bookings
[apiInstance serviceUpsertServiceJobBookingsWith:serviceJobID
    upsertServiceJobBookingsRequest:upsertServiceJobBookingsRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesServiceJobs = require('spenda_services_service_jobs');

// Create an instance of the API class
var api = new SpendaServicesServiceJobs.ServiceJobApi()
var serviceJobID = 56; // {Integer} The service job ID
var opts = {
  'upsertServiceJobBookingsRequest': {"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]} // {UpsertServiceJobBookingsRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new ServiceJobApi();
            var serviceJobID = 56;  // Integer | The service job ID (default to null)
            var upsertServiceJobBookingsRequest = new UpsertServiceJobBookingsRequest(); // UpsertServiceJobBookingsRequest |  (optional) 

            try {
                // Upsert service job bookings
                apiInstance.serviceUpsertServiceJobBookings(serviceJobID, upsertServiceJobBookingsRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServiceJobApi.serviceUpsertServiceJobBookings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceJobApi();
$serviceJobID = 56; // Integer | The service job ID
$upsertServiceJobBookingsRequest = {"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; // UpsertServiceJobBookingsRequest | 

try {
    $api_instance->serviceUpsertServiceJobBookings($serviceJobID, $upsertServiceJobBookingsRequest);
} catch (Exception $e) {
    echo 'Exception when calling ServiceJobApi->serviceUpsertServiceJobBookings: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServiceJobApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceJobApi->new();
my $serviceJobID = 56; # Integer | The service job ID
my $upsertServiceJobBookingsRequest = WWW::OPenAPIClient::Object::UpsertServiceJobBookingsRequest->new(); # UpsertServiceJobBookingsRequest | 

eval {
    $api_instance->serviceUpsertServiceJobBookings(serviceJobID => $serviceJobID, upsertServiceJobBookingsRequest => $upsertServiceJobBookingsRequest);
};
if ($@) {
    warn "Exception when calling ServiceJobApi->serviceUpsertServiceJobBookings: $@\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.ServiceJobApi()
serviceJobID = 56 # Integer | The service job ID (default to null)
upsertServiceJobBookingsRequest = {"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]} # UpsertServiceJobBookingsRequest |  (optional)

try:
    # Upsert service job bookings
    api_instance.service_upsert_service_job_bookings(serviceJobID, upsertServiceJobBookingsRequest=upsertServiceJobBookingsRequest)
except ApiException as e:
    print("Exception when calling ServiceJobApi->serviceUpsertServiceJobBookings: %s\n" % e)
extern crate ServiceJobApi;

pub fn main() {
    let serviceJobID = 56; // Integer
    let upsertServiceJobBookingsRequest = {"technicians":[{"technicianUserID":0,"action":0}],"bookings":[{"serviceBookingID":0,"startDateTime_utc":"string","endDateTime_utc":"string","action":0}]}; // UpsertServiceJobBookingsRequest

    let mut context = ServiceJobApi::Context::default();
    let result = client.serviceUpsertServiceJobBookings(serviceJobID, upsertServiceJobBookingsRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
serviceJobID*
Integer (int32)
The service job ID
Required
Body parameters
Name Description
upsertServiceJobBookingsRequest

Responses