Insurance Device

Insurance provides users access to HBO content across various application and platform combinations including mobile devices, smart TVs, and desktop computers.


Parameters

Name In Type Required Description
Request-Correlation-Id header string true Unique request identifier
organization path string true Identificador único de la organización
body body InsuranceCreationRequestDTO true Device Insurance DTO request

Request body - instance of InsuranceCreationRequestDTO

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  "documentId": "00000000F",
  "firstName": "juan",
  "lastName1": "perez",
  "lastName2": "perez",
  "msisdn": "666666666",
  "address": "paseo de castellana, 4, 002B",
  "email": "d@g.com",
  "zipCode": "28000",
  "locality": "madrid",
  "province": "madrid",
  "language": "allowed values: es => castellano, eu=> euskera, ga=>gallego, ca=>catalán",
  "sfid": "1234",
  "brand": "string",
  "model": "string",
  "price": 2.2,
  "clientType": "Autónomo",
  "invoicePayment": true,
  "productType": "Móvil",
  "imei": "string",
  "terminalSaleDate": "2022-01-31T23:00:00Z",
  "entity": "string",
  "officeCode": "string",
  "dc": "string",
  "accountNumber": "string",
  "billingCycle": "string",
  "salesChannel": "string"
}
Name Type Required Description
documentId string true none
firstName string true none
lastName1 string false none
lastName2 string false none
msisdn string false none
address string false none
email string true none
zipCode string false none
locality string false none
province string false none
language string true none
sfid string false none
brand string true none
model string true none
price number true none
clientType string false none
invoicePayment boolean false none
productType string false none
imei string false none
terminalSaleDate string false none
entity string false none
officeCode string false none
dc string false none
accountNumber string false none
billingCycle string false none
salesChannel string false none

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

curl -X POST https://provision-master.private.dev.k8s.masmovil.com/v2/orgs/{organization}/insurance/device/reserve \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Request-Correlation-Id: 01968069-ad7b-7cef-8cd0-7dddaecbf813" \
 --data-raw "{
  'documentId': '00000000F',
  'firstName': 'juan',
  'lastName1': 'perez',
  'lastName2': 'perez',
  'msisdn': '666666666',
  'address': 'paseo de castellana, 4, 002B',
  'email': 'd@g.com',
  'zipCode': '28000',
  'locality': 'madrid',
  'province': 'madrid',
  'language': 'allowed values: es => castellano, eu=> euskera, ga=>gallego, ca=>catalán',
  'sfid': '1234',
  'brand': 'string',
  'model': 'string',
  'price': 2.2,
  'clientType': 'Autónomo',
  'invoicePayment': true,
  'productType': 'Móvil',
  'imei': 'string',
  'terminalSaleDate': '2022-01-31T23:00:00Z',
  'entity': 'string',
  'officeCode': 'string',
  'dc': 'string',
  'accountNumber': 'string',
  'billingCycle': 'string',
  'salesChannel': 'string'
}" 

Responses

Code Meaning Description Schema
200 OK Order created InsuranceCreationResponseDTO
400 Bad Request Error en los datos de la solicitud None
500 Internal Server Error Error interno del servidor None

Parameters

Name In Type Required Description
Request-Correlation-Id header string true Unique request identifier
organization path string true Identificador único de la organización
body body CancelInsuranceRequest true Datos para cancelar la póliza

Request body - instance of CancelInsuranceRequest

1
2
3
4
{
  "policyNumber": "string",
  "document": "string"
}
Name Type Required Description
policyNumber string true Número de póliza
document string false Documento del asegurado

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10

curl -X POST https://provision-master.private.dev.k8s.masmovil.com/v2/orgs/{organization}/insurance/device/cancel \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Request-Correlation-Id: 01968069-ad7b-7cef-8cd0-7dddaecbf813" \
 --data-raw "{
  'policyNumber': 'string',
  'document': 'string'
}" 

Responses

Code Meaning Description Schema
200 OK The operation request was successfully accepted, returned the request external reference identifier ProcessResponse
400 Bad Request Error en los datos de la solicitud None
500 Internal Server Error Error interno del servidor None

Parameters

Name In Type Required Description
Request-Correlation-Id header string true Unique request identifier
organization path string true Identificador único de la organización
body body ActivateInsuranceRequest true Datos para activar la póliza

Request body - instance of ActivateInsuranceRequest

1
2
3
4
5
6
7
8
{
  "externalReference": "string",
  "requestId": "string",
  "policyNumber": "string",
  "imei": "string",
  "document": "string",
  "subscriptionId": "string"
}
Name Type Required Description
externalReference string false Referencia externa para la activación
requestId string true Identificador único para la solicitud
policyNumber string true Número de póliza
imei string true IMEI del dispositivo
document string true Documento del asegurado
subscriptionId string false Identificador de la suscripción

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14

