Create Order Subscription

Creates a new subscription and adds it to the order.

Creates a new subscription for the order

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

Details of the subscription to create

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

Created

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', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "id": "text",
  "href": "text",
  "name": "text",
  "startDate": "2024-12-22T03:44:07.649Z",
  "terminationDate": "2024-12-22T03:44:07.649Z",
  "autoRenew": false,
  "commitmentDate": "2024-12-22T03:44:07.649Z",
  "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.

#330:

Change request updated