> ## Documentation Index
> Fetch the complete documentation index at: https://docs.m1amdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Back-End Integration

This section provides information about the processes to integrate the Reseller's back-end systems with Partner Ecosystem Management.

Here you can find information about the subscription management flow and the APIs used. This flow has multiple steps.

<img src="https://mintcdn.com/amdocs-spbu/fYeFYdoaC8JNMldy/marketONE/resellerOnboardingGuide/images/CSPManagedSubscriptionsIntegration3a.PNG?fit=max&auto=format&n=fYeFYdoaC8JNMldy&q=85&s=31f1f8e48e5ceb26f8d04a557c35ea89" alt="Platform-Managed Subscriptions Integration Flow" width="1750" height="768" data-path="marketONE/resellerOnboardingGuide/images/CSPManagedSubscriptionsIntegration3a.PNG" />

## 1. Provision the Subscription to MarketONE

The Reseller (Service Provider) provisions the subscription into MarketONE using the [`POST /subscriptions` endpoint](https://docs.saas.amdocs.com/bundle/MarketONEAPIs/page/index.html#tag/subscriptions/operation/createSubscription). In this step, an associated account can be created beforehand, or on the fly.

<img src="https://mintcdn.com/amdocs-spbu/fYeFYdoaC8JNMldy/marketONE/resellerOnboardingGuide/images/CSPManagedSubscriptionsIntegration4a.PNG?fit=max&auto=format&n=fYeFYdoaC8JNMldy&q=85&s=57ece54590d4fd17f76aa0b390ae8572" alt="Provisioning a Subscription" width="1750" height="772" data-path="marketONE/resellerOnboardingGuide/images/CSPManagedSubscriptionsIntegration4a.PNG" />

## 2. Notify the Merchant of the Subscription

MarketONE leverages an **AddSubscription** callback URL to notify the Merchant to provision the user. The user is then sent a registration link with a redemption code.

<img src="https://mintcdn.com/amdocs-spbu/fYeFYdoaC8JNMldy/marketONE/resellerOnboardingGuide/images/CSPManagedSubscriptionsIntegration5a.PNG?fit=max&auto=format&n=fYeFYdoaC8JNMldy&q=85&s=d15883888c30c0a270461fdfd49db0d9" alt="Notifying the Merchant of the Subscription" width="1750" height="766" data-path="marketONE/resellerOnboardingGuide/images/CSPManagedSubscriptionsIntegration5a.PNG" />

## 3. Update the Subscription Status in MarketONE

Once the user has logged into the Merchant service, the redemption code is consumed. The change in the subscription status is then sent to MarketONE through the `PUT /partnerSubscription/{id}` API call.

<img src="https://mintcdn.com/amdocs-spbu/fYeFYdoaC8JNMldy/marketONE/resellerOnboardingGuide/images/CSPManagedSubscriptionsIntegration6a.PNG?fit=max&auto=format&n=fYeFYdoaC8JNMldy&q=85&s=26df9249049e059b0ffcd5ac675397b4" alt="Updating the Subscription Status" width="1750" height="789" data-path="marketONE/resellerOnboardingGuide/images/CSPManagedSubscriptionsIntegration6a.PNG" />

## 4. Notify the Reseller (Service Provider)

MarketONE notifies the Reseller (Service Provider) that the user is now active on the service through the [`POST /notification` API call](https://docs.saas.amdocs.com/bundle/MarketONECSPAdapter/page/index.html#tag/Notification/operation/postNotification). In turn, the Reseller should notify the user that charges for the service are now being applied.

<img src="https://mintcdn.com/amdocs-spbu/fYeFYdoaC8JNMldy/marketONE/resellerOnboardingGuide/images/CSPManagedSubscriptionsIntegration7a.PNG?fit=max&auto=format&n=fYeFYdoaC8JNMldy&q=85&s=7dbcc7feb6643b15400b06f309f51bb7" alt="Notifying the Reseller" width="1750" height="772" data-path="marketONE/resellerOnboardingGuide/images/CSPManagedSubscriptionsIntegration7a.PNG" />

**Parent topic:**[Initial Setup: Front-End and Back-End Integration](aggregatorActivation)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.