Spenda.Services.Sales

Public

salesApproveQuoteByInviteCode

Approve a quote by invite code

Allows a person to approve a quote by invite code


/Spenda/Sales/QuotePackageInvite/{inviteCode}/ApproveInvite

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        ApproveOrRejectQuoteByInviteCodeRequest approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest | 

        try {
            apiInstance.salesApproveQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesApproveQuoteByInviteCode");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | Invite code for the quote package
final ApproveOrRejectQuoteByInviteCodeRequest approveOrRejectQuoteByInviteCodeRequest = new ApproveOrRejectQuoteByInviteCodeRequest(); // ApproveOrRejectQuoteByInviteCodeRequest | 

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

import org.openapitools.client.api.PublicApi;

public class PublicApiExample {
    public static void main(String[] args) {
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        ApproveOrRejectQuoteByInviteCodeRequest approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest | 

        try {
            apiInstance.salesApproveQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesApproveQuoteByInviteCode");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PublicApi *apiInstance = [[PublicApi alloc] init];
String *inviteCode = inviteCode_example; // Invite code for the quote package (default to null)
ApproveOrRejectQuoteByInviteCodeRequest *approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; //  (optional)

// Approve a quote by invite code
[apiInstance salesApproveQuoteByInviteCodeWith:inviteCode
    approveOrRejectQuoteByInviteCodeRequest:approveOrRejectQuoteByInviteCodeRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.PublicApi()
var inviteCode = inviteCode_example; // {String} Invite code for the quote package
var opts = {
  'approveOrRejectQuoteByInviteCodeRequest': {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"} // {ApproveOrRejectQuoteByInviteCodeRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new PublicApi();
            var inviteCode = inviteCode_example;  // String | Invite code for the quote package (default to null)
            var approveOrRejectQuoteByInviteCodeRequest = new ApproveOrRejectQuoteByInviteCodeRequest(); // ApproveOrRejectQuoteByInviteCodeRequest |  (optional) 

            try {
                // Approve a quote by invite code
                apiInstance.salesApproveQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling PublicApi.salesApproveQuoteByInviteCode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PublicApi();
$inviteCode = inviteCode_example; // String | Invite code for the quote package
$approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PublicApi->new();
my $inviteCode = inviteCode_example; # String | Invite code for the quote package
my $approveOrRejectQuoteByInviteCodeRequest = WWW::OPenAPIClient::Object::ApproveOrRejectQuoteByInviteCodeRequest->new(); # ApproveOrRejectQuoteByInviteCodeRequest | 

eval {
    $api_instance->salesApproveQuoteByInviteCode(inviteCode => $inviteCode, approveOrRejectQuoteByInviteCodeRequest => $approveOrRejectQuoteByInviteCodeRequest);
};
if ($@) {
    warn "Exception when calling PublicApi->salesApproveQuoteByInviteCode: $@\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.PublicApi()
inviteCode = inviteCode_example # String | Invite code for the quote package (default to null)
approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"} # ApproveOrRejectQuoteByInviteCodeRequest |  (optional)

try:
    # Approve a quote by invite code
    api_instance.sales_approve_quote_by_invite_code(inviteCode, approveOrRejectQuoteByInviteCodeRequest=approveOrRejectQuoteByInviteCodeRequest)
except ApiException as e:
    print("Exception when calling PublicApi->salesApproveQuoteByInviteCode: %s\n" % e)
extern crate PublicApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest

    let mut context = PublicApi::Context::default();
    let result = client.salesApproveQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
Invite code for the quote package
Required
Body parameters
Name Description
approveOrRejectQuoteByInviteCodeRequest

Responses


salesGetQuotePackageUsingInviteCode

Get quote package by invite code

Allows a tenant to get a quote package by invite code


/Spenda/Sales/QuotePackageInvite/{inviteCode}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/QuotePackageInvite/{inviteCode}?approvalSessionGUID=approvalSessionGUID_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PublicApi;

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

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

        // Create an instance of the API class
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        String approvalSessionGUID = approvalSessionGUID_example; // String | Used to comapare with valid approval code

        try {
            httpActionResult_getQuotePackageUsingInviteCodeResponse result = apiInstance.salesGetQuotePackageUsingInviteCode(inviteCode, approvalSessionGUID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesGetQuotePackageUsingInviteCode");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | Invite code for the quote package
final String approvalSessionGUID = new String(); // String | Used to comapare with valid approval code

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

import org.openapitools.client.api.PublicApi;

public class PublicApiExample {
    public static void main(String[] args) {
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        String approvalSessionGUID = approvalSessionGUID_example; // String | Used to comapare with valid approval code

        try {
            httpActionResult_getQuotePackageUsingInviteCodeResponse result = apiInstance.salesGetQuotePackageUsingInviteCode(inviteCode, approvalSessionGUID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesGetQuotePackageUsingInviteCode");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PublicApi *apiInstance = [[PublicApi alloc] init];
String *inviteCode = inviteCode_example; // Invite code for the quote package (default to null)
String *approvalSessionGUID = approvalSessionGUID_example; // Used to comapare with valid approval code (optional) (default to null)

// Get quote package by invite code
[apiInstance salesGetQuotePackageUsingInviteCodeWith:inviteCode
    approvalSessionGUID:approvalSessionGUID
              completionHandler: ^(httpActionResult_getQuotePackageUsingInviteCodeResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.PublicApi()
var inviteCode = inviteCode_example; // {String} Invite code for the quote package
var opts = {
  'approvalSessionGUID': approvalSessionGUID_example // {String} Used to comapare with valid approval code
};

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

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

            // Create an instance of the API class
            var apiInstance = new PublicApi();
            var inviteCode = inviteCode_example;  // String | Invite code for the quote package (default to null)
            var approvalSessionGUID = approvalSessionGUID_example;  // String | Used to comapare with valid approval code (optional)  (default to null)

            try {
                // Get quote package by invite code
                httpActionResult_getQuotePackageUsingInviteCodeResponse result = apiInstance.salesGetQuotePackageUsingInviteCode(inviteCode, approvalSessionGUID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PublicApi.salesGetQuotePackageUsingInviteCode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PublicApi();
$inviteCode = inviteCode_example; // String | Invite code for the quote package
$approvalSessionGUID = approvalSessionGUID_example; // String | Used to comapare with valid approval code

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PublicApi->new();
my $inviteCode = inviteCode_example; # String | Invite code for the quote package
my $approvalSessionGUID = approvalSessionGUID_example; # String | Used to comapare with valid approval code

eval {
    my $result = $api_instance->salesGetQuotePackageUsingInviteCode(inviteCode => $inviteCode, approvalSessionGUID => $approvalSessionGUID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicApi->salesGetQuotePackageUsingInviteCode: $@\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.PublicApi()
inviteCode = inviteCode_example # String | Invite code for the quote package (default to null)
approvalSessionGUID = approvalSessionGUID_example # String | Used to comapare with valid approval code (optional) (default to null)

try:
    # Get quote package by invite code
    api_response = api_instance.sales_get_quote_package_using_invite_code(inviteCode, approvalSessionGUID=approvalSessionGUID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicApi->salesGetQuotePackageUsingInviteCode: %s\n" % e)
extern crate PublicApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let approvalSessionGUID = approvalSessionGUID_example; // String

    let mut context = PublicApi::Context::default();
    let result = client.salesGetQuotePackageUsingInviteCode(inviteCode, approvalSessionGUID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
Invite code for the quote package
Required
Query parameters
Name Description
approvalSessionGUID
String
Used to comapare with valid approval code

Responses


salesProcessPaymentToken

Processes a payment token

Allows a tenant to process a payment token


/Spenda/Sales/QuotePackageInvite/{inviteCode}/PaymentToken

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | The quote package invite code
        ProcessPaymentRequest processPaymentRequest = {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"}; // ProcessPaymentRequest | 

        try {
            httpActionResult_processPaymentResponse result = apiInstance.salesProcessPaymentToken(inviteCode, processPaymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesProcessPaymentToken");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | The quote package invite code
final ProcessPaymentRequest processPaymentRequest = new ProcessPaymentRequest(); // ProcessPaymentRequest | 

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

import org.openapitools.client.api.PublicApi;

public class PublicApiExample {
    public static void main(String[] args) {
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | The quote package invite code
        ProcessPaymentRequest processPaymentRequest = {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"}; // ProcessPaymentRequest | 

        try {
            httpActionResult_processPaymentResponse result = apiInstance.salesProcessPaymentToken(inviteCode, processPaymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesProcessPaymentToken");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PublicApi *apiInstance = [[PublicApi alloc] init];
String *inviteCode = inviteCode_example; // The quote package invite code (default to null)
ProcessPaymentRequest *processPaymentRequest = {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"}; //  (optional)

// Processes a payment token
[apiInstance salesProcessPaymentTokenWith:inviteCode
    processPaymentRequest:processPaymentRequest
              completionHandler: ^(httpActionResult_processPaymentResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.PublicApi()
var inviteCode = inviteCode_example; // {String} The quote package invite code
var opts = {
  'processPaymentRequest': {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"} // {ProcessPaymentRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new PublicApi();
            var inviteCode = inviteCode_example;  // String | The quote package invite code (default to null)
            var processPaymentRequest = new ProcessPaymentRequest(); // ProcessPaymentRequest |  (optional) 

            try {
                // Processes a payment token
                httpActionResult_processPaymentResponse result = apiInstance.salesProcessPaymentToken(inviteCode, processPaymentRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PublicApi.salesProcessPaymentToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PublicApi();
$inviteCode = inviteCode_example; // String | The quote package invite code
$processPaymentRequest = {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"}; // ProcessPaymentRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PublicApi->new();
my $inviteCode = inviteCode_example; # String | The quote package invite code
my $processPaymentRequest = WWW::OPenAPIClient::Object::ProcessPaymentRequest->new(); # ProcessPaymentRequest | 

eval {
    my $result = $api_instance->salesProcessPaymentToken(inviteCode => $inviteCode, processPaymentRequest => $processPaymentRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicApi->salesProcessPaymentToken: $@\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.PublicApi()
inviteCode = inviteCode_example # String | The quote package invite code (default to null)
processPaymentRequest = {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"} # ProcessPaymentRequest |  (optional)

try:
    # Processes a payment token
    api_response = api_instance.sales_process_payment_token(inviteCode, processPaymentRequest=processPaymentRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicApi->salesProcessPaymentToken: %s\n" % e)
extern crate PublicApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let processPaymentRequest = {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"}; // ProcessPaymentRequest

    let mut context = PublicApi::Context::default();
    let result = client.salesProcessPaymentToken(inviteCode, processPaymentRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
The quote package invite code
Required
Body parameters
Name Description
processPaymentRequest

Responses


salesRejectQuoteByInviteCode

Reject a quote by invite code

Allows a person to reject a quote by invite code


/Spenda/Sales/QuotePackageInvite/{inviteCode}/RejectInvite

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        ApproveOrRejectQuoteByInviteCodeRequest approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest | 

        try {
            apiInstance.salesRejectQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesRejectQuoteByInviteCode");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | Invite code for the quote package
final ApproveOrRejectQuoteByInviteCodeRequest approveOrRejectQuoteByInviteCodeRequest = new ApproveOrRejectQuoteByInviteCodeRequest(); // ApproveOrRejectQuoteByInviteCodeRequest | 

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

import org.openapitools.client.api.PublicApi;

public class PublicApiExample {
    public static void main(String[] args) {
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        ApproveOrRejectQuoteByInviteCodeRequest approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest | 

        try {
            apiInstance.salesRejectQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesRejectQuoteByInviteCode");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PublicApi *apiInstance = [[PublicApi alloc] init];
String *inviteCode = inviteCode_example; // Invite code for the quote package (default to null)
ApproveOrRejectQuoteByInviteCodeRequest *approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; //  (optional)

// Reject a quote by invite code
[apiInstance salesRejectQuoteByInviteCodeWith:inviteCode
    approveOrRejectQuoteByInviteCodeRequest:approveOrRejectQuoteByInviteCodeRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.PublicApi()
var inviteCode = inviteCode_example; // {String} Invite code for the quote package
var opts = {
  'approveOrRejectQuoteByInviteCodeRequest': {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"} // {ApproveOrRejectQuoteByInviteCodeRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new PublicApi();
            var inviteCode = inviteCode_example;  // String | Invite code for the quote package (default to null)
            var approveOrRejectQuoteByInviteCodeRequest = new ApproveOrRejectQuoteByInviteCodeRequest(); // ApproveOrRejectQuoteByInviteCodeRequest |  (optional) 

            try {
                // Reject a quote by invite code
                apiInstance.salesRejectQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling PublicApi.salesRejectQuoteByInviteCode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PublicApi();
$inviteCode = inviteCode_example; // String | Invite code for the quote package
$approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PublicApi->new();
my $inviteCode = inviteCode_example; # String | Invite code for the quote package
my $approveOrRejectQuoteByInviteCodeRequest = WWW::OPenAPIClient::Object::ApproveOrRejectQuoteByInviteCodeRequest->new(); # ApproveOrRejectQuoteByInviteCodeRequest | 

eval {
    $api_instance->salesRejectQuoteByInviteCode(inviteCode => $inviteCode, approveOrRejectQuoteByInviteCodeRequest => $approveOrRejectQuoteByInviteCodeRequest);
};
if ($@) {
    warn "Exception when calling PublicApi->salesRejectQuoteByInviteCode: $@\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.PublicApi()
inviteCode = inviteCode_example # String | Invite code for the quote package (default to null)
approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"} # ApproveOrRejectQuoteByInviteCodeRequest |  (optional)

try:
    # Reject a quote by invite code
    api_instance.sales_reject_quote_by_invite_code(inviteCode, approveOrRejectQuoteByInviteCodeRequest=approveOrRejectQuoteByInviteCodeRequest)
except ApiException as e:
    print("Exception when calling PublicApi->salesRejectQuoteByInviteCode: %s\n" % e)
extern crate PublicApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest

    let mut context = PublicApi::Context::default();
    let result = client.salesRejectQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
Invite code for the quote package
Required
Body parameters
Name Description
approveOrRejectQuoteByInviteCodeRequest

Responses


salesSendApprovalCodeForQuotePackage

Sends approval code for a quote package

Allows a customer to send approval code for a quote package


/Spenda/Sales/QuotePackageInvite/{inviteCode}/SendApprovalCode

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        SendApprovalCodeForQuotePackageRequest sendApprovalCodeForQuotePackageRequest = {"inviteCode":"string"}; // SendApprovalCodeForQuotePackageRequest | 

        try {
            apiInstance.salesSendApprovalCodeForQuotePackage(inviteCode, sendApprovalCodeForQuotePackageRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesSendApprovalCodeForQuotePackage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | Invite code for the quote package
final SendApprovalCodeForQuotePackageRequest sendApprovalCodeForQuotePackageRequest = new SendApprovalCodeForQuotePackageRequest(); // SendApprovalCodeForQuotePackageRequest | 

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

import org.openapitools.client.api.PublicApi;

public class PublicApiExample {
    public static void main(String[] args) {
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        SendApprovalCodeForQuotePackageRequest sendApprovalCodeForQuotePackageRequest = {"inviteCode":"string"}; // SendApprovalCodeForQuotePackageRequest | 

        try {
            apiInstance.salesSendApprovalCodeForQuotePackage(inviteCode, sendApprovalCodeForQuotePackageRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesSendApprovalCodeForQuotePackage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PublicApi *apiInstance = [[PublicApi alloc] init];
String *inviteCode = inviteCode_example; // Invite code for the quote package (default to null)
SendApprovalCodeForQuotePackageRequest *sendApprovalCodeForQuotePackageRequest = {"inviteCode":"string"}; //  (optional)

// Sends approval code for a quote package
[apiInstance salesSendApprovalCodeForQuotePackageWith:inviteCode
    sendApprovalCodeForQuotePackageRequest:sendApprovalCodeForQuotePackageRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.PublicApi()
var inviteCode = inviteCode_example; // {String} Invite code for the quote package
var opts = {
  'sendApprovalCodeForQuotePackageRequest': {"inviteCode":"string"} // {SendApprovalCodeForQuotePackageRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new PublicApi();
            var inviteCode = inviteCode_example;  // String | Invite code for the quote package (default to null)
            var sendApprovalCodeForQuotePackageRequest = new SendApprovalCodeForQuotePackageRequest(); // SendApprovalCodeForQuotePackageRequest |  (optional) 

            try {
                // Sends approval code for a quote package
                apiInstance.salesSendApprovalCodeForQuotePackage(inviteCode, sendApprovalCodeForQuotePackageRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling PublicApi.salesSendApprovalCodeForQuotePackage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PublicApi();
$inviteCode = inviteCode_example; // String | Invite code for the quote package
$sendApprovalCodeForQuotePackageRequest = {"inviteCode":"string"}; // SendApprovalCodeForQuotePackageRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PublicApi->new();
my $inviteCode = inviteCode_example; # String | Invite code for the quote package
my $sendApprovalCodeForQuotePackageRequest = WWW::OPenAPIClient::Object::SendApprovalCodeForQuotePackageRequest->new(); # SendApprovalCodeForQuotePackageRequest | 

eval {
    $api_instance->salesSendApprovalCodeForQuotePackage(inviteCode => $inviteCode, sendApprovalCodeForQuotePackageRequest => $sendApprovalCodeForQuotePackageRequest);
};
if ($@) {
    warn "Exception when calling PublicApi->salesSendApprovalCodeForQuotePackage: $@\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.PublicApi()
inviteCode = inviteCode_example # String | Invite code for the quote package (default to null)
sendApprovalCodeForQuotePackageRequest = {"inviteCode":"string"} # SendApprovalCodeForQuotePackageRequest |  (optional)

try:
    # Sends approval code for a quote package
    api_instance.sales_send_approval_code_for_quote_package(inviteCode, sendApprovalCodeForQuotePackageRequest=sendApprovalCodeForQuotePackageRequest)
except ApiException as e:
    print("Exception when calling PublicApi->salesSendApprovalCodeForQuotePackage: %s\n" % e)
extern crate PublicApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let sendApprovalCodeForQuotePackageRequest = {"inviteCode":"string"}; // SendApprovalCodeForQuotePackageRequest

    let mut context = PublicApi::Context::default();
    let result = client.salesSendApprovalCodeForQuotePackage(inviteCode, sendApprovalCodeForQuotePackageRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
Invite code for the quote package
Required
Body parameters
Name Description
sendApprovalCodeForQuotePackageRequest

Responses


salesSetQuoteAsViewed

Set quote as viewed

Allows a tenant to set quote as viewed


/Spenda/Sales/QuotePackageInvite/{inviteCode}/SetQuoteAsViewed

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        SetQuoteAsViewedRequest setQuoteAsViewedRequest = {"quoteGuid":"string","inviteCode":"string"}; // SetQuoteAsViewedRequest | 

        try {
            apiInstance.salesSetQuoteAsViewed(inviteCode, setQuoteAsViewedRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesSetQuoteAsViewed");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | Invite code for the quote package
final SetQuoteAsViewedRequest setQuoteAsViewedRequest = new SetQuoteAsViewedRequest(); // SetQuoteAsViewedRequest | 

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

import org.openapitools.client.api.PublicApi;

public class PublicApiExample {
    public static void main(String[] args) {
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        SetQuoteAsViewedRequest setQuoteAsViewedRequest = {"quoteGuid":"string","inviteCode":"string"}; // SetQuoteAsViewedRequest | 

        try {
            apiInstance.salesSetQuoteAsViewed(inviteCode, setQuoteAsViewedRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesSetQuoteAsViewed");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PublicApi *apiInstance = [[PublicApi alloc] init];
String *inviteCode = inviteCode_example; // Invite code for the quote package (default to null)
SetQuoteAsViewedRequest *setQuoteAsViewedRequest = {"quoteGuid":"string","inviteCode":"string"}; //  (optional)

// Set quote as viewed
[apiInstance salesSetQuoteAsViewedWith:inviteCode
    setQuoteAsViewedRequest:setQuoteAsViewedRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.PublicApi()
var inviteCode = inviteCode_example; // {String} Invite code for the quote package
var opts = {
  'setQuoteAsViewedRequest': {"quoteGuid":"string","inviteCode":"string"} // {SetQuoteAsViewedRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new PublicApi();
            var inviteCode = inviteCode_example;  // String | Invite code for the quote package (default to null)
            var setQuoteAsViewedRequest = new SetQuoteAsViewedRequest(); // SetQuoteAsViewedRequest |  (optional) 

            try {
                // Set quote as viewed
                apiInstance.salesSetQuoteAsViewed(inviteCode, setQuoteAsViewedRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling PublicApi.salesSetQuoteAsViewed: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PublicApi();
$inviteCode = inviteCode_example; // String | Invite code for the quote package
$setQuoteAsViewedRequest = {"quoteGuid":"string","inviteCode":"string"}; // SetQuoteAsViewedRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PublicApi->new();
my $inviteCode = inviteCode_example; # String | Invite code for the quote package
my $setQuoteAsViewedRequest = WWW::OPenAPIClient::Object::SetQuoteAsViewedRequest->new(); # SetQuoteAsViewedRequest | 

eval {
    $api_instance->salesSetQuoteAsViewed(inviteCode => $inviteCode, setQuoteAsViewedRequest => $setQuoteAsViewedRequest);
};
if ($@) {
    warn "Exception when calling PublicApi->salesSetQuoteAsViewed: $@\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.PublicApi()
inviteCode = inviteCode_example # String | Invite code for the quote package (default to null)
setQuoteAsViewedRequest = {"quoteGuid":"string","inviteCode":"string"} # SetQuoteAsViewedRequest |  (optional)

try:
    # Set quote as viewed
    api_instance.sales_set_quote_as_viewed(inviteCode, setQuoteAsViewedRequest=setQuoteAsViewedRequest)
except ApiException as e:
    print("Exception when calling PublicApi->salesSetQuoteAsViewed: %s\n" % e)
extern crate PublicApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let setQuoteAsViewedRequest = {"quoteGuid":"string","inviteCode":"string"}; // SetQuoteAsViewedRequest

    let mut context = PublicApi::Context::default();
    let result = client.salesSetQuoteAsViewed(inviteCode, setQuoteAsViewedRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
Invite code for the quote package
Required
Body parameters
Name Description
setQuoteAsViewedRequest

Responses


salesSubmitApprovalCodeForQuotePackage

Submit approval code for a quote package

Allows a customer to submit approval code for a quote package


/Spenda/Sales/QuotePackageInvite/{inviteCode}/SubmitApprovalCode

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        SubmitApprovalCodeForQuotePackageRequest submitApprovalCodeForQuotePackageRequest = {"inviteCode":"string","approvalCode":"string"}; // SubmitApprovalCodeForQuotePackageRequest | 

        try {
            httpActionResult_submitApprovalCodeForQuotePackageResponse result = apiInstance.salesSubmitApprovalCodeForQuotePackage(inviteCode, submitApprovalCodeForQuotePackageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesSubmitApprovalCodeForQuotePackage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | Invite code for the quote package
final SubmitApprovalCodeForQuotePackageRequest submitApprovalCodeForQuotePackageRequest = new SubmitApprovalCodeForQuotePackageRequest(); // SubmitApprovalCodeForQuotePackageRequest | 

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

import org.openapitools.client.api.PublicApi;

public class PublicApiExample {
    public static void main(String[] args) {
        PublicApi apiInstance = new PublicApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        SubmitApprovalCodeForQuotePackageRequest submitApprovalCodeForQuotePackageRequest = {"inviteCode":"string","approvalCode":"string"}; // SubmitApprovalCodeForQuotePackageRequest | 

        try {
            httpActionResult_submitApprovalCodeForQuotePackageResponse result = apiInstance.salesSubmitApprovalCodeForQuotePackage(inviteCode, submitApprovalCodeForQuotePackageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#salesSubmitApprovalCodeForQuotePackage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PublicApi *apiInstance = [[PublicApi alloc] init];
String *inviteCode = inviteCode_example; // Invite code for the quote package (default to null)
SubmitApprovalCodeForQuotePackageRequest *submitApprovalCodeForQuotePackageRequest = {"inviteCode":"string","approvalCode":"string"}; //  (optional)

// Submit approval code for a quote package
[apiInstance salesSubmitApprovalCodeForQuotePackageWith:inviteCode
    submitApprovalCodeForQuotePackageRequest:submitApprovalCodeForQuotePackageRequest
              completionHandler: ^(httpActionResult_submitApprovalCodeForQuotePackageResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.PublicApi()
var inviteCode = inviteCode_example; // {String} Invite code for the quote package
var opts = {
  'submitApprovalCodeForQuotePackageRequest': {"inviteCode":"string","approvalCode":"string"} // {SubmitApprovalCodeForQuotePackageRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new PublicApi();
            var inviteCode = inviteCode_example;  // String | Invite code for the quote package (default to null)
            var submitApprovalCodeForQuotePackageRequest = new SubmitApprovalCodeForQuotePackageRequest(); // SubmitApprovalCodeForQuotePackageRequest |  (optional) 

            try {
                // Submit approval code for a quote package
                httpActionResult_submitApprovalCodeForQuotePackageResponse result = apiInstance.salesSubmitApprovalCodeForQuotePackage(inviteCode, submitApprovalCodeForQuotePackageRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PublicApi.salesSubmitApprovalCodeForQuotePackage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PublicApi();
$inviteCode = inviteCode_example; // String | Invite code for the quote package
$submitApprovalCodeForQuotePackageRequest = {"inviteCode":"string","approvalCode":"string"}; // SubmitApprovalCodeForQuotePackageRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PublicApi->new();
my $inviteCode = inviteCode_example; # String | Invite code for the quote package
my $submitApprovalCodeForQuotePackageRequest = WWW::OPenAPIClient::Object::SubmitApprovalCodeForQuotePackageRequest->new(); # SubmitApprovalCodeForQuotePackageRequest | 

eval {
    my $result = $api_instance->salesSubmitApprovalCodeForQuotePackage(inviteCode => $inviteCode, submitApprovalCodeForQuotePackageRequest => $submitApprovalCodeForQuotePackageRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicApi->salesSubmitApprovalCodeForQuotePackage: $@\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.PublicApi()
inviteCode = inviteCode_example # String | Invite code for the quote package (default to null)
submitApprovalCodeForQuotePackageRequest = {"inviteCode":"string","approvalCode":"string"} # SubmitApprovalCodeForQuotePackageRequest |  (optional)

try:
    # Submit approval code for a quote package
    api_response = api_instance.sales_submit_approval_code_for_quote_package(inviteCode, submitApprovalCodeForQuotePackageRequest=submitApprovalCodeForQuotePackageRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicApi->salesSubmitApprovalCodeForQuotePackage: %s\n" % e)
extern crate PublicApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let submitApprovalCodeForQuotePackageRequest = {"inviteCode":"string","approvalCode":"string"}; // SubmitApprovalCodeForQuotePackageRequest

    let mut context = PublicApi::Context::default();
    let result = client.salesSubmitApprovalCodeForQuotePackage(inviteCode, submitApprovalCodeForQuotePackageRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
Invite code for the quote package
Required
Body parameters
Name Description
submitApprovalCodeForQuotePackageRequest

Responses


Quote

salesApproveQuote

Approve a quote

Allows a tenant to approve a quote


/Spenda/Sales/Quotes/{quoteID}/Approve

Usage and SDK Samples

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

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

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

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

        try {
            apiInstance.salesApproveQuote(quoteID);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesApproveQuote");
            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.salesApproveQuote(quoteID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->salesApproveQuote: $e\n');
}

import org.openapitools.client.api.QuoteApi;

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

        try {
            apiInstance.salesApproveQuote(quoteID);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesApproveQuote");
            e.printStackTrace();
        }
    }
}


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

// Approve a quote
[apiInstance salesApproveQuoteWith:quoteID
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

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

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

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

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

            try {
                // Approve a quote
                apiInstance.salesApproveQuote(quoteID);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesApproveQuote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Approve a quote
    api_instance.sales_approve_quote(quoteID)
except ApiException as e:
    print("Exception when calling QuoteApi->salesApproveQuote: %s\n" % e)
extern crate QuoteApi;

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

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

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

Scopes

Parameters

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

Responses


salesApproveQuoteByInviteCode

Approve a quote by invite code

Allows a person to approve a quote by invite code


/Spenda/Sales/QuotePackageInvite/{inviteCode}/ApproveInvite

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        ApproveOrRejectQuoteByInviteCodeRequest approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest | 

        try {
            apiInstance.salesApproveQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesApproveQuoteByInviteCode");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | Invite code for the quote package
final ApproveOrRejectQuoteByInviteCodeRequest approveOrRejectQuoteByInviteCodeRequest = new ApproveOrRejectQuoteByInviteCodeRequest(); // ApproveOrRejectQuoteByInviteCodeRequest | 

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        ApproveOrRejectQuoteByInviteCodeRequest approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest | 

        try {
            apiInstance.salesApproveQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesApproveQuoteByInviteCode");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
String *inviteCode = inviteCode_example; // Invite code for the quote package (default to null)
ApproveOrRejectQuoteByInviteCodeRequest *approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; //  (optional)

// Approve a quote by invite code
[apiInstance salesApproveQuoteByInviteCodeWith:inviteCode
    approveOrRejectQuoteByInviteCodeRequest:approveOrRejectQuoteByInviteCodeRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var inviteCode = inviteCode_example; // {String} Invite code for the quote package
var opts = {
  'approveOrRejectQuoteByInviteCodeRequest': {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"} // {ApproveOrRejectQuoteByInviteCodeRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var inviteCode = inviteCode_example;  // String | Invite code for the quote package (default to null)
            var approveOrRejectQuoteByInviteCodeRequest = new ApproveOrRejectQuoteByInviteCodeRequest(); // ApproveOrRejectQuoteByInviteCodeRequest |  (optional) 

            try {
                // Approve a quote by invite code
                apiInstance.salesApproveQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesApproveQuoteByInviteCode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$inviteCode = inviteCode_example; // String | Invite code for the quote package
$approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $inviteCode = inviteCode_example; # String | Invite code for the quote package
my $approveOrRejectQuoteByInviteCodeRequest = WWW::OPenAPIClient::Object::ApproveOrRejectQuoteByInviteCodeRequest->new(); # ApproveOrRejectQuoteByInviteCodeRequest | 

eval {
    $api_instance->salesApproveQuoteByInviteCode(inviteCode => $inviteCode, approveOrRejectQuoteByInviteCodeRequest => $approveOrRejectQuoteByInviteCodeRequest);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesApproveQuoteByInviteCode: $@\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.QuoteApi()
inviteCode = inviteCode_example # String | Invite code for the quote package (default to null)
approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"} # ApproveOrRejectQuoteByInviteCodeRequest |  (optional)

try:
    # Approve a quote by invite code
    api_instance.sales_approve_quote_by_invite_code(inviteCode, approveOrRejectQuoteByInviteCodeRequest=approveOrRejectQuoteByInviteCodeRequest)
except ApiException as e:
    print("Exception when calling QuoteApi->salesApproveQuoteByInviteCode: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesApproveQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
Invite code for the quote package
Required
Body parameters
Name Description
approveOrRejectQuoteByInviteCodeRequest

Responses


salesApproveQuoteWithInvoice

Approve a quote and create an invoice

Approve a quote and create an invoice


/Spenda/Sales/QuotePackages/{quotePackageID}/ApproveWithInvoice

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/QuotePackages/{quotePackageID}/ApproveWithInvoice"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The Quote Package ID

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

final api_instance = DefaultApi();

final Integer quotePackageID = new Integer(); // Integer | The Quote Package ID

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The Quote Package ID

        try {
            httpActionResult_approveQuoteWithInvoiceResponse result = apiInstance.salesApproveQuoteWithInvoice(quotePackageID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesApproveQuoteWithInvoice");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
Integer *quotePackageID = 56; // The Quote Package ID (default to null)

// Approve a quote and create an invoice
[apiInstance salesApproveQuoteWithInvoiceWith:quotePackageID
              completionHandler: ^(httpActionResult_approveQuoteWithInvoiceResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quotePackageID = 56; // {Integer} The Quote Package ID

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var quotePackageID = 56;  // Integer | The Quote Package ID (default to null)

            try {
                // Approve a quote and create an invoice
                httpActionResult_approveQuoteWithInvoiceResponse result = apiInstance.salesApproveQuoteWithInvoice(quotePackageID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesApproveQuoteWithInvoice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$quotePackageID = 56; // Integer | The Quote Package ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $quotePackageID = 56; # Integer | The Quote Package ID

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

try:
    # Approve a quote and create an invoice
    api_response = api_instance.sales_approve_quote_with_invoice(quotePackageID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesApproveQuoteWithInvoice: %s\n" % e)
extern crate QuoteApi;

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

    let mut context = QuoteApi::Context::default();
    let result = client.salesApproveQuoteWithInvoice(quotePackageID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
quotePackageID*
Integer (int32)
The Quote Package ID
Required

Responses


salesCancelQuotePackage

Cancel a quote package

Allows a tenant to cancel a quote package


/Spenda/Sales/QuotePackages/{quotePackageID}/Cancel

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/QuotePackages/{quotePackageID}/Cancel"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quote package ID

        try {
            httpActionResult_httpActionResult result = apiInstance.salesCancelQuotePackage(quotePackageID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesCancelQuotePackage");
            e.printStackTrace();
        }
    }
}


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

// Cancel a quote package
[apiInstance salesCancelQuotePackageWith:quotePackageID
              completionHandler: ^(httpActionResult_httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quotePackageID = 56; // {Integer} The quote package ID

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

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

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

            try {
                // Cancel a quote package
                httpActionResult_httpActionResult result = apiInstance.salesCancelQuotePackage(quotePackageID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesCancelQuotePackage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Cancel a quote package
    api_response = api_instance.sales_cancel_quote_package(quotePackageID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesCancelQuotePackage: %s\n" % e)
extern crate QuoteApi;

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

    let mut context = QuoteApi::Context::default();
    let result = client.salesCancelQuotePackage(quotePackageID, &context).wait();

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

Scopes

Parameters

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

Responses


salesCopyFromQuotePackage

Copy quote packages

Allows a tenant to copy quote packages


/Spenda/Sales/QuotePackages/{quotePackageID}/Copy

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quote ID
        CopyFromQuotePackageRequest copyFromQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; // CopyFromQuotePackageRequest | 

        try {
            httpActionResult_getQuotePackageResponse result = apiInstance.salesCopyFromQuotePackage(quotePackageID, copyFromQuotePackageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesCopyFromQuotePackage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer quotePackageID = new Integer(); // Integer | The quote ID
final CopyFromQuotePackageRequest copyFromQuotePackageRequest = new CopyFromQuotePackageRequest(); // CopyFromQuotePackageRequest | 

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quote ID
        CopyFromQuotePackageRequest copyFromQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; // CopyFromQuotePackageRequest | 

        try {
            httpActionResult_getQuotePackageResponse result = apiInstance.salesCopyFromQuotePackage(quotePackageID, copyFromQuotePackageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesCopyFromQuotePackage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
Integer *quotePackageID = 56; // The quote ID (default to null)
CopyFromQuotePackageRequest *copyFromQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; //  (optional)

// Copy quote packages
[apiInstance salesCopyFromQuotePackageWith:quotePackageID
    copyFromQuotePackageRequest:copyFromQuotePackageRequest
              completionHandler: ^(httpActionResult_getQuotePackageResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quotePackageID = 56; // {Integer} The quote ID
var opts = {
  'copyFromQuotePackageRequest': {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"} // {CopyFromQuotePackageRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var quotePackageID = 56;  // Integer | The quote ID (default to null)
            var copyFromQuotePackageRequest = new CopyFromQuotePackageRequest(); // CopyFromQuotePackageRequest |  (optional) 

            try {
                // Copy quote packages
                httpActionResult_getQuotePackageResponse result = apiInstance.salesCopyFromQuotePackage(quotePackageID, copyFromQuotePackageRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesCopyFromQuotePackage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$quotePackageID = 56; // Integer | The quote ID
$copyFromQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; // CopyFromQuotePackageRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $quotePackageID = 56; # Integer | The quote ID
my $copyFromQuotePackageRequest = WWW::OPenAPIClient::Object::CopyFromQuotePackageRequest->new(); # CopyFromQuotePackageRequest | 

eval {
    my $result = $api_instance->salesCopyFromQuotePackage(quotePackageID => $quotePackageID, copyFromQuotePackageRequest => $copyFromQuotePackageRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesCopyFromQuotePackage: $@\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.QuoteApi()
quotePackageID = 56 # Integer | The quote ID (default to null)
copyFromQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"} # CopyFromQuotePackageRequest |  (optional)

try:
    # Copy quote packages
    api_response = api_instance.sales_copy_from_quote_package(quotePackageID, copyFromQuotePackageRequest=copyFromQuotePackageRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesCopyFromQuotePackage: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let quotePackageID = 56; // Integer
    let copyFromQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; // CopyFromQuotePackageRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesCopyFromQuotePackage(quotePackageID, copyFromQuotePackageRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
quotePackageID*
Integer (int32)
The quote ID
Required
Body parameters
Name Description
copyFromQuotePackageRequest

Responses


salesCopyQuote

Copy quote

Allows a tenant to copy quote


/Spenda/Sales/Quotes/{quoteID}/Copy

Usage and SDK Samples

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

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

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

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

        try {
            httpActionResult_getQuoteResponse result = apiInstance.salesCopyQuote(quoteID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesCopyQuote");
            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.salesCopyQuote(quoteID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->salesCopyQuote: $e\n');
}

import org.openapitools.client.api.QuoteApi;

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

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


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

// Copy quote
[apiInstance salesCopyQuoteWith:quoteID
              completionHandler: ^(httpActionResult_getQuoteResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
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.salesCopyQuote(quoteID, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Copy quote
                httpActionResult_getQuoteResponse result = apiInstance.salesCopyQuote(quoteID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesCopyQuote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Copy quote
    api_response = api_instance.sales_copy_quote(quoteID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesCopyQuote: %s\n" % e)
extern crate QuoteApi;

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

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

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

Scopes

Parameters

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

Responses


salesCreateManualPrepayment

Create a prepayment for a quote

Allows a tenant to create a prepayment for a quote


/Spenda/Sales/Quotes/{quoteID}/ManualPrepayment

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer quoteID = 56; // Integer | The quote ID
        CreateManualPrepaymentRequest createManualPrepaymentRequest = {"quoteID":0,"prepaymentAmount":0,"paymentMethod":"Cash"}; // CreateManualPrepaymentRequest | 

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quoteID = 56; // Integer | The quote ID
        CreateManualPrepaymentRequest createManualPrepaymentRequest = {"quoteID":0,"prepaymentAmount":0,"paymentMethod":"Cash"}; // CreateManualPrepaymentRequest | 

        try {
            httpActionResult_createManualPrepaymentResponse result = apiInstance.salesCreateManualPrepayment(quoteID, createManualPrepaymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesCreateManualPrepayment");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
Integer *quoteID = 56; // The quote ID (default to null)
CreateManualPrepaymentRequest *createManualPrepaymentRequest = {"quoteID":0,"prepaymentAmount":0,"paymentMethod":"Cash"}; //  (optional)

// Create a prepayment for a quote
[apiInstance salesCreateManualPrepaymentWith:quoteID
    createManualPrepaymentRequest:createManualPrepaymentRequest
              completionHandler: ^(httpActionResult_createManualPrepaymentResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quoteID = 56; // {Integer} The quote ID
var opts = {
  'createManualPrepaymentRequest': {"quoteID":0,"prepaymentAmount":0,"paymentMethod":"Cash"} // {CreateManualPrepaymentRequest} 
};

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

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

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

            try {
                // Create a prepayment for a quote
                httpActionResult_createManualPrepaymentResponse result = apiInstance.salesCreateManualPrepayment(quoteID, createManualPrepaymentRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesCreateManualPrepayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$quoteID = 56; // Integer | The quote ID
$createManualPrepaymentRequest = {"quoteID":0,"prepaymentAmount":0,"paymentMethod":"Cash"}; // CreateManualPrepaymentRequest | 

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

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

eval {
    my $result = $api_instance->salesCreateManualPrepayment(quoteID => $quoteID, createManualPrepaymentRequest => $createManualPrepaymentRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesCreateManualPrepayment: $@\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.QuoteApi()
quoteID = 56 # Integer | The quote ID (default to null)
createManualPrepaymentRequest = {"quoteID":0,"prepaymentAmount":0,"paymentMethod":"Cash"} # CreateManualPrepaymentRequest |  (optional)

try:
    # Create a prepayment for a quote
    api_response = api_instance.sales_create_manual_prepayment(quoteID, createManualPrepaymentRequest=createManualPrepaymentRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesCreateManualPrepayment: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let quoteID = 56; // Integer
    let createManualPrepaymentRequest = {"quoteID":0,"prepaymentAmount":0,"paymentMethod":"Cash"}; // CreateManualPrepaymentRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesCreateManualPrepayment(quoteID, createManualPrepaymentRequest, &context).wait();

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

Scopes

Parameters

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

Responses


salesCreateQuote

Create a quote

Allows a tenant to create a quote


/Spenda/Sales/Quotes

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        CreateQuoteRequest createQuoteRequest = {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"discountModeType":0,"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0}; // CreateQuoteRequest | 

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

final api_instance = DefaultApi();

final CreateQuoteRequest createQuoteRequest = new CreateQuoteRequest(); // CreateQuoteRequest | 

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        CreateQuoteRequest createQuoteRequest = {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"discountModeType":0,"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0}; // CreateQuoteRequest | 

        try {
            httpActionResult_getQuoteResponse result = apiInstance.salesCreateQuote(createQuoteRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesCreateQuote");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
CreateQuoteRequest *createQuoteRequest = {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"discountModeType":0,"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0}; //  (optional)

// Create a quote
[apiInstance salesCreateQuoteWith:createQuoteRequest
              completionHandler: ^(httpActionResult_getQuoteResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var opts = {
  'createQuoteRequest': {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"discountModeType":0,"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0} // {CreateQuoteRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var createQuoteRequest = new CreateQuoteRequest(); // CreateQuoteRequest |  (optional) 

            try {
                // Create a quote
                httpActionResult_getQuoteResponse result = apiInstance.salesCreateQuote(createQuoteRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesCreateQuote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$createQuoteRequest = {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"discountModeType":0,"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0}; // CreateQuoteRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $createQuoteRequest = WWW::OPenAPIClient::Object::CreateQuoteRequest->new(); # CreateQuoteRequest | 

eval {
    my $result = $api_instance->salesCreateQuote(createQuoteRequest => $createQuoteRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesCreateQuote: $@\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.QuoteApi()
createQuoteRequest = {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"discountModeType":0,"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0} # CreateQuoteRequest |  (optional)

try:
    # Create a quote
    api_response = api_instance.sales_create_quote(createQuoteRequest=createQuoteRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesCreateQuote: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let createQuoteRequest = {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"discountModeType":0,"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0}; // CreateQuoteRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesCreateQuote(createQuoteRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
createQuoteRequest

Responses


salesCreateQuotePackage

Create a quote package

Allows a tenant to create a quote package


/Spenda/Sales/QuotePackages

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        CreateQuotePackageRequest createQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; // CreateQuotePackageRequest | 

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

final api_instance = DefaultApi();

final CreateQuotePackageRequest createQuotePackageRequest = new CreateQuotePackageRequest(); // CreateQuotePackageRequest | 

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        CreateQuotePackageRequest createQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; // CreateQuotePackageRequest | 

        try {
            httpActionResult_getQuotePackageResponse result = apiInstance.salesCreateQuotePackage(createQuotePackageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesCreateQuotePackage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
CreateQuotePackageRequest *createQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; //  (optional)

// Create a quote package
[apiInstance salesCreateQuotePackageWith:createQuotePackageRequest
              completionHandler: ^(httpActionResult_getQuotePackageResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var opts = {
  'createQuotePackageRequest': {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"} // {CreateQuotePackageRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var createQuotePackageRequest = new CreateQuotePackageRequest(); // CreateQuotePackageRequest |  (optional) 

            try {
                // Create a quote package
                httpActionResult_getQuotePackageResponse result = apiInstance.salesCreateQuotePackage(createQuotePackageRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesCreateQuotePackage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$createQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; // CreateQuotePackageRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $createQuotePackageRequest = WWW::OPenAPIClient::Object::CreateQuotePackageRequest->new(); # CreateQuotePackageRequest | 

eval {
    my $result = $api_instance->salesCreateQuotePackage(createQuotePackageRequest => $createQuotePackageRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesCreateQuotePackage: $@\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.QuoteApi()
createQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"} # CreateQuotePackageRequest |  (optional)

try:
    # Create a quote package
    api_response = api_instance.sales_create_quote_package(createQuotePackageRequest=createQuotePackageRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesCreateQuotePackage: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let createQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; // CreateQuotePackageRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesCreateQuotePackage(createQuotePackageRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
createQuotePackageRequest

Responses


salesCreateQuotePackageRevision

Create quote package revision

Allows a tenant to create quote package revision


/Spenda/Sales/QuotePackages/{quotePackageID}/Revision

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/QuotePackages/{quotePackageID}/Revision"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The source quote package ID to create the revision from

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

final api_instance = DefaultApi();

final Integer quotePackageID = new Integer(); // Integer | The source quote package ID to create the revision from

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The source quote package ID to create the revision from

        try {
            httpActionResult_getQuotePackageResponse result = apiInstance.salesCreateQuotePackageRevision(quotePackageID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesCreateQuotePackageRevision");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
Integer *quotePackageID = 56; // The source quote package ID to create the revision from (default to null)

// Create quote package revision
[apiInstance salesCreateQuotePackageRevisionWith:quotePackageID
              completionHandler: ^(httpActionResult_getQuotePackageResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quotePackageID = 56; // {Integer} The source quote package ID to create the revision from

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var quotePackageID = 56;  // Integer | The source quote package ID to create the revision from (default to null)

            try {
                // Create quote package revision
                httpActionResult_getQuotePackageResponse result = apiInstance.salesCreateQuotePackageRevision(quotePackageID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesCreateQuotePackageRevision: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$quotePackageID = 56; // Integer | The source quote package ID to create the revision from

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $quotePackageID = 56; # Integer | The source quote package ID to create the revision from

eval {
    my $result = $api_instance->salesCreateQuotePackageRevision(quotePackageID => $quotePackageID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesCreateQuotePackageRevision: $@\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.QuoteApi()
quotePackageID = 56 # Integer | The source quote package ID to create the revision from (default to null)

try:
    # Create quote package revision
    api_response = api_instance.sales_create_quote_package_revision(quotePackageID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesCreateQuotePackageRevision: %s\n" % e)
extern crate QuoteApi;

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

    let mut context = QuoteApi::Context::default();
    let result = client.salesCreateQuotePackageRevision(quotePackageID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
quotePackageID*
Integer (int32)
The source quote package ID to create the revision from
Required

Responses


salesDeleteQuote

Delete a quote

Allows a tenant to delete a quote


/Spenda/Sales/Quotes/{quoteID}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/Quotes/{quoteID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

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

        try {
            httpActionResult_httpActionResult result = apiInstance.salesDeleteQuote(quoteID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesDeleteQuote");
            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.salesDeleteQuote(quoteID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->salesDeleteQuote: $e\n');
}

import org.openapitools.client.api.QuoteApi;

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

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


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

// Delete a quote
[apiInstance salesDeleteQuoteWith:quoteID
              completionHandler: ^(httpActionResult_httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
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.salesDeleteQuote(quoteID, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Delete a quote
                httpActionResult_httpActionResult result = apiInstance.salesDeleteQuote(quoteID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesDeleteQuote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Delete a quote
    api_response = api_instance.sales_delete_quote(quoteID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesDeleteQuote: %s\n" % e)
extern crate QuoteApi;

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

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

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

Scopes

Parameters

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

Responses


salesDeleteQuoteLinesSummary

Delete summary lines from a quote

Allows a tenant to delete summary lines from a quote


/Spenda/Sales/Quotes/{quoteID}/QuoteSummaryLines

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/Quotes/{quoteID}/QuoteSummaryLines" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer quoteID = 56; // Integer | The quote ID
        DeleteQuoteLinesSummaryRequest deleteQuoteLinesSummaryRequest = {"quoteID":0,"quoteLinesSummaryIDs":[0]}; // DeleteQuoteLinesSummaryRequest | 

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quoteID = 56; // Integer | The quote ID
        DeleteQuoteLinesSummaryRequest deleteQuoteLinesSummaryRequest = {"quoteID":0,"quoteLinesSummaryIDs":[0]}; // DeleteQuoteLinesSummaryRequest | 

        try {
            httpActionResult_httpActionResult result = apiInstance.salesDeleteQuoteLinesSummary(quoteID, deleteQuoteLinesSummaryRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesDeleteQuoteLinesSummary");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
Integer *quoteID = 56; // The quote ID (default to null)
DeleteQuoteLinesSummaryRequest *deleteQuoteLinesSummaryRequest = {"quoteID":0,"quoteLinesSummaryIDs":[0]}; //  (optional)

// Delete summary lines from a quote
[apiInstance salesDeleteQuoteLinesSummaryWith:quoteID
    deleteQuoteLinesSummaryRequest:deleteQuoteLinesSummaryRequest
              completionHandler: ^(httpActionResult_httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quoteID = 56; // {Integer} The quote ID
var opts = {
  'deleteQuoteLinesSummaryRequest': {"quoteID":0,"quoteLinesSummaryIDs":[0]} // {DeleteQuoteLinesSummaryRequest} 
};

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

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

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

            try {
                // Delete summary lines from a quote
                httpActionResult_httpActionResult result = apiInstance.salesDeleteQuoteLinesSummary(quoteID, deleteQuoteLinesSummaryRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesDeleteQuoteLinesSummary: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$quoteID = 56; // Integer | The quote ID
$deleteQuoteLinesSummaryRequest = {"quoteID":0,"quoteLinesSummaryIDs":[0]}; // DeleteQuoteLinesSummaryRequest | 

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

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

eval {
    my $result = $api_instance->salesDeleteQuoteLinesSummary(quoteID => $quoteID, deleteQuoteLinesSummaryRequest => $deleteQuoteLinesSummaryRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesDeleteQuoteLinesSummary: $@\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.QuoteApi()
quoteID = 56 # Integer | The quote ID (default to null)
deleteQuoteLinesSummaryRequest = {"quoteID":0,"quoteLinesSummaryIDs":[0]} # DeleteQuoteLinesSummaryRequest |  (optional)

try:
    # Delete summary lines from a quote
    api_response = api_instance.sales_delete_quote_lines_summary(quoteID, deleteQuoteLinesSummaryRequest=deleteQuoteLinesSummaryRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesDeleteQuoteLinesSummary: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let quoteID = 56; // Integer
    let deleteQuoteLinesSummaryRequest = {"quoteID":0,"quoteLinesSummaryIDs":[0]}; // DeleteQuoteLinesSummaryRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesDeleteQuoteLinesSummary(quoteID, deleteQuoteLinesSummaryRequest, &context).wait();

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

Scopes

Parameters

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

Responses


salesDeleteQuotePackage

Delete a quote package

Allows a tenant to delete a quote package


/Spenda/Sales/QuotePackages/{quotePackageID}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/QuotePackages/{quotePackageID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quote package ID

        try {
            httpActionResult_httpActionResult result = apiInstance.salesDeleteQuotePackage(quotePackageID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesDeleteQuotePackage");
            e.printStackTrace();
        }
    }
}


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

// Delete a quote package
[apiInstance salesDeleteQuotePackageWith:quotePackageID
              completionHandler: ^(httpActionResult_httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quotePackageID = 56; // {Integer} The quote package ID

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

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

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

            try {
                // Delete a quote package
                httpActionResult_httpActionResult result = apiInstance.salesDeleteQuotePackage(quotePackageID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesDeleteQuotePackage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Delete a quote package
    api_response = api_instance.sales_delete_quote_package(quotePackageID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesDeleteQuotePackage: %s\n" % e)
extern crate QuoteApi;

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

    let mut context = QuoteApi::Context::default();
    let result = client.salesDeleteQuotePackage(quotePackageID, &context).wait();

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

Scopes

Parameters

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

Responses


salesGetQuote

Get a quote

Allows a tenant to get a quote


/Spenda/Sales/Quotes/{quoteID}

Usage and SDK Samples

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

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

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

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

        try {
            httpActionResult_getQuoteResponse result = apiInstance.salesGetQuote(quoteID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesGetQuote");
            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.salesGetQuote(quoteID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->salesGetQuote: $e\n');
}

import org.openapitools.client.api.QuoteApi;

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

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


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

// Get a quote
[apiInstance salesGetQuoteWith:quoteID
              completionHandler: ^(httpActionResult_getQuoteResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
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.salesGetQuote(quoteID, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Get a quote
                httpActionResult_getQuoteResponse result = apiInstance.salesGetQuote(quoteID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesGetQuote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get a quote
    api_response = api_instance.sales_get_quote(quoteID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesGetQuote: %s\n" % e)
extern crate QuoteApi;

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

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

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

Scopes

Parameters

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

Responses


salesGetQuoteAttachments

Get quote attachments

Allows a tenant to get attachments for a quote


/Spenda/Sales/Quotes/{quoteID}/Attachments

Usage and SDK Samples

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

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

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

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

        try {
            httpActionResult_getQuoteAttachmentsResponse result = apiInstance.salesGetQuoteAttachments(quoteID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesGetQuoteAttachments");
            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.salesGetQuoteAttachments(quoteID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->salesGetQuoteAttachments: $e\n');
}

import org.openapitools.client.api.QuoteApi;

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

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


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

// Get quote attachments
[apiInstance salesGetQuoteAttachmentsWith:quoteID
              completionHandler: ^(httpActionResult_getQuoteAttachmentsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
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.salesGetQuoteAttachments(quoteID, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Get quote attachments
                httpActionResult_getQuoteAttachmentsResponse result = apiInstance.salesGetQuoteAttachments(quoteID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesGetQuoteAttachments: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get quote attachments
    api_response = api_instance.sales_get_quote_attachments(quoteID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesGetQuoteAttachments: %s\n" % e)
extern crate QuoteApi;

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

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

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

Scopes

Parameters

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

Responses


salesGetQuotePackage

Get a quote package

Allows a tenant to get a quote package


/Spenda/Sales/QuotePackages/{quotePackageID}

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quote package ID

        try {
            httpActionResult_getQuotePackageResponse result = apiInstance.salesGetQuotePackage(quotePackageID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesGetQuotePackage");
            e.printStackTrace();
        }
    }
}


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

// Get a quote package
[apiInstance salesGetQuotePackageWith:quotePackageID
              completionHandler: ^(httpActionResult_getQuotePackageResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quotePackageID = 56; // {Integer} The quote package ID

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

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

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

            try {
                // Get a quote package
                httpActionResult_getQuotePackageResponse result = apiInstance.salesGetQuotePackage(quotePackageID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesGetQuotePackage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get a quote package
    api_response = api_instance.sales_get_quote_package(quotePackageID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesGetQuotePackage: %s\n" % e)
extern crate QuoteApi;

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

    let mut context = QuoteApi::Context::default();
    let result = client.salesGetQuotePackage(quotePackageID, &context).wait();

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

Scopes

Parameters

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

Responses


salesGetQuotePackageAttachments

Get quote package attachments

Allows a tenant to get attachments for a quote package


/Spenda/Sales/QuotePackages/{quotePackageID}/Attachments

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quote package ID

        try {
            httpActionResult_getQuotePackageAttachmentsResponse result = apiInstance.salesGetQuotePackageAttachments(quotePackageID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesGetQuotePackageAttachments");
            e.printStackTrace();
        }
    }
}


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

// Get quote package attachments
[apiInstance salesGetQuotePackageAttachmentsWith:quotePackageID
              completionHandler: ^(httpActionResult_getQuotePackageAttachmentsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quotePackageID = 56; // {Integer} The quote package ID

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

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

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

            try {
                // Get quote package attachments
                httpActionResult_getQuotePackageAttachmentsResponse result = apiInstance.salesGetQuotePackageAttachments(quotePackageID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesGetQuotePackageAttachments: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get quote package attachments
    api_response = api_instance.sales_get_quote_package_attachments(quotePackageID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesGetQuotePackageAttachments: %s\n" % e)
extern crate QuoteApi;

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

    let mut context = QuoteApi::Context::default();
    let result = client.salesGetQuotePackageAttachments(quotePackageID, &context).wait();

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

Scopes

Parameters

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

Responses


salesGetQuotePackageSummary

Get a quote package quotes summary

Allows a tenant to get a quote package quotes summary


/Spenda/Sales/QuotePackages/{quotePackageID}/Summary

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/QuotePackages/{quotePackageID}/Summary"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quotePackage ID

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

final api_instance = DefaultApi();

final Integer quotePackageID = new Integer(); // Integer | The quotePackage ID

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quotePackage ID

        try {
            httpActionResult_getQuotePackageSummaryResponse result = apiInstance.salesGetQuotePackageSummary(quotePackageID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesGetQuotePackageSummary");
            e.printStackTrace();
        }
    }
}


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

// Get a quote package quotes summary
[apiInstance salesGetQuotePackageSummaryWith:quotePackageID
              completionHandler: ^(httpActionResult_getQuotePackageSummaryResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quotePackageID = 56; // {Integer} The quotePackage ID

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var quotePackageID = 56;  // Integer | The quotePackage ID (default to null)

            try {
                // Get a quote package quotes summary
                httpActionResult_getQuotePackageSummaryResponse result = apiInstance.salesGetQuotePackageSummary(quotePackageID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesGetQuotePackageSummary: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get a quote package quotes summary
    api_response = api_instance.sales_get_quote_package_summary(quotePackageID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesGetQuotePackageSummary: %s\n" % e)
extern crate QuoteApi;

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

    let mut context = QuoteApi::Context::default();
    let result = client.salesGetQuotePackageSummary(quotePackageID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
quotePackageID*
Integer (int32)
The quotePackage ID
Required

Responses


salesGetQuotePackageUsingInviteCode

Get quote package by invite code

Allows a tenant to get a quote package by invite code


/Spenda/Sales/QuotePackageInvite/{inviteCode}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/QuotePackageInvite/{inviteCode}?approvalSessionGUID=approvalSessionGUID_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        String approvalSessionGUID = approvalSessionGUID_example; // String | Used to comapare with valid approval code

        try {
            httpActionResult_getQuotePackageUsingInviteCodeResponse result = apiInstance.salesGetQuotePackageUsingInviteCode(inviteCode, approvalSessionGUID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesGetQuotePackageUsingInviteCode");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | Invite code for the quote package
final String approvalSessionGUID = new String(); // String | Used to comapare with valid approval code

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        String approvalSessionGUID = approvalSessionGUID_example; // String | Used to comapare with valid approval code

        try {
            httpActionResult_getQuotePackageUsingInviteCodeResponse result = apiInstance.salesGetQuotePackageUsingInviteCode(inviteCode, approvalSessionGUID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesGetQuotePackageUsingInviteCode");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
String *inviteCode = inviteCode_example; // Invite code for the quote package (default to null)
String *approvalSessionGUID = approvalSessionGUID_example; // Used to comapare with valid approval code (optional) (default to null)

// Get quote package by invite code
[apiInstance salesGetQuotePackageUsingInviteCodeWith:inviteCode
    approvalSessionGUID:approvalSessionGUID
              completionHandler: ^(httpActionResult_getQuotePackageUsingInviteCodeResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var inviteCode = inviteCode_example; // {String} Invite code for the quote package
var opts = {
  'approvalSessionGUID': approvalSessionGUID_example // {String} Used to comapare with valid approval code
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var inviteCode = inviteCode_example;  // String | Invite code for the quote package (default to null)
            var approvalSessionGUID = approvalSessionGUID_example;  // String | Used to comapare with valid approval code (optional)  (default to null)

            try {
                // Get quote package by invite code
                httpActionResult_getQuotePackageUsingInviteCodeResponse result = apiInstance.salesGetQuotePackageUsingInviteCode(inviteCode, approvalSessionGUID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesGetQuotePackageUsingInviteCode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$inviteCode = inviteCode_example; // String | Invite code for the quote package
$approvalSessionGUID = approvalSessionGUID_example; // String | Used to comapare with valid approval code

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $inviteCode = inviteCode_example; # String | Invite code for the quote package
my $approvalSessionGUID = approvalSessionGUID_example; # String | Used to comapare with valid approval code

eval {
    my $result = $api_instance->salesGetQuotePackageUsingInviteCode(inviteCode => $inviteCode, approvalSessionGUID => $approvalSessionGUID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesGetQuotePackageUsingInviteCode: $@\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.QuoteApi()
inviteCode = inviteCode_example # String | Invite code for the quote package (default to null)
approvalSessionGUID = approvalSessionGUID_example # String | Used to comapare with valid approval code (optional) (default to null)

try:
    # Get quote package by invite code
    api_response = api_instance.sales_get_quote_package_using_invite_code(inviteCode, approvalSessionGUID=approvalSessionGUID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesGetQuotePackageUsingInviteCode: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let approvalSessionGUID = approvalSessionGUID_example; // String

    let mut context = QuoteApi::Context::default();
    let result = client.salesGetQuotePackageUsingInviteCode(inviteCode, approvalSessionGUID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
Invite code for the quote package
Required
Query parameters
Name Description
approvalSessionGUID
String
Used to comapare with valid approval code

Responses


salesGetQuoteSettings

Get quote settings

Allows a tenant to get quote settings


/Spenda/Sales/Quotes/Settings

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/Quotes/Settings"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.QuoteApi;

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

        try {
            httpActionResult_getQuoteSettingsResponse result = apiInstance.salesGetQuoteSettings();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesGetQuoteSettings");
            e.printStackTrace();
        }
    }
}


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

// Get quote settings
[apiInstance salesGetQuoteSettingsWithCompletionHandler: 
              ^(httpActionResult_getQuoteSettingsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

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

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

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

            try {
                // Get quote settings
                httpActionResult_getQuoteSettingsResponse result = apiInstance.salesGetQuoteSettings();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesGetQuoteSettings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->salesGetQuoteSettings();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesGetQuoteSettings: $@\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.QuoteApi()

try:
    # Get quote settings
    api_response = api_instance.sales_get_quote_settings()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesGetQuoteSettings: %s\n" % e)
extern crate QuoteApi;

pub fn main() {

    let mut context = QuoteApi::Context::default();
    let result = client.salesGetQuoteSettings(&context).wait();

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

Scopes

Parameters

Responses


salesGetQuoteSummary

Get a quote summary

Allows a tenant to get a quote summary


/Spenda/Sales/Quotes/{quoteID}/QuoteSummary

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/Quotes/{quoteID}/QuoteSummary"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

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

        try {
            httpActionResult_getQuoteSummaryResult result = apiInstance.salesGetQuoteSummary(quoteID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesGetQuoteSummary");
            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.salesGetQuoteSummary(quoteID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->salesGetQuoteSummary: $e\n');
}

import org.openapitools.client.api.QuoteApi;

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

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


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

// Get a quote summary
[apiInstance salesGetQuoteSummaryWith:quoteID
              completionHandler: ^(httpActionResult_getQuoteSummaryResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
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.salesGetQuoteSummary(quoteID, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Get a quote summary
                httpActionResult_getQuoteSummaryResult result = apiInstance.salesGetQuoteSummary(quoteID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesGetQuoteSummary: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get a quote summary
    api_response = api_instance.sales_get_quote_summary(quoteID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesGetQuoteSummary: %s\n" % e)
extern crate QuoteApi;

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

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

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

Scopes

Parameters

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

Responses


salesGetSalesOrders

Get sales orders

Allows a tenant to get sales orders


/Spenda/Sales/Orders

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/Orders?linkedSupplierID=56&accountCustomerID=56&searchString=searchString_example&searchField=searchField_example&vendorID=56&status="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer linkedSupplierID = 56; // Integer | Account customer unique identifier in the buyer's tenancy
        Integer accountCustomerID = 56; // Integer | Account customer unique identifier in the supplier's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | Define the peroperty to search
        Integer vendorID = 56; // Integer | Define property to serach for specific vendor
        array[String] status = ; // array[String] | Define the property to search based on status

        try {
            httpActionResult_salesOrdersResponse result = apiInstance.salesGetSalesOrders(linkedSupplierID, accountCustomerID, searchString, searchField, vendorID, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesGetSalesOrders");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Account customer unique identifier in the buyer's tenancy
final Integer accountCustomerID = new Integer(); // Integer | Account customer unique identifier in the supplier's tenancy
final String searchString = new String(); // String | String of characters to specify an advance search
final String searchField = new String(); // String | Define the peroperty to search
final Integer vendorID = new Integer(); // Integer | Define property to serach for specific vendor
final array[String] status = new array[String](); // array[String] | Define the property to search based on status

try {
    final result = await api_instance.salesGetSalesOrders(linkedSupplierID, accountCustomerID, searchString, searchField, vendorID, status);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->salesGetSalesOrders: $e\n');
}

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer linkedSupplierID = 56; // Integer | Account customer unique identifier in the buyer's tenancy
        Integer accountCustomerID = 56; // Integer | Account customer unique identifier in the supplier's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | Define the peroperty to search
        Integer vendorID = 56; // Integer | Define property to serach for specific vendor
        array[String] status = ; // array[String] | Define the property to search based on status

        try {
            httpActionResult_salesOrdersResponse result = apiInstance.salesGetSalesOrders(linkedSupplierID, accountCustomerID, searchString, searchField, vendorID, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesGetSalesOrders");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
Integer *linkedSupplierID = 56; // Account customer unique identifier in the buyer's tenancy (optional) (default to null)
Integer *accountCustomerID = 56; // Account customer unique identifier in the supplier's tenancy (optional) (default to null)
String *searchString = searchString_example; // String of characters to specify an advance search (optional) (default to null)
String *searchField = searchField_example; // Define the peroperty to search (optional) (default to null)
Integer *vendorID = 56; // Define property to serach for specific vendor (optional) (default to null)
array[String] *status = ; // Define the property to search based on status (optional) (default to null)

// Get sales orders
[apiInstance salesGetSalesOrdersWith:linkedSupplierID
    accountCustomerID:accountCustomerID
    searchString:searchString
    searchField:searchField
    vendorID:vendorID
    status:status
              completionHandler: ^(httpActionResult_salesOrdersResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var opts = {
  'linkedSupplierID': 56, // {Integer} Account customer unique identifier in the buyer's tenancy
  'accountCustomerID': 56, // {Integer} Account customer unique identifier in the supplier's tenancy
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example, // {String} Define the peroperty to search
  'vendorID': 56, // {Integer} Define property to serach for specific vendor
  'status':  // {array[String]} Define the property to search based on status
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var linkedSupplierID = 56;  // Integer | Account customer unique identifier in the buyer's tenancy (optional)  (default to null)
            var accountCustomerID = 56;  // Integer | Account customer unique identifier in the supplier's tenancy (optional)  (default to null)
            var searchString = searchString_example;  // String | String of characters to specify an advance search (optional)  (default to null)
            var searchField = searchField_example;  // String | Define the peroperty to search (optional)  (default to null)
            var vendorID = 56;  // Integer | Define property to serach for specific vendor (optional)  (default to null)
            var status = new array[String](); // array[String] | Define the property to search based on status (optional)  (default to null)

            try {
                // Get sales orders
                httpActionResult_salesOrdersResponse result = apiInstance.salesGetSalesOrders(linkedSupplierID, accountCustomerID, searchString, searchField, vendorID, status);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesGetSalesOrders: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$linkedSupplierID = 56; // Integer | Account customer unique identifier in the buyer's tenancy
$accountCustomerID = 56; // Integer | Account customer unique identifier in the supplier's tenancy
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | Define the peroperty to search
$vendorID = 56; // Integer | Define property to serach for specific vendor
$status = ; // array[String] | Define the property to search based on status

try {
    $result = $api_instance->salesGetSalesOrders($linkedSupplierID, $accountCustomerID, $searchString, $searchField, $vendorID, $status);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QuoteApi->salesGetSalesOrders: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::QuoteApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $linkedSupplierID = 56; # Integer | Account customer unique identifier in the buyer's tenancy
my $accountCustomerID = 56; # Integer | Account customer unique identifier in the supplier's tenancy
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $searchField = searchField_example; # String | Define the peroperty to search
my $vendorID = 56; # Integer | Define property to serach for specific vendor
my $status = []; # array[String] | Define the property to search based on status

eval {
    my $result = $api_instance->salesGetSalesOrders(linkedSupplierID => $linkedSupplierID, accountCustomerID => $accountCustomerID, searchString => $searchString, searchField => $searchField, vendorID => $vendorID, status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesGetSalesOrders: $@\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.QuoteApi()
linkedSupplierID = 56 # Integer | Account customer unique identifier in the buyer's tenancy (optional) (default to null)
accountCustomerID = 56 # Integer | Account customer unique identifier in the supplier's tenancy (optional) (default to null)
searchString = searchString_example # String | String of characters to specify an advance search (optional) (default to null)
searchField = searchField_example # String | Define the peroperty to search (optional) (default to null)
vendorID = 56 # Integer | Define property to serach for specific vendor (optional) (default to null)
status =  # array[String] | Define the property to search based on status (optional) (default to null)

try:
    # Get sales orders
    api_response = api_instance.sales_get_sales_orders(linkedSupplierID=linkedSupplierID, accountCustomerID=accountCustomerID, searchString=searchString, searchField=searchField, vendorID=vendorID, status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesGetSalesOrders: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let accountCustomerID = 56; // Integer
    let searchString = searchString_example; // String
    let searchField = searchField_example; // String
    let vendorID = 56; // Integer
    let status = ; // array[String]

    let mut context = QuoteApi::Context::default();
    let result = client.salesGetSalesOrders(linkedSupplierID, accountCustomerID, searchString, searchField, vendorID, status, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
linkedSupplierID
Integer (int32)
Account customer unique identifier in the buyer's tenancy
accountCustomerID
Integer (int32)
Account customer unique identifier in the supplier's tenancy
searchString
String
String of characters to specify an advance search
searchField
String
Define the peroperty to search
vendorID
Integer (int32)
Define property to serach for specific vendor
status
array[String]
Define the property to search based on status

Responses


salesProcessPaymentToken

Processes a payment token

Allows a tenant to process a payment token


/Spenda/Sales/QuotePackageInvite/{inviteCode}/PaymentToken

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | The quote package invite code
        ProcessPaymentRequest processPaymentRequest = {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"}; // ProcessPaymentRequest | 

        try {
            httpActionResult_processPaymentResponse result = apiInstance.salesProcessPaymentToken(inviteCode, processPaymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesProcessPaymentToken");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | The quote package invite code
final ProcessPaymentRequest processPaymentRequest = new ProcessPaymentRequest(); // ProcessPaymentRequest | 

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | The quote package invite code
        ProcessPaymentRequest processPaymentRequest = {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"}; // ProcessPaymentRequest | 

        try {
            httpActionResult_processPaymentResponse result = apiInstance.salesProcessPaymentToken(inviteCode, processPaymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesProcessPaymentToken");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
String *inviteCode = inviteCode_example; // The quote package invite code (default to null)
ProcessPaymentRequest *processPaymentRequest = {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"}; //  (optional)

// Processes a payment token
[apiInstance salesProcessPaymentTokenWith:inviteCode
    processPaymentRequest:processPaymentRequest
              completionHandler: ^(httpActionResult_processPaymentResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var inviteCode = inviteCode_example; // {String} The quote package invite code
var opts = {
  'processPaymentRequest': {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"} // {ProcessPaymentRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var inviteCode = inviteCode_example;  // String | The quote package invite code (default to null)
            var processPaymentRequest = new ProcessPaymentRequest(); // ProcessPaymentRequest |  (optional) 

            try {
                // Processes a payment token
                httpActionResult_processPaymentResponse result = apiInstance.salesProcessPaymentToken(inviteCode, processPaymentRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesProcessPaymentToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$inviteCode = inviteCode_example; // String | The quote package invite code
$processPaymentRequest = {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"}; // ProcessPaymentRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $inviteCode = inviteCode_example; # String | The quote package invite code
my $processPaymentRequest = WWW::OPenAPIClient::Object::ProcessPaymentRequest->new(); # ProcessPaymentRequest | 

eval {
    my $result = $api_instance->salesProcessPaymentToken(inviteCode => $inviteCode, processPaymentRequest => $processPaymentRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesProcessPaymentToken: $@\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.QuoteApi()
inviteCode = inviteCode_example # String | The quote package invite code (default to null)
processPaymentRequest = {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"} # ProcessPaymentRequest |  (optional)

try:
    # Processes a payment token
    api_response = api_instance.sales_process_payment_token(inviteCode, processPaymentRequest=processPaymentRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesProcessPaymentToken: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let processPaymentRequest = {"inviteCode":"string","paymentToken":"string","paymentAmount":0,"paymentMethod":"string"}; // ProcessPaymentRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesProcessPaymentToken(inviteCode, processPaymentRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
The quote package invite code
Required
Body parameters
Name Description
processPaymentRequest

Responses


salesRejectQuote

Reject a quote

Allows a tenant to reject a quote


/Spenda/Sales/Quotes/{quoteID}/Reject

Usage and SDK Samples

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

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

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

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

        try {
            apiInstance.salesRejectQuote(quoteID);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesRejectQuote");
            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.salesRejectQuote(quoteID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->salesRejectQuote: $e\n');
}

import org.openapitools.client.api.QuoteApi;

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

        try {
            apiInstance.salesRejectQuote(quoteID);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesRejectQuote");
            e.printStackTrace();
        }
    }
}


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

// Reject a quote
[apiInstance salesRejectQuoteWith:quoteID
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

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

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

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

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

            try {
                // Reject a quote
                apiInstance.salesRejectQuote(quoteID);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesRejectQuote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Reject a quote
    api_instance.sales_reject_quote(quoteID)
except ApiException as e:
    print("Exception when calling QuoteApi->salesRejectQuote: %s\n" % e)
extern crate QuoteApi;

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

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

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

Scopes

Parameters

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

Responses


salesRejectQuoteByInviteCode

Reject a quote by invite code

Allows a person to reject a quote by invite code


/Spenda/Sales/QuotePackageInvite/{inviteCode}/RejectInvite

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        ApproveOrRejectQuoteByInviteCodeRequest approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest | 

        try {
            apiInstance.salesRejectQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesRejectQuoteByInviteCode");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | Invite code for the quote package
final ApproveOrRejectQuoteByInviteCodeRequest approveOrRejectQuoteByInviteCodeRequest = new ApproveOrRejectQuoteByInviteCodeRequest(); // ApproveOrRejectQuoteByInviteCodeRequest | 

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        ApproveOrRejectQuoteByInviteCodeRequest approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest | 

        try {
            apiInstance.salesRejectQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesRejectQuoteByInviteCode");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
String *inviteCode = inviteCode_example; // Invite code for the quote package (default to null)
ApproveOrRejectQuoteByInviteCodeRequest *approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; //  (optional)

// Reject a quote by invite code
[apiInstance salesRejectQuoteByInviteCodeWith:inviteCode
    approveOrRejectQuoteByInviteCodeRequest:approveOrRejectQuoteByInviteCodeRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var inviteCode = inviteCode_example; // {String} Invite code for the quote package
var opts = {
  'approveOrRejectQuoteByInviteCodeRequest': {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"} // {ApproveOrRejectQuoteByInviteCodeRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var inviteCode = inviteCode_example;  // String | Invite code for the quote package (default to null)
            var approveOrRejectQuoteByInviteCodeRequest = new ApproveOrRejectQuoteByInviteCodeRequest(); // ApproveOrRejectQuoteByInviteCodeRequest |  (optional) 

            try {
                // Reject a quote by invite code
                apiInstance.salesRejectQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesRejectQuoteByInviteCode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$inviteCode = inviteCode_example; // String | Invite code for the quote package
$approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $inviteCode = inviteCode_example; # String | Invite code for the quote package
my $approveOrRejectQuoteByInviteCodeRequest = WWW::OPenAPIClient::Object::ApproveOrRejectQuoteByInviteCodeRequest->new(); # ApproveOrRejectQuoteByInviteCodeRequest | 

eval {
    $api_instance->salesRejectQuoteByInviteCode(inviteCode => $inviteCode, approveOrRejectQuoteByInviteCodeRequest => $approveOrRejectQuoteByInviteCodeRequest);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesRejectQuoteByInviteCode: $@\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.QuoteApi()
inviteCode = inviteCode_example # String | Invite code for the quote package (default to null)
approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"} # ApproveOrRejectQuoteByInviteCodeRequest |  (optional)

try:
    # Reject a quote by invite code
    api_instance.sales_reject_quote_by_invite_code(inviteCode, approveOrRejectQuoteByInviteCodeRequest=approveOrRejectQuoteByInviteCodeRequest)
except ApiException as e:
    print("Exception when calling QuoteApi->salesRejectQuoteByInviteCode: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let approveOrRejectQuoteByInviteCodeRequest = {"inviteCode":"string","quoteGUID":"string","approvalSessionGUID":"string"}; // ApproveOrRejectQuoteByInviteCodeRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesRejectQuoteByInviteCode(inviteCode, approveOrRejectQuoteByInviteCodeRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
Invite code for the quote package
Required
Body parameters
Name Description
approveOrRejectQuoteByInviteCodeRequest

Responses


salesSearchQuotes

Search quotes

Allows a tenant to search quotes


/Spenda/Sales/Quotes

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/Quotes?StartRow=56&MaxResults=56&StartDate=2013-10-20T19:20:30+01:00&EndDate=2013-10-20T19:20:30+01:00&SortField=sortField_example&SortOrder=sortOrder_example&Status=&SearchString=searchString_example&AssignedToUserIDs="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | The start date range
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | The end date range
        String sortField = sortField_example; // String | The sort field
        String sortOrder = sortOrder_example; // String | The sort order
        array[Integer] status = ; // array[Integer] | The status filter
        String searchString = searchString_example; // String | The search string
        array[Integer] assignedToUserIDs = ; // array[Integer] | Assigned To User IDs

        try {
            httpActionResult_searchQuotesResponse result = apiInstance.salesSearchQuotes(startRow, maxResults, startDate, endDate, sortField, sortOrder, status, searchString, assignedToUserIDs);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSearchQuotes");
            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 Date startDate = new Date(); // Date | The start date range
final Date endDate = new Date(); // Date | The end date range
final String sortField = new String(); // String | The sort field
final String sortOrder = new String(); // String | The sort order
final array[Integer] status = new array[Integer](); // array[Integer] | The status filter
final String searchString = new String(); // String | The search string
final array[Integer] assignedToUserIDs = new array[Integer](); // array[Integer] | Assigned To User IDs

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | The start date range
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | The end date range
        String sortField = sortField_example; // String | The sort field
        String sortOrder = sortOrder_example; // String | The sort order
        array[Integer] status = ; // array[Integer] | The status filter
        String searchString = searchString_example; // String | The search string
        array[Integer] assignedToUserIDs = ; // array[Integer] | Assigned To User IDs

        try {
            httpActionResult_searchQuotesResponse result = apiInstance.salesSearchQuotes(startRow, maxResults, startDate, endDate, sortField, sortOrder, status, searchString, assignedToUserIDs);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSearchQuotes");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi 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)
Date *startDate = 2013-10-20T19:20:30+01:00; // The start date range (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // The end date range (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)
array[Integer] *status = ; // The status filter (optional) (default to null)
String *searchString = searchString_example; // The search string (optional) (default to null)
array[Integer] *assignedToUserIDs = ; // Assigned To User IDs (optional) (default to null)

// Search quotes
[apiInstance salesSearchQuotesWith:startRow
    maxResults:maxResults
    startDate:startDate
    endDate:endDate
    sortField:sortField
    sortOrder:sortOrder
    status:status
    searchString:searchString
    assignedToUserIDs:assignedToUserIDs
              completionHandler: ^(httpActionResult_searchQuotesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var opts = {
  'startRow': 56, // {Integer} The start row position
  'maxResults': 56, // {Integer} The number of results to return
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} The start date range
  'endDate': 2013-10-20T19:20:30+01:00, // {Date} The end date range
  'sortField': sortField_example, // {String} The sort field
  'sortOrder': sortOrder_example, // {String} The sort order
  'status': , // {array[Integer]} The status filter
  'searchString': searchString_example, // {String} The search string
  'assignedToUserIDs':  // {array[Integer]} Assigned To User IDs
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            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 startDate = 2013-10-20T19:20:30+01:00;  // Date | The start date range (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | The end date range (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 status = new array[Integer](); // array[Integer] | The status filter (optional)  (default to null)
            var searchString = searchString_example;  // String | The search string (optional)  (default to null)
            var assignedToUserIDs = new array[Integer](); // array[Integer] | Assigned To User IDs (optional)  (default to null)

            try {
                // Search quotes
                httpActionResult_searchQuotesResponse result = apiInstance.salesSearchQuotes(startRow, maxResults, startDate, endDate, sortField, sortOrder, status, searchString, assignedToUserIDs);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesSearchQuotes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$startRow = 56; // Integer | The start row position
$maxResults = 56; // Integer | The number of results to return
$startDate = 2013-10-20T19:20:30+01:00; // Date | The start date range
$endDate = 2013-10-20T19:20:30+01:00; // Date | The end date range
$sortField = sortField_example; // String | The sort field
$sortOrder = sortOrder_example; // String | The sort order
$status = ; // array[Integer] | The status filter
$searchString = searchString_example; // String | The search string
$assignedToUserIDs = ; // array[Integer] | Assigned To User IDs

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $startRow = 56; # Integer | The start row position
my $maxResults = 56; # Integer | The number of results to return
my $startDate = 2013-10-20T19:20:30+01:00; # Date | The start date range
my $endDate = 2013-10-20T19:20:30+01:00; # Date | The end date range
my $sortField = sortField_example; # String | The sort field
my $sortOrder = sortOrder_example; # String | The sort order
my $status = []; # array[Integer] | The status filter
my $searchString = searchString_example; # String | The search string
my $assignedToUserIDs = []; # array[Integer] | Assigned To User IDs

eval {
    my $result = $api_instance->salesSearchQuotes(startRow => $startRow, maxResults => $maxResults, startDate => $startDate, endDate => $endDate, sortField => $sortField, sortOrder => $sortOrder, status => $status, searchString => $searchString, assignedToUserIDs => $assignedToUserIDs);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesSearchQuotes: $@\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.QuoteApi()
startRow = 56 # Integer | The start row position (optional) (default to null)
maxResults = 56 # Integer | The number of results to return (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date | The start date range (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | The end date range (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)
status =  # array[Integer] | The status filter (optional) (default to null)
searchString = searchString_example # String | The search string (optional) (default to null)
assignedToUserIDs =  # array[Integer] | Assigned To User IDs (optional) (default to null)

try:
    # Search quotes
    api_response = api_instance.sales_search_quotes(startRow=startRow, maxResults=maxResults, startDate=startDate, endDate=endDate, sortField=sortField, sortOrder=sortOrder, status=status, searchString=searchString, assignedToUserIDs=assignedToUserIDs)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesSearchQuotes: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let startRow = 56; // Integer
    let maxResults = 56; // Integer
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date
    let sortField = sortField_example; // String
    let sortOrder = sortOrder_example; // String
    let status = ; // array[Integer]
    let searchString = searchString_example; // String
    let assignedToUserIDs = ; // array[Integer]

    let mut context = QuoteApi::Context::default();
    let result = client.salesSearchQuotes(startRow, maxResults, startDate, endDate, sortField, sortOrder, status, searchString, assignedToUserIDs, &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
StartDate
Date (date-time)
The start date range
EndDate
Date (date-time)
The end date range
SortField
String
The sort field
SortOrder
String
The sort order
Status
array[Integer] (int32)
The status filter
SearchString
String
The search string
AssignedToUserIDs
array[Integer] (int32)
Assigned To User IDs

Responses


salesSendApprovalCodeForQuotePackage

Sends approval code for a quote package

Allows a customer to send approval code for a quote package


/Spenda/Sales/QuotePackageInvite/{inviteCode}/SendApprovalCode

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        SendApprovalCodeForQuotePackageRequest sendApprovalCodeForQuotePackageRequest = {"inviteCode":"string"}; // SendApprovalCodeForQuotePackageRequest | 

        try {
            apiInstance.salesSendApprovalCodeForQuotePackage(inviteCode, sendApprovalCodeForQuotePackageRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSendApprovalCodeForQuotePackage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | Invite code for the quote package
final SendApprovalCodeForQuotePackageRequest sendApprovalCodeForQuotePackageRequest = new SendApprovalCodeForQuotePackageRequest(); // SendApprovalCodeForQuotePackageRequest | 

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        SendApprovalCodeForQuotePackageRequest sendApprovalCodeForQuotePackageRequest = {"inviteCode":"string"}; // SendApprovalCodeForQuotePackageRequest | 

        try {
            apiInstance.salesSendApprovalCodeForQuotePackage(inviteCode, sendApprovalCodeForQuotePackageRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSendApprovalCodeForQuotePackage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
String *inviteCode = inviteCode_example; // Invite code for the quote package (default to null)
SendApprovalCodeForQuotePackageRequest *sendApprovalCodeForQuotePackageRequest = {"inviteCode":"string"}; //  (optional)

// Sends approval code for a quote package
[apiInstance salesSendApprovalCodeForQuotePackageWith:inviteCode
    sendApprovalCodeForQuotePackageRequest:sendApprovalCodeForQuotePackageRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var inviteCode = inviteCode_example; // {String} Invite code for the quote package
var opts = {
  'sendApprovalCodeForQuotePackageRequest': {"inviteCode":"string"} // {SendApprovalCodeForQuotePackageRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var inviteCode = inviteCode_example;  // String | Invite code for the quote package (default to null)
            var sendApprovalCodeForQuotePackageRequest = new SendApprovalCodeForQuotePackageRequest(); // SendApprovalCodeForQuotePackageRequest |  (optional) 

            try {
                // Sends approval code for a quote package
                apiInstance.salesSendApprovalCodeForQuotePackage(inviteCode, sendApprovalCodeForQuotePackageRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesSendApprovalCodeForQuotePackage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$inviteCode = inviteCode_example; // String | Invite code for the quote package
$sendApprovalCodeForQuotePackageRequest = {"inviteCode":"string"}; // SendApprovalCodeForQuotePackageRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $inviteCode = inviteCode_example; # String | Invite code for the quote package
my $sendApprovalCodeForQuotePackageRequest = WWW::OPenAPIClient::Object::SendApprovalCodeForQuotePackageRequest->new(); # SendApprovalCodeForQuotePackageRequest | 

eval {
    $api_instance->salesSendApprovalCodeForQuotePackage(inviteCode => $inviteCode, sendApprovalCodeForQuotePackageRequest => $sendApprovalCodeForQuotePackageRequest);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesSendApprovalCodeForQuotePackage: $@\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.QuoteApi()
inviteCode = inviteCode_example # String | Invite code for the quote package (default to null)
sendApprovalCodeForQuotePackageRequest = {"inviteCode":"string"} # SendApprovalCodeForQuotePackageRequest |  (optional)

try:
    # Sends approval code for a quote package
    api_instance.sales_send_approval_code_for_quote_package(inviteCode, sendApprovalCodeForQuotePackageRequest=sendApprovalCodeForQuotePackageRequest)
except ApiException as e:
    print("Exception when calling QuoteApi->salesSendApprovalCodeForQuotePackage: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let sendApprovalCodeForQuotePackageRequest = {"inviteCode":"string"}; // SendApprovalCodeForQuotePackageRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesSendApprovalCodeForQuotePackage(inviteCode, sendApprovalCodeForQuotePackageRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
Invite code for the quote package
Required
Body parameters
Name Description
sendApprovalCodeForQuotePackageRequest

Responses


salesSendPackageForApproval

Sends a quote package for approval

Allows a tenant to send a quote package for approval


/Spenda/Sales/QuotePackages/{quotePackageID}/SendForApproval

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quote package ID
        SendQuotePackageForApprovalRequest sendQuotePackageForApprovalRequest = {"quotePackageID":0,"toContactIDs":[0],"toBccUserIDs":[0],"body":"string","isSendEmail":true,"isSendSMS":true}; // SendQuotePackageForApprovalRequest | 

        try {
            httpActionResult_sendQuotePackageForApprovalResponse result = apiInstance.salesSendPackageForApproval(quotePackageID, sendQuotePackageForApprovalRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSendPackageForApproval");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer quotePackageID = new Integer(); // Integer | The quote package ID
final SendQuotePackageForApprovalRequest sendQuotePackageForApprovalRequest = new SendQuotePackageForApprovalRequest(); // SendQuotePackageForApprovalRequest | 

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quote package ID
        SendQuotePackageForApprovalRequest sendQuotePackageForApprovalRequest = {"quotePackageID":0,"toContactIDs":[0],"toBccUserIDs":[0],"body":"string","isSendEmail":true,"isSendSMS":true}; // SendQuotePackageForApprovalRequest | 

        try {
            httpActionResult_sendQuotePackageForApprovalResponse result = apiInstance.salesSendPackageForApproval(quotePackageID, sendQuotePackageForApprovalRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSendPackageForApproval");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
Integer *quotePackageID = 56; // The quote package ID (default to null)
SendQuotePackageForApprovalRequest *sendQuotePackageForApprovalRequest = {"quotePackageID":0,"toContactIDs":[0],"toBccUserIDs":[0],"body":"string","isSendEmail":true,"isSendSMS":true}; //  (optional)

// Sends a quote package for approval
[apiInstance salesSendPackageForApprovalWith:quotePackageID
    sendQuotePackageForApprovalRequest:sendQuotePackageForApprovalRequest
              completionHandler: ^(httpActionResult_sendQuotePackageForApprovalResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quotePackageID = 56; // {Integer} The quote package ID
var opts = {
  'sendQuotePackageForApprovalRequest': {"quotePackageID":0,"toContactIDs":[0],"toBccUserIDs":[0],"body":"string","isSendEmail":true,"isSendSMS":true} // {SendQuotePackageForApprovalRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var quotePackageID = 56;  // Integer | The quote package ID (default to null)
            var sendQuotePackageForApprovalRequest = new SendQuotePackageForApprovalRequest(); // SendQuotePackageForApprovalRequest |  (optional) 

            try {
                // Sends a quote package for approval
                httpActionResult_sendQuotePackageForApprovalResponse result = apiInstance.salesSendPackageForApproval(quotePackageID, sendQuotePackageForApprovalRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesSendPackageForApproval: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$quotePackageID = 56; // Integer | The quote package ID
$sendQuotePackageForApprovalRequest = {"quotePackageID":0,"toContactIDs":[0],"toBccUserIDs":[0],"body":"string","isSendEmail":true,"isSendSMS":true}; // SendQuotePackageForApprovalRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $quotePackageID = 56; # Integer | The quote package ID
my $sendQuotePackageForApprovalRequest = WWW::OPenAPIClient::Object::SendQuotePackageForApprovalRequest->new(); # SendQuotePackageForApprovalRequest | 

eval {
    my $result = $api_instance->salesSendPackageForApproval(quotePackageID => $quotePackageID, sendQuotePackageForApprovalRequest => $sendQuotePackageForApprovalRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesSendPackageForApproval: $@\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.QuoteApi()
quotePackageID = 56 # Integer | The quote package ID (default to null)
sendQuotePackageForApprovalRequest = {"quotePackageID":0,"toContactIDs":[0],"toBccUserIDs":[0],"body":"string","isSendEmail":true,"isSendSMS":true} # SendQuotePackageForApprovalRequest |  (optional)

try:
    # Sends a quote package for approval
    api_response = api_instance.sales_send_package_for_approval(quotePackageID, sendQuotePackageForApprovalRequest=sendQuotePackageForApprovalRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesSendPackageForApproval: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let quotePackageID = 56; // Integer
    let sendQuotePackageForApprovalRequest = {"quotePackageID":0,"toContactIDs":[0],"toBccUserIDs":[0],"body":"string","isSendEmail":true,"isSendSMS":true}; // SendQuotePackageForApprovalRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesSendPackageForApproval(quotePackageID, sendQuotePackageForApprovalRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
quotePackageID*
Integer (int32)
The quote package ID
Required
Body parameters
Name Description
sendQuotePackageForApprovalRequest

Responses


salesSetIsShowSingleLineInQuote

Set tenant setting in quote

Allows a tenant to set config in quote


/Spenda/Sales/QuotePackages/{quotePackageID}/Setting

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/QuotePackages/{quotePackageID}/Setting"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quote package ID

        try {
            apiInstance.salesSetIsShowSingleLineInQuote(quotePackageID);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSetIsShowSingleLineInQuote");
            e.printStackTrace();
        }
    }
}


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

// Set tenant setting in quote
[apiInstance salesSetIsShowSingleLineInQuoteWith:quotePackageID
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quotePackageID = 56; // {Integer} The quote package ID

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

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

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

            try {
                // Set tenant setting in quote
                apiInstance.salesSetIsShowSingleLineInQuote(quotePackageID);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesSetIsShowSingleLineInQuote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    $api_instance->salesSetIsShowSingleLineInQuote(quotePackageID => $quotePackageID);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesSetIsShowSingleLineInQuote: $@\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.QuoteApi()
quotePackageID = 56 # Integer | The quote package ID (default to null)

try:
    # Set tenant setting in quote
    api_instance.sales_set_is_show_single_line_in_quote(quotePackageID)
except ApiException as e:
    print("Exception when calling QuoteApi->salesSetIsShowSingleLineInQuote: %s\n" % e)
extern crate QuoteApi;

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

    let mut context = QuoteApi::Context::default();
    let result = client.salesSetIsShowSingleLineInQuote(quotePackageID, &context).wait();

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

Scopes

Parameters

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

Responses


salesSetNotesForQuote

Set Notes For Quote

Allows to Set Notes For Quote


/Spenda/Sales/Quotes/{quoteID}/Notes

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer quoteID = 56; // Integer | The quote ID
        SetNotesForQuoteRequest setNotesForQuoteRequest = {"quoteID":0,"internalNote":"string","externalNote":"string"}; // SetNotesForQuoteRequest | 

        try {
            apiInstance.salesSetNotesForQuote(quoteID, setNotesForQuoteRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSetNotesForQuote");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quoteID = 56; // Integer | The quote ID
        SetNotesForQuoteRequest setNotesForQuoteRequest = {"quoteID":0,"internalNote":"string","externalNote":"string"}; // SetNotesForQuoteRequest | 

        try {
            apiInstance.salesSetNotesForQuote(quoteID, setNotesForQuoteRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSetNotesForQuote");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
Integer *quoteID = 56; // The quote ID (default to null)
SetNotesForQuoteRequest *setNotesForQuoteRequest = {"quoteID":0,"internalNote":"string","externalNote":"string"}; //  (optional)

// Set Notes For Quote
[apiInstance salesSetNotesForQuoteWith:quoteID
    setNotesForQuoteRequest:setNotesForQuoteRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quoteID = 56; // {Integer} The quote ID
var opts = {
  'setNotesForQuoteRequest': {"quoteID":0,"internalNote":"string","externalNote":"string"} // {SetNotesForQuoteRequest} 
};

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

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

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

            try {
                // Set Notes For Quote
                apiInstance.salesSetNotesForQuote(quoteID, setNotesForQuoteRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesSetNotesForQuote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$quoteID = 56; // Integer | The quote ID
$setNotesForQuoteRequest = {"quoteID":0,"internalNote":"string","externalNote":"string"}; // SetNotesForQuoteRequest | 

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

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

eval {
    $api_instance->salesSetNotesForQuote(quoteID => $quoteID, setNotesForQuoteRequest => $setNotesForQuoteRequest);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesSetNotesForQuote: $@\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.QuoteApi()
quoteID = 56 # Integer | The quote ID (default to null)
setNotesForQuoteRequest = {"quoteID":0,"internalNote":"string","externalNote":"string"} # SetNotesForQuoteRequest |  (optional)

try:
    # Set Notes For Quote
    api_instance.sales_set_notes_for_quote(quoteID, setNotesForQuoteRequest=setNotesForQuoteRequest)
except ApiException as e:
    print("Exception when calling QuoteApi->salesSetNotesForQuote: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let quoteID = 56; // Integer
    let setNotesForQuoteRequest = {"quoteID":0,"internalNote":"string","externalNote":"string"}; // SetNotesForQuoteRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesSetNotesForQuote(quoteID, setNotesForQuoteRequest, &context).wait();

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

Scopes

Parameters

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

Responses


salesSetNotesForQuotePackage

Set Notes For Quote Package

Allows to Set Notes For Quote Package


/Spenda/Sales/QuotePackages/{quotePackageID}/Notes

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quote package ID
        SetNotesForQuotePackageRequest setNotesForQuotePackageRequest = {"quotePackageID":0,"internalNote":"string","externalNote":"string"}; // SetNotesForQuotePackageRequest | 

        try {
            httpActionResult_setNotesForQuotePackageResponse result = apiInstance.salesSetNotesForQuotePackage(quotePackageID, setNotesForQuotePackageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSetNotesForQuotePackage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer quotePackageID = new Integer(); // Integer | The quote package ID
final SetNotesForQuotePackageRequest setNotesForQuotePackageRequest = new SetNotesForQuotePackageRequest(); // SetNotesForQuotePackageRequest | 

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quote package ID
        SetNotesForQuotePackageRequest setNotesForQuotePackageRequest = {"quotePackageID":0,"internalNote":"string","externalNote":"string"}; // SetNotesForQuotePackageRequest | 

        try {
            httpActionResult_setNotesForQuotePackageResponse result = apiInstance.salesSetNotesForQuotePackage(quotePackageID, setNotesForQuotePackageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSetNotesForQuotePackage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
Integer *quotePackageID = 56; // The quote package ID (default to null)
SetNotesForQuotePackageRequest *setNotesForQuotePackageRequest = {"quotePackageID":0,"internalNote":"string","externalNote":"string"}; //  (optional)

// Set Notes For Quote Package
[apiInstance salesSetNotesForQuotePackageWith:quotePackageID
    setNotesForQuotePackageRequest:setNotesForQuotePackageRequest
              completionHandler: ^(httpActionResult_setNotesForQuotePackageResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quotePackageID = 56; // {Integer} The quote package ID
var opts = {
  'setNotesForQuotePackageRequest': {"quotePackageID":0,"internalNote":"string","externalNote":"string"} // {SetNotesForQuotePackageRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var quotePackageID = 56;  // Integer | The quote package ID (default to null)
            var setNotesForQuotePackageRequest = new SetNotesForQuotePackageRequest(); // SetNotesForQuotePackageRequest |  (optional) 

            try {
                // Set Notes For Quote Package
                httpActionResult_setNotesForQuotePackageResponse result = apiInstance.salesSetNotesForQuotePackage(quotePackageID, setNotesForQuotePackageRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesSetNotesForQuotePackage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$quotePackageID = 56; // Integer | The quote package ID
$setNotesForQuotePackageRequest = {"quotePackageID":0,"internalNote":"string","externalNote":"string"}; // SetNotesForQuotePackageRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $quotePackageID = 56; # Integer | The quote package ID
my $setNotesForQuotePackageRequest = WWW::OPenAPIClient::Object::SetNotesForQuotePackageRequest->new(); # SetNotesForQuotePackageRequest | 

eval {
    my $result = $api_instance->salesSetNotesForQuotePackage(quotePackageID => $quotePackageID, setNotesForQuotePackageRequest => $setNotesForQuotePackageRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesSetNotesForQuotePackage: $@\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.QuoteApi()
quotePackageID = 56 # Integer | The quote package ID (default to null)
setNotesForQuotePackageRequest = {"quotePackageID":0,"internalNote":"string","externalNote":"string"} # SetNotesForQuotePackageRequest |  (optional)

try:
    # Set Notes For Quote Package
    api_response = api_instance.sales_set_notes_for_quote_package(quotePackageID, setNotesForQuotePackageRequest=setNotesForQuotePackageRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesSetNotesForQuotePackage: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let quotePackageID = 56; // Integer
    let setNotesForQuotePackageRequest = {"quotePackageID":0,"internalNote":"string","externalNote":"string"}; // SetNotesForQuotePackageRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesSetNotesForQuotePackage(quotePackageID, setNotesForQuotePackageRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
quotePackageID*
Integer (int32)
The quote package ID
Required
Body parameters
Name Description
setNotesForQuotePackageRequest

Responses


salesSetQuoteAsViewed

Set quote as viewed

Allows a tenant to set quote as viewed


/Spenda/Sales/QuotePackageInvite/{inviteCode}/SetQuoteAsViewed

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        SetQuoteAsViewedRequest setQuoteAsViewedRequest = {"quoteGuid":"string","inviteCode":"string"}; // SetQuoteAsViewedRequest | 

        try {
            apiInstance.salesSetQuoteAsViewed(inviteCode, setQuoteAsViewedRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSetQuoteAsViewed");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | Invite code for the quote package
final SetQuoteAsViewedRequest setQuoteAsViewedRequest = new SetQuoteAsViewedRequest(); // SetQuoteAsViewedRequest | 

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        SetQuoteAsViewedRequest setQuoteAsViewedRequest = {"quoteGuid":"string","inviteCode":"string"}; // SetQuoteAsViewedRequest | 

        try {
            apiInstance.salesSetQuoteAsViewed(inviteCode, setQuoteAsViewedRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSetQuoteAsViewed");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
String *inviteCode = inviteCode_example; // Invite code for the quote package (default to null)
SetQuoteAsViewedRequest *setQuoteAsViewedRequest = {"quoteGuid":"string","inviteCode":"string"}; //  (optional)

// Set quote as viewed
[apiInstance salesSetQuoteAsViewedWith:inviteCode
    setQuoteAsViewedRequest:setQuoteAsViewedRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var inviteCode = inviteCode_example; // {String} Invite code for the quote package
var opts = {
  'setQuoteAsViewedRequest': {"quoteGuid":"string","inviteCode":"string"} // {SetQuoteAsViewedRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var inviteCode = inviteCode_example;  // String | Invite code for the quote package (default to null)
            var setQuoteAsViewedRequest = new SetQuoteAsViewedRequest(); // SetQuoteAsViewedRequest |  (optional) 

            try {
                // Set quote as viewed
                apiInstance.salesSetQuoteAsViewed(inviteCode, setQuoteAsViewedRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesSetQuoteAsViewed: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$inviteCode = inviteCode_example; // String | Invite code for the quote package
$setQuoteAsViewedRequest = {"quoteGuid":"string","inviteCode":"string"}; // SetQuoteAsViewedRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $inviteCode = inviteCode_example; # String | Invite code for the quote package
my $setQuoteAsViewedRequest = WWW::OPenAPIClient::Object::SetQuoteAsViewedRequest->new(); # SetQuoteAsViewedRequest | 

eval {
    $api_instance->salesSetQuoteAsViewed(inviteCode => $inviteCode, setQuoteAsViewedRequest => $setQuoteAsViewedRequest);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesSetQuoteAsViewed: $@\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.QuoteApi()
inviteCode = inviteCode_example # String | Invite code for the quote package (default to null)
setQuoteAsViewedRequest = {"quoteGuid":"string","inviteCode":"string"} # SetQuoteAsViewedRequest |  (optional)

try:
    # Set quote as viewed
    api_instance.sales_set_quote_as_viewed(inviteCode, setQuoteAsViewedRequest=setQuoteAsViewedRequest)
except ApiException as e:
    print("Exception when calling QuoteApi->salesSetQuoteAsViewed: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let setQuoteAsViewedRequest = {"quoteGuid":"string","inviteCode":"string"}; // SetQuoteAsViewedRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesSetQuoteAsViewed(inviteCode, setQuoteAsViewedRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
Invite code for the quote package
Required
Body parameters
Name Description
setQuoteAsViewedRequest

Responses


salesSetQuoteSettings

Set quote setting

Allows a tenant to set setting for quote


/Spenda/Sales/Quotes/Settings

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        SetQuoteSettingsRequest setQuoteSettingsRequest = {"isShowPriceAndMarginInQuote":true,"isShowSingleLineInQuote":true}; // SetQuoteSettingsRequest | 

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

final api_instance = DefaultApi();

final SetQuoteSettingsRequest setQuoteSettingsRequest = new SetQuoteSettingsRequest(); // SetQuoteSettingsRequest | 

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        SetQuoteSettingsRequest setQuoteSettingsRequest = {"isShowPriceAndMarginInQuote":true,"isShowSingleLineInQuote":true}; // SetQuoteSettingsRequest | 

        try {
            apiInstance.salesSetQuoteSettings(setQuoteSettingsRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSetQuoteSettings");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
SetQuoteSettingsRequest *setQuoteSettingsRequest = {"isShowPriceAndMarginInQuote":true,"isShowSingleLineInQuote":true}; //  (optional)

// Set quote setting
[apiInstance salesSetQuoteSettingsWith:setQuoteSettingsRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var opts = {
  'setQuoteSettingsRequest': {"isShowPriceAndMarginInQuote":true,"isShowSingleLineInQuote":true} // {SetQuoteSettingsRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var setQuoteSettingsRequest = new SetQuoteSettingsRequest(); // SetQuoteSettingsRequest |  (optional) 

            try {
                // Set quote setting
                apiInstance.salesSetQuoteSettings(setQuoteSettingsRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesSetQuoteSettings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$setQuoteSettingsRequest = {"isShowPriceAndMarginInQuote":true,"isShowSingleLineInQuote":true}; // SetQuoteSettingsRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $setQuoteSettingsRequest = WWW::OPenAPIClient::Object::SetQuoteSettingsRequest->new(); # SetQuoteSettingsRequest | 

eval {
    $api_instance->salesSetQuoteSettings(setQuoteSettingsRequest => $setQuoteSettingsRequest);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesSetQuoteSettings: $@\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.QuoteApi()
setQuoteSettingsRequest = {"isShowPriceAndMarginInQuote":true,"isShowSingleLineInQuote":true} # SetQuoteSettingsRequest |  (optional)

try:
    # Set quote setting
    api_instance.sales_set_quote_settings(setQuoteSettingsRequest=setQuoteSettingsRequest)
except ApiException as e:
    print("Exception when calling QuoteApi->salesSetQuoteSettings: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let setQuoteSettingsRequest = {"isShowPriceAndMarginInQuote":true,"isShowSingleLineInQuote":true}; // SetQuoteSettingsRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesSetQuoteSettings(setQuoteSettingsRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
setQuoteSettingsRequest

Responses


salesSetShowQuantityInQuote

Set config to show quantity in quote

Allows a tenant to set config to show quantity in quote


/Spenda/Sales/Quotes/SetShowQuantityInQuote

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Sales/Quotes/SetShowQuantityInQuote"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QuoteApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.QuoteApi;

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

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


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

// Set config to show quantity in quote
[apiInstance salesSetShowQuantityInQuoteWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

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

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

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

            try {
                // Set config to show quantity in quote
                apiInstance.salesSetShowQuantityInQuote();
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesSetShowQuantityInQuote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    $api_instance->salesSetShowQuantityInQuote();
};
if ($@) {
    warn "Exception when calling QuoteApi->salesSetShowQuantityInQuote: $@\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.QuoteApi()

try:
    # Set config to show quantity in quote
    api_instance.sales_set_show_quantity_in_quote()
except ApiException as e:
    print("Exception when calling QuoteApi->salesSetShowQuantityInQuote: %s\n" % e)
extern crate QuoteApi;

pub fn main() {

    let mut context = QuoteApi::Context::default();
    let result = client.salesSetShowQuantityInQuote(&context).wait();

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

Scopes

Parameters

Responses


salesSubmitApprovalCodeForQuotePackage

Submit approval code for a quote package

Allows a customer to submit approval code for a quote package


/Spenda/Sales/QuotePackageInvite/{inviteCode}/SubmitApprovalCode

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        SubmitApprovalCodeForQuotePackageRequest submitApprovalCodeForQuotePackageRequest = {"inviteCode":"string","approvalCode":"string"}; // SubmitApprovalCodeForQuotePackageRequest | 

        try {
            httpActionResult_submitApprovalCodeForQuotePackageResponse result = apiInstance.salesSubmitApprovalCodeForQuotePackage(inviteCode, submitApprovalCodeForQuotePackageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSubmitApprovalCodeForQuotePackage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String inviteCode = new String(); // String | Invite code for the quote package
final SubmitApprovalCodeForQuotePackageRequest submitApprovalCodeForQuotePackageRequest = new SubmitApprovalCodeForQuotePackageRequest(); // SubmitApprovalCodeForQuotePackageRequest | 

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        String inviteCode = inviteCode_example; // String | Invite code for the quote package
        SubmitApprovalCodeForQuotePackageRequest submitApprovalCodeForQuotePackageRequest = {"inviteCode":"string","approvalCode":"string"}; // SubmitApprovalCodeForQuotePackageRequest | 

        try {
            httpActionResult_submitApprovalCodeForQuotePackageResponse result = apiInstance.salesSubmitApprovalCodeForQuotePackage(inviteCode, submitApprovalCodeForQuotePackageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesSubmitApprovalCodeForQuotePackage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
String *inviteCode = inviteCode_example; // Invite code for the quote package (default to null)
SubmitApprovalCodeForQuotePackageRequest *submitApprovalCodeForQuotePackageRequest = {"inviteCode":"string","approvalCode":"string"}; //  (optional)

// Submit approval code for a quote package
[apiInstance salesSubmitApprovalCodeForQuotePackageWith:inviteCode
    submitApprovalCodeForQuotePackageRequest:submitApprovalCodeForQuotePackageRequest
              completionHandler: ^(httpActionResult_submitApprovalCodeForQuotePackageResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var inviteCode = inviteCode_example; // {String} Invite code for the quote package
var opts = {
  'submitApprovalCodeForQuotePackageRequest': {"inviteCode":"string","approvalCode":"string"} // {SubmitApprovalCodeForQuotePackageRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var inviteCode = inviteCode_example;  // String | Invite code for the quote package (default to null)
            var submitApprovalCodeForQuotePackageRequest = new SubmitApprovalCodeForQuotePackageRequest(); // SubmitApprovalCodeForQuotePackageRequest |  (optional) 

            try {
                // Submit approval code for a quote package
                httpActionResult_submitApprovalCodeForQuotePackageResponse result = apiInstance.salesSubmitApprovalCodeForQuotePackage(inviteCode, submitApprovalCodeForQuotePackageRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesSubmitApprovalCodeForQuotePackage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$inviteCode = inviteCode_example; // String | Invite code for the quote package
$submitApprovalCodeForQuotePackageRequest = {"inviteCode":"string","approvalCode":"string"}; // SubmitApprovalCodeForQuotePackageRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $inviteCode = inviteCode_example; # String | Invite code for the quote package
my $submitApprovalCodeForQuotePackageRequest = WWW::OPenAPIClient::Object::SubmitApprovalCodeForQuotePackageRequest->new(); # SubmitApprovalCodeForQuotePackageRequest | 

eval {
    my $result = $api_instance->salesSubmitApprovalCodeForQuotePackage(inviteCode => $inviteCode, submitApprovalCodeForQuotePackageRequest => $submitApprovalCodeForQuotePackageRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesSubmitApprovalCodeForQuotePackage: $@\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.QuoteApi()
inviteCode = inviteCode_example # String | Invite code for the quote package (default to null)
submitApprovalCodeForQuotePackageRequest = {"inviteCode":"string","approvalCode":"string"} # SubmitApprovalCodeForQuotePackageRequest |  (optional)

try:
    # Submit approval code for a quote package
    api_response = api_instance.sales_submit_approval_code_for_quote_package(inviteCode, submitApprovalCodeForQuotePackageRequest=submitApprovalCodeForQuotePackageRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesSubmitApprovalCodeForQuotePackage: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let inviteCode = inviteCode_example; // String
    let submitApprovalCodeForQuotePackageRequest = {"inviteCode":"string","approvalCode":"string"}; // SubmitApprovalCodeForQuotePackageRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesSubmitApprovalCodeForQuotePackage(inviteCode, submitApprovalCodeForQuotePackageRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
inviteCode*
String
Invite code for the quote package
Required
Body parameters
Name Description
submitApprovalCodeForQuotePackageRequest

Responses


salesUpdateQuote

Update a quote

Allows a tenant to update a quote


/Spenda/Sales/Quotes/{quoteID}

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer quoteID = 56; // Integer | The quote ID
        UpdateQuoteRequest updateQuoteRequest = {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0}; // UpdateQuoteRequest | 

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quoteID = 56; // Integer | The quote ID
        UpdateQuoteRequest updateQuoteRequest = {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0}; // UpdateQuoteRequest | 

        try {
            httpActionResult_getQuoteResponse result = apiInstance.salesUpdateQuote(quoteID, updateQuoteRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesUpdateQuote");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
Integer *quoteID = 56; // The quote ID (default to null)
UpdateQuoteRequest *updateQuoteRequest = {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0}; //  (optional)

// Update a quote
[apiInstance salesUpdateQuoteWith:quoteID
    updateQuoteRequest:updateQuoteRequest
              completionHandler: ^(httpActionResult_getQuoteResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quoteID = 56; // {Integer} The quote ID
var opts = {
  'updateQuoteRequest': {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0} // {UpdateQuoteRequest} 
};

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

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

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

            try {
                // Update a quote
                httpActionResult_getQuoteResponse result = apiInstance.salesUpdateQuote(quoteID, updateQuoteRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesUpdateQuote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$quoteID = 56; // Integer | The quote ID
$updateQuoteRequest = {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0}; // UpdateQuoteRequest | 

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

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

eval {
    my $result = $api_instance->salesUpdateQuote(quoteID => $quoteID, updateQuoteRequest => $updateQuoteRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesUpdateQuote: $@\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.QuoteApi()
quoteID = 56 # Integer | The quote ID (default to null)
updateQuoteRequest = {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0} # UpdateQuoteRequest |  (optional)

try:
    # Update a quote
    api_response = api_instance.sales_update_quote(quoteID, updateQuoteRequest=updateQuoteRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesUpdateQuote: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let quoteID = 56; // Integer
    let updateQuoteRequest = {"lines":[{"quoteLineID":0,"quoteLineGUID":"string","quoteID":0,"inventoryID":0,"sequenceNumber":0,"shortDescription":"string","description":"string","uoM":"string","uoMDescription":"string","quantity":0,"code":"string","taxType":"string","taxRate":0,"costPriceEx":0,"standardSellPriceEx":0,"sellPriceEx":0,"sellPriceTax":0,"sellPriceInc":0,"lineTotalEx":0,"lineTotalTax":0,"lineTotalInc":0,"priceDescription":"string","warehouseID":0,"pricingMode":0,"priceType":"string","deliveryMethod":"string","isActive":true,"hasPriceBeenEdited":true,"comment":"string","customerComment":"string","marginMode":"string","margin":0}],"quoteID":0,"name":"string","description":"string","status":"string","discount":0,"discountMode":"string","shipping":0,"isActive":true,"quotePackageID":0,"serviceJobID":0}; // UpdateQuoteRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesUpdateQuote(quoteID, updateQuoteRequest, &context).wait();

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

Scopes

Parameters

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

Responses


salesUpdateQuoteLineSummary

update quote line summary

Allows a tenant to update quote line summary


/Spenda/Sales/Quotes/{quoteID}/QuoteSummaryLines

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer quoteID = 56; // Integer | The quote ID
        UpdateQuoteLineSummaryRequest updateQuoteLineSummaryRequest = {"quoteID":0,"update":[{"quoteLinesSummaryID":0,"sequenceNumber":0,"description":"string"}],"merge":{"mergeToQuoteLinesSummaryID":0,"mergeToSequenceNumber":0,"mergeToDescription":"string","mergeFromQuoteLinesSummaryIDs":[0]}}; // UpdateQuoteLineSummaryRequest | 

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quoteID = 56; // Integer | The quote ID
        UpdateQuoteLineSummaryRequest updateQuoteLineSummaryRequest = {"quoteID":0,"update":[{"quoteLinesSummaryID":0,"sequenceNumber":0,"description":"string"}],"merge":{"mergeToQuoteLinesSummaryID":0,"mergeToSequenceNumber":0,"mergeToDescription":"string","mergeFromQuoteLinesSummaryIDs":[0]}}; // UpdateQuoteLineSummaryRequest | 

        try {
            httpActionResult_getQuoteSummaryResult result = apiInstance.salesUpdateQuoteLineSummary(quoteID, updateQuoteLineSummaryRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesUpdateQuoteLineSummary");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
Integer *quoteID = 56; // The quote ID (default to null)
UpdateQuoteLineSummaryRequest *updateQuoteLineSummaryRequest = {"quoteID":0,"update":[{"quoteLinesSummaryID":0,"sequenceNumber":0,"description":"string"}],"merge":{"mergeToQuoteLinesSummaryID":0,"mergeToSequenceNumber":0,"mergeToDescription":"string","mergeFromQuoteLinesSummaryIDs":[0]}}; //  (optional)

// update quote line summary
[apiInstance salesUpdateQuoteLineSummaryWith:quoteID
    updateQuoteLineSummaryRequest:updateQuoteLineSummaryRequest
              completionHandler: ^(httpActionResult_getQuoteSummaryResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quoteID = 56; // {Integer} The quote ID
var opts = {
  'updateQuoteLineSummaryRequest': {"quoteID":0,"update":[{"quoteLinesSummaryID":0,"sequenceNumber":0,"description":"string"}],"merge":{"mergeToQuoteLinesSummaryID":0,"mergeToSequenceNumber":0,"mergeToDescription":"string","mergeFromQuoteLinesSummaryIDs":[0]}} // {UpdateQuoteLineSummaryRequest} 
};

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

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

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

            try {
                // update quote line summary
                httpActionResult_getQuoteSummaryResult result = apiInstance.salesUpdateQuoteLineSummary(quoteID, updateQuoteLineSummaryRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesUpdateQuoteLineSummary: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$quoteID = 56; // Integer | The quote ID
$updateQuoteLineSummaryRequest = {"quoteID":0,"update":[{"quoteLinesSummaryID":0,"sequenceNumber":0,"description":"string"}],"merge":{"mergeToQuoteLinesSummaryID":0,"mergeToSequenceNumber":0,"mergeToDescription":"string","mergeFromQuoteLinesSummaryIDs":[0]}}; // UpdateQuoteLineSummaryRequest | 

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

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

eval {
    my $result = $api_instance->salesUpdateQuoteLineSummary(quoteID => $quoteID, updateQuoteLineSummaryRequest => $updateQuoteLineSummaryRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesUpdateQuoteLineSummary: $@\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.QuoteApi()
quoteID = 56 # Integer | The quote ID (default to null)
updateQuoteLineSummaryRequest = {"quoteID":0,"update":[{"quoteLinesSummaryID":0,"sequenceNumber":0,"description":"string"}],"merge":{"mergeToQuoteLinesSummaryID":0,"mergeToSequenceNumber":0,"mergeToDescription":"string","mergeFromQuoteLinesSummaryIDs":[0]}} # UpdateQuoteLineSummaryRequest |  (optional)

try:
    # update quote line summary
    api_response = api_instance.sales_update_quote_line_summary(quoteID, updateQuoteLineSummaryRequest=updateQuoteLineSummaryRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesUpdateQuoteLineSummary: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let quoteID = 56; // Integer
    let updateQuoteLineSummaryRequest = {"quoteID":0,"update":[{"quoteLinesSummaryID":0,"sequenceNumber":0,"description":"string"}],"merge":{"mergeToQuoteLinesSummaryID":0,"mergeToSequenceNumber":0,"mergeToDescription":"string","mergeFromQuoteLinesSummaryIDs":[0]}}; // UpdateQuoteLineSummaryRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesUpdateQuoteLineSummary(quoteID, updateQuoteLineSummaryRequest, &context).wait();

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

Scopes

Parameters

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

Responses


salesUpdateQuotePackage

Update a quote package

Allows a tenant to update a quote package


/Spenda/Sales/QuotePackages/{quotePackageID}

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quote package ID
        UpdateQuotePackageRequest updateQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; // UpdateQuotePackageRequest | 

        try {
            httpActionResult_getQuotePackageResponse result = apiInstance.salesUpdateQuotePackage(quotePackageID, updateQuotePackageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesUpdateQuotePackage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer quotePackageID = new Integer(); // Integer | The quote package ID
final UpdateQuotePackageRequest updateQuotePackageRequest = new UpdateQuotePackageRequest(); // UpdateQuotePackageRequest | 

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

import org.openapitools.client.api.QuoteApi;

public class QuoteApiExample {
    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        Integer quotePackageID = 56; // Integer | The quote package ID
        UpdateQuotePackageRequest updateQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; // UpdateQuotePackageRequest | 

        try {
            httpActionResult_getQuotePackageResponse result = apiInstance.salesUpdateQuotePackage(quotePackageID, updateQuotePackageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#salesUpdateQuotePackage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
QuoteApi *apiInstance = [[QuoteApi alloc] init];
Integer *quotePackageID = 56; // The quote package ID (default to null)
UpdateQuotePackageRequest *updateQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; //  (optional)

// Update a quote package
[apiInstance salesUpdateQuotePackageWith:quotePackageID
    updateQuotePackageRequest:updateQuotePackageRequest
              completionHandler: ^(httpActionResult_getQuotePackageResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSales = require('spenda_services_sales');

// Create an instance of the API class
var api = new SpendaServicesSales.QuoteApi()
var quotePackageID = 56; // {Integer} The quote package ID
var opts = {
  'updateQuotePackageRequest': {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"} // {UpdateQuotePackageRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new QuoteApi();
            var quotePackageID = 56;  // Integer | The quote package ID (default to null)
            var updateQuotePackageRequest = new UpdateQuotePackageRequest(); // UpdateQuotePackageRequest |  (optional) 

            try {
                // Update a quote package
                httpActionResult_getQuotePackageResponse result = apiInstance.salesUpdateQuotePackage(quotePackageID, updateQuotePackageRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QuoteApi.salesUpdateQuotePackage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QuoteApi();
$quotePackageID = 56; // Integer | The quote package ID
$updateQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; // UpdateQuotePackageRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QuoteApi->new();
my $quotePackageID = 56; # Integer | The quote package ID
my $updateQuotePackageRequest = WWW::OPenAPIClient::Object::UpdateQuotePackageRequest->new(); # UpdateQuotePackageRequest | 

eval {
    my $result = $api_instance->salesUpdateQuotePackage(quotePackageID => $quotePackageID, updateQuotePackageRequest => $updateQuotePackageRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->salesUpdateQuotePackage: $@\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.QuoteApi()
quotePackageID = 56 # Integer | The quote package ID (default to null)
updateQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"} # UpdateQuotePackageRequest |  (optional)

try:
    # Update a quote package
    api_response = api_instance.sales_update_quote_package(quotePackageID, updateQuotePackageRequest=updateQuotePackageRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->salesUpdateQuotePackage: %s\n" % e)
extern crate QuoteApi;

pub fn main() {
    let quotePackageID = 56; // Integer
    let updateQuotePackageRequest = {"quotePackageID":0,"quoteDate":"string","expiryDate":"string","customerID":0,"customerName":"string","internalNote":"string","externalNote":"string","assignedToUserID":0,"isActive":true,"billingAddressID":0,"billCountry":"string","billCity":"string","billState":"string","billStreetAddress":"string","billPostCode":"string","businessContactID":0,"contactFirstName":"string","contactLastName":"string","contactEmailAddress":"string","contactPhone":"string","contactPhoneMobile":"string","shippingAddressID":0,"shipCountry":"string","shipCity":"string","shipState":"string","shipStreetAddress":"string","shipPostCode":"string","shipContactFirstName":"string","shipContactLastName":"string","shipContactEmailAddress":"string","shipContactPhone":"string","expiresInDays":0,"depositAmountType":"string","depositAmount":0,"assetID":0,"purchaseOrderRefNumber":"string","siteBusinessLocationAddressID":0,"siteCity":"string","siteState":"string","sitePostCode":"string","siteCountry":"string","siteStreetAddress":"string"}; // UpdateQuotePackageRequest

    let mut context = QuoteApi::Context::default();
    let result = client.salesUpdateQuotePackage(quotePackageID, updateQuotePackageRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
quotePackageID*
Integer (int32)
The quote package ID
Required
Body parameters
Name Description
updateQuotePackageRequest

Responses