Update Subscription By Id
PUT /v1/order/subscription/:id
Updates an existing subscription by modifying its configuration including terms, billing cycles, cancellation terms, pricing, and status. The endpoint validates all changes against subscription rules and business logic before applying updates. Returns the complete updated subscription object with all current values including terms, billing information, and status.
Request Body
{
"term": {
"duration": 8600
},
"billing_cycle": {
"duration": 6480
},
"cancel_term": {
"grace_period": 336
},
"_id": "64abe8d1a1ca853da51184f9",
"name": "VM as a Service",
"start_date": "2023-07-06T00:00:00.000Z",
"price": 798,
"items": [],
"status": "active",
"order": "63e4ac618c7d3195ec52b9c1",
"tenant": "6065a9eb6783e09eb34bb844",
"created": "2023-07-10T11:17:37.777Z",
"updated": "2023-11-02T09:45:51.587Z",
"__v": 1,
"account": "63774d3c906eab70ef671e50",
"id": "64abe8d1a1ca853da51184f9"
}