Loading...
Creates a new subscription and adds it to the order.
Details of the subscription to create
Created
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();
{ "id": "text", "href": "text", "name": "text", "startDate": "2024-11-15T10:25:19.982Z", "terminationDate": "2024-11-15T10:25:19.982Z", "autoRenew": false, "commitmentDate": "2024-11-15T10:25:19.982Z", "lines": [] }