Select
Direct Logistics
The aim of the operations is to provide information about the available products as well as control the process for the delivery of the goods to the end customer.
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
reservation_id | path | string | true | Internal logistics reservation id |
body | body | ReservationStatus | true | Information needed to change the status to a reservation to confirmed or cancelled. |
Request body - instance of ReservationStatus
|
|
Name | Type | Required | Description |
---|---|---|---|
reservation_id | string | false | Reservation Id |
order_id | string | false | Order Id (newOrder service) |
status | string | true | Reservation status |
Property | Values |
---|---|
status | one of [CONFIRM, CANCEL] |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | ReservationStatus |
4XX | Unknown | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Unknown | Response when an internal or unexpected error occurs. | [Error] |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
body | body | Reservation | true | Information needed to create a new Reservation |
Request body - instance of Reservation
|
|
Name | Type | Required | Description |
---|---|---|---|
data_sales | DataSales | true | Data sales information associated with the reservation |
product_id | string | true | Product identifier |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | ReservationCreateResponse |
4XX | Unknown | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Unknown | Response when an internal or unexpected error occurs. | [Error] |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
body | body | Order | true | Information needed to create a new Order |
Request body - instance of Order
|
|
Name | Type | Required | Description |
---|---|---|---|
order | NewOrderData | true | Main order data, including ID and essential details |
data_sales | DataSales | false | Information related to sales associated with the order |
client | Client | true | Object with client data |
invoice | Invoice | false | Invoice information generated for the order |
shipping | Shipping | true | Shipping details, including address and delivery info |
products | [Product] | true | [Info about the product] |
documentation | Documentation | false | Info about the documentation related to the order |
Request example
|
|
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
order_id_crm | query | string | false | Order id in CRM domain |
size | query | integer | true | Page size |
page | query | integer | true | Page number |
sort | query | string | false | Sort value, multiple values allowed, separate with coma |
Enumerated Values
Property | Values |
---|---|
sort | one of [DATE_DESC, DATE_ASC] |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | ArrayOfOrders |
4XX | Unknown | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Unknown | Response when an internal or unexpected error occurs. | [Error] |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
order_id | path | string | true | Internal logistics order id |
Request example
|
|
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
order_id | path | string | true | Internal logistics order id |
size | query | integer | true | Page size |
page | query | integer | true | Page number |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | ArrayOfProductWithExpedition |
4XX | Unknown | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Unknown | Response when an internal or unexpected error occurs. | [Error] |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
order_id | path | string | true | Internal logistics order id |
product_id | path | string | true | Product id, usually subscription_device_id |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | ProductWithExpedition |
4XX | Unknown | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Unknown | Response when an internal or unexpected error occurs. | [Error] |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
order_id | path | string | true | Internal logistics order id |
size | query | integer | true | Page size |
page | query | integer | true | Page number |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | ArrayOfDocuments |
4XX | Unknown | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Unknown | Response when an internal or unexpected error occurs. | [Error] |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
order_id | path | string | true | Internal logistics order id |
document_id | path | string | true | The public document id managed by mas-logistics |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | DocumentWithUrl |
4XX | Unknown | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Unknown | Response when an internal or unexpected error occurs. | [Error] |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
size | query | integer | true | Page size |
page | query | integer | true | Page number |
sort | query | string | false | Sort value, multiple values allowed, separte with coma |
from | query | string(date-time) | false | Date from (min) the creation of the expedition in ISO 8601 format and UTC |
to | query | string(date-time) | false | Date to (max) the creation of the expedition in ISO 8601 format and UTC |
Enumerated Values
Property | Values |
---|---|
sort | one of [DATE_DESC, DATE_ASC] |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | ArrayOfExpeditions |
4XX | Unknown | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Unknown | Response when an internal or unexpected error occurs. | [Error] |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
expedition_id | path | string | true | Internal logistics expedition id |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | Expedition |
4XX | Unknown | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Unknown | Response when an internal or unexpected error occurs. | [Error] |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
order_id | path | string | true | Internal logistics order id |
body | body | CancellationRequest | true | Information needed to create a cancellation request |
Request body - instance of CancellationRequest
|
|
Name | Type | Required | Description |
---|---|---|---|
cancellation_request_id | string | false | The identifier of the cancellation request in MasLogistics domain. (Read only parameter, only for GET requests) |
reason | string | true | none |
products | [ProductBasic] | true | [Info about the product] |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | CancellationRequest |
4XX | Unknown | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Unknown | Response when an internal or unexpected error occurs. | [Error] |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
order_id | path | string | true | Internal logistics order id |
body | body | DeliveryConfirmationRequest | true | Information needed to create a cancellation request |
Request body - instance of DeliveryConfirmationRequest
|
|
Name | Type | Required | Description |
---|---|---|---|
products | [ProductBasic] | false | [Info about the product] |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | DeliveryConfirmationRequest |
4XX | Unknown | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Unknown | Response when an internal or unexpected error occurs. | [Error] |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
salesChannel | query | DataSalesChannelEnum | true | Sales channel identifier |
salesType | query | DataSalesTypeEnum | false | Sales Type identifier |
productId | query | string | false | Product identifier |
Enumerated Values
Property | Values |
---|---|
salesChannel | one of [TELE_SALE_CARE, EXCLUSIVE_POS, FRANCHISE_POS, INDIRECT_POS, SELF_SALE_CARE, D2D] |
salesType | one of [NEW_SALE, ADD_SUBSCRIPTION_TO_BUNDLE, MIGRATION, EXISTENT_SUBSCRIPTION] |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | ArrayOfStockItem |
4XX | Unknown | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Unknown | Response when an internal or unexpected error occurs. | [Error] |
Endpoints
Direct Logistics
Reverse Logistics
External Logistic Operator