Inputs

Operations with inputs


Parameters

Name In Type Required Description
orgId path string true Organization name as it is registered in Mas-Stack
body body CreateInputDto true Information needed to insert a input

Request body - instance of CreateInputDto

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
{
  "reference": 1,
  "pWarehouseId": 1,
  "amount": 10,
  "orderId": "1234ABCD",
  "orderPositionId": 1,
  "inputDate": "2021-09-24",
  "orderOlId": 1,
  "inWarehousePrice": 50,
  "courierBill": 10,
  "billId": "12ABC",
  "receptionDate": "2021-09-24",
  "incident": true,
  "facturable": false,
  "inWareHousePriceCurrency": "EUR",
  "type": 1,
  "ean": 112312,
  "billableCompany": "XFERA",
  "comments": "comments"
}
Name Type Required Description
reference string false none
pWarehouseId integer true none
amount integer true none
orderId string false none
orderPositionId integer false none
inputDate string(date) true none
orderOlId string true none
inWarehousePrice number true none
courierBill string false none
billId string false none
receptionDate string(date) false none
incident boolean false none
facturable boolean false none
inWareHousePriceCurrency string false none
type string false none
ean string false none
billableCompany string false none
comments string false none

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

curl -X POST https://logistics-stock.sta.masstack.com/v1/orgs/yoigo/inputs \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'reference': 1,
  'pWarehouseId': 1,
  'amount': 10,
  'orderId': '1234ABCD',
  'orderPositionId': 1,
  'inputDate': '2021-09-24',
  'orderOlId': 1,
  'inWarehousePrice': 50,
  'courierBill': 10,
  'billId': '12ABC',
  'receptionDate': '2021-09-24',
  'incident': true,
  'facturable': false,
  'inWareHousePriceCurrency': 'EUR',
  'type': 1,
  'ean': 112312,
  'billableCompany': 'XFERA',
  'comments': 'comments'
}" 

Responses

Code Meaning Description Schema
200 OK Success InputDto
400 Bad Request Bad Request Error400
404 Not Found Not found Error404
500 Internal Server Error Internal Server Error Error500

Parameters

Name In Type Required Description
orgId path string true Organization name as it is registered in Mas-Stack
product query integer false Product id
from query string false Initial week to search for, in wwyyyy format
to query string false Final week to search for, in wwyyyy format
page query integer false Page number for pagination
size query integer false Page size for pagination
type query array[integer] false input type

Request example

1
2
3
4
5

curl -X GET https://logistics-stock.sta.masstack.com/v1/orgs/yoigo/inputs?product='1'&from='012022'&to='522022'&page='1'&size='10'&type=[1,2,3] \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Meaning Description Schema
200 OK Success [InputDto]
400 Bad Request Bad Request Error400
404 Not Found Not found Error404
500 Internal Server Error Internal Server Error Error500

200 - instance of InputDto

Custom schema example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[
  {
    "inputId": 1,
    "reference": 1,
    "productId": 1,
    "amount": 10,
    "orderId": "1234ABCD",
    "orderPositionId": 1,
    "inputDate": "2021-09-24",
    "orderOlId": 1,
    "inWarehousePrice": 50.5,
    "courierBill": 10,
    "billId": "12ABC",
    "receptionDate": "2021-09-24",
    "incident": true,
    "facturable": false,
    "inWareHousePriceCurrency": "eu",
    "type": 1,
    "ean": 1,
    "billableCompany": 1,
    "pWarehouseId": 1,
    "comments": "comments"
  }
]
Name Type Required Description
inputId integer false none
reference string false none
productId integer false none
amount integer false none
orderId string false none
orderPositionId integer false none
inputDate string(date) false none
orderOlId string false none
inWarehousePrice number false none
courierBill string false none
billId string false none
receptionDate string(date) false none
incident boolean false none
facturable boolean false none
inWareHousePriceCurrency string false none
type string false none
ean string false none
billableCompany string false none
pWarehouseId integer false none
comments string false none

