Logistics API
V2
The aim of the operations is to control the process for the return of products from consumption or end user points to the manufacturer or distributor for their recovery, repair, recycling or disposal.
Parameters
Name | Description |
---|---|
orgId*required string (path) | Organization name as it is registered in Mas-Stack |
body*required Pickup (body) | Information needed to create a new Order |
Request body - instance of Pickup
|
|
Name | Type | Required | Description |
---|---|---|---|
order | PickupData | true | none |
data_sales | DataSales | false | Information related to sales associated with the order |
client | Client | true | Object with client data |
shipping | ShippingPickup | true | Shipping information for a pickup |
products | [PickupProductBasic] | true | Info about the pickup Product |
Request example
|
|
Parameters
Name | Description |
---|---|
orgId*required string (path) | Organization name as it is registered in Mas-Stack |
pickup_id*required string (path) | Internal logistics pickup id |
Request example
Parameters
Name | Description |
---|---|
orgId*required string (path) | Organization name as it is registered in Mas-Stack |
pickup_id*required string (path) | Internal logistics pickup id |
size*required integer (query) | Page size |
page*required integer (query) | Page number |
Request example
Responses
Code | Description | Schema |
---|---|---|
200 | Success | ArrayOfProductWithExpedition |
4XX | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Response when an internal or unexpected error occurs. | [Error] |
Parameters
Name | Description |
---|---|
orgId*required string (path) | Organization name as it is registered in Mas-Stack |
pickup_id*required string (path) | Internal logistics pickup id |
product_id*required string (path) | Product id, usually subscription_device_id |
Request example
Responses
Code | Description | Schema |
---|---|---|
200 | Success | ProductWithExpedition |
4XX | Response for client error when some field in the request is missing or invalid. | [Error] |
5XX | Response when an internal or unexpected error occurs. | [Error] |
Endpoints
Direct Logistics
- PUT
/orgs/{orgId}/core/reservations/{reservation_id}/orgs/{orgId}/core/reservations/{reservation_id}
- POST
/orgs/{orgId}/core/reservations/orgs/{orgId}/core/reservations
- POST
/orgs/{orgId}/core/orders/orgs/{orgId}/core/orders
- GET
/orgs/{orgId}/core/orders/orgs/{orgId}/core/orders
- GET
/orgs/{orgId}/core/orders/{order_id}/orgs/{orgId}/core/orders/{order_id}
- GET
/orgs/{orgId}/core/orders/{order_id}/products/orgs/{orgId}/core/orders/{order_id}/products
- GET
/orgs/{orgId}/core/orders/{order_id}/products/{product_id}/orgs/{orgId}/core/orders/{order_id}/products/{product_id}
- GET
/orgs/{orgId}/core/orders/{order_id}/documents/orgs/{orgId}/core/orders/{order_id}/documents
- GET
/orgs/{orgId}/core/orders/{order_id}/documents/{document_id}/orgs/{orgId}/core/orders/{order_id}/documents/{document_id}
- POST
/orgs/{orgId}/core/orders/documents/sign/orgs/{orgId}/core/orders/documents/sign
- POST
/orgs/{orgId}/core/orders/{order_id}/cancellation/orgs/{orgId}/core/orders/{order_id}/cancellation
- POST
/orgs/{orgId}/core/orders/{order_id}/confirmDelivery/orgs/{orgId}/core/orders/{order_id}/confirmDelivery
- GET
/orgs/{orgId}/core/stock/orgs/{orgId}/core/stock
- GET
/orgs/{orgId}/core/expeditions/orgs/{orgId}/core/expeditions
- GET
/orgs/{orgId}/core/expeditions/{expedition_id}/orgs/{orgId}/core/expeditions/{expedition_id}
Reverse Logistics
- POST
/orgs/{orgId}/core/pickups/orgs/{orgId}/core/pickups
- GET
/orgs/{orgId}/core/pickups/{pickup_id}/orgs/{orgId}/core/pickups/{pickup_id}
- GET
/orgs/{orgId}/core/pickups/{pickup_id}/products/orgs/{orgId}/core/pickups/{pickup_id}/products
- GET
/orgs/{orgId}/core/pickups/{pickup_id}/products/{product_id}/orgs/{orgId}/core/pickups/{pickup_id}/products/{product_id}
External Logistic Operator