MasLogistics API
Logistics platform for managing device expeditions, stock operations, and external retailer integrations.
- Staging
- Production
- Authentication
- Bearer · JWT
- Contact
- MasLogistics Squad · mas_logistics@masmovil.com
About this API
I am MasLogistics API, my intention is to provide mas logistics integrations.
Resources 6
- Direct Logistics 15 endpoints
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.
- GET Get a reservation
/orgs /{orgId} /core /reservations /{reservation_id} - PUT Update reservation status (Confirm/Cancel)
/orgs /{orgId} /core /reservations /{reservation_id} - POST Create a reservation
/orgs /{orgId} /core /reservations - GET Get list of orders
/orgs /{orgId} /core /orders - POST Create an order
/orgs /{orgId} /core /orders
- GET Get a reservation
- Reverse Logistics 9 endpoints
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.
- GET Get list of pickups
/orgs /{orgId} /core /pickups - POST Create a pickup
/orgs /{orgId} /core /pickups - POST Validate a pickup OTP for a delivery point
/orgs /{orgId} /core /pickups /validateOTP - GET Get a pickup by id
/orgs /{orgId} /core /pickups /{pickup_id} - POST Create a request to cancel a pickup
/orgs /{orgId} /core /pickups /{pickup_id} /cancellation
- GET Get list of pickups
- Swap Logistics 5 endpoints
The aim of the operations is to provide information about the available products as well as control the swap process.
- GET Get list of swaps
/orgs /{orgId} /core /swaps - POST Create a swap
/orgs /{orgId} /core /swaps - GET Get a swap by id
/orgs /{orgId} /core /swaps /{swap_id} - GET Get the list of products for a swap
/orgs /{orgId} /core /swaps /{swap_id} /products - GET Get a product for a swap
/orgs /{orgId} /core /swaps /{swap_id} /products /{product_id}
- GET Get list of swaps
- Expeditions Logistics 2 endpoints
The aim of the operations is to provide information about expeditions for both direct and reverse logistics processes. Expeditions represent the shipment tracking and status of orders and pickups.
- External Logistic Operator 2 endpoints
The aim of the operations is to provide logistic information about external logistic operator orders
- Logistics Management 23 endpoints
Endpoints for managing logistics configurations
- GET Get the list of recoverable devices
/orgs /{orgId} /management /recoverable-devices - POST Add a device reference to the recoverable-device whitelist
/orgs /{orgId} /management /recoverable-devices - GET Get a recoverable device by reference
/orgs /{orgId} /management /recoverable-devices /{reference} - DELETE Remove a device reference from the recoverable-device whitelist
/orgs /{orgId} /management /recoverable-devices /{reference} - GET Get list of communication configurations
/orgs /{orgId} /management /communications
- GET Get the list of recoverable devices
MasLogistics API
Logistics platform for managing device expeditions, stock operations, and external retailer integrations.
- Staging
- Production
- Authentication
- Bearer · JWT
- Contact
- MasLogistics Squad · mas_logistics@masmovil.com
About this API
I am MasLogistics API, my intention is to provide mas logistics integrations.
Resources 6
- Direct Logistics 15 endpoints
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.
- GET Get a reservation
/orgs /{orgId} /core /reservations /{reservation_id} - PUT Update reservation status (Confirm/Cancel)
/orgs /{orgId} /core /reservations /{reservation_id} - POST Create a reservation
/orgs /{orgId} /core /reservations - GET Get list of orders
/orgs /{orgId} /core /orders - POST Create an order
/orgs /{orgId} /core /orders
- GET Get a reservation
- Reverse Logistics 9 endpoints
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.
- GET Get list of pickups
/orgs /{orgId} /core /pickups - POST Create a pickup
/orgs /{orgId} /core /pickups - POST Validate a pickup OTP for a delivery point
/orgs /{orgId} /core /pickups /validateOTP - GET Get a pickup by id
/orgs /{orgId} /core /pickups /{pickup_id} - POST Create a request to cancel a pickup
/orgs /{orgId} /core /pickups /{pickup_id} /cancellation
- GET Get list of pickups
- Swap Logistics 5 endpoints
The aim of the operations is to provide information about the available products as well as control the swap process.
- GET Get list of swaps
/orgs /{orgId} /core /swaps - POST Create a swap
/orgs /{orgId} /core /swaps - GET Get a swap by id
/orgs /{orgId} /core /swaps /{swap_id} - GET Get the list of products for a swap
/orgs /{orgId} /core /swaps /{swap_id} /products - GET Get a product for a swap
/orgs /{orgId} /core /swaps /{swap_id} /products /{product_id}
- GET Get list of swaps
- Expeditions Logistics 2 endpoints
The aim of the operations is to provide information about expeditions for both direct and reverse logistics processes. Expeditions represent the shipment tracking and status of orders and pickups.
- External Logistic Operator 2 endpoints
The aim of the operations is to provide logistic information about external logistic operator orders
- Logistics Management 23 endpoints
Endpoints for managing logistics configurations
- GET Get the list of recoverable devices
/orgs /{orgId} /management /recoverable-devices - POST Add a device reference to the recoverable-device whitelist
/orgs /{orgId} /management /recoverable-devices - GET Get a recoverable device by reference
/orgs /{orgId} /management /recoverable-devices /{reference} - DELETE Remove a device reference from the recoverable-device whitelist
/orgs /{orgId} /management /recoverable-devices /{reference} - GET Get list of communication configurations
/orgs /{orgId} /management /communications
- GET Get the list of recoverable devices
Direct Logistics
Get a reservation
/orgs /{orgId} /core /reservations /{reservation_id} Authenticated with a bearer token in the Authorization header Authentication
Retrieve a reservation by its internal reservation ID
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
reservation_idstringRequiredInternal reservation ID
Responses
Success
-
reservation_idstringInternal reservation ID
-
reservation_id_externalstringExternal reservation ID
-
order_idstring | nullInternal order ID associated with the reservation
-
order_id_crmstring | nullCRM order ID associated with the reservation
-
product_referencestringProduct reference
-
statestringReservation state
-
tenantstringTenant or organization
-
durationstring | nullDuration of the reservation
-
valid_untilstring | nullTimestamp when the reservation expires
-
create_datestringReservation creation timestamp
-
update_datestringReservation last update timestamp
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Update reservation status (Confirm/Cancel)
/orgs /{orgId} /core /reservations /{reservation_id} Authenticated with a bearer token in the Authorization header Authentication
Update reservation status (Confirm/Cancel)
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
reservation_idstringRequiredInternal logistics reservation id
Request body application/json Required
Information needed to change the status to a reservation to confirmed or cancelled.
-
reservation_idstringReservation Id
-
order_idstringOrder Id (newOrder service)
-
statusstring RequiredReservation status
-
zip_codestringPostal code (Mandatory if the status is CONFIRM)
Responses
Success
-
reservation_idstringReservation Id
-
order_idstringOrder Id (newOrder service)
-
statusstring RequiredReservation status
-
zip_codestringPostal code (Mandatory if the status is CONFIRM)
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Create a reservation
/orgs /{orgId} /core /reservations Authenticated with a bearer token in the Authorization header Authentication
Create a new reservation
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Request body application/json Required
Information needed to create a new Reservation
-
data_salesobjectInformation related to sales associated with the order
-
agentstringclient reference
-
channelstringData sales channel
-
typestringData sales type
-
groupstringData sales group
Show 12 values Hide 12 values
POSONLINE_DISTRIBUTIONINBOUNDOUTBOUNDRETENTIONLOYALTYUNSUBSCRIBECANCELLATIONSUNDER_CUSTOMER_BASEBROADCAST_CUSTOMER_BASEADMINISTRATORCUSTOMER_SUPPORT
-
-
product_idstring RequiredProduct identifier
Responses
Success
-
product_idstringThe product Id
-
reservation_idstringReservation Id
-
total_duration_in_secondsnumberThe time in seconds that the reservation is available before expire.
-
valid_untilstringThe timestamp when the reservation will expire in ISO 8601 format and UTC
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Get list of orders
/orgs /{orgId} /core /orders Authenticated with a bearer token in the Authorization header Authentication
Get list of orders filtered by the given parameters
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
order_idstring[]Order id in mas-logistics (Multiple values allowed separated with coma (','))
order_id_crmstring[]Order id in crm (Multiple values allowed separated with coma (','))
order_id_externalstring[]Order id in the external system, usually the logistic operator (Multiple values allowed separated with coma (','))
subscription_idstring[]Subscription id (Multiple values allowed separated with coma (','))
business_processstring[]Business process (Multiple values allowed separated with coma (','))
delivery_typestring[]Delivery type (Multiple values allowed separated with coma (','))
identity_document_idstring[]Client identity document id (Multiple values allowed separated with coma (','))
product_identifierstring[]Product identifier like IMEI, ICCID, Serial Number, etc (Multiple values allowed separated with coma (','))
product_codestring[]The product reference (Multiple values allowed separated with coma (','))
product_subscription_device_idstring[]Product subscription device id (Multiple values allowed separated with coma (','))
delivery_point_idstring[]Delivery point id, like the store id for SHOP deliveries (Multiple values allowed separated with coma (','))
expedition_status_valuestring[]Current status value of the order expedition (Multiple values allowed separated with coma (','))
Show 89 valuesHide 89 values
ABANDONEDABSENT_INCIDENCEACCEPTEDACCEPTED_BY_MANUFACTURERCANCELLATION_REQUESTCANCELLEDCOLLECTEDCOLLECTION_REQUESTCOMPLETE_RMACONTRACT_GENERATEDCONTRACT_MISSINGCONTRACT_NOT_RETRIEVEDCONTRACT_RETRIEVEDCONTRACT_SIGNEDCUSTOMER_CONTACTEDDELIVEREDDELIVERED_CUSTODIANDELIVERED_IN_DELIVERY_POINTDELIVERED_TO_MANUFACTURERDELIVERED_TO_OLDELIVERY_IN_WAREHOUSEDELIVERY_INCIDENCEDELIVERY_REQUESTEDDELIVERY_TO_MANUFACTURERDESTROYEDDISASTERDOCUMENTATION_SENTERRORERROR_RMAEXPEDITION_CREATEDEXPIREDFAIL_CONTACTFRAUDIN_DELIVERYIN_DELIVERY_TO_MANUFACTURERIN_TRANSITIN_WAREHOUSEINCIDENCEMISSING_DATANOT_COLLECTEDNOT_DELIVEREDNOT_FRAUDNOT_PENALIZEDNOT_PICKUPNOT_SENTON_DEPARTUREORDER_MODIFIEDORDER_READYORDER_RECEIVEDOUT_OF_STOCKPAIDPENALIZEDPENDING_CUSTOMER_CONTACTPENDING_PENALTYPENDING_RMAPERMANENCE_ALREADY_LOADEDPERMANENCE_ASSOCIATEDPICKINGPICKING_STARTEDPICKUP_ACORDEDPICKUP_DONEPICKUP_FAILPICKUP_IN_PROCESSPICKUP_MODIFIEDPICKUP_REQUESTPOSSIBLE_FRAUDPREPICKINGREADY_TO_SHIPPINGREFOUND_PENDINGREJECTEDREJECTED_BY_MANUFACTURERRETURNEDRETURNED_TO_CLIENTRETURNED_TO_OLRETURNED_TO_WAREHOUSESENTSENT_TO_MANUFACTURERSENT_TO_OLSENT_TO_WAREHOUSESINISTERSTART_EXTRACTIONSTARTEDSTOREDSTORED_IN_OLTRANSPORT_INCIDENCEUNKNOWNWAREHOUSE_DELIVEREDWAREHOUSE_EXITWAREHOUSE_REJECTED
from_order_datestring (date-time)From order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z
to_order_datestring (date-time)To order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z
sortstringSort value
extraordinarybooleanFilter by extraordinary operations flag
parent_order_idstringFilter by the origin order id of extraordinary operations
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
ordersobject[]List of Orders
-
orderobject RequiredMain order data, including ID and essential details
-
reservation_idstring | nullThe reservation identifier
-
subscription_idstringIdentifier of a customer subscription, it can have several subscription_device_id associated to its line. Mandatory value.
-
work_orderstringWork Order
-
order_idstringThe order identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_crmstringThe order identifier of the requester. For example, the ItemNumber.
-
order_id_externalstringOrder id in external domain
-
business_processstringThe business process
-
order_datestring (date-time)Order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z (Read only parameter, only for GET requests)
-
reasonstringThe reason of the order
-
convergentbooleanIs Order convergent
-
languagestringOrder language
-
delivery_typestringThe delivery type
-
extraordinarybooleanWhether this is an extraordinary operation (e.g. extraordinary order, original order lost)
-
parent_order_idstring | nullThe order id of the origin order from which this extraordinary operation is created
-
-
data_salesobjectInformation related to sales associated with the order
-
agentstringclient reference
-
channelstringData sales channel
-
typestringData sales type
-
groupstringData sales group
Show 12 values Hide 12 values
POSONLINE_DISTRIBUTIONINBOUNDOUTBOUNDRETENTIONLOYALTYUNSUBSCRIBECANCELLATIONSUNDER_CUSTOMER_BASEBROADCAST_CUSTOMER_BASEADMINISTRATORCUSTOMER_SUPPORT
-
-
clientobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
invoiceobjectInvoice information generated for the order
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
clientobjectObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
data_invoiceobjectData invoice information
-
basenumber Requiredbase invoice
-
tax_valuenumber Requiredinvoice tax value
-
total_invoicenumber Requiredtotal invoice
-
discountnumberdiscount
-
payment_typeinteger Requiredpayment type
-
residual_valuenumberFinal Payment
-
initial_paymentnumberInitial payment
-
feeobjectFee information
-
amountnumberFee amount
-
durationintegerFee duration
-
-
-
-
shippingobject RequiredShipping details, including address and delivery info
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestring RequiredClient name
-
surnamesstring[] RequiredClient surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
data_deliveryobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestring RequiredDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusiveboolean RequiredDelivery to exact person
-
verify_identityboolean RequiredThe carrier must verify the identity document
-
retrieve_contractboolean RequiredThe carrier must return the signed document
-
group_bystringGroup by
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
delivery_typestringThe delivery type
-
ol_commentsstringinformation or instructions for OL
-
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Create an order
/orgs /{orgId} /core /orders Authenticated with a bearer token in the Authorization header Authentication
Create an new order
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Request body application/json Required
Information needed to create a new order
-
orderobject RequiredMain order data, including ID and essential details
-
reservation_idstring | nullThe reservation identifier
-
subscription_idstringIdentifier of a customer subscription, it can have several subscription_device_id associated to its line. Mandatory value.
-
work_orderstringWork Order
-
order_idstringThe order identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_crmstringThe order identifier of the requester. For example, the ItemNumber.
-
order_id_externalstringOrder id in external domain
-
business_processstringThe business process
-
order_datestring (date-time)Order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z (Read only parameter, only for GET requests)
-
reasonstringThe reason of the order
-
convergentbooleanIs Order convergent
-
languagestringOrder language
-
delivery_typestringThe delivery type
-
extraordinarybooleanWhether this is an extraordinary operation (e.g. extraordinary order, original order lost)
-
parent_order_idstring | nullThe order id of the origin order from which this extraordinary operation is created
-
-
data_salesobjectInformation related to sales associated with the order
-
agentstringclient reference
-
channelstringData sales channel
-
typestringData sales type
-
groupstringData sales group
Show 12 values Hide 12 values
POSONLINE_DISTRIBUTIONINBOUNDOUTBOUNDRETENTIONLOYALTYUNSUBSCRIBECANCELLATIONSUNDER_CUSTOMER_BASEBROADCAST_CUSTOMER_BASEADMINISTRATORCUSTOMER_SUPPORT
-
-
clientobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
invoiceobjectInvoice information generated for the order
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
clientobjectObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
data_invoiceobjectData invoice information
-
basenumber Requiredbase invoice
-
tax_valuenumber Requiredinvoice tax value
-
total_invoicenumber Requiredtotal invoice
-
discountnumberdiscount
-
payment_typeinteger Requiredpayment type
-
residual_valuenumberFinal Payment
-
initial_paymentnumberInitial payment
-
feeobjectFee information
-
amountnumberFee amount
-
durationintegerFee duration
-
-
-
-
shippingobject RequiredShipping details, including address and delivery info
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestring RequiredClient name
-
surnamesstring[] RequiredClient surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
data_deliveryobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestring RequiredDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusiveboolean RequiredDelivery to exact person
-
verify_identityboolean RequiredThe carrier must verify the identity document
-
retrieve_contractboolean RequiredThe carrier must return the signed document
-
group_bystringGroup by
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
delivery_typestringThe delivery type
-
ol_commentsstringinformation or instructions for OL
-
-
-
productsobject[] Required-
product_idstringThe product id in mas-logistics domain, usually suscription_device_id. (Read only parameter, only for GET requests)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringThe product type. It is mandatory when using generic product_code
-
product_type_idintegerProduct Type Id
-
product_unit_pricenumberProduct Unit price
-
icc_imeistringProduct imei
-
identifierstringThe physical product identifier, usually SerialNumber/MAC/IMEI. (Read only parameter, only for GET requests)
-
quantityintegerProduct quantity
-
product_commentsstringProduct comments
-
msisdnstringMSISDN associated
-
financedbooleanIs product financed
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
remaining_paymentnumberRemaining payment amount to pay on delivery
-
invoicedbooleanIf this value is false it indicates that the product is on lease if it is true it is on sale and we should have the data_invoice info.
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
-
documentationobjectInfo about the documentation related to the order
-
letter_typestringLetter type. Possible values: "H", "T", "TV", "RW", "SR", "WF", "WP", "JN", "JP", "JR", "LC", "N", "PP0", "PP8", "R"
-
documentsobject[]List of documents
-
document_idstringPublic document id managed by mas-logistics, not the id managed by mas-documents
-
document_typestringDocument Type
-
copiesintegerThe number of copies that must be printed
-
signablebooleanDefines if the document is signable in the MasLogistics context using the signOrderDocuments operation
-
signedbooleanDefines if the document is signed. If the document is not signable, this field will never be true
-
-
Responses
Success
-
orderobject RequiredMain order data, including ID and essential details
-
reservation_idstring | nullThe reservation identifier
-
subscription_idstringIdentifier of a customer subscription, it can have several subscription_device_id associated to its line. Mandatory value.
-
work_orderstringWork Order
-
order_idstringThe order identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_crmstringThe order identifier of the requester. For example, the ItemNumber.
-
order_id_externalstringOrder id in external domain
-
business_processstringThe business process
-
order_datestring (date-time)Order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z (Read only parameter, only for GET requests)
-
reasonstringThe reason of the order
-
convergentbooleanIs Order convergent
-
languagestringOrder language
-
delivery_typestringThe delivery type
-
extraordinarybooleanWhether this is an extraordinary operation (e.g. extraordinary order, original order lost)
-
parent_order_idstring | nullThe order id of the origin order from which this extraordinary operation is created
-
-
data_salesobjectInformation related to sales associated with the order
-
agentstringclient reference
-
channelstringData sales channel
-
typestringData sales type
-
groupstringData sales group
Show 12 values Hide 12 values
POSONLINE_DISTRIBUTIONINBOUNDOUTBOUNDRETENTIONLOYALTYUNSUBSCRIBECANCELLATIONSUNDER_CUSTOMER_BASEBROADCAST_CUSTOMER_BASEADMINISTRATORCUSTOMER_SUPPORT
-
-
clientobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
invoiceobjectInvoice information generated for the order
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
clientobjectObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
data_invoiceobjectData invoice information
-
basenumber Requiredbase invoice
-
tax_valuenumber Requiredinvoice tax value
-
total_invoicenumber Requiredtotal invoice
-
discountnumberdiscount
-
payment_typeinteger Requiredpayment type
-
residual_valuenumberFinal Payment
-
initial_paymentnumberInitial payment
-
feeobjectFee information
-
amountnumberFee amount
-
durationintegerFee duration
-
-
-
-
shippingobject RequiredShipping details, including address and delivery info
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestring RequiredClient name
-
surnamesstring[] RequiredClient surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
data_deliveryobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestring RequiredDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusiveboolean RequiredDelivery to exact person
-
verify_identityboolean RequiredThe carrier must verify the identity document
-
retrieve_contractboolean RequiredThe carrier must return the signed document
-
group_bystringGroup by
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
delivery_typestringThe delivery type
-
ol_commentsstringinformation or instructions for OL
-
-
-
productsobject[] Required-
product_idstringThe product id in mas-logistics domain, usually suscription_device_id. (Read only parameter, only for GET requests)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringThe product type. It is mandatory when using generic product_code
-
product_type_idintegerProduct Type Id
-
product_unit_pricenumberProduct Unit price
-
icc_imeistringProduct imei
-
identifierstringThe physical product identifier, usually SerialNumber/MAC/IMEI. (Read only parameter, only for GET requests)
-
quantityintegerProduct quantity
-
product_commentsstringProduct comments
-
msisdnstringMSISDN associated
-
financedbooleanIs product financed
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
remaining_paymentnumberRemaining payment amount to pay on delivery
-
invoicedbooleanIf this value is false it indicates that the product is on lease if it is true it is on sale and we should have the data_invoice info.
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
-
documentationobjectInfo about the documentation related to the order
-
letter_typestringLetter type. Possible values: "H", "T", "TV", "RW", "SR", "WF", "WP", "JN", "JP", "JR", "LC", "N", "PP0", "PP8", "R"
-
documentsobject[]List of documents
-
document_idstringPublic document id managed by mas-logistics, not the id managed by mas-documents
-
document_typestringDocument Type
-
copiesintegerThe number of copies that must be printed
-
signablebooleanDefines if the document is signable in the MasLogistics context using the signOrderDocuments operation
-
signedbooleanDefines if the document is signed. If the document is not signable, this field will never be true
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Get an order by id
/orgs /{orgId} /core /orders /{order_id} Authenticated with a bearer token in the Authorization header Authentication
Get an order by the order_id
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
order_idstringRequiredInternal logistics order id
Responses
Success
-
orderobject RequiredMain order data, including ID and essential details
-
reservation_idstring | nullThe reservation identifier
-
subscription_idstringIdentifier of a customer subscription, it can have several subscription_device_id associated to its line. Mandatory value.
-
work_orderstringWork Order
-
order_idstringThe order identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_crmstringThe order identifier of the requester. For example, the ItemNumber.
-
order_id_externalstringOrder id in external domain
-
business_processstringThe business process
-
order_datestring (date-time)Order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z (Read only parameter, only for GET requests)
-
reasonstringThe reason of the order
-
convergentbooleanIs Order convergent
-
languagestringOrder language
-
delivery_typestringThe delivery type
-
extraordinarybooleanWhether this is an extraordinary operation (e.g. extraordinary order, original order lost)
-
parent_order_idstring | nullThe order id of the origin order from which this extraordinary operation is created
-
-
data_salesobjectInformation related to sales associated with the order
-
agentstringclient reference
-
channelstringData sales channel
-
typestringData sales type
-
groupstringData sales group
Show 12 values Hide 12 values
POSONLINE_DISTRIBUTIONINBOUNDOUTBOUNDRETENTIONLOYALTYUNSUBSCRIBECANCELLATIONSUNDER_CUSTOMER_BASEBROADCAST_CUSTOMER_BASEADMINISTRATORCUSTOMER_SUPPORT
-
-
clientobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
invoiceobjectInvoice information generated for the order
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
clientobjectObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
data_invoiceobjectData invoice information
-
basenumber Requiredbase invoice
-
tax_valuenumber Requiredinvoice tax value
-
total_invoicenumber Requiredtotal invoice
-
discountnumberdiscount
-
payment_typeinteger Requiredpayment type
-
residual_valuenumberFinal Payment
-
initial_paymentnumberInitial payment
-
feeobjectFee information
-
amountnumberFee amount
-
durationintegerFee duration
-
-
-
-
shippingobject RequiredShipping details, including address and delivery info
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestring RequiredClient name
-
surnamesstring[] RequiredClient surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
data_deliveryobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestring RequiredDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusiveboolean RequiredDelivery to exact person
-
verify_identityboolean RequiredThe carrier must verify the identity document
-
retrieve_contractboolean RequiredThe carrier must return the signed document
-
group_bystringGroup by
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
delivery_typestringThe delivery type
-
ol_commentsstringinformation or instructions for OL
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Get the list of products for an order
/orgs /{orgId} /core /orders /{order_id} /products Authenticated with a bearer token in the Authorization header Authentication
Get the list of products for an order
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
order_idstringRequiredInternal logistics order id
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
productsobject[]Info about the product with the expedition
-
product_idstringThe product id in mas-logistics domain, usually suscription_device_id. (Read only parameter, only for GET requests)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringThe product type. It is mandatory when using generic product_code
-
product_type_idintegerProduct Type Id
-
product_unit_pricenumberProduct Unit price
-
icc_imeistringProduct imei
-
identifierstringThe physical product identifier, usually SerialNumber/MAC/IMEI. (Read only parameter, only for GET requests)
-
quantityintegerProduct quantity
-
product_commentsstringProduct comments
-
msisdnstringMSISDN associated
-
financedbooleanIs product financed
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
remaining_paymentnumberRemaining payment amount to pay on delivery
-
invoicedbooleanIf this value is false it indicates that the product is on lease if it is true it is on sale and we should have the data_invoice info.
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
associated_expeditionobjectAssociated expedition info
-
expedition_idstringUnique expedition identifier
-
current_statusobjectInfo about the status of the expedition
-
idstringstatus id
-
valuestringstatus value
Show 89 values Hide 89 values
ABANDONEDABSENT_INCIDENCEACCEPTEDACCEPTED_BY_MANUFACTURERCANCELLATION_REQUESTCANCELLEDCOLLECTEDCOLLECTION_REQUESTCOMPLETE_RMACONTRACT_GENERATEDCONTRACT_MISSINGCONTRACT_NOT_RETRIEVEDCONTRACT_RETRIEVEDCONTRACT_SIGNEDCUSTOMER_CONTACTEDDELIVEREDDELIVERED_CUSTODIANDELIVERED_IN_DELIVERY_POINTDELIVERED_TO_MANUFACTURERDELIVERED_TO_OLDELIVERY_IN_WAREHOUSEDELIVERY_INCIDENCEDELIVERY_REQUESTEDDELIVERY_TO_MANUFACTURERDESTROYEDDISASTERDOCUMENTATION_SENTERRORERROR_RMAEXPEDITION_CREATEDEXPIREDFAIL_CONTACTFRAUDIN_DELIVERYIN_DELIVERY_TO_MANUFACTURERIN_TRANSITIN_WAREHOUSEINCIDENCEMISSING_DATANOT_COLLECTEDNOT_DELIVEREDNOT_FRAUDNOT_PENALIZEDNOT_PICKUPNOT_SENTON_DEPARTUREORDER_MODIFIEDORDER_READYORDER_RECEIVEDOUT_OF_STOCKPAIDPENALIZEDPENDING_CUSTOMER_CONTACTPENDING_PENALTYPENDING_RMAPERMANENCE_ALREADY_LOADEDPERMANENCE_ASSOCIATEDPICKINGPICKING_STARTEDPICKUP_ACORDEDPICKUP_DONEPICKUP_FAILPICKUP_IN_PROCESSPICKUP_MODIFIEDPICKUP_REQUESTPOSSIBLE_FRAUDPREPICKINGREADY_TO_SHIPPINGREFOUND_PENDINGREJECTEDREJECTED_BY_MANUFACTURERRETURNEDRETURNED_TO_CLIENTRETURNED_TO_OLRETURNED_TO_WAREHOUSESENTSENT_TO_MANUFACTURERSENT_TO_OLSENT_TO_WAREHOUSESINISTERSTART_EXTRACTIONSTARTEDSTOREDSTORED_IN_OLTRANSPORT_INCIDENCEUNKNOWNWAREHOUSE_DELIVEREDWAREHOUSE_EXITWAREHOUSE_REJECTED
-
descriptionstringstatus description
-
finalbooleanIndicates if the status is a final state of an expedition
-
reshippablebooleanIndicates if the status is reshippable in a new expedition, but not in this one
-
reason_codestring | nullreason for the status, if needed
-
reason_descriptionstring | nullreason description, if needed
-
timestampstringstatus date
-
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Get a product for an order
/orgs /{orgId} /core /orders /{order_id} /products /{product_id} Authenticated with a bearer token in the Authorization header Authentication
Get a product for an order
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
order_idstringRequiredInternal logistics order id
product_idstringRequiredProduct id, usually subscription_device_id
Responses
Success
-
product_idstringThe product id in mas-logistics domain, usually suscription_device_id. (Read only parameter, only for GET requests)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringThe product type. It is mandatory when using generic product_code
-
product_type_idintegerProduct Type Id
-
product_unit_pricenumberProduct Unit price
-
icc_imeistringProduct imei
-
identifierstringThe physical product identifier, usually SerialNumber/MAC/IMEI. (Read only parameter, only for GET requests)
-
quantityintegerProduct quantity
-
product_commentsstringProduct comments
-
msisdnstringMSISDN associated
-
financedbooleanIs product financed
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
remaining_paymentnumberRemaining payment amount to pay on delivery
-
invoicedbooleanIf this value is false it indicates that the product is on lease if it is true it is on sale and we should have the data_invoice info.
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
associated_expeditionobjectAssociated expedition info
-
expedition_idstringUnique expedition identifier
-
current_statusobjectInfo about the status of the expedition
-
idstringstatus id
-
valuestringstatus value
Show 89 values Hide 89 values
ABANDONEDABSENT_INCIDENCEACCEPTEDACCEPTED_BY_MANUFACTURERCANCELLATION_REQUESTCANCELLEDCOLLECTEDCOLLECTION_REQUESTCOMPLETE_RMACONTRACT_GENERATEDCONTRACT_MISSINGCONTRACT_NOT_RETRIEVEDCONTRACT_RETRIEVEDCONTRACT_SIGNEDCUSTOMER_CONTACTEDDELIVEREDDELIVERED_CUSTODIANDELIVERED_IN_DELIVERY_POINTDELIVERED_TO_MANUFACTURERDELIVERED_TO_OLDELIVERY_IN_WAREHOUSEDELIVERY_INCIDENCEDELIVERY_REQUESTEDDELIVERY_TO_MANUFACTURERDESTROYEDDISASTERDOCUMENTATION_SENTERRORERROR_RMAEXPEDITION_CREATEDEXPIREDFAIL_CONTACTFRAUDIN_DELIVERYIN_DELIVERY_TO_MANUFACTURERIN_TRANSITIN_WAREHOUSEINCIDENCEMISSING_DATANOT_COLLECTEDNOT_DELIVEREDNOT_FRAUDNOT_PENALIZEDNOT_PICKUPNOT_SENTON_DEPARTUREORDER_MODIFIEDORDER_READYORDER_RECEIVEDOUT_OF_STOCKPAIDPENALIZEDPENDING_CUSTOMER_CONTACTPENDING_PENALTYPENDING_RMAPERMANENCE_ALREADY_LOADEDPERMANENCE_ASSOCIATEDPICKINGPICKING_STARTEDPICKUP_ACORDEDPICKUP_DONEPICKUP_FAILPICKUP_IN_PROCESSPICKUP_MODIFIEDPICKUP_REQUESTPOSSIBLE_FRAUDPREPICKINGREADY_TO_SHIPPINGREFOUND_PENDINGREJECTEDREJECTED_BY_MANUFACTURERRETURNEDRETURNED_TO_CLIENTRETURNED_TO_OLRETURNED_TO_WAREHOUSESENTSENT_TO_MANUFACTURERSENT_TO_OLSENT_TO_WAREHOUSESINISTERSTART_EXTRACTIONSTARTEDSTOREDSTORED_IN_OLTRANSPORT_INCIDENCEUNKNOWNWAREHOUSE_DELIVEREDWAREHOUSE_EXITWAREHOUSE_REJECTED
-
descriptionstringstatus description
-
finalbooleanIndicates if the status is a final state of an expedition
-
reshippablebooleanIndicates if the status is reshippable in a new expedition, but not in this one
-
reason_codestring | nullreason for the status, if needed
-
reason_descriptionstring | nullreason description, if needed
-
timestampstringstatus date
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Get the documents list for an order
/orgs /{orgId} /core /orders /{order_id} /documents Authenticated with a bearer token in the Authorization header Authentication
Get the documents list for an order
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
order_idstringRequiredInternal logistics order id
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
documentsobject[]-
document_idstringPublic document id managed by mas-logistics, not the id managed by mas-documents
-
document_typestringDocument Type
-
copiesintegerThe number of copies that must be printed
-
signablebooleanDefines if the document is signable in the MasLogistics context using the signOrderDocuments operation
-
signedbooleanDefines if the document is signed. If the document is not signable, this field will never be true
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Get a document for an order
/orgs /{orgId} /core /orders /{order_id} /documents /{document_id} Authenticated with a bearer token in the Authorization header Authentication
Get a document for an order
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
order_idstringRequiredInternal logistics order id
document_idstringRequiredThe public document id managed by mas-logistics
Responses
Success
-
document_idstringPublic document id managed by mas-logistics, not the id managed by mas-documents
-
document_typestringDocument Type
-
copiesintegerThe number of copies that must be printed
-
signablebooleanDefines if the document is signable in the MasLogistics context using the signOrderDocuments operation
-
signedbooleanDefines if the document is signed. If the document is not signable, this field will never be true
-
urlstringThe public url to download the document
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Get list of communications sent for an order
/orgs /{orgId} /core /orders /{order_id} /communications Authenticated with a bearer token in the Authorization header Authentication
Get list of communications sent for an order
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
order_idstringRequiredInternal logistics order id
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
communicationsobject[]Communications sent for the order
-
order_communication_idstringUnique identifier for the order communication
-
order_idstringInternal logistics order id
-
communication_idstringCommunication identifier
-
trigger_communication_idstring | nullTrigger communication identifier that caused this communication
-
external_communication_idstring | nullExternal communication identifier
-
template_idstringTemplate identifier used for the communication
-
sentbooleanIndicates if the communication was sent
-
reasonstring | nullReason for the communication
-
eventstring | nullEvent that triggered the communication
-
sent_atstring | nullTimestamp when the communication was sent
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Sign documents related to a set of orders
/orgs /{orgId} /core /orders /documents /sign Authenticated with a bearer token in the Authorization header Authentication
Sign the signeable documents related to a set of orders
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Request body application/json Required
Information needed to sign the documents
-
order_idsstring[]Order ids to sign
Responses
Success
-
sign_idstringThe sign id from MasDocuments
-
documentsobject[]-
document_idstringPublic document id managed by mas-logistics, not the id managed by mas-documents
-
document_typestringDocument Type
-
copiesintegerThe number of copies that must be printed
-
signablebooleanDefines if the document is signable in the MasLogistics context using the signOrderDocuments operation
-
signedbooleanDefines if the document is signed. If the document is not signable, this field will never be true
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Create a request to cancel an order
/orgs /{orgId} /core /orders /{order_id} /cancellation Authenticated with a bearer token in the Authorization header Authentication
Create a request to cancel an order. Its request could be accepted or declined asynchronously
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
order_idstringRequiredInternal logistics order id
Request body application/json Required
Information needed to create a cancellation request
-
cancellation_request_idstringThe identifier of the cancellation request. (Read only parameter, only for GET requests) (Deprecated field, please remove linked logic)
-
reasonstringThe reason of the cancellation.
-
productsobject[]The devices of the cancellation orders. (Deprecated soon, do not send in new integrations)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringProduct Type
-
product_type_idintegerProduct Type Id
-
identifierstringProduct imei/serial number. Mandatory for all the process types, except for routers unsubscription.
-
msisdnstringMSISDN associated
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
Responses
Success
-
cancellation_request_idstringThe identifier of the cancellation request. (Read only parameter, only for GET requests) (Deprecated field, please remove linked logic)
-
reasonstringThe reason of the cancellation.
-
productsobject[]The devices of the cancellation orders. (Deprecated soon, do not send in new integrations)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringProduct Type
-
product_type_idintegerProduct Type Id
-
identifierstringProduct imei/serial number. Mandatory for all the process types, except for routers unsubscription.
-
msisdnstringMSISDN associated
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Notify order delivery confirmation
/orgs /{orgId} /core /orders /{order_id} /confirmDelivery Authenticated with a bearer token in the Authorization header Authentication
Notify delivery confirmation for an order
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
order_idstringRequiredInternal logistics order id
Request body application/json Required
Information needed to create a delivery confirmation request
-
productsobject[]-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringProduct Type
-
product_type_idintegerProduct Type Id
-
identifierstringProduct imei/serial number. Mandatory for all the process types, except for routers unsubscription.
-
msisdnstringMSISDN associated
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
Responses
Success
-
productsobject[]-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringProduct Type
-
product_type_idintegerProduct Type Id
-
identifierstringProduct imei/serial number. Mandatory for all the process types, except for routers unsubscription.
-
msisdnstringMSISDN associated
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Direct Logistics
Get stock
/orgs /{orgId} /core /stock Authenticated with a bearer token in the Authorization header Authentication
Get the stock provided by the logistics operators
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Query parameters
salesChannelstringSales channel identifier
salesTypestringSales Type identifier
productIdstringProduct identifier
Responses
Success
-
dataobject[]List of objects with stock information
-
warehouse_idstringWarehouse Id
-
product_idstringproductId
-
available_quantityintegerAvailable quantity
-
availability_datestring | nullDate from which the product will be available, in d/M/yyyy format
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Reverse Logistics
Get list of pickups
/orgs /{orgId} /core /pickups Authenticated with a bearer token in the Authorization header Authentication
Get list of pickups filtered by the given parameters
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
pickup_idstring[]Pickup id in mas-logistics (Multiple values allowed separated with coma (','))
order_id_crmstring[]Order id in crm (Multiple values allowed separated with coma (','))
order_id_externalstring[]Order id in the external system, usually the logistic operator (Multiple values allowed separated with coma (','))
subscription_idstring[]Subscription id (Multiple values allowed separated with coma (','))
business_processstring[]Business process (Multiple values allowed separated with coma (','))
delivery_typestring[]Delivery type (Multiple values allowed separated with coma (','))
identity_document_idstring[]Client identity document id (Multiple values allowed separated with coma (','))
product_identifierstring[]Product identifier like IMEI, ICCID, Serial Number, etc (Multiple values allowed separated with coma (','))
product_codestring[]The product reference (Multiple values allowed separated with coma (','))
product_subscription_device_idstring[]Product subscription device id (Multiple values allowed separated with coma (','))
delivery_point_idstring[]Delivery point id, like the store id for SHOP pickups (Multiple values allowed separated with coma (','))
expedition_status_valuestring[]Current status value of the pickup expedition (Multiple values allowed separated with coma (','))
Show 89 valuesHide 89 values
ABANDONEDABSENT_INCIDENCEACCEPTEDACCEPTED_BY_MANUFACTURERCANCELLATION_REQUESTCANCELLEDCOLLECTEDCOLLECTION_REQUESTCOMPLETE_RMACONTRACT_GENERATEDCONTRACT_MISSINGCONTRACT_NOT_RETRIEVEDCONTRACT_RETRIEVEDCONTRACT_SIGNEDCUSTOMER_CONTACTEDDELIVEREDDELIVERED_CUSTODIANDELIVERED_IN_DELIVERY_POINTDELIVERED_TO_MANUFACTURERDELIVERED_TO_OLDELIVERY_IN_WAREHOUSEDELIVERY_INCIDENCEDELIVERY_REQUESTEDDELIVERY_TO_MANUFACTURERDESTROYEDDISASTERDOCUMENTATION_SENTERRORERROR_RMAEXPEDITION_CREATEDEXPIREDFAIL_CONTACTFRAUDIN_DELIVERYIN_DELIVERY_TO_MANUFACTURERIN_TRANSITIN_WAREHOUSEINCIDENCEMISSING_DATANOT_COLLECTEDNOT_DELIVEREDNOT_FRAUDNOT_PENALIZEDNOT_PICKUPNOT_SENTON_DEPARTUREORDER_MODIFIEDORDER_READYORDER_RECEIVEDOUT_OF_STOCKPAIDPENALIZEDPENDING_CUSTOMER_CONTACTPENDING_PENALTYPENDING_RMAPERMANENCE_ALREADY_LOADEDPERMANENCE_ASSOCIATEDPICKINGPICKING_STARTEDPICKUP_ACORDEDPICKUP_DONEPICKUP_FAILPICKUP_IN_PROCESSPICKUP_MODIFIEDPICKUP_REQUESTPOSSIBLE_FRAUDPREPICKINGREADY_TO_SHIPPINGREFOUND_PENDINGREJECTEDREJECTED_BY_MANUFACTURERRETURNEDRETURNED_TO_CLIENTRETURNED_TO_OLRETURNED_TO_WAREHOUSESENTSENT_TO_MANUFACTURERSENT_TO_OLSENT_TO_WAREHOUSESINISTERSTART_EXTRACTIONSTARTEDSTOREDSTORED_IN_OLTRANSPORT_INCIDENCEUNKNOWNWAREHOUSE_DELIVEREDWAREHOUSE_EXITWAREHOUSE_REJECTED
from_order_datestring (date-time)From order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z
to_order_datestring (date-time)To order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z
sortstringSort value, multiple values allowed, separate with coma
extraordinarybooleanFilter by extraordinary operations flag
parent_order_idstringFilter by the origin order id of extraordinary operations
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
pickupsobject[]List of Pickups
-
orderobject Required-
subscription_idstring -
pickup_idstringThe pickup identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_externalstringThe order identifier given by the logistics operator. (Read only parameter, only for GET requests)
-
order_id_crmstringThe order identifier of the request. It is mandatory to sent the OT in router unsubscription process.
-
languagestringOrder language
-
business_processstring RequiredThe business process
-
order_datestring (date-time)Order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z (Read only parameter, only for GET requests)
-
reasonstringThe reason of the pickup
-
delivery_typestringThe delivery type
-
access_reusedbooleanAccess reused for routers pickups. Mandatory for cession router pickups, except on extraordinary pickups, where access transfer is not evaluated
-
blockedbooleanIf true, the pickup is saved in blocked state and not forwarded to the logistics operator until explicitly unblocked
-
extraordinarybooleanWhether this is an extraordinary operation (e.g. extraordinary pickup)
-
parent_order_idstring | nullThe order id of the origin order from which this extraordinary operation is created
-
-
data_salesobjectInformation related to sales associated with the order
-
agentstringclient reference
-
channelstringData sales channel
-
typestringData sales type
-
groupstringData sales group
Show 12 values Hide 12 values
POSONLINE_DISTRIBUTIONINBOUNDOUTBOUNDRETENTIONLOYALTYUNSUBSCRIBECANCELLATIONSUNDER_CUSTOMER_BASEBROADCAST_CUSTOMER_BASEADMINISTRATORCUSTOMER_SUPPORT
-
-
clientobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
shippingobject RequiredShipping information for a pickup
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
transport_dataobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestringDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusivebooleanDelivery to exact person. (Optional value to be deleted, please not send this field)
-
verify_identitybooleanThe carrier must verify the identity document. (Optional value to be deleted, please not send this field)
-
retrieve_contractbooleanThe carrier must return the signed document. (Optional value to be deleted, please not send this field)
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
return_codestringThe return code provided by the courier (Read only parameter, only for GET requests)
-
delivery_typestringThe delivery type
-
-
-
productsobject[] RequiredInfo about the pickup Product
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestring RequiredProduct Type
-
product_type_idintegerProduct Type Id
-
identifierstringProduct imei/serial number. Mandatory for all the process types, except for routers unsubscription.
-
msisdnstringMSISDN associated
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
technologystringTechnology type for routers pickups. Mandatory for cession router pickups, except on extraordinary pickups
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Reverse Logistics
Create a pickup
/orgs /{orgId} /core /pickups Authenticated with a bearer token in the Authorization header Authentication
Create a new pickup
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Request body application/json Required
Information needed to create a new Order
-
orderobject Required-
subscription_idstring -
pickup_idstringThe pickup identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_externalstringThe order identifier given by the logistics operator. (Read only parameter, only for GET requests)
-
order_id_crmstringThe order identifier of the request. It is mandatory to sent the OT in router unsubscription process.
-
languagestringOrder language
-
business_processstring RequiredThe business process
-
order_datestring (date-time)Order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z (Read only parameter, only for GET requests)
-
reasonstringThe reason of the pickup
-
delivery_typestringThe delivery type
-
access_reusedbooleanAccess reused for routers pickups. Mandatory for cession router pickups, except on extraordinary pickups, where access transfer is not evaluated
-
blockedbooleanIf true, the pickup is saved in blocked state and not forwarded to the logistics operator until explicitly unblocked
-
extraordinarybooleanWhether this is an extraordinary operation (e.g. extraordinary pickup)
-
parent_order_idstring | nullThe order id of the origin order from which this extraordinary operation is created
-
-
data_salesobjectInformation related to sales associated with the order
-
agentstringclient reference
-
channelstringData sales channel
-
typestringData sales type
-
groupstringData sales group
Show 12 values Hide 12 values
POSONLINE_DISTRIBUTIONINBOUNDOUTBOUNDRETENTIONLOYALTYUNSUBSCRIBECANCELLATIONSUNDER_CUSTOMER_BASEBROADCAST_CUSTOMER_BASEADMINISTRATORCUSTOMER_SUPPORT
-
-
clientobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
shippingobject RequiredShipping information for a pickup
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
transport_dataobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestringDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusivebooleanDelivery to exact person. (Optional value to be deleted, please not send this field)
-
verify_identitybooleanThe carrier must verify the identity document. (Optional value to be deleted, please not send this field)
-
retrieve_contractbooleanThe carrier must return the signed document. (Optional value to be deleted, please not send this field)
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
return_codestringThe return code provided by the courier (Read only parameter, only for GET requests)
-
delivery_typestringThe delivery type
-
-
-
productsobject[] RequiredInfo about the pickup Product
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestring RequiredProduct Type
-
product_type_idintegerProduct Type Id
-
identifierstringProduct imei/serial number. Mandatory for all the process types, except for routers unsubscription.
-
msisdnstringMSISDN associated
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
technologystringTechnology type for routers pickups. Mandatory for cession router pickups, except on extraordinary pickups
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
Responses
Success
-
orderobject Required-
subscription_idstring -
pickup_idstringThe pickup identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_externalstringThe order identifier given by the logistics operator. (Read only parameter, only for GET requests)
-
order_id_crmstringThe order identifier of the request. It is mandatory to sent the OT in router unsubscription process.
-
languagestringOrder language
-
business_processstring RequiredThe business process
-
order_datestring (date-time)Order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z (Read only parameter, only for GET requests)
-
reasonstringThe reason of the pickup
-
delivery_typestringThe delivery type
-
access_reusedbooleanAccess reused for routers pickups. Mandatory for cession router pickups, except on extraordinary pickups, where access transfer is not evaluated
-
blockedbooleanIf true, the pickup is saved in blocked state and not forwarded to the logistics operator until explicitly unblocked
-
extraordinarybooleanWhether this is an extraordinary operation (e.g. extraordinary pickup)
-
parent_order_idstring | nullThe order id of the origin order from which this extraordinary operation is created
-
-
data_salesobjectInformation related to sales associated with the order
-
agentstringclient reference
-
channelstringData sales channel
-
typestringData sales type
-
groupstringData sales group
Show 12 values Hide 12 values
POSONLINE_DISTRIBUTIONINBOUNDOUTBOUNDRETENTIONLOYALTYUNSUBSCRIBECANCELLATIONSUNDER_CUSTOMER_BASEBROADCAST_CUSTOMER_BASEADMINISTRATORCUSTOMER_SUPPORT
-
-
clientobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
shippingobject RequiredShipping information for a pickup
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
transport_dataobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestringDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusivebooleanDelivery to exact person. (Optional value to be deleted, please not send this field)
-
verify_identitybooleanThe carrier must verify the identity document. (Optional value to be deleted, please not send this field)
-
retrieve_contractbooleanThe carrier must return the signed document. (Optional value to be deleted, please not send this field)
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
return_codestringThe return code provided by the courier (Read only parameter, only for GET requests)
-
delivery_typestringThe delivery type
-
-
-
productsobject[] RequiredInfo about the pickup Product
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestring RequiredProduct Type
-
product_type_idintegerProduct Type Id
-
identifierstringProduct imei/serial number. Mandatory for all the process types, except for routers unsubscription.
-
msisdnstringMSISDN associated
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
technologystringTechnology type for routers pickups. Mandatory for cession router pickups, except on extraordinary pickups
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Reverse Logistics
Validate a pickup OTP for a delivery point
/orgs /{orgId} /core /pickups /validateOTP Authenticated with a bearer token in the Authorization header Authentication
Looks up which pickup(s) at the given delivery point match the submitted OTP
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Request body application/json Required
Delivery point and OTP to validate
-
delivery_point_idstring RequiredThe delivery point identifier. Normally the store SFID.
-
otpstring RequiredOne-time code generated from the courier expedition code, used to validate the pickup in shop
Responses
Success
-
pickup_idstringThe pickup identifier that matched the delivery point and OTP
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Reverse Logistics
Get a pickup by id
/orgs /{orgId} /core /pickups /{pickup_id} Authenticated with a bearer token in the Authorization header Authentication
Get a pickup by the pickup_id
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
pickup_idstringRequiredInternal logistics pickup id
Responses
Success
-
orderobject Required-
subscription_idstring -
pickup_idstringThe pickup identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_externalstringThe order identifier given by the logistics operator. (Read only parameter, only for GET requests)
-
order_id_crmstringThe order identifier of the request. It is mandatory to sent the OT in router unsubscription process.
-
languagestringOrder language
-
business_processstring RequiredThe business process
-
order_datestring (date-time)Order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z (Read only parameter, only for GET requests)
-
reasonstringThe reason of the pickup
-
delivery_typestringThe delivery type
-
access_reusedbooleanAccess reused for routers pickups. Mandatory for cession router pickups, except on extraordinary pickups, where access transfer is not evaluated
-
blockedbooleanIf true, the pickup is saved in blocked state and not forwarded to the logistics operator until explicitly unblocked
-
extraordinarybooleanWhether this is an extraordinary operation (e.g. extraordinary pickup)
-
parent_order_idstring | nullThe order id of the origin order from which this extraordinary operation is created
-
-
data_salesobjectInformation related to sales associated with the order
-
agentstringclient reference
-
channelstringData sales channel
-
typestringData sales type
-
groupstringData sales group
Show 12 values Hide 12 values
POSONLINE_DISTRIBUTIONINBOUNDOUTBOUNDRETENTIONLOYALTYUNSUBSCRIBECANCELLATIONSUNDER_CUSTOMER_BASEBROADCAST_CUSTOMER_BASEADMINISTRATORCUSTOMER_SUPPORT
-
-
clientobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
shippingobject RequiredShipping information for a pickup
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
transport_dataobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestringDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusivebooleanDelivery to exact person. (Optional value to be deleted, please not send this field)
-
verify_identitybooleanThe carrier must verify the identity document. (Optional value to be deleted, please not send this field)
-
retrieve_contractbooleanThe carrier must return the signed document. (Optional value to be deleted, please not send this field)
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
return_codestringThe return code provided by the courier (Read only parameter, only for GET requests)
-
delivery_typestringThe delivery type
-
-
-
productsobject[] RequiredInfo about the pickup Product
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestring RequiredProduct Type
-
product_type_idintegerProduct Type Id
-
identifierstringProduct imei/serial number. Mandatory for all the process types, except for routers unsubscription.
-
msisdnstringMSISDN associated
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
technologystringTechnology type for routers pickups. Mandatory for cession router pickups, except on extraordinary pickups
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Reverse Logistics
Create a request to cancel a pickup
/orgs /{orgId} /core /pickups /{pickup_id} /cancellation Authenticated with a bearer token in the Authorization header Authentication
Create a request to cancel an pickup. Its request could be accepted or declined asynchronously
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
pickup_idstringRequiredInternal logistics pickup id
Request body application/json Required
Information needed to create a cancellation request
-
reasonstringThe reason of the cancellation.
Responses
Success
-
reasonstringThe reason of the cancellation.
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Reverse Logistics
Get the list of products for a pickup
/orgs /{orgId} /core /pickups /{pickup_id} /products Authenticated with a bearer token in the Authorization header Authentication
Get the list of products for a pickup
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
pickup_idstringRequiredInternal logistics pickup id
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
productsobject[]Info about the product with the expedition
-
product_idstringThe product id in mas-logistics domain, usually suscription_device_id. (Read only parameter, only for GET requests)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringThe product type. It is mandatory when using generic product_code
-
product_type_idintegerProduct Type Id
-
product_unit_pricenumberProduct Unit price
-
icc_imeistringProduct imei
-
identifierstringThe physical product identifier, usually SerialNumber/MAC/IMEI. (Read only parameter, only for GET requests)
-
quantityintegerProduct quantity
-
product_commentsstringProduct comments
-
msisdnstringMSISDN associated
-
financedbooleanIs product financed
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
remaining_paymentnumberRemaining payment amount to pay on delivery
-
invoicedbooleanIf this value is false it indicates that the product is on lease if it is true it is on sale and we should have the data_invoice info.
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
associated_expeditionobjectAssociated expedition info
-
expedition_idstringUnique expedition identifier
-
current_statusobjectInfo about the status of the expedition
-
idstringstatus id
-
valuestringstatus value
Show 89 values Hide 89 values
ABANDONEDABSENT_INCIDENCEACCEPTEDACCEPTED_BY_MANUFACTURERCANCELLATION_REQUESTCANCELLEDCOLLECTEDCOLLECTION_REQUESTCOMPLETE_RMACONTRACT_GENERATEDCONTRACT_MISSINGCONTRACT_NOT_RETRIEVEDCONTRACT_RETRIEVEDCONTRACT_SIGNEDCUSTOMER_CONTACTEDDELIVEREDDELIVERED_CUSTODIANDELIVERED_IN_DELIVERY_POINTDELIVERED_TO_MANUFACTURERDELIVERED_TO_OLDELIVERY_IN_WAREHOUSEDELIVERY_INCIDENCEDELIVERY_REQUESTEDDELIVERY_TO_MANUFACTURERDESTROYEDDISASTERDOCUMENTATION_SENTERRORERROR_RMAEXPEDITION_CREATEDEXPIREDFAIL_CONTACTFRAUDIN_DELIVERYIN_DELIVERY_TO_MANUFACTURERIN_TRANSITIN_WAREHOUSEINCIDENCEMISSING_DATANOT_COLLECTEDNOT_DELIVEREDNOT_FRAUDNOT_PENALIZEDNOT_PICKUPNOT_SENTON_DEPARTUREORDER_MODIFIEDORDER_READYORDER_RECEIVEDOUT_OF_STOCKPAIDPENALIZEDPENDING_CUSTOMER_CONTACTPENDING_PENALTYPENDING_RMAPERMANENCE_ALREADY_LOADEDPERMANENCE_ASSOCIATEDPICKINGPICKING_STARTEDPICKUP_ACORDEDPICKUP_DONEPICKUP_FAILPICKUP_IN_PROCESSPICKUP_MODIFIEDPICKUP_REQUESTPOSSIBLE_FRAUDPREPICKINGREADY_TO_SHIPPINGREFOUND_PENDINGREJECTEDREJECTED_BY_MANUFACTURERRETURNEDRETURNED_TO_CLIENTRETURNED_TO_OLRETURNED_TO_WAREHOUSESENTSENT_TO_MANUFACTURERSENT_TO_OLSENT_TO_WAREHOUSESINISTERSTART_EXTRACTIONSTARTEDSTOREDSTORED_IN_OLTRANSPORT_INCIDENCEUNKNOWNWAREHOUSE_DELIVEREDWAREHOUSE_EXITWAREHOUSE_REJECTED
-
descriptionstringstatus description
-
finalbooleanIndicates if the status is a final state of an expedition
-
reshippablebooleanIndicates if the status is reshippable in a new expedition, but not in this one
-
reason_codestring | nullreason for the status, if needed
-
reason_descriptionstring | nullreason description, if needed
-
timestampstringstatus date
-
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Reverse Logistics
Get a product for a pickup
/orgs /{orgId} /core /pickups /{pickup_id} /products /{product_id} Authenticated with a bearer token in the Authorization header Authentication
Get a product for a pickup
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
pickup_idstringRequiredInternal logistics pickup id
product_idstringRequiredProduct id, usually subscription_device_id
Responses
Success
-
product_idstringThe product id in mas-logistics domain, usually suscription_device_id. (Read only parameter, only for GET requests)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringThe product type. It is mandatory when using generic product_code
-
product_type_idintegerProduct Type Id
-
product_unit_pricenumberProduct Unit price
-
icc_imeistringProduct imei
-
identifierstringThe physical product identifier, usually SerialNumber/MAC/IMEI. (Read only parameter, only for GET requests)
-
quantityintegerProduct quantity
-
product_commentsstringProduct comments
-
msisdnstringMSISDN associated
-
financedbooleanIs product financed
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
remaining_paymentnumberRemaining payment amount to pay on delivery
-
invoicedbooleanIf this value is false it indicates that the product is on lease if it is true it is on sale and we should have the data_invoice info.
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
associated_expeditionobjectAssociated expedition info
-
expedition_idstringUnique expedition identifier
-
current_statusobjectInfo about the status of the expedition
-
idstringstatus id
-
valuestringstatus value
Show 89 values Hide 89 values
ABANDONEDABSENT_INCIDENCEACCEPTEDACCEPTED_BY_MANUFACTURERCANCELLATION_REQUESTCANCELLEDCOLLECTEDCOLLECTION_REQUESTCOMPLETE_RMACONTRACT_GENERATEDCONTRACT_MISSINGCONTRACT_NOT_RETRIEVEDCONTRACT_RETRIEVEDCONTRACT_SIGNEDCUSTOMER_CONTACTEDDELIVEREDDELIVERED_CUSTODIANDELIVERED_IN_DELIVERY_POINTDELIVERED_TO_MANUFACTURERDELIVERED_TO_OLDELIVERY_IN_WAREHOUSEDELIVERY_INCIDENCEDELIVERY_REQUESTEDDELIVERY_TO_MANUFACTURERDESTROYEDDISASTERDOCUMENTATION_SENTERRORERROR_RMAEXPEDITION_CREATEDEXPIREDFAIL_CONTACTFRAUDIN_DELIVERYIN_DELIVERY_TO_MANUFACTURERIN_TRANSITIN_WAREHOUSEINCIDENCEMISSING_DATANOT_COLLECTEDNOT_DELIVEREDNOT_FRAUDNOT_PENALIZEDNOT_PICKUPNOT_SENTON_DEPARTUREORDER_MODIFIEDORDER_READYORDER_RECEIVEDOUT_OF_STOCKPAIDPENALIZEDPENDING_CUSTOMER_CONTACTPENDING_PENALTYPENDING_RMAPERMANENCE_ALREADY_LOADEDPERMANENCE_ASSOCIATEDPICKINGPICKING_STARTEDPICKUP_ACORDEDPICKUP_DONEPICKUP_FAILPICKUP_IN_PROCESSPICKUP_MODIFIEDPICKUP_REQUESTPOSSIBLE_FRAUDPREPICKINGREADY_TO_SHIPPINGREFOUND_PENDINGREJECTEDREJECTED_BY_MANUFACTURERRETURNEDRETURNED_TO_CLIENTRETURNED_TO_OLRETURNED_TO_WAREHOUSESENTSENT_TO_MANUFACTURERSENT_TO_OLSENT_TO_WAREHOUSESINISTERSTART_EXTRACTIONSTARTEDSTOREDSTORED_IN_OLTRANSPORT_INCIDENCEUNKNOWNWAREHOUSE_DELIVEREDWAREHOUSE_EXITWAREHOUSE_REJECTED
-
descriptionstringstatus description
-
finalbooleanIndicates if the status is a final state of an expedition
-
reshippablebooleanIndicates if the status is reshippable in a new expedition, but not in this one
-
reason_codestring | nullreason for the status, if needed
-
reason_descriptionstring | nullreason description, if needed
-
timestampstringstatus date
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Reverse Logistics
Unblock a blocked pickup
/orgs /{orgId} /core /pickups /{pickup_id} /unblock Authenticated with a bearer token in the Authorization header Authentication
Unblocks a previously blocked pickup and forwards it to the logistics operator if any products are in CREATED acceptance status
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
pickup_idstringRequiredInternal logistics pickup id
Responses
Success
-
orderobject Required-
subscription_idstring -
pickup_idstringThe pickup identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_externalstringThe order identifier given by the logistics operator. (Read only parameter, only for GET requests)
-
order_id_crmstringThe order identifier of the request. It is mandatory to sent the OT in router unsubscription process.
-
languagestringOrder language
-
business_processstring RequiredThe business process
-
order_datestring (date-time)Order date in ISO 8601 format. Example: 2021-05-24T09:00:00Z (Read only parameter, only for GET requests)
-
reasonstringThe reason of the pickup
-
delivery_typestringThe delivery type
-
access_reusedbooleanAccess reused for routers pickups. Mandatory for cession router pickups, except on extraordinary pickups, where access transfer is not evaluated
-
blockedbooleanIf true, the pickup is saved in blocked state and not forwarded to the logistics operator until explicitly unblocked
-
extraordinarybooleanWhether this is an extraordinary operation (e.g. extraordinary pickup)
-
parent_order_idstring | nullThe order id of the origin order from which this extraordinary operation is created
-
-
data_salesobjectInformation related to sales associated with the order
-
agentstringclient reference
-
channelstringData sales channel
-
typestringData sales type
-
groupstringData sales group
Show 12 values Hide 12 values
POSONLINE_DISTRIBUTIONINBOUNDOUTBOUNDRETENTIONLOYALTYUNSUBSCRIBECANCELLATIONSUNDER_CUSTOMER_BASEBROADCAST_CUSTOMER_BASEADMINISTRATORCUSTOMER_SUPPORT
-
-
clientobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
shippingobject RequiredShipping information for a pickup
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
transport_dataobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestringDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusivebooleanDelivery to exact person. (Optional value to be deleted, please not send this field)
-
verify_identitybooleanThe carrier must verify the identity document. (Optional value to be deleted, please not send this field)
-
retrieve_contractbooleanThe carrier must return the signed document. (Optional value to be deleted, please not send this field)
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
return_codestringThe return code provided by the courier (Read only parameter, only for GET requests)
-
delivery_typestringThe delivery type
-
-
-
productsobject[] RequiredInfo about the pickup Product
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestring RequiredProduct Type
-
product_type_idintegerProduct Type Id
-
identifierstringProduct imei/serial number. Mandatory for all the process types, except for routers unsubscription.
-
msisdnstringMSISDN associated
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
technologystringTechnology type for routers pickups. Mandatory for cession router pickups, except on extraordinary pickups
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Reverse Logistics
Get list of communications sent for a pickup
/orgs /{orgId} /core /pickups /{pickup_id} /communications Authenticated with a bearer token in the Authorization header Authentication
Get list of communications sent for a pickup
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
pickup_idstringRequiredInternal logistics pickup id
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
communicationsobject[]Communications sent for the order
-
order_communication_idstringUnique identifier for the order communication
-
order_idstringInternal logistics order id
-
communication_idstringCommunication identifier
-
trigger_communication_idstring | nullTrigger communication identifier that caused this communication
-
external_communication_idstring | nullExternal communication identifier
-
template_idstringTemplate identifier used for the communication
-
sentbooleanIndicates if the communication was sent
-
reasonstring | nullReason for the communication
-
eventstring | nullEvent that triggered the communication
-
sent_atstring | nullTimestamp when the communication was sent
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Swap Logistics
Get list of swaps
/orgs /{orgId} /core /swaps Authenticated with a bearer token in the Authorization header Authentication
Get list of swaps filtered by the given parameters
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
swap_idstring[]Swap id in mas-logistics domain (Multiple values allowed separated with coma (','))
swap_id_crmstring[]Swap id in crm (Multiple values allowed separated with coma (','))
order_idstring[]Order id in mas-logistics (Multiple values allowed separated with coma (','))
pickup_idstring[]Pickup id in mas-logistics (Multiple values allowed separated with coma (','))
business_processstring[]Business process (Multiple values allowed separated with coma (','))
subscription_idstring[]Subscription id (Multiple values allowed separated with coma (','))
identity_document_idstring[]Client identity document id (Multiple values allowed separated with coma (','))
product_identifierstring[]Product identifier like IMEI, ICCID, Serial Number, etc (Multiple values allowed separated with coma (','))
product_codestring[]The product reference (Multiple values allowed separated with coma (','))
product_subscription_device_idstring[]Product subscription device id (Multiple values allowed separated with coma (','))
from_swap_datestring (date-time)From swap date in ISO 8601 format. Example: 2021-05-24T09:00:00Z
to_swap_datestring (date-time)To swap date in ISO 8601 format. Example: 2021-05-24T09:00:00Z
sortstringSort value, multiple values allowed, separate with coma
extraordinarybooleanFilter by extraordinary operations flag
parent_order_idstringFilter by the origin order id of extraordinary operations
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
ordersobject[]List of Swaps
-
swapobject RequiredMain swap data, including ID and essential details
-
swap_idstringThe swap identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
swap_id_crmstringThe order identifier of the request. It is mandatory to sent the OT in router unsubscription process.
-
subscription_idstring RequiredIdentifier of a customer subscription, it can have several subscription_device_id associated to its line. Mandatory value.
-
business_processstring RequiredThe business process
-
expedition_typestringThe expedition type (Read only parameter, only for GET requests)
-
swap_datestring (date-time)Swap date in ISO 8601 format. Example: 2021-05-24T09:00:00Z (Read only parameter, only for GET requests)
-
reasonstringThe reason of the pickup
-
languagestringOrder language
-
extraordinarybooleanWhether this is an extraordinary operation (e.g. extraordinary swap due to bad condition product delivered)
-
parent_order_idstring | nullThe order id of the origin order from which this extraordinary operation is created
-
-
orderobjectMain order data, including ID and essential details
-
order_idstringThe order identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_externalstringThe order identifier given by the logistics operator. (Read only parameter, only for GET requests)
-
business_processstringThe delivery business process of a swap
-
-
pickupobjectPickup data, only available to swaps with expedition_type DOUBLE_EXPEDITION
-
pickup_idstringThe pickup identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_externalstringThe order identifier given by the logistics operator. (Read only parameter, only for GET requests)
-
business_processstringThe pickup business process of a swap
-
-
clientobjectObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
shippingobjectShipping details, including address and delivery info
-
deliveryobject RequiredShipping details, including address and delivery info
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
namestring RequiredClient name
-
surnamesstring[] RequiredClient surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
-
data_deliveryobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestring RequiredDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusiveboolean RequiredDelivery to exact person
-
verify_identityboolean RequiredThe carrier must verify the identity document
-
retrieve_contractboolean RequiredThe carrier must return the signed document
-
group_bystringGroup by
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
delivery_typestringThe delivery type
-
ol_commentsstringinformation or instructions for OL
-
-
-
pickupobjectShipping information for a pickup
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
-
transport_dataobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestringDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusivebooleanDelivery to exact person. (Optional value to be deleted, please not send this field)
-
verify_identitybooleanThe carrier must verify the identity document. (Optional value to be deleted, please not send this field)
-
retrieve_contractbooleanThe carrier must return the signed document. (Optional value to be deleted, please not send this field)
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
return_codestringThe return code provided by the courier (Read only parameter, only for GET requests)
-
delivery_typestringThe delivery type
-
-
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Swap Logistics
Create a swap
/orgs /{orgId} /core /swaps Authenticated with a bearer token in the Authorization header Authentication
Create a new swap
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Request body application/json Required
Information needed to create a new Order
-
swapobject RequiredMain swap data, including ID and essential details
-
swap_idstringThe swap identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
swap_id_crmstringThe order identifier of the request. It is mandatory to sent the OT in router unsubscription process.
-
subscription_idstring RequiredIdentifier of a customer subscription, it can have several subscription_device_id associated to its line. Mandatory value.
-
business_processstring RequiredThe business process
-
expedition_typestringThe expedition type (Read only parameter, only for GET requests)
-
swap_datestring (date-time)Swap date in ISO 8601 format. Example: 2021-05-24T09:00:00Z (Read only parameter, only for GET requests)
-
reasonstringThe reason of the pickup
-
languagestringOrder language
-
extraordinarybooleanWhether this is an extraordinary operation (e.g. extraordinary swap due to bad condition product delivered)
-
parent_order_idstring | nullThe order id of the origin order from which this extraordinary operation is created
-
-
clientobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
shippingobject RequiredShipping details, including address and delivery info
-
deliveryobject RequiredShipping details, including address and delivery info
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestring RequiredClient name
-
surnamesstring[] RequiredClient surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
data_deliveryobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestring RequiredDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusiveboolean RequiredDelivery to exact person
-
verify_identityboolean RequiredThe carrier must verify the identity document
-
retrieve_contractboolean RequiredThe carrier must return the signed document
-
group_bystringGroup by
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
delivery_typestringThe delivery type
-
ol_commentsstringinformation or instructions for OL
-
-
-
pickupobjectShipping information for a pickup
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
transport_dataobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestringDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusivebooleanDelivery to exact person. (Optional value to be deleted, please not send this field)
-
verify_identitybooleanThe carrier must verify the identity document. (Optional value to be deleted, please not send this field)
-
retrieve_contractbooleanThe carrier must return the signed document. (Optional value to be deleted, please not send this field)
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
return_codestringThe return code provided by the courier (Read only parameter, only for GET requests)
-
delivery_typestringThe delivery type
-
-
-
-
productsobject Required-
deliveryobject[] Required-
product_idstringThe product id in mas-logistics domain, usually suscription_device_id. (Read only parameter, only for GET requests)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringThe product type. It is mandatory when using generic product_code
-
product_type_idintegerProduct Type Id
-
product_unit_pricenumberProduct Unit price
-
icc_imeistringProduct imei
-
identifierstringThe physical product identifier, usually SerialNumber/MAC/IMEI. (Read only parameter, only for GET requests)
-
quantityintegerProduct quantity
-
product_commentsstringProduct comments
-
msisdnstringMSISDN associated
-
financedbooleanIs product financed
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
remaining_paymentnumberRemaining payment amount to pay on delivery
-
invoicedbooleanIf this value is false it indicates that the product is on lease if it is true it is on sale and we should have the data_invoice info.
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
-
pickupobject[]Products to collect. GENERIC products (remote controls, power supplies...) are never collected: they are ignored in this list and, when every delivered product is GENERIC, no pickup order is created. On double expedition processes whose delivery includes any non-GENERIC product (ROUTER, STB...), at least one non-GENERIC product must be sent here; a list with only GENERIC products is rejected with a 400.
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestring RequiredProduct Type
-
product_type_idintegerProduct Type Id
-
identifierstringProduct imei/serial number. Mandatory for all the process types, except for routers unsubscription.
-
msisdnstringMSISDN associated
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
technologystringTechnology type for routers pickups. Mandatory for cession router pickups, except on extraordinary pickups
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
-
Responses
Success
-
swapobject RequiredMain swap data, including ID and essential details
-
swap_idstringThe swap identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
swap_id_crmstringThe order identifier of the request. It is mandatory to sent the OT in router unsubscription process.
-
subscription_idstring RequiredIdentifier of a customer subscription, it can have several subscription_device_id associated to its line. Mandatory value.
-
business_processstring RequiredThe business process
-
expedition_typestringThe expedition type (Read only parameter, only for GET requests)
-
swap_datestring (date-time)Swap date in ISO 8601 format. Example: 2021-05-24T09:00:00Z (Read only parameter, only for GET requests)
-
reasonstringThe reason of the pickup
-
languagestringOrder language
-
extraordinarybooleanWhether this is an extraordinary operation (e.g. extraordinary swap due to bad condition product delivered)
-
parent_order_idstring | nullThe order id of the origin order from which this extraordinary operation is created
-
-
orderobjectMain order data, including ID and essential details
-
order_idstringThe order identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_externalstringThe order identifier given by the logistics operator. (Read only parameter, only for GET requests)
-
business_processstringThe delivery business process of a swap
-
-
pickupobjectPickup data, only available to swaps with expedition_type DOUBLE_EXPEDITION
-
pickup_idstringThe pickup identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_externalstringThe order identifier given by the logistics operator. (Read only parameter, only for GET requests)
-
business_processstringThe pickup business process of a swap
-
-
clientobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
shippingobject RequiredShipping details, including address and delivery info
-
deliveryobject RequiredShipping details, including address and delivery info
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestring RequiredClient name
-
surnamesstring[] RequiredClient surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
data_deliveryobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestring RequiredDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusiveboolean RequiredDelivery to exact person
-
verify_identityboolean RequiredThe carrier must verify the identity document
-
retrieve_contractboolean RequiredThe carrier must return the signed document
-
group_bystringGroup by
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
delivery_typestringThe delivery type
-
ol_commentsstringinformation or instructions for OL
-
-
-
pickupobjectShipping information for a pickup
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
transport_dataobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestringDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusivebooleanDelivery to exact person. (Optional value to be deleted, please not send this field)
-
verify_identitybooleanThe carrier must verify the identity document. (Optional value to be deleted, please not send this field)
-
retrieve_contractbooleanThe carrier must return the signed document. (Optional value to be deleted, please not send this field)
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
return_codestringThe return code provided by the courier (Read only parameter, only for GET requests)
-
delivery_typestringThe delivery type
-
-
-
-
productsobject Required-
deliveryobject[] Required-
product_idstringThe product id in mas-logistics domain, usually suscription_device_id. (Read only parameter, only for GET requests)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringThe product type. It is mandatory when using generic product_code
-
product_type_idintegerProduct Type Id
-
product_unit_pricenumberProduct Unit price
-
icc_imeistringProduct imei
-
identifierstringThe physical product identifier, usually SerialNumber/MAC/IMEI. (Read only parameter, only for GET requests)
-
quantityintegerProduct quantity
-
product_commentsstringProduct comments
-
msisdnstringMSISDN associated
-
financedbooleanIs product financed
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
remaining_paymentnumberRemaining payment amount to pay on delivery
-
invoicedbooleanIf this value is false it indicates that the product is on lease if it is true it is on sale and we should have the data_invoice info.
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
-
pickupobject[]-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestring RequiredProduct Type
-
product_type_idintegerProduct Type Id
-
identifierstringProduct imei/serial number. Mandatory for all the process types, except for routers unsubscription.
-
msisdnstringMSISDN associated
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
technologystringTechnology type for routers pickups. Mandatory for cession router pickups, except on extraordinary pickups
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Swap Logistics
Get a swap by id
/orgs /{orgId} /core /swaps /{swap_id} Authenticated with a bearer token in the Authorization header Authentication
Get a swap by swap_id
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
swap_idstringRequiredInternal logistics swap id
Responses
Success
-
swapobject RequiredMain swap data, including ID and essential details
-
swap_idstringThe swap identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
swap_id_crmstringThe order identifier of the request. It is mandatory to sent the OT in router unsubscription process.
-
subscription_idstring RequiredIdentifier of a customer subscription, it can have several subscription_device_id associated to its line. Mandatory value.
-
business_processstring RequiredThe business process
-
expedition_typestringThe expedition type (Read only parameter, only for GET requests)
-
swap_datestring (date-time)Swap date in ISO 8601 format. Example: 2021-05-24T09:00:00Z (Read only parameter, only for GET requests)
-
reasonstringThe reason of the pickup
-
languagestringOrder language
-
extraordinarybooleanWhether this is an extraordinary operation (e.g. extraordinary swap due to bad condition product delivered)
-
parent_order_idstring | nullThe order id of the origin order from which this extraordinary operation is created
-
-
orderobjectMain order data, including ID and essential details
-
order_idstringThe order identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_externalstringThe order identifier given by the logistics operator. (Read only parameter, only for GET requests)
-
business_processstringThe delivery business process of a swap
-
-
pickupobjectPickup data, only available to swaps with expedition_type DOUBLE_EXPEDITION
-
pickup_idstringThe pickup identifier in mas-logistics domain. (Read only parameter, only for GET requests)
-
order_id_externalstringThe order identifier given by the logistics operator. (Read only parameter, only for GET requests)
-
business_processstringThe pickup business process of a swap
-
-
clientobjectObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
shippingobjectShipping details, including address and delivery info
-
deliveryobject RequiredShipping details, including address and delivery info
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestring RequiredClient name
-
surnamesstring[] RequiredClient surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
data_deliveryobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestring RequiredDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusiveboolean RequiredDelivery to exact person
-
verify_identityboolean RequiredThe carrier must verify the identity document
-
retrieve_contractboolean RequiredThe carrier must return the signed document
-
group_bystringGroup by
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
delivery_typestringThe delivery type
-
ol_commentsstringinformation or instructions for OL
-
-
-
pickupobjectShipping information for a pickup
-
addressobject RequiredAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
contact_dataobject RequiredObject with client data
-
identityobject RequiredObject representing the identity of a client
-
document_idstring RequiredDocument Id
-
document_typestring RequiredDocument Type
-
-
contact_phoneobject RequiredPhone object with prefix and phone number
-
phone_numberstringPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[]Client surnames
-
emailstringClient email
-
commercial_namestringClient commercial name
-
addressobjectAddress object with street, number, city, zip code, province and country
-
street_typestringStreet type
-
streetstring RequiredStreet name
-
numberstringBuilding number
-
additional_detailsstringOther address parameters
-
citystring RequiredCity
-
zip_codestring RequiredPostal code
-
provincestring RequiredProvince
-
countrystring RequiredCountry
-
bisstringBis
-
floorstringFloor
-
blockstringBlock
-
stairstringStair
-
letterstringLetter
-
-
-
transport_dataobject RequiredData delivery information
-
courier_idstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestringDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
exclusivebooleanDelivery to exact person. (Optional value to be deleted, please not send this field)
-
verify_identitybooleanThe carrier must verify the identity document. (Optional value to be deleted, please not send this field)
-
retrieve_contractbooleanThe carrier must return the signed document. (Optional value to be deleted, please not send this field)
-
secure_deliverybooleanDefines if delivery should be secure
-
delivery_point_idstringThe delivery point identifier. Normally the store SFID. Mandatory for orders with delivery type SHOP.
-
delivery_shop_namestringThe delivery shop name. Mandatory for orders with delivery type SHOP.
-
return_codestringThe return code provided by the courier (Read only parameter, only for GET requests)
-
delivery_typestringThe delivery type
-
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Swap Logistics
Get the list of products for a swap
/orgs /{orgId} /core /swaps /{swap_id} /products Authenticated with a bearer token in the Authorization header Authentication
Get the list of products for a swap
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
swap_idstringRequiredInternal logistics swap id
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
productsobject[]Info about the product with the expedition
-
product_idstringThe product id in mas-logistics domain, usually suscription_device_id. (Read only parameter, only for GET requests)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringThe product type. It is mandatory when using generic product_code
-
product_type_idintegerProduct Type Id
-
product_unit_pricenumberProduct Unit price
-
icc_imeistringProduct imei
-
identifierstringThe physical product identifier, usually SerialNumber/MAC/IMEI. (Read only parameter, only for GET requests)
-
quantityintegerProduct quantity
-
product_commentsstringProduct comments
-
msisdnstringMSISDN associated
-
financedbooleanIs product financed
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
remaining_paymentnumberRemaining payment amount to pay on delivery
-
invoicedbooleanIf this value is false it indicates that the product is on lease if it is true it is on sale and we should have the data_invoice info.
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
associated_expeditionobjectAssociated expedition info
-
expedition_idstringUnique expedition identifier
-
current_statusobjectInfo about the status of the expedition
-
idstringstatus id
-
valuestringstatus value
Show 89 values Hide 89 values
ABANDONEDABSENT_INCIDENCEACCEPTEDACCEPTED_BY_MANUFACTURERCANCELLATION_REQUESTCANCELLEDCOLLECTEDCOLLECTION_REQUESTCOMPLETE_RMACONTRACT_GENERATEDCONTRACT_MISSINGCONTRACT_NOT_RETRIEVEDCONTRACT_RETRIEVEDCONTRACT_SIGNEDCUSTOMER_CONTACTEDDELIVEREDDELIVERED_CUSTODIANDELIVERED_IN_DELIVERY_POINTDELIVERED_TO_MANUFACTURERDELIVERED_TO_OLDELIVERY_IN_WAREHOUSEDELIVERY_INCIDENCEDELIVERY_REQUESTEDDELIVERY_TO_MANUFACTURERDESTROYEDDISASTERDOCUMENTATION_SENTERRORERROR_RMAEXPEDITION_CREATEDEXPIREDFAIL_CONTACTFRAUDIN_DELIVERYIN_DELIVERY_TO_MANUFACTURERIN_TRANSITIN_WAREHOUSEINCIDENCEMISSING_DATANOT_COLLECTEDNOT_DELIVEREDNOT_FRAUDNOT_PENALIZEDNOT_PICKUPNOT_SENTON_DEPARTUREORDER_MODIFIEDORDER_READYORDER_RECEIVEDOUT_OF_STOCKPAIDPENALIZEDPENDING_CUSTOMER_CONTACTPENDING_PENALTYPENDING_RMAPERMANENCE_ALREADY_LOADEDPERMANENCE_ASSOCIATEDPICKINGPICKING_STARTEDPICKUP_ACORDEDPICKUP_DONEPICKUP_FAILPICKUP_IN_PROCESSPICKUP_MODIFIEDPICKUP_REQUESTPOSSIBLE_FRAUDPREPICKINGREADY_TO_SHIPPINGREFOUND_PENDINGREJECTEDREJECTED_BY_MANUFACTURERRETURNEDRETURNED_TO_CLIENTRETURNED_TO_OLRETURNED_TO_WAREHOUSESENTSENT_TO_MANUFACTURERSENT_TO_OLSENT_TO_WAREHOUSESINISTERSTART_EXTRACTIONSTARTEDSTOREDSTORED_IN_OLTRANSPORT_INCIDENCEUNKNOWNWAREHOUSE_DELIVEREDWAREHOUSE_EXITWAREHOUSE_REJECTED
-
descriptionstringstatus description
-
finalbooleanIndicates if the status is a final state of an expedition
-
reshippablebooleanIndicates if the status is reshippable in a new expedition, but not in this one
-
reason_codestring | nullreason for the status, if needed
-
reason_descriptionstring | nullreason description, if needed
-
timestampstringstatus date
-
-
-
swap_modestring
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Swap Logistics
Get a product for a swap
/orgs /{orgId} /core /swaps /{swap_id} /products /{product_id} Authenticated with a bearer token in the Authorization header Authentication
Get a product for a swap
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
swap_idstringRequiredInternal logistics swap id
product_idstringRequiredProduct id, usually subscription_device_id
Responses
Success
-
product_idstringThe product id in mas-logistics domain, usually suscription_device_id. (Read only parameter, only for GET requests)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringThe product type. It is mandatory when using generic product_code
-
product_type_idintegerProduct Type Id
-
product_unit_pricenumberProduct Unit price
-
icc_imeistringProduct imei
-
identifierstringThe physical product identifier, usually SerialNumber/MAC/IMEI. (Read only parameter, only for GET requests)
-
quantityintegerProduct quantity
-
product_commentsstringProduct comments
-
msisdnstringMSISDN associated
-
financedbooleanIs product financed
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
remaining_paymentnumberRemaining payment amount to pay on delivery
-
invoicedbooleanIf this value is false it indicates that the product is on lease if it is true it is on sale and we should have the data_invoice info.
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
associated_expeditionobjectAssociated expedition info
-
expedition_idstringUnique expedition identifier
-
current_statusobjectInfo about the status of the expedition
-
idstringstatus id
-
valuestringstatus value
Show 89 values Hide 89 values
ABANDONEDABSENT_INCIDENCEACCEPTEDACCEPTED_BY_MANUFACTURERCANCELLATION_REQUESTCANCELLEDCOLLECTEDCOLLECTION_REQUESTCOMPLETE_RMACONTRACT_GENERATEDCONTRACT_MISSINGCONTRACT_NOT_RETRIEVEDCONTRACT_RETRIEVEDCONTRACT_SIGNEDCUSTOMER_CONTACTEDDELIVEREDDELIVERED_CUSTODIANDELIVERED_IN_DELIVERY_POINTDELIVERED_TO_MANUFACTURERDELIVERED_TO_OLDELIVERY_IN_WAREHOUSEDELIVERY_INCIDENCEDELIVERY_REQUESTEDDELIVERY_TO_MANUFACTURERDESTROYEDDISASTERDOCUMENTATION_SENTERRORERROR_RMAEXPEDITION_CREATEDEXPIREDFAIL_CONTACTFRAUDIN_DELIVERYIN_DELIVERY_TO_MANUFACTURERIN_TRANSITIN_WAREHOUSEINCIDENCEMISSING_DATANOT_COLLECTEDNOT_DELIVEREDNOT_FRAUDNOT_PENALIZEDNOT_PICKUPNOT_SENTON_DEPARTUREORDER_MODIFIEDORDER_READYORDER_RECEIVEDOUT_OF_STOCKPAIDPENALIZEDPENDING_CUSTOMER_CONTACTPENDING_PENALTYPENDING_RMAPERMANENCE_ALREADY_LOADEDPERMANENCE_ASSOCIATEDPICKINGPICKING_STARTEDPICKUP_ACORDEDPICKUP_DONEPICKUP_FAILPICKUP_IN_PROCESSPICKUP_MODIFIEDPICKUP_REQUESTPOSSIBLE_FRAUDPREPICKINGREADY_TO_SHIPPINGREFOUND_PENDINGREJECTEDREJECTED_BY_MANUFACTURERRETURNEDRETURNED_TO_CLIENTRETURNED_TO_OLRETURNED_TO_WAREHOUSESENTSENT_TO_MANUFACTURERSENT_TO_OLSENT_TO_WAREHOUSESINISTERSTART_EXTRACTIONSTARTEDSTOREDSTORED_IN_OLTRANSPORT_INCIDENCEUNKNOWNWAREHOUSE_DELIVEREDWAREHOUSE_EXITWAREHOUSE_REJECTED
-
descriptionstringstatus description
-
finalbooleanIndicates if the status is a final state of an expedition
-
reshippablebooleanIndicates if the status is reshippable in a new expedition, but not in this one
-
reason_codestring | nullreason for the status, if needed
-
reason_descriptionstring | nullreason description, if needed
-
timestampstringstatus date
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Expeditions Logistics
Get list of expeditions
/orgs /{orgId} /core /expeditions Authenticated with a bearer token in the Authorization header Authentication
Get list of expeditions filtered by the given parameters
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
sortstringSort value, multiple values allowed, separte with coma
fromstring (date-time)Date from (min) the creation of the expedition in ISO 8601 format and UTC
tostring (date-time)Date to (max) the creation of the expedition in ISO 8601 format and UTC
order_idstringFilter expeditions by order ID. Returns expeditions that contain at least one product from this order, including ALL products in those expeditions.
delivery_point_idstring[]Filter expeditions by the delivery point id of their related orders, like the store id for SHOP deliveries (Multiple values allowed separated with coma (','))
status_valuestring[]Filter expeditions by their current status value (Multiple values allowed separated with coma (','))
Show 89 valuesHide 89 values
ABANDONEDABSENT_INCIDENCEACCEPTEDACCEPTED_BY_MANUFACTURERCANCELLATION_REQUESTCANCELLEDCOLLECTEDCOLLECTION_REQUESTCOMPLETE_RMACONTRACT_GENERATEDCONTRACT_MISSINGCONTRACT_NOT_RETRIEVEDCONTRACT_RETRIEVEDCONTRACT_SIGNEDCUSTOMER_CONTACTEDDELIVEREDDELIVERED_CUSTODIANDELIVERED_IN_DELIVERY_POINTDELIVERED_TO_MANUFACTURERDELIVERED_TO_OLDELIVERY_IN_WAREHOUSEDELIVERY_INCIDENCEDELIVERY_REQUESTEDDELIVERY_TO_MANUFACTURERDESTROYEDDISASTERDOCUMENTATION_SENTERRORERROR_RMAEXPEDITION_CREATEDEXPIREDFAIL_CONTACTFRAUDIN_DELIVERYIN_DELIVERY_TO_MANUFACTURERIN_TRANSITIN_WAREHOUSEINCIDENCEMISSING_DATANOT_COLLECTEDNOT_DELIVEREDNOT_FRAUDNOT_PENALIZEDNOT_PICKUPNOT_SENTON_DEPARTUREORDER_MODIFIEDORDER_READYORDER_RECEIVEDOUT_OF_STOCKPAIDPENALIZEDPENDING_CUSTOMER_CONTACTPENDING_PENALTYPENDING_RMAPERMANENCE_ALREADY_LOADEDPERMANENCE_ASSOCIATEDPICKINGPICKING_STARTEDPICKUP_ACORDEDPICKUP_DONEPICKUP_FAILPICKUP_IN_PROCESSPICKUP_MODIFIEDPICKUP_REQUESTPOSSIBLE_FRAUDPREPICKINGREADY_TO_SHIPPINGREFOUND_PENDINGREJECTEDREJECTED_BY_MANUFACTURERRETURNEDRETURNED_TO_CLIENTRETURNED_TO_OLRETURNED_TO_WAREHOUSESENTSENT_TO_MANUFACTURERSENT_TO_OLSENT_TO_WAREHOUSESINISTERSTART_EXTRACTIONSTARTEDSTOREDSTORED_IN_OLTRANSPORT_INCIDENCEUNKNOWNWAREHOUSE_DELIVEREDWAREHOUSE_EXITWAREHOUSE_REJECTED
order_identity_documentstring[]Filter expeditions by the client identity document of their related orders (Multiple values allowed separated with coma (','))
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
expeditionsobject[]Info about the Expeditions
-
expedition_idstringExpedition id
-
created_datestring -
transportobject-
courier_idstringThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestringDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
verify_identitybooleanThe carrier must verify the identity document
-
-
trackingobjectInfo about the tracking of the order
-
tracking_linkstring | nulltracking link for the delivery
-
return_codestring | nullCode for returning the device
-
-
status_historyobject[]List of status
-
idstringstatus id
-
valuestringstatus value
Show 89 values Hide 89 values
ABANDONEDABSENT_INCIDENCEACCEPTEDACCEPTED_BY_MANUFACTURERCANCELLATION_REQUESTCANCELLEDCOLLECTEDCOLLECTION_REQUESTCOMPLETE_RMACONTRACT_GENERATEDCONTRACT_MISSINGCONTRACT_NOT_RETRIEVEDCONTRACT_RETRIEVEDCONTRACT_SIGNEDCUSTOMER_CONTACTEDDELIVEREDDELIVERED_CUSTODIANDELIVERED_IN_DELIVERY_POINTDELIVERED_TO_MANUFACTURERDELIVERED_TO_OLDELIVERY_IN_WAREHOUSEDELIVERY_INCIDENCEDELIVERY_REQUESTEDDELIVERY_TO_MANUFACTURERDESTROYEDDISASTERDOCUMENTATION_SENTERRORERROR_RMAEXPEDITION_CREATEDEXPIREDFAIL_CONTACTFRAUDIN_DELIVERYIN_DELIVERY_TO_MANUFACTURERIN_TRANSITIN_WAREHOUSEINCIDENCEMISSING_DATANOT_COLLECTEDNOT_DELIVEREDNOT_FRAUDNOT_PENALIZEDNOT_PICKUPNOT_SENTON_DEPARTUREORDER_MODIFIEDORDER_READYORDER_RECEIVEDOUT_OF_STOCKPAIDPENALIZEDPENDING_CUSTOMER_CONTACTPENDING_PENALTYPENDING_RMAPERMANENCE_ALREADY_LOADEDPERMANENCE_ASSOCIATEDPICKINGPICKING_STARTEDPICKUP_ACORDEDPICKUP_DONEPICKUP_FAILPICKUP_IN_PROCESSPICKUP_MODIFIEDPICKUP_REQUESTPOSSIBLE_FRAUDPREPICKINGREADY_TO_SHIPPINGREFOUND_PENDINGREJECTEDREJECTED_BY_MANUFACTURERRETURNEDRETURNED_TO_CLIENTRETURNED_TO_OLRETURNED_TO_WAREHOUSESENTSENT_TO_MANUFACTURERSENT_TO_OLSENT_TO_WAREHOUSESINISTERSTART_EXTRACTIONSTARTEDSTOREDSTORED_IN_OLTRANSPORT_INCIDENCEUNKNOWNWAREHOUSE_DELIVEREDWAREHOUSE_EXITWAREHOUSE_REJECTED
-
descriptionstringstatus description
-
finalbooleanIndicates if the status is a final state of an expedition
-
reshippablebooleanIndicates if the status is reshippable in a new expedition, but not in this one
-
reason_codestring | nullreason for the status, if needed
-
reason_descriptionstring | nullreason description, if needed
-
timestampstringstatus date
-
-
productsobject[]List of products
-
product_idstringThe product id in mas-logistics domain, usually suscription_device_id. (Read only parameter, only for GET requests)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringThe product type. It is mandatory when using generic product_code
-
product_type_idintegerProduct Type Id
-
product_unit_pricenumberProduct Unit price
-
icc_imeistringProduct imei
-
identifierstringThe physical product identifier, usually SerialNumber/MAC/IMEI. (Read only parameter, only for GET requests)
-
quantityintegerProduct quantity
-
product_commentsstringProduct comments
-
msisdnstringMSISDN associated
-
financedbooleanIs product financed
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
remaining_paymentnumberRemaining payment amount to pay on delivery
-
invoicedbooleanIf this value is false it indicates that the product is on lease if it is true it is on sale and we should have the data_invoice info.
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
order_idstringThe order ID this product belongs to. Each product in an expedition can belong to a different order.
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Expeditions Logistics
Get an expedition by id
/orgs /{orgId} /core /expeditions /{expedition_id} Authenticated with a bearer token in the Authorization header Authentication
Get an expedition by the expedition_id
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
expedition_idstringRequiredInternal logistics expedition id
Responses
Success
-
expedition_idstringExpedition id
-
created_datestring -
transportobject-
courier_idstringThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
delivery_servicestringDelivery service id. For unknowns values, set to DEFAULT
Show 9 values Hide 9 values
DEFAULTDELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PIN
-
verify_identitybooleanThe carrier must verify the identity document
-
-
trackingobjectInfo about the tracking of the order
-
tracking_linkstring | nulltracking link for the delivery
-
return_codestring | nullCode for returning the device
-
-
status_historyobject[]List of status
-
idstringstatus id
-
valuestringstatus value
Show 89 values Hide 89 values
ABANDONEDABSENT_INCIDENCEACCEPTEDACCEPTED_BY_MANUFACTURERCANCELLATION_REQUESTCANCELLEDCOLLECTEDCOLLECTION_REQUESTCOMPLETE_RMACONTRACT_GENERATEDCONTRACT_MISSINGCONTRACT_NOT_RETRIEVEDCONTRACT_RETRIEVEDCONTRACT_SIGNEDCUSTOMER_CONTACTEDDELIVEREDDELIVERED_CUSTODIANDELIVERED_IN_DELIVERY_POINTDELIVERED_TO_MANUFACTURERDELIVERED_TO_OLDELIVERY_IN_WAREHOUSEDELIVERY_INCIDENCEDELIVERY_REQUESTEDDELIVERY_TO_MANUFACTURERDESTROYEDDISASTERDOCUMENTATION_SENTERRORERROR_RMAEXPEDITION_CREATEDEXPIREDFAIL_CONTACTFRAUDIN_DELIVERYIN_DELIVERY_TO_MANUFACTURERIN_TRANSITIN_WAREHOUSEINCIDENCEMISSING_DATANOT_COLLECTEDNOT_DELIVEREDNOT_FRAUDNOT_PENALIZEDNOT_PICKUPNOT_SENTON_DEPARTUREORDER_MODIFIEDORDER_READYORDER_RECEIVEDOUT_OF_STOCKPAIDPENALIZEDPENDING_CUSTOMER_CONTACTPENDING_PENALTYPENDING_RMAPERMANENCE_ALREADY_LOADEDPERMANENCE_ASSOCIATEDPICKINGPICKING_STARTEDPICKUP_ACORDEDPICKUP_DONEPICKUP_FAILPICKUP_IN_PROCESSPICKUP_MODIFIEDPICKUP_REQUESTPOSSIBLE_FRAUDPREPICKINGREADY_TO_SHIPPINGREFOUND_PENDINGREJECTEDREJECTED_BY_MANUFACTURERRETURNEDRETURNED_TO_CLIENTRETURNED_TO_OLRETURNED_TO_WAREHOUSESENTSENT_TO_MANUFACTURERSENT_TO_OLSENT_TO_WAREHOUSESINISTERSTART_EXTRACTIONSTARTEDSTOREDSTORED_IN_OLTRANSPORT_INCIDENCEUNKNOWNWAREHOUSE_DELIVEREDWAREHOUSE_EXITWAREHOUSE_REJECTED
-
descriptionstringstatus description
-
finalbooleanIndicates if the status is a final state of an expedition
-
reshippablebooleanIndicates if the status is reshippable in a new expedition, but not in this one
-
reason_codestring | nullreason for the status, if needed
-
reason_descriptionstring | nullreason description, if needed
-
timestampstringstatus date
-
-
productsobject[]List of products
-
product_idstringThe product id in mas-logistics domain, usually suscription_device_id. (Read only parameter, only for GET requests)
-
product_codestring RequiredProduct code
-
product_descriptionstringProduct description
-
product_typestringThe product type. It is mandatory when using generic product_code
-
product_type_idintegerProduct Type Id
-
product_unit_pricenumberProduct Unit price
-
icc_imeistringProduct imei
-
identifierstringThe physical product identifier, usually SerialNumber/MAC/IMEI. (Read only parameter, only for GET requests)
-
quantityintegerProduct quantity
-
product_commentsstringProduct comments
-
msisdnstringMSISDN associated
-
financedbooleanIs product financed
-
subscription_device_idstring RequiredSubscription device Id. Mandatory value.
-
remaining_paymentnumberRemaining payment amount to pay on delivery
-
invoicedbooleanIf this value is false it indicates that the product is on lease if it is true it is on sale and we should have the data_invoice info.
-
statusstringThe status of the product. (Read only parameter, only for GET requests)
-
order_idstringThe order ID this product belongs to. Each product in an expedition can belong to a different order.
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
External Logistic Operator
Notify an order status
/orgs /{orgId} /external /status Authenticated with a bearer token in the Authorization header Authentication
Notify a new order status to MasLogistics from an external logistic operator
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Request body application/json Required
Information needed to send a status order update
-
order_id_externalstring RequiredExternal order identifier generated by the logistics operator (For example, the MasLola id). Must be constant for the same order
-
expedition_id_externalstringExternal expedition identifier generated by the logistics operator (For example, the EuroLogistics id). It may change during the order process
-
reexpeditionstring RequiredReexpedition identifier
-
order_datestringOrder date in ISO 8601 format and UTC
-
logistics_operatorstringlogistic operator
-
delivery_typestring RequiredDelivery type.
-
process_typestringLogistics process type.
Show 13 values Hide 13 values
SWAPPEDIDOBAJADESISTIMIENTOCANCELACIONFIXDOAFINALPAYMENTBREAKDOWN_DELIVERYBREAKDOWN_PICKUPMIGRATION_DELIVERYMIGRATION_PICKUPCANCELLATION_SHOP
-
logistic_operationstringLogistic operation.
-
portabilitybooleanorder with associated portability
-
businessstringBusiness name
-
statusobject Required-
idstring RequiredStatus id
-
descriptionstringDescription about status
-
timestampstring RequiredOrder status timestamp in ISO 8601 format and UTC
-
reasonobject-
codestringThe reason code of the status
-
descriptionstringThe reason description of the status
-
-
-
journeysobject[] Required-
devicesobject[] Required-
subscriptionobject Required-
subscription_idstring | nullSubscription identifier
-
order_idstring RequiredOrder identifier
-
msisdnstring | nullMobile Station International Subscriber Directory Number. MSISDN associated for the order associated to the device.
-
-
typeobject-
action_idstringAction id
-
family_idstringFamily code
-
idstringDevice type identifier. NULLABLE.
Show 9 values Hide 9 values
SIMTERMINALROUTERSMART_TVSMARTHOMESTBSTB_APPLEGENERICWIFIMESH
-
-
referencestring RequiredDevice reference
-
replacementstringreplacement , posible values "Y" or "N"
-
identifierstringDevice's identifier
-
additional_identifierstringAdditional identifier, if exists
-
activebooleanThe flag will be true if the device has been delivered and false if it has been collected
-
subscription_device_idstringSubscription device Id
-
priceobject-
markupobject-
totalnumberTotal Amount
-
currencystringCurrency as ISO 4217 code
-
-
no_markupobject-
totalnumberTotal Amount
-
currencystringCurrency as ISO 4217 code
-
-
-
-
transportobject-
delivery_detailsobject-
packageobject-
weightnumberWeight in kg.
-
dimensionsnumberVolume.
-
-
coveragebooleanIs covered by insurance
-
secure_deliverybooleanDefines if delivery should be secure
-
remaining_paymentobject-
totalnumberTotal Amount
-
currencystringCurrency as ISO 4217 code
-
-
recipient_verificationobject-
exclusive_deliverybooleanThe carrier must verify the identity document
-
verificationobject
-
-
-
delivery_datestring (date)Expected delivery date (YYYY-MM-DD).
-
courierstring RequiredThe courier identifier. For unknowns values, set to DEFAULT
Show 13 values Hide 13 values
DEFAULTGLSHLASIGNASENDINGSEURCORREOSCORREOS_EXPRESSSUS_MEDIOSINSIDEZELERISCTTADER
-
servicestring RequiredLogistics Service type
Show 9 values Hide 9 values
DELIVERY_24DELIVERY_10AMDELIVERY_14AMDELIVERY_72DELIVERY_SECUREDDELIVERY_INSTALLDELIVERY_STANDARDDELIVERY_PINDEFAULT
-
tracking_linkstringTracking link. When the status notified is IN_TRANSIT, at least one of tracking_link or expedition_number must be present.
-
expedition_numberstringThe expedition number of the courier when its postal office. When the status notified is IN_TRANSIT, at least one of expedition_number or tracking_link must be present.
-
otpstringOne-time code generated from the courier expedition code, used to validate the pickup in shop
-
delivery_noteobject-
delivery_note_idstringIdentificative number of the delivery note
-
linkstringLink to the delivery note
-
-
-
-
documentation_onlybooleanorder with only documentation
-
documentationobject[]-
preprintedboolean -
total_pagesnumberTotal printed pages
-
documentsobject[]-
recipientstringRecipient of the documentation
-
document_typestringType of document
Show 9 values Hide 9 values
WLINECONTRACTINVOICESEPAMIGRATIONPARTICULAR_CONDITIONSFINANCING_CONDITIONSPORTABILITY_VALIDATION
-
quantitynumberQuantity of this document
-
-
-
customer_delivering_infoobjectCustomer delivering information. Mandatory if the order is not present or if the customer delivering info has been changed from last status (Marked as updated).
-
addressobject-
building_street_typestringStreet type
-
building_street_namestringStreet name
-
building_numberstringBuilding number
-
building_floorstringBuilding floor
-
building_othersstringOther address parameters
-
citystringCity
-
zipcodestringZip code
-
regionstringRegion
-
countrystringCountry ISO 3166
-
-
clientobject Required-
identityobject Required-
document_idstring RequiredIdentity Document Id
-
document_typestring RequiredIdentity Document Type
-
-
contact_phoneobject Required-
phone_numberstring RequiredPhone Number
-
prefixstringPhone prefix
-
-
namestringClient name
-
surnamesstring[] -
emailstringClient email
-
commercial_namestringClient commercial name
-
-
languagestringPreferred language as ISO 639-1 code
-
updatedbooleanIndicates if the customer delivery info has been changed from last status
-
Responses
Success
-
codenumber -
subcodenumber -
messagestring
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
External Logistic Operator
Notify a device picking
/orgs /{orgId} /external /devices Authenticated with a bearer token in the Authorization header Authentication
Notify a device picking to MasLogistics from an external logistic operator
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Request body application/json Required
Information needed to send a device
-
subscriptionobject Required-
subscription_idstring | nullSubscription identifier
-
order_idstring RequiredOrder identifier
-
msisdnstring | nullMobile Station International Subscriber Directory Number. MSISDN associated for the order associated to the device.
-
-
typeobject-
action_idstringAction id
-
family_idstringFamily code
-
idstringDevice type identifier. NULLABLE.
Show 9 values Hide 9 values
SIMTERMINALROUTERSMART_TVSMARTHOMESTBSTB_APPLEGENERICWIFIMESH
-
-
referencestringDevice reference
-
replacementstringreplacement , posible values "Y" or "N"
-
identifierstring RequiredDevice's identifier
-
additional_identifierstringAdditional identifier, if exists
-
activebooleanThe flag will be true if the device has been delivered and false if it has been collected
-
subscription_device_idstringSubscription device Id
-
priceobject-
markupobject-
totalnumberTotal Amount
-
currencystringCurrency as ISO 4217 code
-
-
no_markupobject-
totalnumberTotal Amount
-
currencystringCurrency as ISO 4217 code
-
-
Responses
Success
-
codenumber -
subcodenumber -
messagestring
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Get the list of recoverable devices
/orgs /{orgId} /management /recoverable-devices Authenticated with a bearer token in the Authorization header Authentication
Get the recoverable-device whitelist for an organization with pagination support
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Query parameters
sizeintegerRequiredPage size. The logistics DB caps it at 30, so larger values are rejected.
pageintegerRequiredPage number
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
recoverable_devicesobject[]-
referencestring RequiredUnique device reference (primary key). Presence in the whitelist means the device is eligible for pickup.
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Add a device reference to the recoverable-device whitelist
/orgs /{orgId} /management /recoverable-devices Authenticated with a bearer token in the Authorization header Authentication
Create a new recoverable-device record. Only whitelisted references generate pickup requests towards the logistics operator.
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Request body application/json Required
-
referencestring RequiredUnique device reference (primary key). Presence in the whitelist means the device is eligible for pickup.
Responses
Recoverable device record created
-
referencestring RequiredUnique device reference (primary key). Presence in the whitelist means the device is eligible for pickup.
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Get a recoverable device by reference
/orgs /{orgId} /management /recoverable-devices /{reference} Authenticated with a bearer token in the Authorization header Authentication
Get a recoverable-device record by reference
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
referencestringRequired
Responses
Recoverable device record found
-
referencestring RequiredUnique device reference (primary key). Presence in the whitelist means the device is eligible for pickup.
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Remove a device reference from the recoverable-device whitelist
/orgs /{orgId} /management /recoverable-devices /{reference} Authenticated with a bearer token in the Authorization header Authentication
Delete a recoverable-device record and return a confirmation message
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
referencestringRequired
Responses
Recoverable device record deleted successfully
-
messagestring -
referencestring
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Get list of communication configurations
/orgs /{orgId} /management /communications Authenticated with a bearer token in the Authorization header Authentication
Get a list of communication configurations for an organization with pagination support
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
uuidStatusstringFilter by trigger uuidStatus
deliveryTypestringFilter by trigger deliveryType
documentationOnlybooleanFilter by documentationOnly flag
extraordinarybooleanFilter by extraordinary flag
aliasstringFilter by communication alias; case-insensitive partial match
templateIdstringFilter by template identifier from mas-communications; exact match
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
communicationsobject[]-
communicationIdinteger (int64)Unique communication identifier (auto-generated)
-
aliasstring RequiredUnique alias for the communication
-
descriptionstringDescription of the communication
-
templateIdstring RequiredTemplate identifier from mas-communications
-
notifyChannelsboolean | nullWhether to notify through specified channels
-
channelsstring[]Communication channels
-
maxDelayFromOrderCreationstring | nullMaximum delay from order creation (ISO-8601 duration format)
-
maxDelayFromStatusReportstring | nullMaximum delay from status report (ISO-8601 duration format)
-
documentationOnlyboolean | nullWhether this communication is for documentation purposes only
-
extraordinaryboolean | nullWhether this communication applies to extraordinary operations. Null means it applies regardless of the extraordinary flag.
-
tenantsstring[]List of tenants this communication applies to
-
allowedDevicesstring[]List of device references this communication applies to
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
exclusionsobject | nullExclusion criteria as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
triggersobject[]List of trigger states associated with this communication
-
communicationTriggerIdinteger (int64)Unique trigger identifier (auto-generated)
-
communicationIdinteger (int64)Reference to parent communication
-
uuidStatusstring RequiredUUID status that triggers this communication
-
deliveryTypesstring[]Delivery types that trigger this communication
-
reminderboolean | nullWhether this trigger enables reminders
-
reminderDelaystring | nullDelay before sending reminder (ISO-8601 duration format)
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Create a new communication configuration
/orgs /{orgId} /management /communications Authenticated with a bearer token in the Authorization header Authentication
Create a new communication configuration with associated trigger states
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Request body application/json Required
-
communicationIdinteger (int64)Unique communication identifier (auto-generated)
-
aliasstring RequiredUnique alias for the communication
-
descriptionstringDescription of the communication
-
templateIdstring RequiredTemplate identifier from mas-communications
-
notifyChannelsboolean | nullWhether to notify through specified channels
-
channelsstring[]Communication channels
-
maxDelayFromOrderCreationstring | nullMaximum delay from order creation (ISO-8601 duration format)
-
maxDelayFromStatusReportstring | nullMaximum delay from status report (ISO-8601 duration format)
-
documentationOnlyboolean | nullWhether this communication is for documentation purposes only
-
extraordinaryboolean | nullWhether this communication applies to extraordinary operations. Null means it applies regardless of the extraordinary flag.
-
tenantsstring[]List of tenants this communication applies to
-
allowedDevicesstring[]List of device references this communication applies to
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
exclusionsobject | nullExclusion criteria as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
triggersobject[]List of trigger states associated with this communication
-
communicationTriggerIdinteger (int64)Unique trigger identifier (auto-generated)
-
communicationIdinteger (int64)Reference to parent communication
-
uuidStatusstring RequiredUUID status that triggers this communication
-
deliveryTypesstring[]Delivery types that trigger this communication
-
reminderboolean | nullWhether this trigger enables reminders
-
reminderDelaystring | nullDelay before sending reminder (ISO-8601 duration format)
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
Responses
Communication configuration created
-
communicationIdinteger (int64)Unique communication identifier (auto-generated)
-
aliasstring RequiredUnique alias for the communication
-
descriptionstringDescription of the communication
-
templateIdstring RequiredTemplate identifier from mas-communications
-
notifyChannelsboolean | nullWhether to notify through specified channels
-
channelsstring[]Communication channels
-
maxDelayFromOrderCreationstring | nullMaximum delay from order creation (ISO-8601 duration format)
-
maxDelayFromStatusReportstring | nullMaximum delay from status report (ISO-8601 duration format)
-
documentationOnlyboolean | nullWhether this communication is for documentation purposes only
-
extraordinaryboolean | nullWhether this communication applies to extraordinary operations. Null means it applies regardless of the extraordinary flag.
-
tenantsstring[]List of tenants this communication applies to
-
allowedDevicesstring[]List of device references this communication applies to
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
exclusionsobject | nullExclusion criteria as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
triggersobject[]List of trigger states associated with this communication
-
communicationTriggerIdinteger (int64)Unique trigger identifier (auto-generated)
-
communicationIdinteger (int64)Reference to parent communication
-
uuidStatusstring RequiredUUID status that triggers this communication
-
deliveryTypesstring[]Delivery types that trigger this communication
-
reminderboolean | nullWhether this trigger enables reminders
-
reminderDelaystring | nullDelay before sending reminder (ISO-8601 duration format)
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Get a communication configuration by id
/orgs /{orgId} /management /communications /{communicationId} Authenticated with a bearer token in the Authorization header Authentication
Get a complete communication configuration including triggers by communication id
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
communicationIdinteger (int64)Required
Responses
Communication configuration found
-
communicationIdinteger (int64)Unique communication identifier (auto-generated)
-
aliasstring RequiredUnique alias for the communication
-
descriptionstringDescription of the communication
-
templateIdstring RequiredTemplate identifier from mas-communications
-
notifyChannelsboolean | nullWhether to notify through specified channels
-
channelsstring[]Communication channels
-
maxDelayFromOrderCreationstring | nullMaximum delay from order creation (ISO-8601 duration format)
-
maxDelayFromStatusReportstring | nullMaximum delay from status report (ISO-8601 duration format)
-
documentationOnlyboolean | nullWhether this communication is for documentation purposes only
-
extraordinaryboolean | nullWhether this communication applies to extraordinary operations. Null means it applies regardless of the extraordinary flag.
-
tenantsstring[]List of tenants this communication applies to
-
allowedDevicesstring[]List of device references this communication applies to
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
exclusionsobject | nullExclusion criteria as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
triggersobject[]List of trigger states associated with this communication
-
communicationTriggerIdinteger (int64)Unique trigger identifier (auto-generated)
-
communicationIdinteger (int64)Reference to parent communication
-
uuidStatusstring RequiredUUID status that triggers this communication
-
deliveryTypesstring[]Delivery types that trigger this communication
-
reminderboolean | nullWhether this trigger enables reminders
-
reminderDelaystring | nullDelay before sending reminder (ISO-8601 duration format)
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Update a communication configuration
/orgs /{orgId} /management /communications /{communicationId} Authenticated with a bearer token in the Authorization header Authentication
Update an existing communication configuration and its triggers
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
communicationIdinteger (int64)Required
Request body application/json Required
-
communicationIdinteger (int64)Unique communication identifier (auto-generated)
-
aliasstring RequiredUnique alias for the communication
-
descriptionstringDescription of the communication
-
templateIdstring RequiredTemplate identifier from mas-communications
-
notifyChannelsboolean | nullWhether to notify through specified channels
-
channelsstring[]Communication channels
-
maxDelayFromOrderCreationstring | nullMaximum delay from order creation (ISO-8601 duration format)
-
maxDelayFromStatusReportstring | nullMaximum delay from status report (ISO-8601 duration format)
-
documentationOnlyboolean | nullWhether this communication is for documentation purposes only
-
extraordinaryboolean | nullWhether this communication applies to extraordinary operations. Null means it applies regardless of the extraordinary flag.
-
tenantsstring[]List of tenants this communication applies to
-
allowedDevicesstring[]List of device references this communication applies to
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
exclusionsobject | nullExclusion criteria as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
triggersobject[]List of trigger states associated with this communication
-
communicationTriggerIdinteger (int64)Unique trigger identifier (auto-generated)
-
communicationIdinteger (int64)Reference to parent communication
-
uuidStatusstring RequiredUUID status that triggers this communication
-
deliveryTypesstring[]Delivery types that trigger this communication
-
reminderboolean | nullWhether this trigger enables reminders
-
reminderDelaystring | nullDelay before sending reminder (ISO-8601 duration format)
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
Responses
Communication configuration updated
-
communicationIdinteger (int64)Unique communication identifier (auto-generated)
-
aliasstring RequiredUnique alias for the communication
-
descriptionstringDescription of the communication
-
templateIdstring RequiredTemplate identifier from mas-communications
-
notifyChannelsboolean | nullWhether to notify through specified channels
-
channelsstring[]Communication channels
-
maxDelayFromOrderCreationstring | nullMaximum delay from order creation (ISO-8601 duration format)
-
maxDelayFromStatusReportstring | nullMaximum delay from status report (ISO-8601 duration format)
-
documentationOnlyboolean | nullWhether this communication is for documentation purposes only
-
extraordinaryboolean | nullWhether this communication applies to extraordinary operations. Null means it applies regardless of the extraordinary flag.
-
tenantsstring[]List of tenants this communication applies to
-
allowedDevicesstring[]List of device references this communication applies to
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
exclusionsobject | nullExclusion criteria as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
triggersobject[]List of trigger states associated with this communication
-
communicationTriggerIdinteger (int64)Unique trigger identifier (auto-generated)
-
communicationIdinteger (int64)Reference to parent communication
-
uuidStatusstring RequiredUUID status that triggers this communication
-
deliveryTypesstring[]Delivery types that trigger this communication
-
reminderboolean | nullWhether this trigger enables reminders
-
reminderDelaystring | nullDelay before sending reminder (ISO-8601 duration format)
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Delete a communication configuration by id
/orgs /{orgId} /management /communications /{communicationId} Authenticated with a bearer token in the Authorization header Authentication
Delete a communication configuration and return a confirmation message
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
communicationIdinteger (int64)Required
Responses
Communication configuration deleted successfully
-
messagestring -
referencestring
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Get a page of statuses
/orgs /{orgId} /management /statuses Authenticated with a bearer token in the Authorization header Authentication
Get a page of active statuses, each with its status externals, events and communications
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
status_idstringFilter by status identifier
valuestringFilter by status value
descriptionstringFilter by text contained in the status description
finalbooleanFilter by final flag
reshippablebooleanFilter by reshippable flag
status_external_olstringFilter by logistic operator of a status external
status_external_idstringFilter by external status of a status external
status_external_process_typestringFilter by process type of a status external
Show 15 valuesHide 15 values
PEDIDOBAJAFINALPAYMENTDOASWAPDESISTIMIENTOFIXCANCELACIONBREAKDOWN_DELIVERYBREAKDOWN_PICKUPMIGRATION_DELIVERYMIGRATION_PICKUPMIGRATIONBREAKDOWNCANCELLATION_SHOP
event_typestringFilter by event type
event_topicstringFilter by event topic
communication_aliasstringFilter by text contained in the alias of a communication
communication_template_idstringFilter by template id of a communication
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
statusesobject[]-
statusIdstringStatus identifier. Optional on creation; read only afterwards.
-
valuestring RequiredStatus value from the status value catalog
-
descriptionstring -
finalboolean -
endClientJourneyboolean -
reshippableboolean -
notifyStatusIdstring | nullStatus that is notified instead of this one
-
checkPreviousStatusIdstring | nullStatus that must have been reported before this one
-
statusExternalsobject[]-
idinteger (int64) -
statusIdstring -
olstring RequiredLogistic operator
-
processTypestring RequiredProcess type
Show 15 values Hide 15 values
PEDIDOBAJAFINALPAYMENTDOASWAPDESISTIMIENTOFIXCANCELACIONBREAKDOWN_DELIVERYBREAKDOWN_PICKUPMIGRATION_DELIVERYMIGRATION_PICKUPMIGRATIONBREAKDOWNCANCELLATION_SHOP
-
externalStatusstring Required
-
-
eventsobject[]-
idinteger (int64) -
statusIdstring -
eventTypestring Required -
topicSubjectstring Required -
topicVersionstring Required -
enabledboolean -
checkExistsPreviousStatusIdstring | null -
checkNotExistsPreviousStatusIdstring | null
-
-
communicationsobject[]Communications of the status, each with only the triggers of this status
-
communicationIdinteger (int64)Unique communication identifier (auto-generated)
-
aliasstring RequiredUnique alias for the communication
-
descriptionstringDescription of the communication
-
templateIdstring RequiredTemplate identifier from mas-communications
-
notifyChannelsboolean | nullWhether to notify through specified channels
-
channelsstring[]Communication channels
-
maxDelayFromOrderCreationstring | nullMaximum delay from order creation (ISO-8601 duration format)
-
maxDelayFromStatusReportstring | nullMaximum delay from status report (ISO-8601 duration format)
-
documentationOnlyboolean | nullWhether this communication is for documentation purposes only
-
extraordinaryboolean | nullWhether this communication applies to extraordinary operations. Null means it applies regardless of the extraordinary flag.
-
tenantsstring[]List of tenants this communication applies to
-
allowedDevicesstring[]List of device references this communication applies to
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
exclusionsobject | nullExclusion criteria as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
triggersobject[]List of trigger states associated with this communication
-
communicationTriggerIdinteger (int64)Unique trigger identifier (auto-generated)
-
communicationIdinteger (int64)Reference to parent communication
-
uuidStatusstring RequiredUUID status that triggers this communication
-
deliveryTypesstring[]Delivery types that trigger this communication
-
reminderboolean | nullWhether this trigger enables reminders
-
reminderDelaystring | nullDelay before sending reminder (ISO-8601 duration format)
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Create a status
/orgs /{orgId} /management /statuses Authenticated with a bearer token in the Authorization header Authentication
Create a status. The statusId is optional; if it is numeric and free it is used, otherwise the next free numeric id is assigned.
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
Request body application/json Required
-
statusIdstringStatus identifier. Optional on creation; read only afterwards.
-
valuestring RequiredStatus value from the status value catalog
-
descriptionstring -
finalboolean -
endClientJourneyboolean -
reshippableboolean -
notifyStatusIdstring | nullStatus that is notified instead of this one
-
checkPreviousStatusIdstring | nullStatus that must have been reported before this one
-
statusExternalsobject[]-
idinteger (int64) -
statusIdstring -
olstring RequiredLogistic operator
-
processTypestring RequiredProcess type
Show 15 values Hide 15 values
PEDIDOBAJAFINALPAYMENTDOASWAPDESISTIMIENTOFIXCANCELACIONBREAKDOWN_DELIVERYBREAKDOWN_PICKUPMIGRATION_DELIVERYMIGRATION_PICKUPMIGRATIONBREAKDOWNCANCELLATION_SHOP
-
externalStatusstring Required
-
-
eventsobject[]-
idinteger (int64) -
statusIdstring -
eventTypestring Required -
topicSubjectstring Required -
topicVersionstring Required -
enabledboolean -
checkExistsPreviousStatusIdstring | null -
checkNotExistsPreviousStatusIdstring | null
-
-
communicationsobject[]Communications of the status, each with only the triggers of this status
-
communicationIdinteger (int64)Unique communication identifier (auto-generated)
-
aliasstring RequiredUnique alias for the communication
-
descriptionstringDescription of the communication
-
templateIdstring RequiredTemplate identifier from mas-communications
-
notifyChannelsboolean | nullWhether to notify through specified channels
-
channelsstring[]Communication channels
-
maxDelayFromOrderCreationstring | nullMaximum delay from order creation (ISO-8601 duration format)
-
maxDelayFromStatusReportstring | nullMaximum delay from status report (ISO-8601 duration format)
-
documentationOnlyboolean | nullWhether this communication is for documentation purposes only
-
extraordinaryboolean | nullWhether this communication applies to extraordinary operations. Null means it applies regardless of the extraordinary flag.
-
tenantsstring[]List of tenants this communication applies to
-
allowedDevicesstring[]List of device references this communication applies to
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
exclusionsobject | nullExclusion criteria as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
triggersobject[]List of trigger states associated with this communication
-
communicationTriggerIdinteger (int64)Unique trigger identifier (auto-generated)
-
communicationIdinteger (int64)Reference to parent communication
-
uuidStatusstring RequiredUUID status that triggers this communication
-
deliveryTypesstring[]Delivery types that trigger this communication
-
reminderboolean | nullWhether this trigger enables reminders
-
reminderDelaystring | nullDelay before sending reminder (ISO-8601 duration format)
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
-
Responses
Status created
-
statusIdstringStatus identifier. Optional on creation; read only afterwards.
-
valuestring RequiredStatus value from the status value catalog
-
descriptionstring -
finalboolean -
endClientJourneyboolean -
reshippableboolean -
notifyStatusIdstring | nullStatus that is notified instead of this one
-
checkPreviousStatusIdstring | nullStatus that must have been reported before this one
-
statusExternalsobject[]-
idinteger (int64) -
statusIdstring -
olstring RequiredLogistic operator
-
processTypestring RequiredProcess type
Show 15 values Hide 15 values
PEDIDOBAJAFINALPAYMENTDOASWAPDESISTIMIENTOFIXCANCELACIONBREAKDOWN_DELIVERYBREAKDOWN_PICKUPMIGRATION_DELIVERYMIGRATION_PICKUPMIGRATIONBREAKDOWNCANCELLATION_SHOP
-
externalStatusstring Required
-
-
eventsobject[]-
idinteger (int64) -
statusIdstring -
eventTypestring Required -
topicSubjectstring Required -
topicVersionstring Required -
enabledboolean -
checkExistsPreviousStatusIdstring | null -
checkNotExistsPreviousStatusIdstring | null
-
-
communicationsobject[]Communications of the status, each with only the triggers of this status
-
communicationIdinteger (int64)Unique communication identifier (auto-generated)
-
aliasstring RequiredUnique alias for the communication
-
descriptionstringDescription of the communication
-
templateIdstring RequiredTemplate identifier from mas-communications
-
notifyChannelsboolean | nullWhether to notify through specified channels
-
channelsstring[]Communication channels
-
maxDelayFromOrderCreationstring | nullMaximum delay from order creation (ISO-8601 duration format)
-
maxDelayFromStatusReportstring | nullMaximum delay from status report (ISO-8601 duration format)
-
documentationOnlyboolean | nullWhether this communication is for documentation purposes only
-
extraordinaryboolean | nullWhether this communication applies to extraordinary operations. Null means it applies regardless of the extraordinary flag.
-
tenantsstring[]List of tenants this communication applies to
-
allowedDevicesstring[]List of device references this communication applies to
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
exclusionsobject | nullExclusion criteria as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
triggersobject[]List of trigger states associated with this communication
-
communicationTriggerIdinteger (int64)Unique trigger identifier (auto-generated)
-
communicationIdinteger (int64)Reference to parent communication
-
uuidStatusstring RequiredUUID status that triggers this communication
-
deliveryTypesstring[]Delivery types that trigger this communication
-
reminderboolean | nullWhether this trigger enables reminders
-
reminderDelaystring | nullDelay before sending reminder (ISO-8601 duration format)
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Get a status by id
/orgs /{orgId} /management /statuses /{statusId} Authenticated with a bearer token in the Authorization header Authentication
Get an active status with its status externals, events and communications
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
statusIdstringRequiredStatus identifier
Responses
Status found
-
statusIdstringStatus identifier. Optional on creation; read only afterwards.
-
valuestring RequiredStatus value from the status value catalog
-
descriptionstring -
finalboolean -
endClientJourneyboolean -
reshippableboolean -
notifyStatusIdstring | nullStatus that is notified instead of this one
-
checkPreviousStatusIdstring | nullStatus that must have been reported before this one
-
statusExternalsobject[]-
idinteger (int64) -
statusIdstring -
olstring RequiredLogistic operator
-
processTypestring RequiredProcess type
Show 15 values Hide 15 values
PEDIDOBAJAFINALPAYMENTDOASWAPDESISTIMIENTOFIXCANCELACIONBREAKDOWN_DELIVERYBREAKDOWN_PICKUPMIGRATION_DELIVERYMIGRATION_PICKUPMIGRATIONBREAKDOWNCANCELLATION_SHOP
-
externalStatusstring Required
-
-
eventsobject[]-
idinteger (int64) -
statusIdstring -
eventTypestring Required -
topicSubjectstring Required -
topicVersionstring Required -
enabledboolean -
checkExistsPreviousStatusIdstring | null -
checkNotExistsPreviousStatusIdstring | null
-
-
communicationsobject[]Communications of the status, each with only the triggers of this status
-
communicationIdinteger (int64)Unique communication identifier (auto-generated)
-
aliasstring RequiredUnique alias for the communication
-
descriptionstringDescription of the communication
-
templateIdstring RequiredTemplate identifier from mas-communications
-
notifyChannelsboolean | nullWhether to notify through specified channels
-
channelsstring[]Communication channels
-
maxDelayFromOrderCreationstring | nullMaximum delay from order creation (ISO-8601 duration format)
-
maxDelayFromStatusReportstring | nullMaximum delay from status report (ISO-8601 duration format)
-
documentationOnlyboolean | nullWhether this communication is for documentation purposes only
-
extraordinaryboolean | nullWhether this communication applies to extraordinary operations. Null means it applies regardless of the extraordinary flag.
-
tenantsstring[]List of tenants this communication applies to
-
allowedDevicesstring[]List of device references this communication applies to
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
exclusionsobject | nullExclusion criteria as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
triggersobject[]List of trigger states associated with this communication
-
communicationTriggerIdinteger (int64)Unique trigger identifier (auto-generated)
-
communicationIdinteger (int64)Reference to parent communication
-
uuidStatusstring RequiredUUID status that triggers this communication
-
deliveryTypesstring[]Delivery types that trigger this communication
-
reminderboolean | nullWhether this trigger enables reminders
-
reminderDelaystring | nullDelay before sending reminder (ISO-8601 duration format)
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Update a status
/orgs /{orgId} /management /statuses /{statusId} Authenticated with a bearer token in the Authorization header Authentication
Update the editable fields of an active status. The statusId cannot be changed.
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
statusIdstringRequiredStatus identifier
Request body application/json Required
-
statusIdstringStatus identifier. Optional on creation; read only afterwards.
-
valuestring RequiredStatus value from the status value catalog
-
descriptionstring -
finalboolean -
endClientJourneyboolean -
reshippableboolean -
notifyStatusIdstring | nullStatus that is notified instead of this one
-
checkPreviousStatusIdstring | nullStatus that must have been reported before this one
-
statusExternalsobject[]-
idinteger (int64) -
statusIdstring -
olstring RequiredLogistic operator
-
processTypestring RequiredProcess type
Show 15 values Hide 15 values
PEDIDOBAJAFINALPAYMENTDOASWAPDESISTIMIENTOFIXCANCELACIONBREAKDOWN_DELIVERYBREAKDOWN_PICKUPMIGRATION_DELIVERYMIGRATION_PICKUPMIGRATIONBREAKDOWNCANCELLATION_SHOP
-
externalStatusstring Required
-
-
eventsobject[]-
idinteger (int64) -
statusIdstring -
eventTypestring Required -
topicSubjectstring Required -
topicVersionstring Required -
enabledboolean -
checkExistsPreviousStatusIdstring | null -
checkNotExistsPreviousStatusIdstring | null
-
-
communicationsobject[]Communications of the status, each with only the triggers of this status
-
communicationIdinteger (int64)Unique communication identifier (auto-generated)
-
aliasstring RequiredUnique alias for the communication
-
descriptionstringDescription of the communication
-
templateIdstring RequiredTemplate identifier from mas-communications
-
notifyChannelsboolean | nullWhether to notify through specified channels
-
channelsstring[]Communication channels
-
maxDelayFromOrderCreationstring | nullMaximum delay from order creation (ISO-8601 duration format)
-
maxDelayFromStatusReportstring | nullMaximum delay from status report (ISO-8601 duration format)
-
documentationOnlyboolean | nullWhether this communication is for documentation purposes only
-
extraordinaryboolean | nullWhether this communication applies to extraordinary operations. Null means it applies regardless of the extraordinary flag.
-
tenantsstring[]List of tenants this communication applies to
-
allowedDevicesstring[]List of device references this communication applies to
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
exclusionsobject | nullExclusion criteria as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
triggersobject[]List of trigger states associated with this communication
-
communicationTriggerIdinteger (int64)Unique trigger identifier (auto-generated)
-
communicationIdinteger (int64)Reference to parent communication
-
uuidStatusstring RequiredUUID status that triggers this communication
-
deliveryTypesstring[]Delivery types that trigger this communication
-
reminderboolean | nullWhether this trigger enables reminders
-
reminderDelaystring | nullDelay before sending reminder (ISO-8601 duration format)
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
-
Responses
Status updated
-
statusIdstringStatus identifier. Optional on creation; read only afterwards.
-
valuestring RequiredStatus value from the status value catalog
-
descriptionstring -
finalboolean -
endClientJourneyboolean -
reshippableboolean -
notifyStatusIdstring | nullStatus that is notified instead of this one
-
checkPreviousStatusIdstring | nullStatus that must have been reported before this one
-
statusExternalsobject[]-
idinteger (int64) -
statusIdstring -
olstring RequiredLogistic operator
-
processTypestring RequiredProcess type
Show 15 values Hide 15 values
PEDIDOBAJAFINALPAYMENTDOASWAPDESISTIMIENTOFIXCANCELACIONBREAKDOWN_DELIVERYBREAKDOWN_PICKUPMIGRATION_DELIVERYMIGRATION_PICKUPMIGRATIONBREAKDOWNCANCELLATION_SHOP
-
externalStatusstring Required
-
-
eventsobject[]-
idinteger (int64) -
statusIdstring -
eventTypestring Required -
topicSubjectstring Required -
topicVersionstring Required -
enabledboolean -
checkExistsPreviousStatusIdstring | null -
checkNotExistsPreviousStatusIdstring | null
-
-
communicationsobject[]Communications of the status, each with only the triggers of this status
-
communicationIdinteger (int64)Unique communication identifier (auto-generated)
-
aliasstring RequiredUnique alias for the communication
-
descriptionstringDescription of the communication
-
templateIdstring RequiredTemplate identifier from mas-communications
-
notifyChannelsboolean | nullWhether to notify through specified channels
-
channelsstring[]Communication channels
-
maxDelayFromOrderCreationstring | nullMaximum delay from order creation (ISO-8601 duration format)
-
maxDelayFromStatusReportstring | nullMaximum delay from status report (ISO-8601 duration format)
-
documentationOnlyboolean | nullWhether this communication is for documentation purposes only
-
extraordinaryboolean | nullWhether this communication applies to extraordinary operations. Null means it applies regardless of the extraordinary flag.
-
tenantsstring[]List of tenants this communication applies to
-
allowedDevicesstring[]List of device references this communication applies to
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
exclusionsobject | nullExclusion criteria as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
triggersobject[]List of trigger states associated with this communication
-
communicationTriggerIdinteger (int64)Unique trigger identifier (auto-generated)
-
communicationIdinteger (int64)Reference to parent communication
-
uuidStatusstring RequiredUUID status that triggers this communication
-
deliveryTypesstring[]Delivery types that trigger this communication
-
reminderboolean | nullWhether this trigger enables reminders
-
reminderDelaystring | nullDelay before sending reminder (ISO-8601 duration format)
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Deactivate a status
/orgs /{orgId} /management /statuses /{statusId} Authenticated with a bearer token in the Authorization header Authentication
Deactivate a status. Its status externals, events and communication triggers are deleted and the references other statuses hold to it are cleared. A deactivated status cannot be restored.
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
statusIdstringRequiredStatus identifier
Responses
Status deactivated
-
messagestring -
referencestring
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Get a page of an status externals of a status
/orgs /{orgId} /management /statuses /{statusId} /status-externals Authenticated with a bearer token in the Authorization header Authentication
Get a page of an status externals of an active status
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
statusIdstringRequiredStatus identifier
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
statusExternalsobject[]-
idinteger (int64) -
statusIdstring -
olstring RequiredLogistic operator
-
processTypestring RequiredProcess type
Show 15 values Hide 15 values
PEDIDOBAJAFINALPAYMENTDOASWAPDESISTIMIENTOFIXCANCELACIONBREAKDOWN_DELIVERYBREAKDOWN_PICKUPMIGRATION_DELIVERYMIGRATION_PICKUPMIGRATIONBREAKDOWNCANCELLATION_SHOP
-
externalStatusstring Required
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Create an status external of a status
/orgs /{orgId} /management /statuses /{statusId} /status-externals Authenticated with a bearer token in the Authorization header Authentication
Create an status external of an active status. It fails if the status is deactivated.
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
statusIdstringRequiredStatus identifier
Request body application/json Required
-
idinteger (int64) -
statusIdstring -
olstring RequiredLogistic operator
-
processTypestring RequiredProcess type
Show 15 values Hide 15 values
PEDIDOBAJAFINALPAYMENTDOASWAPDESISTIMIENTOFIXCANCELACIONBREAKDOWN_DELIVERYBREAKDOWN_PICKUPMIGRATION_DELIVERYMIGRATION_PICKUPMIGRATIONBREAKDOWNCANCELLATION_SHOP
-
externalStatusstring Required
Responses
Created
-
idinteger (int64) -
statusIdstring -
olstring RequiredLogistic operator
-
processTypestring RequiredProcess type
Show 15 values Hide 15 values
PEDIDOBAJAFINALPAYMENTDOASWAPDESISTIMIENTOFIXCANCELACIONBREAKDOWN_DELIVERYBREAKDOWN_PICKUPMIGRATION_DELIVERYMIGRATION_PICKUPMIGRATIONBREAKDOWNCANCELLATION_SHOP
-
externalStatusstring Required
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Update an status external
/orgs /{orgId} /management /status-externals /{id} Authenticated with a bearer token in the Authorization header Authentication
Update an status external. The status it belongs to cannot be changed.
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
idinteger (int64)Required
Request body application/json Required
-
idinteger (int64) -
statusIdstring -
olstring RequiredLogistic operator
-
processTypestring RequiredProcess type
Show 15 values Hide 15 values
PEDIDOBAJAFINALPAYMENTDOASWAPDESISTIMIENTOFIXCANCELACIONBREAKDOWN_DELIVERYBREAKDOWN_PICKUPMIGRATION_DELIVERYMIGRATION_PICKUPMIGRATIONBREAKDOWNCANCELLATION_SHOP
-
externalStatusstring Required
Responses
Updated
-
idinteger (int64) -
statusIdstring -
olstring RequiredLogistic operator
-
processTypestring RequiredProcess type
Show 15 values Hide 15 values
PEDIDOBAJAFINALPAYMENTDOASWAPDESISTIMIENTOFIXCANCELACIONBREAKDOWN_DELIVERYBREAKDOWN_PICKUPMIGRATION_DELIVERYMIGRATION_PICKUPMIGRATIONBREAKDOWNCANCELLATION_SHOP
-
externalStatusstring Required
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Delete an status external
/orgs /{orgId} /management /status-externals /{id} Authenticated with a bearer token in the Authorization header Authentication
Physically delete an status external
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
idinteger (int64)Required
Responses
Deleted
-
messagestring -
referencestring
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Get a page of an event rules of a status
/orgs /{orgId} /management /statuses /{statusId} /events Authenticated with a bearer token in the Authorization header Authentication
Get a page of an event rules of an active status
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
statusIdstringRequiredStatus identifier
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
eventsobject[]-
idinteger (int64) -
statusIdstring -
eventTypestring Required -
topicSubjectstring Required -
topicVersionstring Required -
enabledboolean -
checkExistsPreviousStatusIdstring | null -
checkNotExistsPreviousStatusIdstring | null
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Create an event rule of a status
/orgs /{orgId} /management /statuses /{statusId} /events Authenticated with a bearer token in the Authorization header Authentication
Create an event rule of an active status. It fails if the status is deactivated.
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
statusIdstringRequiredStatus identifier
Request body application/json Required
-
idinteger (int64) -
statusIdstring -
eventTypestring Required -
topicSubjectstring Required -
topicVersionstring Required -
enabledboolean -
checkExistsPreviousStatusIdstring | null -
checkNotExistsPreviousStatusIdstring | null
Responses
Created
-
idinteger (int64) -
statusIdstring -
eventTypestring Required -
topicSubjectstring Required -
topicVersionstring Required -
enabledboolean -
checkExistsPreviousStatusIdstring | null -
checkNotExistsPreviousStatusIdstring | null
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Update an event rule
/orgs /{orgId} /management /events /{id} Authenticated with a bearer token in the Authorization header Authentication
Update an event rule. The status it belongs to cannot be changed.
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
idinteger (int64)Required
Request body application/json Required
-
idinteger (int64) -
statusIdstring -
eventTypestring Required -
topicSubjectstring Required -
topicVersionstring Required -
enabledboolean -
checkExistsPreviousStatusIdstring | null -
checkNotExistsPreviousStatusIdstring | null
Responses
Updated
-
idinteger (int64) -
statusIdstring -
eventTypestring Required -
topicSubjectstring Required -
topicVersionstring Required -
enabledboolean -
checkExistsPreviousStatusIdstring | null -
checkNotExistsPreviousStatusIdstring | null
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Delete an event rule
/orgs /{orgId} /management /events /{id} Authenticated with a bearer token in the Authorization header Authentication
Physically delete an event rule
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
idinteger (int64)Required
Responses
Deleted
-
messagestring -
referencestring
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Logistics Management
Get a page of the communications of a status
/orgs /{orgId} /management /statuses /{statusId} /communications Authenticated with a bearer token in the Authorization header Authentication
Get a page of the communications of an active status; the triggers of each communication are only those of this status. Read only; communications are managed through the communications API.
Path parameters
orgIdstringRequiredOrganization name as it is registered in mas-stack
statusIdstringRequiredStatus identifier
Query parameters
sizeintegerRequiredPage size
pageintegerRequiredPage number
Responses
Success
-
page_sizeintegerPage size
-
total_pagesintegerTotal pages for page size
-
current_pageintegerCurrent page
-
total_elementsintegerTotal element
-
communicationsobject[]-
communicationIdinteger (int64)Unique communication identifier (auto-generated)
-
aliasstring RequiredUnique alias for the communication
-
descriptionstringDescription of the communication
-
templateIdstring RequiredTemplate identifier from mas-communications
-
notifyChannelsboolean | nullWhether to notify through specified channels
-
channelsstring[]Communication channels
-
maxDelayFromOrderCreationstring | nullMaximum delay from order creation (ISO-8601 duration format)
-
maxDelayFromStatusReportstring | nullMaximum delay from status report (ISO-8601 duration format)
-
documentationOnlyboolean | nullWhether this communication is for documentation purposes only
-
extraordinaryboolean | nullWhether this communication applies to extraordinary operations. Null means it applies regardless of the extraordinary flag.
-
tenantsstring[]List of tenants this communication applies to
-
allowedDevicesstring[]List of device references this communication applies to
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
exclusionsobject | nullExclusion criteria as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
triggersobject[]List of trigger states associated with this communication
-
communicationTriggerIdinteger (int64)Unique trigger identifier (auto-generated)
-
communicationIdinteger (int64)Reference to parent communication
-
uuidStatusstring RequiredUUID status that triggers this communication
-
deliveryTypesstring[]Delivery types that trigger this communication
-
reminderboolean | nullWhether this trigger enables reminders
-
reminderDelaystring | nullDelay before sending reminder (ISO-8601 duration format)
-
argumentsobject | nullAdditional arguments as JSON object
object | null -
createDatestring (date-time)Creation timestamp
-
updateDatestring (date-time)Last update timestamp
-
-
Response for client error when some field in the request is missing or invalid.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code
Response when an internal or unexpected error occurs.
-
titlestringError description
-
refstringLink to error dictionary
-
detailsstringError detail message
-
codestringInternal MasLogistics error code