Outputs

Operations with outputs


Parameters

Name In Type Required Description
orgId path string true Organization name as it is registered in Mas-Stack
body body OutputDto true Information needed to search an output

Request body - instance of OutputDto

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
{
  "outputId": 1,
  "reference": "reference",
  "productId": 1,
  "vwarehouseId": 10,
  "pWarehouseId": 10,
  "amount": 50,
  "salesChannel": 2,
  "outputDate": "2021-09-24",
  "regularization": true,
  "type": 2,
  "salesType": "salesType",
  "tenantGroupBrand": {
    "id": 10,
    "name": "masmovil"
  },
  "orderId": "1234ABCD",
  "inWarehousePrice": 50,
  "inWarehousePriceCurrency": "EUR"
}
Name Type Required Description
outputId integer false none
reference string false none
productId integer false none
vwarehouseId integer false none
pWarehouseId integer false none
amount integer false none
salesChannel integer false none
outputDate string(date) false none
regularization boolean false none
type integer false none
salesType string false none
tenantGroupBrand TenantGroupBrandDto false none
orderId string false none
inWarehousePrice number false none
inWarehousePriceCurrency 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/outputs/search \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'outputId': 1,
  'reference': 'reference',
  'productId': 1,
  'vwarehouseId': 10,
  'pWarehouseId': 10,
  'amount': 50,
  'salesChannel': 2,
  'outputDate': '2021-09-24',
  'regularization': true,
  'type': 2,
  'salesType': 'salesType',
  'tenantGroupBrand': {
    'id': 10,
    'name': 'masmovil'
  },
  'orderId': '1234ABCD',
  'inWarehousePrice': 50,
  'inWarehousePriceCurrency': 'EUR'
}" 

Responses

Code Meaning Description Schema
200 OK Success [OutputDto]
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
by query string true Grouping option. Valid options are {product_id_and_vwarehouse_id}
page query integer false Page number for pagination, page and size must be used together
size query integer false Page size for pagination, page and size must be used together
from query string false Initial date in iso format, from and to must be used together
to query string false Final date in iso format, from and to must be used together

Request example

1
2
3
4
5

curl -X GET https://logistics-stock.sta.masstack.com/v1/orgs/yoigo/outputs/grouped?by='product_id_and_vwarehouse_id'&page='1'&size='10'&from='2025-05-05'&to='2025-05-05'?by=product_id_and_vwarehouse_id \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Meaning Description Schema
200 OK Success [OutputsByProductAndWarehouseResponseDto]
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 CreateOutputDto true Information needed to insert an output

Request body - instance of CreateOutputDto

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
{
  "reference": "reference",
  "vwarehouseId": 10,
  "pWarehouseId": 10,
  "amount": 50,
  "salesChannel": 2,
  "tenantGroupBrand": "tenant",
  "outputDate": "2021-09-24",
  "regularization": true,
  "type": 2,
  "salesType": "salesType",
  "orderId": "1234ABCD",
  "inWarehousePrice": 50,
  "inWarehousePriceCurrency": "EUR"
}
Name Type Required Description
reference string false none
vwarehouseId integer true none
pWarehouseId integer false none
amount integer true none
salesChannel integer false none
tenantGroupBrand string true tenant or group band
outputDate string(date) true none
regularization boolean false none
type integer false none
salesType string false none
orderId string false none
inWarehousePrice number false none
inWarehousePriceCurrency 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

curl -X POST https://logistics-stock.sta.masstack.com/v1/orgs/yoigo/outputs \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'reference': 'reference',
  'vwarehouseId': 10,
  'pWarehouseId': 10,
  'amount': 50,
  'salesChannel': 2,
  'tenantGroupBrand': 'tenant',
  'outputDate': '2021-09-24',
  'regularization': true,
  'type': 2,
  'salesType': 'salesType',
  'orderId': '1234ABCD',
  'inWarehousePrice': 50,
  'inWarehousePriceCurrency': 'EUR'
}" 

Responses

Code Meaning Description Schema
200 OK Success OutputDto
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 in a year
to query string false final week in a year
type query integer false output type

Request example

1
2
3
4
5

curl -X GET https://logistics-stock.sta.masstack.com/v1/orgs/yoigo/outputs?product='1'&from='012022'&to='102022'&type='1' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Meaning Description Schema
200 OK Success [OutputDto]
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
outputId path integer true Output id to update

Request example

1
2
3
4
5

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

Responses

Code Meaning Description Schema
200 OK Success OutputDto
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
outputId path integer true Output id to update
body body UpdateOutputDto true Input dto

Request body - JsonObject

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
{
  "reference": "reference",
  "vwarehouseId": 10,
  "pWarehouseId": 10,
  "amount": 50,
  "salesChannel": 2,
  "tenantGroupBrand": "tenant",
  "outputDate": "2021-09-24",
  "regularization": true,
  "type": 2,
  "salesType": "salesType",
  "orderId": "1234ABCD",
  "inWarehousePrice": 50,
  "inWarehousePriceCurrency": "EUR",
  "productId": 1
}
Name Type Required Description
anonymous CreateOutputDto false none
Name Type Required Description
anonymous object false none
» productId integer true 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

curl -X PUT https://logistics-stock.sta.masstack.com/v1/orgs/yoigo/outputs/1 \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'reference': 'reference',
  'vwarehouseId': 10,
  'pWarehouseId': 10,
  'amount': 50,
  'salesChannel': 2,
  'tenantGroupBrand': 'tenant',
  'outputDate': '2021-09-24',
  'regularization': true,
  'type': 2,
  'salesType': 'salesType',
  'orderId': '1234ABCD',
  'inWarehousePrice': 50,
  'inWarehousePriceCurrency': 'EUR',
  'productId': 1
}" 

Responses

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

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