Subscriptions

Subscriptions object

The subscriptions object represents a collection of Product Items inside the Agreement. All items are connected to one Product, one vendor, and one client (the same as the agreement) and have common billing frequency and commitment terms.

This object contains the following properties:

Field
Type
Description

id

string

Human Friendly identifier of Subscription object.

Example: "SUB-2119-4550-8674-5962"

href

string

Relative reference to object on API (always /commerce/agreements/{id})

Example: "/v1/commerce/subscriptions/SUB-2119-4550-8674-5962)"

status

string

The key status of the object.

Possible values are a by-product of the latest completed order that touched this subscription. Possible statuses are a subset of all subscription statuses.

Example: "Active"

name

string

Subscription name.

Example: Subscription for Microsoft Office 365 NCE E1

agreement

Agreement

Agreement that holds this particular Subscription instance.

Example:

{   
    "id": "AGR-2119-4550-8674-5962",
    "href": "/commerce/agreements/ACC-1234-1234",
    "name": "Microsoft Office 365 for My Company"
}

product

Product

Product reference

Example:

{
    "id": "PRD-1111-1111-1111",
    "href": "/catalog/products/PRD-1111-1111-1111",
    "name": "Microsoft Office 365 NCE",
    "icon": "/static/PRD-1111-1111-1111/logo.png"
}

startDate

string

Effective date of subscription start may be not defined in sciope of order).

Example: "2023-12-14T17:28:57Z"

commitmentDate

string

Date when subscription commitment ends and subscription to be renewed.

Example: "2023-12-14T17:28:57Z"

terminationDate

string

Date when subscription to be terminated.

Example: "2023-12-14T17:28:57Z"

terms

Terms

Subscription billing terms.

Example:

{
  "period": "1m",
  "commitment": "1y"
}

price

Price

Price for subscription, not all fields visible for everyone see details in Price, most of the object should be READONLY as it is calculated on orders completion, with only exception OPS can edit default markup for an active subscriptions.

Example:

{
  "PPxY": 150,
  "PPxM": 12.50,
  "SPxY": 165,
  "SPxM": 13.75,
  "markup": 0.10,
  "margin": 0.11,
  "defaultMarkup": 0.15,
  "currency": "USD"
}

lines

Lines[]

List of all product items (lines) purchasedi n scope of this subscription.

Example:

[
  { 
    "id": "ALI-1234-1234-1234-0001",
    "item": {
      "id": "ITM-1234-1234-1234-0021",
      "name": "Adobe Illustrator"
    },
    "quantity": 10,
    "price": { ... }
  },
  {
    "id": "ALI-1234-1234-1234-0002",
    "item": {
      "id": "ITM-4444-4444-4444-0031",
      "name": "Adobe Photoshop"
    },
    "quantity": 1,
    "price": { ... }
  }
]

parameters

object

An object that groups together separate lists of parameters. Only fulfillment parameters are available in this object.

Example:

{
    "fulfillment": [...]
}

parameters.fulfillment

Order Parameter Object

An object that holds a concise definition of a parameter, its value, and any associated errors.

Example:

{
    "name": "New Subscription",
    "value": "Super_value_UPDATED",
    "constraints": {
        "readonly": false,
        "hidden": true,
        "required": true,
        "unique": false
    }
}

audit

AuditObject

Audit object with possible entries: created, updated, activated, terminated, according to the object's lifecycle.

Possible audit events: Created, Updated, Activated, Terminated, and Failed.

Example:

{
  "created": { "at": "...", "by": { } },
  "updated": { "at": "...", "by": { } },
  "activated": { "at": "...", "by": { } },
  "terminated": { "at": "...", "by": { } }
}

externalIDs

ExternalIDsObject

Set of external IDs.

Example:

{
  "client": "12345678",
  "vendor": "ABC-2023-C07-dbeee0b302c0"
}

Example

{
  "id": "SUB-5903-9370-1653-5455",
  "href": "/commerce/subscriptions/SUB-5903-9370-1653-5455",
  "name": "Subscription for Avast Pro",
  "status": "Updating",
  "startDate": "2025-10-05T04:46:24.0758413+02:00",
  "renewalDate": "2024-03-20T08:47:50.7092432+01:00",
  "terms": {
    "period": "1m",
    "commitment": "1y"
  },
  "price": {
    "margin": 0.01,
    "markup": 0.011,
    "SPxM": 1708.12,
    "SPxY": 20504.00,
    "PPxM": 7.12,
    "PPxY": 88.00,
    "defaultMarkup": 0.15,
    "currency": "USD"
  },
  "externalIDs": {
    "client": "12345678",
    "vendor": "ABC-2023-C07-dbeee0b302c0"
  },,
  "agreement": {
    "id": "AGR-8808-0693-9072-0018",
    "href": "/commerce/agreements/AGR-8808-0693-9072-0018"
  },
  "order": {
    "id": "ORD-8556-1262-1387-2499",
    "href": "/commerce/orders/ORD-8556-1262-1387-2499",
    "type": "Purchase",
    "status": "Draft",
    "clientReferenceNumber": null,
    "notes": null
  },
  "lines": [
    {
      "id": "ALI-1234-1234-1234-0001",
      "item": {
        "id": "ITM-1234-1234-1234-0021",
        "name": "Adobe Illustrator"
      },
      "quantity": 10,
      "price": {
        "PPxY": 150,
        "PPxM": 12.50,
        "unitPP": 1.25
        "SPxY": 165,
        "SPxM": 13.50,
        "unitSP": 1.35,
        "markup": 0.10,
        "margin": 0.11,
        "currency": "USD"
      }
    },
    {
      "id": "ALI-1234-1234-1234-0002",
      "item": {
        "id": "ITM-4444-4444-4444-0031",
        "name": "Adobe Photoshop"
      },
      "price": {
        "PPxY": 150,
        "PPxM": 12.50,
        "unitPP": 12.50
        "SPxY": 165,
        "SPxM": 13.50,
        "unitSP": 13.50,
        "markup": 0.10,
        "margin": 0.11,
        "currency": "USD"
      }
    }
  ]
}

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