V2
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 |
| zip_code | string | false | Postal code (Mandatory if the status is CONFIRM) |
| 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 | false | Information related to sales associated with the order |
| 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 | CreateOrder | true | Information needed to create a new Order |
Request body - JsonObject
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| anonymous | Order | false | Represents an order with its main details. |
| Name | Type | Required | Description |
|---|---|---|---|
| anonymous | object | false | Represents a new order creation request/response including products and documentation. |
| » products | [Product] | true | [Info about the product] |
| » documentation | Documentation | false | Info about the documentation related to the order |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | CreateOrder |
| 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 |
| order_id | query | string | false | Order id in MasLogistics domain |
| order_id_crm | query | string | false | Order id in CRM domain |
| order_id_external | query | string | false | Order id in external domain |
| subscription_id | query | string | false | Subscription id |
| business_process | query | DirectBusinessProcess | false | Business process |
| delivery_type | query | DeliveryTypeEnum | false | Delivery type |
| identity_document_id | query | string | false | Client identity document id |
| product_identifier | query | string | false | Product identifier like IMEI, ICCID, Serial Number, etc. |
| product_code | query | string | false | The product reference |
| product_subscription_device_id | query | string | false | Product subscription device id |
| from_order_date | query | string(date-time) | false | From order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z |
| to_order_date | query | string(date-time) | false | To order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z |
| sort | query | string | false | Sort value, multiple values allowed, separate with coma |
Enumerated Values
| Property | Values |
|---|---|
| business_process | one of [PEDIDO, BREAKDOWN_DELIVERY, MIGRATION_DELIVERY] |
| delivery_type | one of [AGENCY, SHOP, HOME, COURIER] |
| 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 |
| 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 | ArrayOfOrderCommunications |
| 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 | false | 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
Expeditions Logistics
External Logistic Operator
Logistics Management