Removing a Microsoft 365 Subscription
This section describes how to remove a Microsoft 365 subscription.
To remove a Microsoft 365 subscription, create a cancellation order as described in the Platform SDK Guide.
After creating this cancellation order, the following events happen:
- In the Microsoft cloud, the cloud subscriptions that belong to the Microsoft 365 subscription are suspended and removed.
- In your system, the Microsoft 365 subscription is removed.
Note: Suspended cloud subscriptions may be kept for some time before their removal.
Important: Creating orders is a custom operation. The user whose key and secret you use to access the APS REST API must have http://www.odin.com/billing/order-management and POST in its list of allowed operations.
Example
HTTP Request
Copy
POST https://example.com/aps/2/services/order-manager/orders
{
"type": "CANCELLATION",
"subscriptionId": "1fe1e161-291d-4695-8939-febc98a7f737",
"refundType": "CREDIT_MEMO"
}
HTTP Response
Copy
{
"orderId": "467d5685-197d-4c62-a190-d1b46642568c"
}