Article ID: 120455, created on Mar 6, 2014, last review on Sep 23, 2016

  • Applies to:
  • Operations Automation
  • Business Automation

Symptoms

There are subscriptions in the status "Terminated/Stopped", which can be irrevocably destroyed by clicking "Destroy" button. Is there any way to do the same with API?

Cause

The setting "Destroy Service on Cancel" is set to "No" in the service template the subscriptions are based on. Changing this setting will only influence newly cancelled subscriptions

Answer

It is possible to destroy the subscription with a set of API calls:

  1. On POA side the subscription is to be removed completely, therefore pem.removeSubscription must be called.

  2. On PBA side the subscription status is to be changed to Terminated/Removed, which can be done with SubscriptionStatusUpdate_API (status - 60, ServStatus - 90).

NOTE: API request can be sent with 'curl' utility. Example:

For OA:

curl -k -d@ApiRequest.xml https://127.0.0.1:8440

For BA:

curl -k -d@ApiRequest.xml https://127.0.0.1:5224

, where ApiRequest.xml is a file containing API request code.

Search Words

subscription

poa subscription not removing

cancell

cancel one subscriptoon

renewal

pba subscription missing

cancel subscription API

Cannot destroy subscription

delete removed subscription

Destroy hosting subscription using Public API

Cancellation

pem.removeSubscription

cancel one subscriptoon API

destroy

SubscriptionStatusUpdate_API

Subscription not present in BA

Destroying service of Subscription #1009599 failed

order failure

198398b282069eaf2d94a6af87dcb3ff caea8340e2d186a540518d08602aa065 5356b422f65bdad1c3e9edca5d74a1ae e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF