curl --request GET \
--url https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}import requests
url = "https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"partnerSubscriptionId": "<string>",
"partnerCustomerId": "<string>",
"organizationId": "<string>",
"accountId": "<string>",
"subscriptionId": "<string>",
"subscriptionItemId": "<string>",
"externalPartnerSubscriptionId": "<string>",
"partnerCode": "<string>",
"productCode": "<string>",
"createdDate": "<string>",
"serviceStatus": "UNPROVISIONED",
"accountVid": "<string>",
"subscriptionVid": "<string>",
"registrationString": "<string>",
"redemptionCodeExpirationTime": "<string>",
"partnerUrl": "<string>",
"partnerTokenizedUrl": "<string>",
"slmProductCode": "<string>",
"updatedDate": "<string>",
"startServiceDate": "<string>",
"endServiceDate": "<string>",
"activatedDate": "<string>",
"state": "PROVISION-PENDING",
"billingStatus": "PENDING-VALIDATION",
"type": "ENTITLEMENT",
"billingPaymentMethod": "<string>",
"retryable": true,
"reasonCode": "<string>",
"metadata": {}
}{
"code": "invalid-request",
"message": "<string>"
}{
"code": "authentication-required",
"message": "<string>"
}{
"code": "partner-subscription-not-found",
"message": "partner subscription not found"
}{
"code": "server-error",
"message": "<string>"
}Retrieve Partner Subscription details for a specific id.
Retrieve Partner Subscription details for a specific id.
curl --request GET \
--url https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}import requests
url = "https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://int-prodtest.m1amdocs.io/v3/partnerSubscription/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"partnerSubscriptionId": "<string>",
"partnerCustomerId": "<string>",
"organizationId": "<string>",
"accountId": "<string>",
"subscriptionId": "<string>",
"subscriptionItemId": "<string>",
"externalPartnerSubscriptionId": "<string>",
"partnerCode": "<string>",
"productCode": "<string>",
"createdDate": "<string>",
"serviceStatus": "UNPROVISIONED",
"accountVid": "<string>",
"subscriptionVid": "<string>",
"registrationString": "<string>",
"redemptionCodeExpirationTime": "<string>",
"partnerUrl": "<string>",
"partnerTokenizedUrl": "<string>",
"slmProductCode": "<string>",
"updatedDate": "<string>",
"startServiceDate": "<string>",
"endServiceDate": "<string>",
"activatedDate": "<string>",
"state": "PROVISION-PENDING",
"billingStatus": "PENDING-VALIDATION",
"type": "ENTITLEMENT",
"billingPaymentMethod": "<string>",
"retryable": true,
"reasonCode": "<string>",
"metadata": {}
}{
"code": "invalid-request",
"message": "<string>"
}{
"code": "authentication-required",
"message": "<string>"
}{
"code": "partner-subscription-not-found",
"message": "partner subscription not found"
}{
"code": "server-error",
"message": "<string>"
}Headers
Path Parameters
Query Parameters
Response
OK
The information managed in MarketONE about partner service provisioning.
Status of the partner service MarketONE information. UNPROVISIONED indicates that the record was created by the callback response was not received. INACTIVE indicates the provisioning callback was sucesfully received by the partner service, but it has not been claimed by any service user yet. ACTIVE indicates that the service entitlement has been sucesfully provisioned, and a partner service user has claimed it. CANCELLATION-IN-PROGRESS indicates that the a de-provisioning request is pending. CANCELLED indicates that the de-provisioning request confirmation has been received.
UNPROVISIONED, INACTIVE, ACTIVE, PAUSED, UPDATE-IN-PROGRESS, PAUSE-IN-PROGRESS, RESUME-IN-PROGRESS, CANCELLATION-IN-PROGRESS, CANCELLED 50Current state of the calls in regards to Create, Cancel and Reprovision Subscriptions. Used for state machine orchestration for MarketONE managed subscriptions.
PROVISION-PENDING, PROVISION-FAILED, PROVISION-COMPLETE, CANCELLATION-PENDING, CANCELLATION-FAILED, CANCELLATION-COMPLETE, CANCELLATION-FAILED-PROVISION, UPDATE-PENDING-ACTIVE, UPDATE-PENDING-INACTIVE, UPDATE-FAILED-ACTIVE, UPDATE-FAILED-INACTIVE, UPDATE-COMPLETE, UPDATE-METADATA-PENDING-ACTIVE, UPDATE-METADATA-PENDING-INACTIVE, UPDATE-METADATA-FAILED-ACTIVE, UPDATE-METADATA-FAILED-INACTIVE, PAUSE-PENDING-ACTIVE, PAUSE-PENDING-INACTIVE, PAUSE-FAILED-ACTIVE, PAUSE-FAILED-INACTIVE, PAUSE-FAILED-COMPENSATE-BY-RESUME, PAUSE-COMPLETE-ACTIVE, PAUSE-COMPLETE-INACTIVE, RESUME-PENDING-ACTIVE, RESUME-PENDING-INACTIVE, RESUME-FAILED-ACTIVE, RESUME-FAILED-INACTIVE, RESUME-COMPLETE, PARTNER-CANCELLED, PARTNER-UPDATED, PARTNER-INITIATED-SUBSCRIPTION-CANCEL-STARTED, PARTNER-INITIATED-SUBSCRIPTION-CANCEL-COMPLETE, PARTNER-INITIATED-SUBSCRIPTION-CANCEL-FAILED, CANCEL-CSP-EVENT-SENT-FOR-INACTIVITY, ACTIVATION-FAILED, AUTO-CANCEL-DUE-TO-INACTIVITY 50The status of the OTT billing partner subscription. PENDING-VALIDATION - the BILLING partner subscription creation was requested by the OTT partner and it requires validation, MarketONE triggered the OTP notification, aggregator sends the OTP to the consumer. The customer aggregator account details have not yet been validated as being correct. E.g. a MSISDN was provided, but we have not yet verified it belongs to the user. PENDING-CONFIRMATION - MarketONE successfully validated the BILLING partner subscription. All the BILLING partner subscription details are validated at this point, MarketONE awaiting confirmation from the customer via the OTT partner that they wish this partner subscription to be active for billing. ACTIVE - the BILLING partner subscription is available for billing CANCELLED - the BILLING partner subscription was canceled and can no longer be used for charges, but may be used for refunds if it had previously been active.
PENDING-VALIDATION, PENDING-CONFIRMATION, ACTIVE, CANCELLED 50Was this page helpful?

