customerUpdateBusinessLocationAddress
Update business location address
Allows a tenant user to update business location address
/Spenda/Customers/Address/{businessLocationAddressID}
Usage and SDK Samples
curl -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://api.dev.spenda.co/api/Spenda/Customers/Address/{businessLocationAddressID}" \
-d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AddressApi;
import java.io.File;
import java.util.*;
public class AddressApiExample {
public static void main(String[] args) {
// Create an instance of the API class
AddressApi apiInstance = new AddressApi();
Integer businessLocationAddressID = 56; // Integer | The business location ID
UpdateBusinessLocationAddressRequest updateBusinessLocationAddressRequest = {"id":0,"city":"string","state":"string","postCode":"string","country":"string","streetAddress":"string","isEmpty":true}; // UpdateBusinessLocationAddressRequest |
try {
apiInstance.customerUpdateBusinessLocationAddress(businessLocationAddressID, updateBusinessLocationAddressRequest);
} catch (ApiException e) {
System.err.println("Exception when calling AddressApi#customerUpdateBusinessLocationAddress");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final Integer businessLocationAddressID = new Integer(); // Integer | The business location ID
final UpdateBusinessLocationAddressRequest updateBusinessLocationAddressRequest = new UpdateBusinessLocationAddressRequest(); // UpdateBusinessLocationAddressRequest |
try {
final result = await api_instance.customerUpdateBusinessLocationAddress(businessLocationAddressID, updateBusinessLocationAddressRequest);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->customerUpdateBusinessLocationAddress: $e\n');
}
import org.openapitools.client.api.AddressApi;
public class AddressApiExample {
public static void main(String[] args) {
AddressApi apiInstance = new AddressApi();
Integer businessLocationAddressID = 56; // Integer | The business location ID
UpdateBusinessLocationAddressRequest updateBusinessLocationAddressRequest = {"id":0,"city":"string","state":"string","postCode":"string","country":"string","streetAddress":"string","isEmpty":true}; // UpdateBusinessLocationAddressRequest |
try {
apiInstance.customerUpdateBusinessLocationAddress(businessLocationAddressID, updateBusinessLocationAddressRequest);
} catch (ApiException e) {
System.err.println("Exception when calling AddressApi#customerUpdateBusinessLocationAddress");
e.printStackTrace();
}
}
}
// Create an instance of the API class
AddressApi *apiInstance = [[AddressApi alloc] init];
Integer *businessLocationAddressID = 56; // The business location ID (default to null)
UpdateBusinessLocationAddressRequest *updateBusinessLocationAddressRequest = {"id":0,"city":"string","state":"string","postCode":"string","country":"string","streetAddress":"string","isEmpty":true}; // (optional)
// Update business location address
[apiInstance customerUpdateBusinessLocationAddressWith:businessLocationAddressID
updateBusinessLocationAddressRequest:updateBusinessLocationAddressRequest
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SpendaServicesCustomers = require('spenda_services_customers');
// Create an instance of the API class
var api = new SpendaServicesCustomers.AddressApi()
var businessLocationAddressID = 56; // {Integer} The business location ID
var opts = {
'updateBusinessLocationAddressRequest': {"id":0,"city":"string","state":"string","postCode":"string","country":"string","streetAddress":"string","isEmpty":true} // {UpdateBusinessLocationAddressRequest}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.customerUpdateBusinessLocationAddress(businessLocationAddressID, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class customerUpdateBusinessLocationAddressExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new AddressApi();
var businessLocationAddressID = 56; // Integer | The business location ID (default to null)
var updateBusinessLocationAddressRequest = new UpdateBusinessLocationAddressRequest(); // UpdateBusinessLocationAddressRequest | (optional)
try {
// Update business location address
apiInstance.customerUpdateBusinessLocationAddress(businessLocationAddressID, updateBusinessLocationAddressRequest);
} catch (Exception e) {
Debug.Print("Exception when calling AddressApi.customerUpdateBusinessLocationAddress: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AddressApi();
$businessLocationAddressID = 56; // Integer | The business location ID
$updateBusinessLocationAddressRequest = {"id":0,"city":"string","state":"string","postCode":"string","country":"string","streetAddress":"string","isEmpty":true}; // UpdateBusinessLocationAddressRequest |
try {
$api_instance->customerUpdateBusinessLocationAddress($businessLocationAddressID, $updateBusinessLocationAddressRequest);
} catch (Exception $e) {
echo 'Exception when calling AddressApi->customerUpdateBusinessLocationAddress: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AddressApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AddressApi->new();
my $businessLocationAddressID = 56; # Integer | The business location ID
my $updateBusinessLocationAddressRequest = WWW::OPenAPIClient::Object::UpdateBusinessLocationAddressRequest->new(); # UpdateBusinessLocationAddressRequest |
eval {
$api_instance->customerUpdateBusinessLocationAddress(businessLocationAddressID => $businessLocationAddressID, updateBusinessLocationAddressRequest => $updateBusinessLocationAddressRequest);
};
if ($@) {
warn "Exception when calling AddressApi->customerUpdateBusinessLocationAddress: $@\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.AddressApi()
businessLocationAddressID = 56 # Integer | The business location ID (default to null)
updateBusinessLocationAddressRequest = {"id":0,"city":"string","state":"string","postCode":"string","country":"string","streetAddress":"string","isEmpty":true} # UpdateBusinessLocationAddressRequest | (optional)
try:
# Update business location address
api_instance.customer_update_business_location_address(businessLocationAddressID, updateBusinessLocationAddressRequest=updateBusinessLocationAddressRequest)
except ApiException as e:
print("Exception when calling AddressApi->customerUpdateBusinessLocationAddress: %s\n" % e)
extern crate AddressApi;
pub fn main() {
let businessLocationAddressID = 56; // Integer
let updateBusinessLocationAddressRequest = {"id":0,"city":"string","state":"string","postCode":"string","country":"string","streetAddress":"string","isEmpty":true}; // UpdateBusinessLocationAddressRequest
let mut context = AddressApi::Context::default();
let result = client.customerUpdateBusinessLocationAddress(businessLocationAddressID, updateBusinessLocationAddressRequest, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Path parameters
| Name | Description |
|---|---|
| businessLocationAddressID* |
Integer
(int32)
The business location ID
Required
|
Body parameters
| Name | Description |
|---|---|
| updateBusinessLocationAddressRequest |