Customers

Access to customers


Parameters

Name In Type Required Description
orgId path string true organization name
customerId path integer(int64) true customer identifier

Request example

1
2
3
4
5

curl -X GET https://customers.sta.masstack.com/v3/orgs/telco/customers/214748364/credentials \
  -H "Accept: application/json" \
  -H "x-auth-roles: API_KEY"

Responses

Code Meaning Description Schema
200 OK successful operation Credential
400 Bad Request Invalid request body ErrorMessage
404 Not Found Resource not found ErrorMessage
405 Method Not Allowed Method not allowed None

200 - instance of Credential

Custom schema example

1
2
3
{
  "username": "username@masmovil.com"
}
Name Type Required Description
username string false Username

Parameters

Name In Type Required Description
orgId path string true organization name
customerId path integer(int64) true customer identifier

Request example

1
2
3
4
5

curl -X GET https://customers.sta.masstack.com/v3/orgs/telco/customers/214748364/devices \
  -H "Accept: application/json" \
  -H "x-auth-roles: API_KEY"

Responses

Code Meaning Description Schema
200 OK successful operation DevicesInfoByCustomerId
400 Bad Request Invalid request body ErrorMessage
404 Not Found Resource not found ErrorMessage
405 Method Not Allowed Method not allowed None

200 - instance of DevicesInfoByCustomerId

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
44
45
46
47
48
{
  "devices": [
    {
      "start_date": "2020-01-31T00:00:00Z",
      "subscription_id": 123654,
      "subscription_terminal_id": 214748364,
      "status": {
        "id": 214748364,
        "value": "ACTIVO"
      },
      "fees": {
        "upfront_fee": 0,
        "installment_plan": {
          "last_installment_fee": 0,
          "monthly_fee": 6,
          "duration": 0,
          "unpaid_installments": 10,
          "financed_by": "MASMOVIL"
        },
        "final_installment_plan": {
          "last_installment_fee": 0,
          "monthly_fee": 6,
          "duration": 0,
          "unpaid_installments": 10,
          "financed_by": "MASMOVIL"
        }
      },
      "permanence": {
        "campaign_id": 214748364,
        "description": "Permanencia 24M",
        "duration_months": 24,
        "start_date": "2020-01-31T00:00:00Z",
        "end_date": "2022-01-31T00:00:00Z",
        "category_type": 1
      },
      "is_mandatory": true,
      "expedition_info": {
        "item_number": 214748364,
        "request_date": "2020-01-31T00:00:00Z",
        "expedition_date": "2020-01-31T00:00:00Z",
        "status": {
          "id": 214748364,
          "value": "ACTIVO"
        }
      }
    }
  ]
}
Name Type Required Description
devices [DeviceResponseByCustomerId] false none

Endpoints

Customers

    Events

      Memos

        Typifications

          Invoices

            Accounts