Logistics APIs
Resource for creating a new location
HTTP method | POST |
URI | https://api.rambase.net/logistics/locations |
Supported formats | Xml, Html, Json (ex. $format=json) |
Successful HTTP status code | 201 |
API resource identifier | 6478, version 6 |
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.
ShortName
Required/mandatory field
Unique abbreviation/short name of the location
>{String}</ShortName>Name
Name of warehouse location
This field is optional.
>{String}</Name>Phone
Phone number for the location
This field is optional.
>{String}</Phone>Email address for the location
Input must match the following regular expression pattern: ^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$
This field is optional.
>{String}</Email>Name
Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.
This field is optional.
>{String}</Name>Attention
Attention note.
This field is optional.
>{String}</Attention>AddressLine1
First address line
This field is optional.
>{String}</AddressLine1>AddressLine2
Second address line
This field is optional.
>{String}</AddressLine2>PostalCode
Postalcode/Postcode/ZIP
This field is optional.
>{String}</PostalCode>City
City/town/village
This field is optional.
>{String}</City>State
Region/province/state
This field is optional.
>{String}</State>CountryCode
Required/mandatory field
Two-character code (ISO 3166) identifying the country.
>{String}</CountryCode>ShortName
Required/mandatory field
Unique abbreviation/short name of the location
": "{String}",Name
Name of warehouse location
This field is optional.
": "{String}",Phone
Phone number for the location
This field is optional.
": "{String}",Email address for the location
Input must match the following regular expression pattern: ^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$
This field is optional.
": "{String}",Name
Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.
This field is optional.
": "{String}",Attention
Attention note.
This field is optional.
": "{String}",AddressLine1
First address line
This field is optional.
": "{String}",AddressLine2
Second address line
This field is optional.
": "{String}",PostalCode
Postalcode/Postcode/ZIP
This field is optional.
": "{String}",City
City/town/village
This field is optional.
": "{String}",State
Region/province/state
This field is optional.
": "{String}",CountryCode
Required/mandatory field
Two-character code (ISO 3166) identifying the country.
": "{String}"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. |
$showDomainDescriptions Boolean, optional | Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false. |
$lang String, optional | Specifies the language used in the response, following the 3-letter ISO-639-1 [lll] |
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.
Please note that some fields may be removed from the response, based on user roles/duties/permissions.
LocationId
Location identifier
>{Integer}</LocationId>Status
Status of warehouse location
Possible domain values can be found here
>{Integer}</Status>Name
Name of warehouse location
>{String}</Name>ShortName
Unique abbreviation/short name of the location
>{String}</ShortName>Phone
Phone number for the location
>{String}</Phone>Email address for the location
>{String}</Email>AllowIncomingGoodsTransfer
True if a location has a corresponding SUP so that goods transfer can be performed.
>{Boolean}</AllowIncomingGoodsTransfer>StockLocationLabelSeparator
Optional character used for separating stock location names in stock location label.
>{String}</StockLocationLabelSeparator>ManufacturingMaterialLocationLabelSeparator
Optional character used for separating manufacturing material location names in manufacturing material location label.
>{String}</ManufacturingMaterialLocationLabelSeparator>IsRentalDepotCapable
Indicates if the location can be used as a rental depot
>{Boolean}</IsRentalDepotCapable>RequirePackages
Packages are required to ship
>{Boolean}</RequirePackages>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.
>{Boolean}</PickAutomatically>LengthUnit
Default measurement unit for length to store on documents
>{String}</LengthUnit>WeightUnit
Default measurement unit for weight to store on documents
>{String}</WeightUnit>AddressId
Location address identifier
>{Integer}</AddressId>Name
Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.
>{String}</Name>Attention
Attention note.
>{String}</Attention>AddressLine1
First address line
>{String}</AddressLine1>AddressLine2
Second address line
>{String}</AddressLine2>PostalCode
Postalcode/Postcode/ZIP
>{String}</PostalCode>City
City/town/village
>{String}</City>CountryCode
Two-character code (ISO 3166) identifying the country.
>{String}</CountryCode>Country
English name of country.
>{String}</Country>State
Region/province/state
>{String}</State>GlobalLocationNumber
Global location number (GLN) for the address. GLN is part of the GS1 systems of standards and is a 13-digit number used to uniquely identify any legal entity, functional entity, or physical location.
>{String}</GlobalLocationNumber>UseAsInvoiceAddressForCompany
Used to indicate that this location is used for invoice address for the company
>{Boolean}</UseAsInvoiceAddressForCompany>AddressLink
Reference to the location address.
>{String}</AddressLink>LocationId
Location identifier
": "{Integer}",Status
Status of warehouse location
Possible domain values can be found here
": "{Integer}",Type
Type of location
Possible domain values can be found here
": "{String}",Name
Name of warehouse location
": "{String}",ShortName
Unique abbreviation/short name of the location
": "{String}",Phone
Phone number for the location
": "{String}",Email address for the location
": "{String}",AllowIncomingGoodsTransfer
True if a location has a corresponding SUP so that goods transfer can be performed.
": "{Boolean}",StockLocationLabelSeparator
Optional character used for separating stock location names in stock location label.
": "{String}",ManufacturingMaterialLocationLabelSeparator
Optional character used for separating manufacturing material location names in manufacturing material location label.
": "{String}",IsRentalDepotCapable
Indicates if the location can be used as a rental depot
": "{Boolean}",RequirePackages
Packages are required to ship
": "{Boolean}",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.
": "{Boolean}",LengthUnit
Default measurement unit for length to store on documents
": "{String}",WeightUnit
Default measurement unit for weight to store on documents
": "{String}"AddressId
Location address identifier
": "{Integer}",Name
Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.
": "{String}",Attention
Attention note.
": "{String}",AddressLine1
First address line
": "{String}",AddressLine2
Second address line
": "{String}",PostalCode
Postalcode/Postcode/ZIP
": "{String}",City
City/town/village
": "{String}",CountryCode
Two-character code (ISO 3166) identifying the country.
": "{String}",Country
English name of country.
": "{String}",State
Region/province/state
": "{String}",GlobalLocationNumber
Global location number (GLN) for the address. GLN is part of the GS1 systems of standards and is a 13-digit number used to uniquely identify any legal entity, functional entity, or physical location.
": "{String}",UseAsInvoiceAddressForCompany
Used to indicate that this location is used for invoice address for the company
": "{Boolean}",AddressLink
Reference to the location address.
": "{String}"
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. |