Apple Watch

Access to Apple Watch Subscriptions


Parameters

Name In Type Required Description
org_id path string true Organization name
body body SellAppleWatchRequest true ‘none’

Request body - instance of SellAppleWatchRequest

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
{
  "main_subscription_id": "5331402",
  "commercial_product_id": "1",
  "imsi": "214035453370793",
  "iccid": "8934011411551283144",
  "sale_details": {
    "user_name": "test@test"
  },
  "free_units_packages": [
    {
      "id": "1233094"
    }
  ],
  "promotions": [
    {
      "id": "1233094"
    }
  ]
}
Name Type Required Description
main_subscription_id string true Subscription identifier from an existent mobile subscription
commercial_product_id string true Commercial product identifier
imsi string true International Mobile Subscriber Identity associated to the AppleWatch subscription
iccid string true Circuit Card Identification Number associated to the SIM card
sale_details object false none
» user_name string false Optional user name
free_units_packages [SellAppleWatchRequestFreeUnitsPackage] false list of free units packages included in the sale
promotions [SellAppleWatchRequestPromotion] false list of promotions included in the sale

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

curl -X POST https://subscriptions.masstack.com/v1/orgs/masmovil/apple_watch/sell \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'main_subscription_id': '5331402',
  'commercial_product_id': '1',
  'imsi': '214035453370793',
  'iccid': '8934011411551283144',
  'sale_details': {
    'user_name': 'test@test'
  },
  'free_units_packages': [
    {
      'id': '1233094'
    }
  ],
  'promotions': [
    {
      'id': '1233094'
    }
  ]
}" 

Responses

Code Meaning Description Schema
201 Created Sell process for AppleWatch subscription successfully accepted SellAppleWatchResponse
400 Bad Request Invalid body ErrorMessage
404 Not Found A subscription or an account bundle with the specified ids was not found ErrorMessage
500 Internal Server Error Unexpected error ErrorMessage

Parameters

Name In Type Required Description
org_id path string true Organization name
id path string true Subscription Id
body body AppleWatchDeactivateSubscriptionRequest true ‘none’

Request body - instance of AppleWatchDeactivateSubscriptionRequest

1
2
3
4
5
{
  "deactivation_reason": "1234",
  "deactivation_user": "test@test.com",
  "requested_deactivation_date": "2017-09-15T22:00:00Z"
}
Name Type Required Description
deactivation_reason string true Deactivation reason text or id as a string
deactivation_user string false User that requests the deactivation
requested_deactivation_date string(date-time) false deactivation date

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10

curl -X POST https://subscriptions.masstack.com/v1/orgs/masmovil/apple_watch/3821002/deactivate \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'deactivation_reason': '1234',
  'deactivation_user': 'test@test.com',
  'requested_deactivation_date': '2017-09-15T22:00:00Z'
}" 

Responses

Code Meaning Description Schema
202 Accepted Apple Watch subscription successfully cancelled None
404 Not Found A subscription with the specified id was not found ErrorMessage
500 Internal Server Error Unexpected error ErrorMessage

Endpoints

AccountBundles

    Apple Watch

      Credit Limits

        Devices

          Fraud Requests

            FreeUnitsPackages

              Promotions

                Segments

                  Subscription Commercial Products

                    Subscriptions

                      Contracts