MANDATORY_COMMERCIAL_DEVICES value to CPE_COMMERCIAL_DEVICES in LoadType enumCOMMERCIAL_OFFER value from LoadType enumPROMOTIONS value to LoadType enum/designer from Loadsendpoints and refactor the implementation to a separated yamlUpdate schema and endpoints:
GET /updates/{update_id}GET /updatesPOST /updateLoad schemaGET /loads endpointGET /loads/{load_id}/download_file endpoint to download the commercial offer file associated with a loadPOST /loads endpoint, type query param is now mandatory and operationId is postLoadsNOT_DEFINED value to promotion_type and promotion_category enumsload_type query param as type in GET /loads endpointoffset limit and sort query params in GET /loads endpointGET /loads endpointloads table with the following changes:
user_load to created_byuser_validation to validated_byuser_execution to executed_byload_request_date to created_atGET /loads endpoint to paginate the responseLoadResponse as Loadtenant field from Load responsePATH PARAMETERS
Organization name
QUERY PARAMETERS
The number of elements to skip before starting to collect the result set. It can be used in combination with the limit parameter to control the pagination of the result set.
The number of elements to return in the result set. It can be used in combination with the offset parameter to control the pagination of the result set.
Current status of the load
User who created the load
OK OK
{
"items": [
{
"id": "00000000-0000-0000-0000-000000000000",
"status": "EXECUTED",
"status_detail": "**REPORT**\n...",
"type": "COMMERCIAL_DEVICES_SEGMENT",
"file_name": "XXXXXXXXXXXXXX_MasMovil_Renuevo_Segmento_Oferta.xlsx",
"created_by": "user@example.com",
"created_at": "2025-01-15T10:30:00Z",
"validated_by": "user@example.com",
"validation_started_at": "2025-01-15T10:30:00Z",
"validation_finished_at": "2025-01-15T10:30:00Z",
"executed_by": "user@example.com",
"execution_started_at": "2025-01-15T10:30:00Z",
"execution_finished_at": "2025-01-15T10:30:00Z"
}
],
"pagination": {
"total": 150,
"offset": 20,
"limit": 10
}
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
items
*
| object[] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
pagination
*
| object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request Bad request
{
"error": "Bad Request",
"message": "Bad request",
"code": "020015"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
Unauthorized Unauthorized
"Origin authentication failed." curl -X GET 'https://catalogue.sta.masstack.com/v3/orgs/masmovil/loads?offset=0&limit=20' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json' PATH PARAMETERS
Organization name
QUERY PARAMETERS
file
{
"file": "string"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
file
*
| string (binary) | Document content in binary format |
Created Load created successfully
{
"id": "00000000-0000-0000-0000-000000000000"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
id
*
| string (uuid) |
Bad Request Bad request
{
"error": "Bad Request",
"message": "Bad request",
"code": "020015"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
Unauthorized Unauthorized
"Origin authentication failed." curl -X POST 'https://catalogue.sta.masstack.com/v3/orgs/masmovil/loads?type=DEVICES' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json' \
-F 'file=@/path/to/file' PATH PARAMETERS
Organization name
Unique identifier of the load
OK OK
{
"id": "00000000-0000-0000-0000-000000000000",
"status": "EXECUTED",
"status_detail": "**REPORT**\n...",
"type": "COMMERCIAL_DEVICES_SEGMENT",
"file_name": "XXXXXXXXXXXXXX_MasMovil_Renuevo_Segmento_Oferta.xlsx",
"created_by": "user@example.com",
"created_at": "2025-01-15T10:30:00Z",
"validated_by": "user@example.com",
"validation_started_at": "2025-01-15T10:30:00Z",
"validation_finished_at": "2025-01-15T10:30:00Z",
"executed_by": "user@example.com",
"execution_started_at": "2025-01-15T10:30:00Z",
"execution_finished_at": "2025-01-15T10:30:00Z"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
id
*
| string (uuid) | Load unique identifier | ||
status
*
| string | Current status of the load | ||
status_detail | string | Additional information about the load status | ||
type
*
| string | Type of offer generated by the load | ||
file_name
*
| string | Name of the file | ||
created_by
*
| string (email) | Username who created the load | ||
created_at
*
| string (date-time) | Datetime when load was created (format: YYYY-MM-DDThh:mm:ss.000Z) | ||
validated_by | string (email) | Username who requested the validation | ||
validation_started_at | string (date-time) | Datetime when validation has started (format: YYYY-MM-DDThh:mm:ss.000Z) | ||
validation_finished_at | string (date-time) | Datetime when validation has finished (format: YYYY-MM-DDThh:mm:ss.000Z) | ||
executed_by | string (email) | Username who requested the execution | ||
execution_started_at | string (date-time) | Datetime when execution has started (format: YYYY-MM-DDThh:mm:ss.000Z) | ||
execution_finished_at | string (date-time) | Datetime when execution has finished (format: YYYY-MM-DDThh:mm:ss.000Z) |
Bad Request Bad request
{
"error": "Bad Request",
"message": "Bad request",
"code": "020015"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
Unauthorized Unauthorized
"Origin authentication failed." Not Found Resource not found
{
"error": "Item not found",
"message": "Item not found",
"code": 20018
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
curl -X GET 'https://catalogue.sta.masstack.com/v3/orgs/masmovil/loads/00000000-0000-0000-0000-000000000000' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json' PATH PARAMETERS
Organization name
Unique identifier of the load
OK Successfully downloaded
"string" Bad Request Bad request
{
"error": "Bad Request",
"message": "Bad request",
"code": "020015"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
Unauthorized Unauthorized
"Origin authentication failed." Not Found Resource not found
{
"error": "Item not found",
"message": "Item not found",
"code": 20018
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
curl -X GET 'https://catalogue.sta.masstack.com/v3/orgs/masmovil/loads/00000000-0000-0000-0000-000000000000/file' \
-H 'Accept: application/octet-stream' PATH PARAMETERS
Organization name
Unique identifier of the load
Accepted Request has been accepted.
Unauthorized Unauthorized
"Origin authentication failed." Not Found Resource not found
{
"error": "Item not found",
"message": "Item not found",
"code": 20018
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
Conflict Conflict
{
"error": "Conflict",
"message": "Conflict message",
"code": 20019
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
curl -X POST 'https://catalogue.sta.masstack.com/v3/orgs/masmovil/loads/00000000-0000-0000-0000-000000000000/validation' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json' PATH PARAMETERS
Organization name
Unique identifier of the load
Accepted Request has been accepted.
Unauthorized Unauthorized
"Origin authentication failed." Not Found Resource not found
{
"error": "Item not found",
"message": "Item not found",
"code": 20018
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
Conflict Conflict
{
"error": "Conflict",
"message": "Conflict message",
"code": 20019
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
curl -X POST 'https://catalogue.sta.masstack.com/v3/orgs/masmovil/loads/00000000-0000-0000-0000-000000000000/execution' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json' Get all the commercial offer updates requests for all tenants
PATH PARAMETERS
Organization name
QUERY PARAMETERS
The number of elements to skip before starting to collect the result set. It can be used in combination with the limit parameter to control the pagination of the result set.
The number of elements to return in the result set. It can be used in combination with the offset parameter to control the pagination of the result set.
Current status of the update
User who created the update
OK OK
{
"items": [
{
"id": "00000000-0000-0000-0000-000000000000",
"status": "COMPLETED",
"status_detail": "string",
"created_by": "string",
"created_at": "2025-01-15T10:30:00Z",
"finished_at": "2025-01-15T10:30:00Z"
}
],
"pagination": {
"total": 150,
"offset": 20,
"limit": 10
}
} | Property | Type | Description | Constraints | Default | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
items
*
| object[] | ||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||
pagination
*
| object | ||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||
Bad Request Bad request
{
"error": "Bad Request",
"message": "Bad request",
"code": "020015"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
Unauthorized Unauthorized
"Origin authentication failed." curl -X GET 'https://catalogue.sta.masstack.com/v3/orgs/masmovil/updates?offset=0&limit=20' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json' Request commercial offer update for all tenants
PATH PARAMETERS
Organization name
Created Update created successfully
{
"id": "00000000-0000-0000-0000-000000000000"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
id
*
| string (uuid) |
Bad Request Bad request
{
"error": "Bad Request",
"message": "Bad request",
"code": "020015"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
Unauthorized Unauthorized
"Origin authentication failed." curl -X POST 'https://catalogue.sta.masstack.com/v3/orgs/masmovil/updates' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json' Get the information for a particular catalogue update request specified by {update_id}
PATH PARAMETERS
Organization name
Unique identifier of the update
OK OK
{
"id": "00000000-0000-0000-0000-000000000000",
"status": "COMPLETED",
"status_detail": "string",
"created_by": "string",
"created_at": "2025-01-15T10:30:00Z",
"finished_at": "2025-01-15T10:30:00Z"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
id
*
| string (uuid) | Update unique identifier | ||
status
*
| string | Current status of the update | ||
status_detail | string | Additional information about the update status | ||
created_by
*
| string | Username who created the update | ||
created_at
*
| string (date-time) | Datetime when update was created (format: YYYY-MM-DDThh:mm:ss.000Z) | ||
finished_at | string (date-time) | Datetime when update has finished (format: YYYY-MM-DDThh:mm:ss.000Z) |
Bad Request Bad request
{
"error": "Bad Request",
"message": "Bad request",
"code": "020015"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
Unauthorized Unauthorized
"Origin authentication failed." Not Found Resource not found
{
"error": "Item not found",
"message": "Item not found",
"code": 20018
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
error | string | |||
message | string | |||
code | string |
curl -X GET 'https://catalogue.sta.masstack.com/v3/orgs/masmovil/updates/00000000-0000-0000-0000-000000000000' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json'