API

Logistics APIs

PUT logistics/locations/{locationId}

Saves location details for provided identifier

HTTP method PUT
URI https://api.rambase.net/logistics/locations/{locationId}
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {locationId} Location identifier
Integer, minimum 10000
Successful HTTP status code 200
API resource identifier 2006, version 19

The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.

Format:
1
<Location
Location

This field is optional.

>
2
     <Type
Type

Type of location

Applicable domain values can be found here

This field is optional.

>
{String}</Type>
3
     <Name
Name

Name of warehouse location

This field is optional.

>
{String}</Name>
4
     <ShortName
ShortName

Unique abbreviation/short name of the location

This field is optional.

>
{String}</ShortName>
5
     <StockLocationLabelSeparator
StockLocationLabelSeparator

Optional character used for separating stock location names in stock location label.

Maximum value: 1

This field is optional.

>
{String}</StockLocationLabelSeparator>
6
     <ManufacturingMaterialLocationLabelSeparator
ManufacturingMaterialLocationLabelSeparator

Optional character used for separating manufacturing material location names in manufacturing material location label.

Maximum value: 1

This field is optional.

>
{String}</ManufacturingMaterialLocationLabelSeparator>
7
     <IsRentalDepotCapable
IsRentalDepotCapable

Indicates if the location can be used as a rental depot

This field is optional.

>
{Boolean}</IsRentalDepotCapable>
8
     <Shipment
Shipment

This field is optional.

>
9
          <RequirePackages
RequirePackages

Packages are required to ship

This field is optional.

>
{Boolean}</RequirePackages>
10
          <PickAutomatically
PickAutomatically

If the value is true, the system will automatically confirm pick of all transaction items for this location. Hence will also pick be automatically unpicked if the process that triggered confirmation of pick is reverted.

This field is optional.

>
{Boolean}</PickAutomatically>
11
          <LengthUnit
LengthUnit

Default measurement unit for length to store on documents

This field is optional.

>
{String}</LengthUnit>
12
          <WeightUnit
WeightUnit

Default measurement unit for weight to store on documents

This field is optional.

>
{String}</WeightUnit>
13
     </Shipment>
14
     <Address
Address

This field is optional.

>
15
          <UseAsInvoiceAddressForCompany
UseAsInvoiceAddressForCompany

Used to indicate that this location is used for invoice address for the company

This field is optional.

>
{Boolean}</UseAsInvoiceAddressForCompany>
16
     </Address>
17
</Location>
1
{
2
     "location
Location

This field is optional.

":
{
3
          "type
Type

Type of location

Applicable domain values can be found here

This field is optional.

":
"{String}",
4
          "name
Name

Name of warehouse location

This field is optional.

":
"{String}",
5
          "shortName
ShortName

Unique abbreviation/short name of the location

This field is optional.

":
"{String}",
6
          "stockLocationLabelSeparator
StockLocationLabelSeparator

Optional character used for separating stock location names in stock location label.

Maximum value: 1

This field is optional.

":
"{String}",
7
          "manufacturingMaterialLocationLabelSeparator
ManufacturingMaterialLocationLabelSeparator

Optional character used for separating manufacturing material location names in manufacturing material location label.

Maximum value: 1

This field is optional.

":
"{String}",
8
          "isRentalDepotCapable
IsRentalDepotCapable

Indicates if the location can be used as a rental depot

This field is optional.

":
"{Boolean}",
9
          "shipment
Shipment

This field is optional.

":
{
10
               "requirePackages
RequirePackages

Packages are required to ship

This field is optional.

":
"{Boolean}",
11
               "pickAutomatically
PickAutomatically

If the value is true, the system will automatically confirm pick of all transaction items for this location. Hence will also pick be automatically unpicked if the process that triggered confirmation of pick is reverted.

This field is optional.

":
"{Boolean}",
12
               "lengthUnit
LengthUnit

Default measurement unit for length to store on documents

This field is optional.

":
"{String}",
13
               "weightUnit
WeightUnit

Default measurement unit for weight to store on documents

This field is optional.

":
"{String}"
14
          },
15
          "address
Address

This field is optional.

":
{
16
               "useAsInvoiceAddressForCompany
UseAsInvoiceAddressForCompany

Used to indicate that this location is used for invoice address for the company

This field is optional.

":
"{Boolean}"
17
          }
18
     }
19
}

The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.

$access_token String, optional After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time.
$db String, optional Set the database/company for the request
$useMinimumVersion Integer, optional Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information.

Read more about filters and sorting on how to use filter parameters and named filters.

Read more about filters and sorting on how to use sortable parameters

Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields. Fields colored in grey is expandable fields.

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
1

List of available operations/actions for this resource.
See the operations documentation for more information about API operations.

Possible error codes the response might return:

Error 101015 HTTP 404 Permission not found
Error 100865 HTTP 404 Customer not found
Error 101375 HTTP 400 Direction of the Shipping Service mismatch with type of transaction document
Error 101399 HTTP 400 Customer account in shipping service mismatch with this customer account
Error 101385 HTTP 400 The carrier that offers this shipping service is not activ (status 4)
Error 100942 HTTP 400 External reference should be unique
Error 108670 HTTP 400 Discount percentage must be a number between 0 and 100
Error 105264 HTTP 400 Cannot update separator if at least one manufacturing material location exists.