curl -X POST https://provision-master.private.dev.k8s.masmovil.com/v2/orgs/{organization}/insurance/device/activate \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Request-Correlation-Id: 01968069-ad7b-7cef-8cd0-7dddaecbf813" \
 --data-raw "{
  'externalReference': 'string',
  'requestId': 'string',
  'policyNumber': 'string',
  'imei': 'string',
  'document': 'string',
  'subscriptionId': 'string'
}" 

Responses

Code Meaning Description Schema
200 OK The operation request was successfully accepted, returned the request external reference identifier ProcessResponse
400 Bad Request Error en los datos de la solicitud None
500 Internal Server Error Error interno del servidor None

Parameters

Name In Type Required Description
Request-Correlation-Id header string true Unique request identifier
organization path string true Identificador único de la organización
body body TerminateInsuranceRequest true Datos para dar de baja la póliza

Request body - instance of TerminateInsuranceRequest

1
2
3
4
5
{
  "policyNumber": "string",
  "reason": "string",
  "document": "string"
}
Name Type Required Description
policyNumber string true Número de póliza
reason string false Motivo de la baja
document string false Documento del asegurado

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

curl -X POST https://provision-master.private.dev.k8s.masmovil.com/v2/orgs/{organization}/insurance/device/terminate \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Request-Correlation-Id: 01968069-ad7b-7cef-8cd0-7dddaecbf813" \
 --data-raw "{
  'policyNumber': 'string',
  'reason': 'string',
  'document': 'string'
}" 

Responses

Code Meaning Description Schema
200 OK The operation request was successfully accepted, returned the request external reference identifier ProcessResponse
400 Bad Request Error en los datos de la solicitud None
500 Internal Server Error Error interno del servidor None

Parameters

Name In Type Required Description
Request-Correlation-Id header string true Unique request identifier
organization path string true Identificador único de la organización
phoneNumber query string false Teléfono asociado a la póliza (opcional)
document query string false Documento del asegurado (opcional)
policyNumber query string false Número de póliza (opcional)

Request example

1
2
3
4
5

curl -X GET https://provision-master.private.dev.k8s.masmovil.com/v2/orgs/{organization}/insurance/device/requestinfo?phoneNumber='string'&document='string'&policyNumber='string' \
  -H "Accept: application/json" \
  -H "Request-Correlation-Id: 01968069-ad7b-7cef-8cd0-7dddaecbf813"

Responses

Code Meaning Description Schema
200 OK Order created [InsuranceInfoResponseDTO]
400 Bad Request Error en los parámetros de consulta None
404 Not Found Póliza no encontrada None
500 Internal Server Error Error interno del servidor None

200 - instance of InsuranceInfoResponseDTO

Custom schema example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[
  {
    "certificateNumber": "string",
    "imei": "string",
    "brand": {
      "name": "string"
    },
    "model": {
      "description": "string"
    },
    "phoneNumber": "string",
    "document": "string",
    "firstName": "string",
    "lastName1": "string",
    "lastName2": "string",
    "address": "string",
    "number": "string",
    "city": "string",
    "zipCode": "string",
    "policyNumber": "string",
    "province": "string",
    "effectiveDate": "2022-01-31T23:00:00Z",
    "email": "string",
    "sold": true,
    "cancelled": true,
    "cancellationDate": "2022-01-31T23:00:00Z",
    "serialNumber": "string",
    "paymentMethod": {
      "description": "string"
    },
    "clientType": {
      "name": "string"
    },
    "billPayment": true,
    "withdrawal": true,
    "withdrawalDate": "2022-01-31T23:00:00Z",
    "emitted": true,
    "language": {
      "name": "string"
    },
    "accident": true
  }
]
Name Type Required Description
certificateNumber string false none
imei string false none
brand NameDTO false none
model DescriptionDTO false none
phoneNumber string false none
document string false none
firstName string false none
lastName1 string false none
lastName2 string false none
address string false none
number string false none
city string false none
zipCode string false none
policyNumber string false none
province string false none
effectiveDate string false none
email string false none
sold boolean false none
cancelled boolean false none
cancellationDate string false none
serialNumber string false none
paymentMethod DescriptionDTO false none
clientType NameDTO false none
billPayment boolean false none
withdrawal boolean false none
withdrawalDate string false none
emitted boolean false none
language NameDTO false none
accident boolean false none

Endpoints

Disney Tv

    Netflix Tv

      HBO Tv

        Insurance Device