AS Server - API - Settings

Default

settingsGet

Settings_Get


/Settings/sold

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Settings/sold"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.DefaultApi;

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

        try {
            SoldSettings result = apiInstance.settingsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#settingsGet");
            e.printStackTrace();
        }
    }
}


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

// Settings_Get
[apiInstance settingsGetWithCompletionHandler: 
              ^(SoldSettings output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiSettings = require('as_server_api_settings');

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

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

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

            try {
                // Settings_Get
                SoldSettings result = apiInstance.settingsGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.settingsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

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

try:
    # Settings_Get
    api_response = api_instance.settings_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->settingsGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.settingsGet(&context).wait();

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

Scopes

Parameters

Responses


settingsGet2

Settings_Get2


/Settings/

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Settings/?filter.currentWebsiteId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer filterPeriodcurrentWebsiteId = 56; // Integer | Format - int32.

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

final api_instance = DefaultApi();

final Integer filterPeriodcurrentWebsiteId = new Integer(); // Integer | Format - int32.

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer filterPeriodcurrentWebsiteId = 56; // Integer | Format - int32.

        try {
            ActionResultsList_AvailableSetting_ result = apiInstance.settingsGet2(filterPeriodcurrentWebsiteId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#settingsGet2");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *filterPeriodcurrentWebsiteId = 56; // Format - int32. (optional) (default to null)

// Settings_Get2
[apiInstance settingsGet2With:filterPeriodcurrentWebsiteId
              completionHandler: ^(ActionResultsList_AvailableSetting_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiSettings = require('as_server_api_settings');

// Create an instance of the API class
var api = new AsServerApiSettings.DefaultApi()
var opts = {
  'filterPeriodcurrentWebsiteId': 56 // {Integer} Format - int32.
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var filterPeriodcurrentWebsiteId = 56;  // Integer | Format - int32. (optional)  (default to null)

            try {
                // Settings_Get2
                ActionResultsList_AvailableSetting_ result = apiInstance.settingsGet2(filterPeriodcurrentWebsiteId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.settingsGet2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$filterPeriodcurrentWebsiteId = 56; // Integer | Format - int32.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $filterPeriodcurrentWebsiteId = 56; # Integer | Format - int32.

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
filterPeriodcurrentWebsiteId = 56 # Integer | Format - int32. (optional) (default to null)

try:
    # Settings_Get2
    api_response = api_instance.settings_get2(filterPeriodcurrentWebsiteId=filterPeriodcurrentWebsiteId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->settingsGet2: %s\n" % e)
extern crate DefaultApi;

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

    let mut context = DefaultApi::Context::default();
    let result = client.settingsGet2(filterPeriodcurrentWebsiteId, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
filter.currentWebsiteId
Integer (int32)
Format - int32.

Responses


settingsGetInvoices

Settings_GetInvoices


/Settings/invoices

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Settings/invoices"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.DefaultApi;

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

        try {
            ActionResults_InvoiceSettings_ result = apiInstance.settingsGetInvoices();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#settingsGetInvoices");
            e.printStackTrace();
        }
    }
}


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

// Settings_GetInvoices
[apiInstance settingsGetInvoicesWithCompletionHandler: 
              ^(ActionResults_InvoiceSettings_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiSettings = require('as_server_api_settings');

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

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

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

            try {
                // Settings_GetInvoices
                ActionResults_InvoiceSettings_ result = apiInstance.settingsGetInvoices();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.settingsGetInvoices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

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

try:
    # Settings_GetInvoices
    api_response = api_instance.settings_get_invoices()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->settingsGetInvoices: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.settingsGetInvoices(&context).wait();

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

Scopes

Parameters

Responses


settingsPostInvoices

Settings_PostInvoices


/Settings/invoices

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Settings/invoices" \
 -d '{
  "StartingInvoiceNumber" : 1,
  "PaymentsBankAccount" : {
    "BankName" : "BankName",
    "Description" : "Description",
    "OpeningBalance" : 5.962133916683182,
    "IsActive" : true,
    "ParentAccountName" : "ParentAccountName",
    "ParentAccountCode" : "ParentAccountCode",
    "Name" : "Name",
    "GUIDstring" : "GUIDstring",
    "CurrencyCode" : "CurrencyCode",
    "BankBSB" : "BankBSB",
    "Version" : 6.027456183070403,
    "SyncLogs" : [ {
      "Status" : "Status",
      "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
      "AdaptorID" : 9,
      "LastImportDateTime_offset" : 3,
      "LastExportDateTime_offset" : 2,
      "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "BSID" : "BSID",
      "Details" : "Details",
      "SyncCode" : "SyncCode",
      "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
      "LastModifiedDateTime_offset" : 4,
      "ID" : 7,
      "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
    }, {
      "Status" : "Status",
      "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
      "AdaptorID" : 9,
      "LastImportDateTime_offset" : 3,
      "LastExportDateTime_offset" : 2,
      "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "BSID" : "BSID",
      "Details" : "Details",
      "SyncCode" : "SyncCode",
      "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
      "LastModifiedDateTime_offset" : 4,
      "ID" : 7,
      "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
    } ],
    "ID" : 1,
    "OpeningDate" : "2000-01-23T04:56:07.000+00:00",
    "IsEnablePayments" : true,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "Code" : "Code",
    "TaxType" : "TaxType",
    "ClosingBalance" : 5.637376656633329,
    "RowNumber" : 0,
    "Type" : "Type",
    "BankAccountName" : "BankAccountName",
    "ParentAccountBSID" : "ParentAccountBSID",
    "BSID" : "BSID",
    "IsShowOnInvoice" : true,
    "IsParentAccount" : true,
    "BankAccountType" : "BankAccountType",
    "Class" : "Class",
    "ClosingDate" : "2000-01-23T04:56:07.000+00:00",
    "Balance" : 2.3021358869347655,
    "BankAccountNumber" : "BankAccountNumber",
    "IsShowInExpenseClaims" : true,
    "ParentAccountID" : 7
  },
  "IsRegisteredForGst" : true,
  "InvoiceBankAccount" : {
    "BankName" : "BankName",
    "Description" : "Description",
    "OpeningBalance" : 5.962133916683182,
    "IsActive" : true,
    "ParentAccountName" : "ParentAccountName",
    "ParentAccountCode" : "ParentAccountCode",
    "Name" : "Name",
    "GUIDstring" : "GUIDstring",
    "CurrencyCode" : "CurrencyCode",
    "BankBSB" : "BankBSB",
    "Version" : 6.027456183070403,
    "SyncLogs" : [ {
      "Status" : "Status",
      "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
      "AdaptorID" : 9,
      "LastImportDateTime_offset" : 3,
      "LastExportDateTime_offset" : 2,
      "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "BSID" : "BSID",
      "Details" : "Details",
      "SyncCode" : "SyncCode",
      "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
      "LastModifiedDateTime_offset" : 4,
      "ID" : 7,
      "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
    }, {
      "Status" : "Status",
      "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
      "AdaptorID" : 9,
      "LastImportDateTime_offset" : 3,
      "LastExportDateTime_offset" : 2,
      "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "BSID" : "BSID",
      "Details" : "Details",
      "SyncCode" : "SyncCode",
      "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
      "LastModifiedDateTime_offset" : 4,
      "ID" : 7,
      "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
    } ],
    "ID" : 1,
    "OpeningDate" : "2000-01-23T04:56:07.000+00:00",
    "IsEnablePayments" : true,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "Code" : "Code",
    "TaxType" : "TaxType",
    "ClosingBalance" : 5.637376656633329,
    "RowNumber" : 0,
    "Type" : "Type",
    "BankAccountName" : "BankAccountName",
    "ParentAccountBSID" : "ParentAccountBSID",
    "BSID" : "BSID",
    "IsShowOnInvoice" : true,
    "IsParentAccount" : true,
    "BankAccountType" : "BankAccountType",
    "Class" : "Class",
    "ClosingDate" : "2000-01-23T04:56:07.000+00:00",
    "Balance" : 2.3021358869347655,
    "BankAccountNumber" : "BankAccountNumber",
    "IsShowInExpenseClaims" : true,
    "ParentAccountID" : 7
  }
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<InvoiceSettings>
  <null>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <RowNumber>123456789</RowNumber>
    <Version>3.149</Version>
    <ID>123</ID>
    <GUIDstring>aeiou</GUIDstring>
    <BSID>aeiou</BSID>
    <Code>aeiou</Code>
    <Name>aeiou</Name>
    <Description>aeiou</Description>
    <Type>aeiou</Type>
    <TaxType>aeiou</TaxType>
    <Class>aeiou</Class>
    <IsEnablePayments>true</IsEnablePayments>
    <IsShowInExpenseClaims>true</IsShowInExpenseClaims>
    <BankAccountNumber>aeiou</BankAccountNumber>
    <BankAccountName>aeiou</BankAccountName>
    <BankAccountType>aeiou</BankAccountType>
    <BankBSB>aeiou</BankBSB>
    <BankName>aeiou</BankName>
    <CurrencyCode>aeiou</CurrencyCode>
    <IsActive>true</IsActive>
    <IsShowOnInvoice>true</IsShowOnInvoice>
    <OpeningBalance>3.149</OpeningBalance>
    <OpeningDate>2000-01-23T04:56:07.000Z</OpeningDate>
    <ClosingBalance>3.149</ClosingBalance>
    <ClosingDate>2000-01-23T04:56:07.000Z</ClosingDate>
    <Balance>3.149</Balance>
    <IsParentAccount>true</IsParentAccount>
    <ParentAccountID>123</ParentAccountID>
    <ParentAccountBSID>aeiou</ParentAccountBSID>
    <ParentAccountCode>aeiou</ParentAccountCode>
    <ParentAccountName>aeiou</ParentAccountName>
  </null>
  <null>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <RowNumber>123456789</RowNumber>
    <Version>3.149</Version>
    <ID>123</ID>
    <GUIDstring>aeiou</GUIDstring>
    <BSID>aeiou</BSID>
    <Code>aeiou</Code>
    <Name>aeiou</Name>
    <Description>aeiou</Description>
    <Type>aeiou</Type>
    <TaxType>aeiou</TaxType>
    <Class>aeiou</Class>
    <IsEnablePayments>true</IsEnablePayments>
    <IsShowInExpenseClaims>true</IsShowInExpenseClaims>
    <BankAccountNumber>aeiou</BankAccountNumber>
    <BankAccountName>aeiou</BankAccountName>
    <BankAccountType>aeiou</BankAccountType>
    <BankBSB>aeiou</BankBSB>
    <BankName>aeiou</BankName>
    <CurrencyCode>aeiou</CurrencyCode>
    <IsActive>true</IsActive>
    <IsShowOnInvoice>true</IsShowOnInvoice>
    <OpeningBalance>3.149</OpeningBalance>
    <OpeningDate>2000-01-23T04:56:07.000Z</OpeningDate>
    <ClosingBalance>3.149</ClosingBalance>
    <ClosingDate>2000-01-23T04:56:07.000Z</ClosingDate>
    <Balance>3.149</Balance>
    <IsParentAccount>true</IsParentAccount>
    <ParentAccountID>123</ParentAccountID>
    <ParentAccountBSID>aeiou</ParentAccountBSID>
    <ParentAccountCode>aeiou</ParentAccountCode>
    <ParentAccountName>aeiou</ParentAccountName>
  </null>
  <IsRegisteredForGst>true</IsRegisteredForGst>
  <StartingInvoiceNumber>123</StartingInvoiceNumber>
</InvoiceSettings>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        InvoiceSettings invoiceSettings = {"InvoiceBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"PaymentsBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"IsRegisteredForGst":true,"StartingInvoiceNumber":0}; // InvoiceSettings | 

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

final api_instance = DefaultApi();

final InvoiceSettings invoiceSettings = new InvoiceSettings(); // InvoiceSettings | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        InvoiceSettings invoiceSettings = {"InvoiceBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"PaymentsBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"IsRegisteredForGst":true,"StartingInvoiceNumber":0}; // InvoiceSettings | 

        try {
            ActionResults result = apiInstance.settingsPostInvoices(invoiceSettings);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#settingsPostInvoices");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
InvoiceSettings *invoiceSettings = {"InvoiceBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"PaymentsBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"IsRegisteredForGst":true,"StartingInvoiceNumber":0}; //  (optional)

// Settings_PostInvoices
[apiInstance settingsPostInvoicesWith:invoiceSettings
              completionHandler: ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiSettings = require('as_server_api_settings');

// Create an instance of the API class
var api = new AsServerApiSettings.DefaultApi()
var opts = {
  'invoiceSettings': {"InvoiceBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"PaymentsBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"IsRegisteredForGst":true,"StartingInvoiceNumber":0} // {InvoiceSettings} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var invoiceSettings = new InvoiceSettings(); // InvoiceSettings |  (optional) 

            try {
                // Settings_PostInvoices
                ActionResults result = apiInstance.settingsPostInvoices(invoiceSettings);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.settingsPostInvoices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$invoiceSettings = {"InvoiceBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"PaymentsBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"IsRegisteredForGst":true,"StartingInvoiceNumber":0}; // InvoiceSettings | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $invoiceSettings = WWW::OPenAPIClient::Object::InvoiceSettings->new(); # InvoiceSettings | 

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
invoiceSettings = {"InvoiceBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"PaymentsBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"IsRegisteredForGst":true,"StartingInvoiceNumber":0} # InvoiceSettings |  (optional)

try:
    # Settings_PostInvoices
    api_response = api_instance.settings_post_invoices(invoiceSettings=invoiceSettings)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->settingsPostInvoices: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let invoiceSettings = {"InvoiceBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"PaymentsBankAccount":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"},"IsRegisteredForGst":true,"StartingInvoiceNumber":0}; // InvoiceSettings

    let mut context = DefaultApi::Context::default();
    let result = client.settingsPostInvoices(invoiceSettings, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
invoiceSettings

Responses


settingsPut

Settings_Put


/Settings/sold

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Settings/sold" \
 -d '{
  "AutoApproveInboundDropshipOrders" : true
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<SoldSettings>
  <AutoApproveInboundDropshipOrders>true</AutoApproveInboundDropshipOrders>
</SoldSettings>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        SoldSettings soldSettings = {"AutoApproveInboundDropshipOrders":true}; // SoldSettings | 

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

final api_instance = DefaultApi();

final SoldSettings soldSettings = new SoldSettings(); // SoldSettings | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        SoldSettings soldSettings = {"AutoApproveInboundDropshipOrders":true}; // SoldSettings | 

        try {
            ActionResults result = apiInstance.settingsPut(soldSettings);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#settingsPut");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
SoldSettings *soldSettings = {"AutoApproveInboundDropshipOrders":true}; //  (optional)

// Settings_Put
[apiInstance settingsPutWith:soldSettings
              completionHandler: ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiSettings = require('as_server_api_settings');

// Create an instance of the API class
var api = new AsServerApiSettings.DefaultApi()
var opts = {
  'soldSettings': {"AutoApproveInboundDropshipOrders":true} // {SoldSettings} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var soldSettings = new SoldSettings(); // SoldSettings |  (optional) 

            try {
                // Settings_Put
                ActionResults result = apiInstance.settingsPut(soldSettings);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.settingsPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$soldSettings = {"AutoApproveInboundDropshipOrders":true}; // SoldSettings | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $soldSettings = WWW::OPenAPIClient::Object::SoldSettings->new(); # SoldSettings | 

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
soldSettings = {"AutoApproveInboundDropshipOrders":true} # SoldSettings |  (optional)

try:
    # Settings_Put
    api_response = api_instance.settings_put(soldSettings=soldSettings)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->settingsPut: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let soldSettings = {"AutoApproveInboundDropshipOrders":true}; // SoldSettings

    let mut context = DefaultApi::Context::default();
    let result = client.settingsPut(soldSettings, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
soldSettings

Responses