Parameters

Name In Type Required Description
orgId path string true Organization name as it is registered in Mas-Stack
inputId path integer true input id to update

Request example

1
2
3
4
5

curl -X GET https://logistics-stock.sta.masstack.com/v1/orgs/yoigo/inputs/1 \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Meaning Description Schema
200 OK Success InputDto
400 Bad Request Bad Request Error400
404 Not Found Not found Error404
500 Internal Server Error Internal Server Error Error500

Parameters

Name In Type Required Description
orgId path string true Organization name as it is registered in Mas-Stack
inputId path integer true input id to update
body body UpdateInputDto true Input dto

Request body - JsonObject

1
{}
Name Type Required Description
anonymous InputDto false none
Name Type Required Description
anonymous object false none

Request example

1
2
3
4
5
6
7

curl -X PUT https://logistics-stock.sta.masstack.com/v1/orgs/yoigo/inputs/1 \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{}" 

Responses

Code Meaning Description Schema
200 OK Success InputDto
400 Bad Request Bad Request Error400
404 Not Found Not found Error404
500 Internal Server Error Internal Server Error Error500

Parameters

Name In Type Required Description
orgId path string true Organization name as it is registered in Mas-Stack
body body InputDeviceWithDetailsRequestDto false Information needed to insert a device

Request body - instance of InputDeviceWithDetailsRequestDto

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  "order_number": "4000003264",
  "provider_delivery_id": "3",
  "input_date": "2009-01-13",
  "details": [
    {
      "reference": "G034W54G2",
      "model": "Samsung Galaxy Watch5 44mm BT Silver",
      "color": "Plata",
      "device_type": "SmartWatch",
      "brand": "Samsung",
      "quantity": 10,
      "devices": [
        {
          "imei": "864467060074057",
          "imei2": "864467060074057",
          "serial_number": "RFAT73D511Z"
        }
      ]
    }
  ]
}
Name Type Required Description
order_number string false none
provider_delivery_id string false none
input_date string(date) false none
details [InputDetailsDto] false none

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

curl -X POST https://logistics-stock.sta.masstack.com/v1/orgs/yoigo/inputs/details \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'order_number': '4000003264',
  'provider_delivery_id': '3',
  'input_date': '2009-01-13',
  'details': [
    {
      'reference': 'G034W54G2',
      'model': 'Samsung Galaxy Watch5 44mm BT Silver',
      'color': 'Plata',
      'device_type': 'SmartWatch',
      'brand': 'Samsung',
      'quantity': 10,
      'devices': [
        {
          'imei': '864467060074057',
          'imei2': '864467060074057',
          'serial_number': 'RFAT73D511Z'
        }
      ]
    }
  ]
}" 

Responses

Code Meaning Description Schema
200 OK Success [DeviceDto]
400 Bad Request Bad Request Error400
500 Internal Server Error Internal Server Error Error500

200 - instance of DeviceDto

Custom schema example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
[
  {
    "deviceId": 0,
    "imei": "864467060074057",
    "imei2": "864467060074057",
    "serialNumber": "RFAT73D511Z",
    "brand": "Samsung",
    "model": "Samsung Galaxy Watch5 44mm BT Silver",
    "reference": "G034W54G2",
    "color": "Plata",
    "deviceType": "SmartWatch",
    "orderNumber": "4000003264",
    "providerDeliveryId": "3",
    "loadDate": "2009-01-13",
    "inputDate": "2009-01-13",
    "createDate": "2009-01-13",
    "updateDate": "2009-01-13"
  }
]
Name Type Required Description
deviceId integer(int64) false none
imei string false none
imei2 string false none
serialNumber string false none
brand string false none
model string false none
reference string false none
color string false none
deviceType string false none
orderNumber string false none
providerDeliveryId string false none
loadDate string(date) false none
inputDate string(date) false none
createDate string(date) false none
updateDate string(date) false none

Parameters

