API

Logistics APIs

POST logistics/locations/{locationId}/location-supplies

Creates a new location supply for the specified location

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

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
<LocationSupply>
2
     <Source>
3
          <Location>
4
               <LocationId
LocationId

Required/mandatory field

Location identifier

Minimum value: 10000

>
{Integer}</LocationId>
5
          </Location>
6
     </Source>
7
     <TransferLeadTime
TransferLeadTime

This field is optional.

>
8
          <HandlingDays
HandlingDays

Internal handling time. The number of days required by the source location, from when a distribution order is received until it is ready for shipment.

Minimum value: 0

This field is optional.

>
{Integer}</HandlingDays>
9
          <TransitDays
TransitDays

Transit time. The number of days a shipment takes to move from the source location to the destination location.

Minimum value: 0

This field is optional.

>
{Integer}</TransitDays>
10
     </TransferLeadTime>
11
</LocationSupply>
1
{
2
     "locationSupply": {
3
          "source": {
4
               "location": {
5
                    "locationId
LocationId

Required/mandatory field

Location identifier

Minimum value: 10000

":
"{Integer}"
6
               }
7
          },
8
          "transferLeadTime
TransferLeadTime

This field is optional.

":
{
9
               "handlingDays
HandlingDays

Internal handling time. The number of days required by the source location, from when a distribution order is received until it is ready for shipment.

Minimum value: 0

This field is optional.

":
"{Integer}",
10
               "transitDays
TransitDays

Transit time. The number of days a shipment takes to move from the source location to the destination location.

Minimum value: 0

This field is optional.

":
"{Integer}"
11
          }
12
     }
13
}

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.

Format:
1
<LocationSupply>
2
     <LocationSupplyId
LocationSupplyId

Location supply identifier

>
{Integer}</LocationSupplyId>
3
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
4
     <UpdatedAt
UpdatedAt

Date and time when intercompany-relationship was updated

>
{Datetime}</UpdatedAt>
5
     <Status
Status

Status of distribution sourcing rule

Possible domain values can be found here

>
{Integer}</Status>
6
     <IsBiDirectional
IsBiDirectional

Bidirectional connection. Indicates whether distribution orders can be created in both directions between the locations. If true, orders can be created from either location to the other. If false, orders can only be created from this location to the source location.

>
{Boolean}</IsBiDirectional>
7
     <Source>
8
          <Location>
9
               <LocationId
LocationId

Location identifier

>
{Integer}</LocationId>
10
               <ShortName
ShortName

Unique abbreviation/short name of the location

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

Name of warehouse location

>
{String}</Name>
12
               <LocationLink
LocationLink

Location reference

>
{String}</LocationLink>
13
          </Location>
14
          <Company>
15
               <CompanyId
CompanyId

Company identifier

>
{Integer}</CompanyId>
16
               <Name
Name

Name of company

>
{String}</Name>
17
               <Database
Database

Abbreviation/code to identify the company

>
{String}</Database>
18
               <CompanyLink
CompanyLink

Company reference

>
{String}</CompanyLink>
19
          </Company>
20
     </Source>
21
     <Supplier
Supplier

The supplier that will be used when creating distribution orders towards this source location

>
22
          <SupplierId
SupplierId

RamBase supplier identifier

>
{Integer}</SupplierId>
23
          <Name
Name

Name of supplier (name of company or surname/familyname/lastname of a person)

>
{String}</Name>
24
          <SupplierLink
SupplierLink

Supplier reference

>
{String}</SupplierLink>
25
     </Supplier>
26
     <Customer
Customer

The customer that will be used for receiving distribution orders

>
27
          <CustomerId
CustomerId

Customer identifier

>
{Integer}</CustomerId>
28
          <Name
Name

Name of customer (name of company or surname/familyname/lastname of a person)

>
{String}</Name>
29
          <CustomerLink
CustomerLink

Customer reference

>
{String}</CustomerLink>
30
     </Customer>
31
     <TransferLeadTime>
32
          <HandlingDays
HandlingDays

Internal handling time. The number of days required by the source location, from when a distribution order is received until it is ready for shipment.

>
{Integer}</HandlingDays>
33
          <TransitDays
TransitDays

Transit time. The number of days a shipment takes to move from the source location to the destination location.

>
{Integer}</TransitDays>
34
     </TransferLeadTime>
35
</LocationSupply>
1
{
2
     "locationSupply": {
3
          "locationSupplyId
LocationSupplyId

Location supply identifier

":
"{Integer}",
4
          "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
5
          "updatedAt
UpdatedAt

Date and time when intercompany-relationship was updated

":
"{Datetime}",
6
          "status
Status

Status of distribution sourcing rule

Possible domain values can be found here

":
"{Integer}",
7
          "isBiDirectional
IsBiDirectional

Bidirectional connection. Indicates whether distribution orders can be created in both directions between the locations. If true, orders can be created from either location to the other. If false, orders can only be created from this location to the source location.

":
"{Boolean}",
8
          "source": {
9
               "location": {
10
                    "locationId
LocationId

Location identifier

":
"{Integer}",
11
                    "shortName
ShortName

Unique abbreviation/short name of the location

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

Name of warehouse location

":
"{String}",
13
                    "locationLink
LocationLink

Location reference

":
"{String}"
14
               },
15
               "company": {
16
                    "companyId
CompanyId

Company identifier

":
"{Integer}",
17
                    "name
Name

Name of company

":
"{String}",
18
                    "database
Database

Abbreviation/code to identify the company

":
"{String}",
19
                    "companyLink
CompanyLink

Company reference

":
"{String}"
20
               }
21
          },
22
          "supplier
Supplier

The supplier that will be used when creating distribution orders towards this source location

":
{
23
               "supplierId
SupplierId

RamBase supplier identifier

":
"{Integer}",
24
               "name
Name

Name of supplier (name of company or surname/familyname/lastname of a person)

":
"{String}",
25
               "supplierLink
SupplierLink

Supplier reference

":
"{String}"
26
          },
27
          "customer
Customer

The customer that will be used for receiving distribution orders

":
{
28
               "customerId
CustomerId

Customer identifier

":
"{Integer}",
29
               "name
Name

Name of customer (name of company or surname/familyname/lastname of a person)

":
"{String}",
30
               "customerLink
CustomerLink

Customer reference

":
"{String}"
31
          },
32
          "transferLeadTime": {
33
               "handlingDays
HandlingDays

Internal handling time. The number of days required by the source location, from when a distribution order is received until it is ready for shipment.

":
"{Integer}",
34
               "transitDays
TransitDays

Transit time. The number of days a shipment takes to move from the source location to the destination location.

":
"{Integer}"
35
          }
36
     }
37
}

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 110242 HTTP 400 It is not allowed to change address of customer which is classified for 'Distribution'. Address is syncronized with addresss in related location.
Error 101000 HTTP 400 Can not change country on customers with open transaction documents
Error 100942 HTTP 400 External reference should be unique
Error 100943 HTTP 400 Postcode is not valid
Error 100944 HTTP 400 Mismatch between post code and city
Error 100948 HTTP 400 Can not deactivate customers with open transaction documents
Error 100949 HTTP 400 Can not delete customers with open transaction documents
Error 108670 HTTP 400 Discount percentage must be a number between 0 and 100