Update Order Subscription

Updates and existing subscription

PUThttps://api.platform.softwareone.com/public/v1/commerce/orders/{orderId}/subscriptions/{id}
Path parameters
id*string

Id of the subscription to update

orderId*string
Body

Update details of subscription

idstring
auditobject
$metaobject
hrefstring
namestring
startDatestring (date-time)
terminationDatenullable string (date-time)
externalIdsobject
agreementobject
termsobject
productobject
autoRenewboolean
statusobject
commitmentDatenullable string (date-time)
parametersobject
priceobject
linesnullable array
Response

Success

Body
idstring
auditobject
$metaobject
hrefstring
namestring
startDatestring (date-time)
terminationDatenullable string (date-time)
externalIdsobject
agreementobject
termsobject
productobject
autoRenewboolean
statusobject
commitmentDatestring (date-time)
priceobject
parametersobject
buyerobject
licenseeobject
sellerobject
linesnullable array
Request
const response = await fetch('https://api.platform.softwareone.com/public/v1/commerce/orders/{orderId}/subscriptions/{id}', {
    method: 'PUT',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "id": "text",
  "href": "text",
  "name": "text",
  "startDate": "2024-11-15T09:02:35.214Z",
  "terminationDate": "2024-11-15T09:02:35.214Z",
  "autoRenew": false,
  "commitmentDate": "2024-11-15T09:02:35.214Z",
  "lines": []
}

SoftwareOne is a trademark of SoftwareOne, Inc. "The Software Licensing Experts" is a service mark of SoftwareOne, Inc. VAR assist is a trademark of SoftwareOne, Inc. "It pays to partner" is a service mark of SoftwareOne, Incorporated.

#227:

Change request updated