Creates a new subscription and adds it to the order.
#227:
Change request updated 2 months ago
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": "2025-01-23T20:50:18.137Z", "terminationDate": "2025-01-23T20:50:18.137Z", "autoRenew": false, "commitmentDate": "2025-01-23T20:50:18.137Z", "lines": [] }