Name In Type Required Description
orgId path string true Organization name as it is registered in Mas-Stack
page query integer false Page number for pagination
size query integer false Page size for pagination
body body InputDto true At least one of the next parameters in needed to search an input

Request body - JsonObject

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  "inputId": 1,
  "reference": 1,
  "productId": 1,
  "amount": 10,
  "orderId": "1234ABCD",
  "orderPositionId": 1,
  "inputDate": "2021-09-24",
  "orderOlId": 1,
  "inWarehousePrice": 50.5,
  "courierBill": 10,
  "billId": "12ABC",
  "receptionDate": "2021-09-24",
  "incident": true,
  "facturable": false,
  "inWareHousePriceCurrency": "eu",
  "type": 1,
  "ean": 1,
  "billableCompany": 1,
  "pWarehouseId": 1,
  "comments": "comments"
}
Name Type Required Description
inputId integer false none
reference string false none
productId integer false none
amount integer false none
orderId string false none
orderPositionId integer false none
inputDate string(date) false none
orderOlId string false none
inWarehousePrice number false none
courierBill string false none
billId string false none
receptionDate string(date) false none
incident boolean false none
facturable boolean false none
inWareHousePriceCurrency string false none
type string false none
ean string false none
billableCompany string false none
pWarehouseId integer false none
comments string false none

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

curl -X POST https://logistics-stock.sta.masstack.com/v1/orgs/yoigo/inputs/search?page='1'&size='10' \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'inputId': 1,
  'reference': 1,
  'productId': 1,
  'amount': 10,
  'orderId': '1234ABCD',
  'orderPositionId': 1,
  'inputDate': '2021-09-24',
  'orderOlId': 1,
  'inWarehousePrice': 50.5,
  'courierBill': 10,
  'billId': '12ABC',
  'receptionDate': '2021-09-24',
  'incident': true,
  'facturable': false,
  'inWareHousePriceCurrency': 'eu',
  'type': 1,
  'ean': 1,
  'billableCompany': 1,
  'pWarehouseId': 1,
  'comments': 'comments'
}" 

Responses

Code Meaning Description Schema
200 OK Success [InputDto]
400 Bad Request Bad Request Error400
404 Not Found Not found Error404
500 Internal Server Error Internal Server Error Error500

200 - instance of InputDto

Custom schema example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[
  {
    "inputId": 1,
    "reference": 1,
    "productId": 1,
    "amount": 10,
    "orderId": "1234ABCD",
    "orderPositionId": 1,
    "inputDate": "2021-09-24",
    "orderOlId": 1,
    "inWarehousePrice": 50.5,
    "courierBill": 10,
    "billId": "12ABC",
    "receptionDate": "2021-09-24",
    "incident": true,
    "facturable": false,
    "inWareHousePriceCurrency": "eu",
    "type": 1,
    "ean": 1,
    "billableCompany": 1,
    "pWarehouseId": 1,
    "comments": "comments"
  }
]
Name Type Required Description
inputId integer false none
reference string false none
productId integer false none
amount integer false none
orderId string false none
orderPositionId integer false none
inputDate string(date) false none
orderOlId string false none
inWarehousePrice number false none
courierBill string false none
billId string false none
receptionDate string(date) false none
incident boolean false none
facturable boolean false none
inWareHousePriceCurrency string false none
type string false none
ean string false none
billableCompany string false none
pWarehouseId integer false none
comments string false none

Endpoints

Base products

    Products

      Characteristics

        Delivery commitment

          Inputs

            Input Types

              Outputs

                Output Types

                  Stock

                    Physical Warehouse

                      Virtual Warehouse

                        Returns

                          Devices

                            Providers

                              Logistic Operators

                                Commercial Brands

                                  Commercial Distributions

                                    Status

                                      Categories

                                        Purposes

                                          Regions

                                            Countries

                                              Receptors

                                                Characteristics Values

                                                  Sales Channel

                                                    Tenant group brand

                                                      Organizations

                                                        Sap Ordering

                                                          Report importer