All pages
Powered by GitBook
1 of 70

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Render order template

Fail order

Get order

Get a single order that the user has access to.

Get asset

Get a single asset by ID.

Update asset

Create agreement attachment

List Requests

Get a list of requests.

List agreements

List Request Messages

List agreement attachments

List assets

Get all assets in the platform.

Get agreement

Get a single Agreement object by ID.

Get Request Attachment

Get an attachment in the scope of the specific request.

Terminate asset

Update agreement

Update order

Validate Request

Create order

Delete agreement attachment

Create asset

Complete Request

Render agreement template

Update Request

Update some properties (assignee and externalIDs) of a request.

Get Request

Get a single request by ID.

Create agreement

Render asset template

Render an asset’s template by ID.

Query Request

List orders

Lists all orders that the user has access to.

Create Request Message

Create Request

Create a new request.

Validate order

Process order

Delete order

Delete Request Attachment

Complete order

Query order

Process Request

Render subscription template

Get order subscription

Returns subscription with a given ID that exists in the order.

Delete order asset

Create subscription

List order subscriptions

Returns a list of all subscriptions for the order.

Remove order subscription

Create order subscription

Creates a new subscription and adds it to the order.

List subscriptions

Gets a list of subscriptions in all agreements.

Get subscription

Gets a single subscription in an agreement.

Update order subscription

Create Request Attachment

Create a request attachment.

Get agreement attachment

Get Request Message

Get a single request message.

Create order asset

List Request Attachments

List attachments in the scope of the specific request.

List order assets

Update order asset

Terminate subscription

Update subscription

State diagram

The following diagram shows the state (status) transition process of an order.

The state transition diagram of an order.
State
Definition

Draft

The platform has created the order as a draft. This status applies to orders created by the system for validation purposes. It doesn't apply to orders saved for later during the ordering process.

Quoted

The order was intentionally saved for later using the Save Order option, which is available when creating purchase or change orders.

Processing

The order has been created, and it's currently awaiting processing by the vendor.

Asset

An asset is a one-time purchase item or a perpetual license within the Marketplace Platform. Assets assist vendors and SoftwareOne in differentiating each one-time item in the agreement.

The Asset object stores the fulfillment parameters provided by the vendor for these one-time items. This enables vendors to effectively identify and manage their one-time items by utilizing the parameters stored during the fulfillment phase.

This object contains the following attributes:

Field
Type
Description

id

State Diagram

The following diagram shows the state (status) transition process of a request. A request can currently exist in several states. The following diagram shows the transitions between these states:

The state transition diagram of a request.
State
Definition

Draft

The request is being created.

Processing

The request is pending a response from the vendor or SoftwareOne.

Querying

Requests Attachments

The Attachment object inherits from the abstract File base object.

Field
Type
Description

inlineAttachmentContent

string

Inline attachment content. For example, in the case of type LicenseKey, this field is populated with a license key string.

Example: DFE25-GQ943-GH992-KL235-PY037

id

string

Primary attachment identifier using the 'ATT' prefix.

Example: ATT-1234-1234-1234

State diagram

The following diagram shows the state (status) transition process of an agreement within the platform.

The state transition diagram of an agreement.
State
Definition

New

This is the default state of a newly created agreement.

Draft

The agreement has been saved as a draft because the purchase order has been saved for later during the ordering process.

Deleted

The draft agreement has been deleted because the draft purchase order associated with the agreement was deleted.

State diagram

An asset is a one-time purchase item or a perpetual license within the Marketplace Platform.

An asset can currently exist in these states: New, Draft, Active, or Terminated. The following diagram shows the transitions between these states:

State
Definition

New

This is the initial status of an asset or one-time item when it's added to the order during the ordering process. The status appears in the purchase wizard only while creating the order.

State diagram

The following diagram shows the state (status) transition process of a subscription within the Marketplace Platform.

State
Definition

Draft

The vendor has created the subscription, but the order has not been completed yet.

Active

The subscription is active and in use.

Updating

A business transaction is in progress for the subscription. This status applies to change orders submitted for the subscription.

Terminating

A termination order has been created for the subscription.

Terminated

The vendor has completed the termination order, and the subscription is now terminated.

Deleted

The draft subscription has been deleted by the vendor.

classification

string

File or license key.

Example: File

status

string

Status of the attachment. Possible values include Published or Deleted.

Example

{
  "id": "ATT-1234-1234-1234",
  "name": "Some order attachment",
  "classification": "Text",
  "contentType": "application/x-iso9660-image",
  "size": 123,
  "description": "Some order attachment description",
  "filename": "SomeOrderAttachment.txt",
  "inlineAttachmentContent": null,
  "audit": {
    "created": {
      "at": "2023-01-01T22:00:00Z",
      "by": { ... }
    }
  }
}

Querying

The ordering parameters have been updated by the vendor. The order requires an action to be taken by the client account user.

Completed

The order has been processed by the vendor.

Failed

The order has been marked as failed by the vendor or SoftwareOne. The failure reason is displayed on the order details page.

Deleted

The order has been deleted.

The vendor or SoftwareOne has updated the request.

It now requires an action to be taken by a client account user.

Complete

The request has been completed.

Provisioning

The agreement has been sent to the vendor and it's pending fulfilment.

Failed

The agreement failed because the vendor or SoftwareOne has canceled the purchase order.

Active

The vendor has completed the purchase order, and the agreement is active. Active agreements have at least one active subscription and no open orders.

Updating

A business transaction or a change order is in progress for at least one subscription within the agreement.

Terminated

The agreement has been terminated. It no longer contains an active subscription.

Draft

The status applies to an asset during the fulfillment phase of the order. It means the asset has been created as a result of a purchase order, but it's not active yet.

Active

The asset is now active because the associated purchase order has been completed.

Terminated

The asset has been cancelled by the vendor.

string

The primary identifier for the asset.

name

string

The name of the asset.

status

string

(Read-only) The status of the asset.

lines

object

(Optional) Represents the lines object.

price

object

(Read-only) Represents the price object.

externalIDs

object

(Optional) Represents the externalIDs object.

template

object

(Optional) Represents the template object.

parameters.fulfillment

object

(Optional) Represents the parameter object.

audit

object

(Read-only) Represents the audit object.

agreement

object

Represents the agreement object.

product

object

Represents the product object.

licensee

object

Represents the licensee object.

listing

object

Represents the listing object.

priceList

object

Represents the priceList object.

Example

ASSET OBJECT
{
  "id": "AST-2876-9782-1823", 
  "name": "Access LTSC 2024 for Stark",
  "status": "Active",
  "lines": [
   {
      "id": "ALI-1234-1234-1234-0001",
      "item": {
        "id": "ITM-1234-1234-1234-0021",
        "name": "Adobe Illustrator"
      },
      "quantity": 10,
      "price": { ... },
      "subscription": { "id": "SUB-1234-1234-1234" }
    },
    {
      "id": "ALI-1234-1234-1234-0002",
      "item": {
        "id": "ITM-4444-4444-4444-0031",
        "name": "Adobe Photoshop"
      },
      "quantity": 1,
      "price": { ... }
    }
  ],
  "price": {  
    "PPx1": 150,
    "SPx1": 165,
    "markup": 0.10,  
    "margin": 0.11,
    "defaultMarkup": 5.0,
    "currency": "USD"
  },
  "externalIDs": {
    "client": "12345678",
    "vendor": "ABC-2023-C07-dbeee0b302c0"
  },
  "template": {
      "id": "TPL-2434-7545",    
      "name": "Successful Deployment"
  },
  "parameters": {
    "fulfillment": {
        "name": "Order ID",
        "value": "ORD-2378-8237-9182",
        "constraints": {
            "readonly": false,
            "hidden": false,
            "required": true,
            "unique": false
        }
    }
  },
  "agreement": {
    "id": "AGR-2634-1298-0221",
    "name": "Microsoft Agr for Stark Industries"
  },
  "product": {
    "id": "PRD-7562-8393-0192",
    "name": "Microsoft Perpetual"
  },
  "licensee": {
    "id": "LCE-7562-8393-0192",
    "name": "Stark Industries"
  },
  "listing": {
    "id": "LST-1234-1234"
  },
  "priceList": {
    "id": "PRC-1234-5678-9012"
  },
  "audit": {
    "created": { "at": "...", "by": { } },
    "updated": { "at": "...", "by": { } }
  }
}

Requests Messages

The Request Message object represents a message object in the scope of the request. It contains the following properties:

Field
Type
Description

id

string

Primary identifier for the message.

Example: MSG-1212-3434-5656-7878

href

string

Relative reference to the object in the API.

Example: /v1/commerce/requests/REQ-1671-0642/messages/MSG-1212-3434-5656-7878

Line

A Line object represents one of the following: an Order Line, an Agreement Line, or a Subscription Line.

A Line object describes the quantity of product items being purchased within the scope of an order or subscription, along with the associated pricing.

Typically, a Line object is first introduced through a purchase order or a change order. After creation, the line is assigned either to a subscription (for recurring terms) or to an agreement (for one‑time terms). A line belonging to an active subscription may later appear in a change order to update its quantity or price. In some cases, a new Line object may be created directly within a subscription by the vendor—for example, during migration or synchronization scenarios.

The lifecycle of a Line object is tied to the lifecycle of the corresponding agreement.

type

string

Type of message, such as User or System.

Example: User

content

string

Content of the message.

Example: I would like a discount of 5%.

request

Request

Reference to the Request object.

Example:

audit

AuditObject

Audit object with entries, including Created and Updated.

Example:

Example

{
  "id": "MSG-1212-3434-5656-7878",
  "type": "User",
  "content": "would agree discount of 5%"
}
{
  "id": "MSG-1212-3434-5656-7878",
  "type": "User",
  "content": "would agree discount of 5%",
  "request": {
    "id": "REQ-1671-0642"
  },
  "audit": {
    "created": { 
      "at": "2023-12-14T17:28:57.667Z", 
      "by": {
        "id": "USR-1234-1234-1234",
        "name": "John Smith"
      },
      "of": {
        "id": "ACC-1234-1234",
        "name": "Microsoft",
        "icon": "/static/ACC-1234-1234/account.png"
      }
    }
  }
}
{
     "id": "E001234",
     "message": "Agreement provisioning failed due to unavailability of the item"
}
{
  "created": { "at": "...", "by": { } },
  "updated": { "at": "...", "by": { } }
}
Line objects are always returned or provided as part of a lines array within one of the following parent objects: an agreement, a subscription, or an order.
Field
Type
Description

id

string

Line identifier, consisting of fixed prefix (same digits as in relevant agreement object), and a suffix, which is sequential number for all allocated lines in scope of the agreement (including failed or deleted orders).

item

object

Represents the object.

oldQuantity

integer

In case of purchase orders, this value will always be unset. For change orders, this value reflects the agreement quantity at the time the change order was created.

LINE OBJECT
{
  "id": "ALI-1234-1234-1234-0001",
  "item": {
    "id": "ITM-1234-1234-1234-0021",
    "name": "Adobe Illustrator"
  },
  "oldQuantity": 7,
  "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"
  },
  "subscription": {
    "id": "SUB-1234-1234-1234"
  }
}

Example

Request

The Request object contains the following properties:

Field
Type
Description

id

string

(Read-only) The primary identifier for the request.

status

string

The status of the request.

Commerce API

Use the Commerce API to manage orders, subscriptions, and agreements programmatically.

The Commerce API enables you to create, retrieve, and manage orders, subscriptions, and agreements within the Marketplace Platform.

With this API, you can:

  • Create new assets and manage the existing ones.

  • Check the details of a specific order by its ID.

  • Delete orders that are still in draft status (not yet submitted).

quantity

integer

The quantity of items in a subscription.

price

object

The price for the item in the subscription. Not all fields are visible to all actors.

subscription

object

A reference to subscription where this line resides. The value is never returned in the context of a subscription. It is used only in orders.

order

object

Last order where the Line was introduced/updated. The value is never returned in the context of an order. It can be used in the context of a subscription or agreement.

item

client

object

Represents the client accountobject.

vendor

object

Represents the vendor account object

requester

object

The client account user who created the request.

assignee

object

(Optional) The vendor account user responsible for processing the request.

product

object

Represents the product object.

externalIds

object

(Optional) A set of externalID identifiers.

parameters.order

object

(Optional) Values of the orderParameter associated with the request.

Example:

error

object

Error reported by validation procedure.

Example:

audit

object

(Read-only) Represents the audit object.

Examples

REQUEST OBJECT
{
  "id": "REQ-1671-0642",  
  "status": "Querying",
  "client": { 
    "id": "ACC-1234-4444",
    "name": "Rolls-Royce"
  },
  "vendor": { 
    "id": "ACC-1234-1111",
    "name": "Microsoft"
  },
  "requester": { 
    "id": "USR-1234-4444",
    "name": "John Smith"
  },
  "assignee": { 
    "id": "USR-1234-1111",
    "name": "Santa Claus"
  },
  "product": {
    "id": "PRD-1111-1111-1111",    
    "name": "Microsoft Office 365 NCE",
    "icon": "/static/PRD-1111-1111-1111/logo.png"
  }
}
[
  {
    "id": "PRM-1234-1234-1234-1234",
    "name": "Tennant Id",
    "externalId": "tenant_id",
    "constraints": { ... },
    "value": "69b73824-ce76-4866-ad47-b615ae9d8998",
  }
]
{
     "id": "E001234",
     "message": "Agreement provisioning failed due to unavailability of the item"
}
REQUEST OBJECT
{
  "id": "REQ-1671-0642",
  "status": "Querying",
  "client": { 
    "id": "ACC-1234-4444",
    "name": "Stark-industries"
  },
  "vendor": { 
    "id": "ACC-1234-1111",
    "name": "Microsoft"
  },
  "requester": { 
    "id": "USR-1234-4444",
    "name": "John Smith"
  },
  "assignee": { 
    "id": "USR-1234-1111",
    "name": "Santa Claus"
  },
  "product": {
    "id": "PRD-1111-1111-1111",
    "name": "Microsoft Office 365 NCE",
    "icon": "/static/PRD-1111-1111-1111/logo.png"
  },
  "externalIds": {
    "client": "12345678",
    "operations":	"07bf766b-c767-4293-9ab3",
    "vendor": "ABC-2023-C07-dbeee0b302c0"
  },
  "audit": {
    "created": { "at": "2023-12-14T17:28:57.667Z", "by": { "id": "USR-1234-1234", "name": "John Smith" } },
    "updated": { "at": "2023-12-14T17:28:57.667Z", "by": { "id": "USR-1234-1234", "name": "John Smith" } }
  }
}

Fail orders that can't be completed.

  • Update, process, or complete orders as needed.

  • Retrieve and manage files attached to agreements.

  • Validate requests and manage the status of those requests.

  • Review the shared API docs before you work with commerce resources.

    • Authentication

    • URL structure

    • Error handling

    The Commerce API is built around the following core resources:

    • Agreement – Defines the relationship between the seller, buyer, and licensee.

    • Asset – Represents a one-time purchased item or a perpetual license associated with an agreement.

    • Order – Represents a request to create or modify an agreement, including purchasing, changing, or terminating subscriptions within an agreement.

    • Order asset – Represents an asset created and managed in the context of an order.

    • Order subscription – Represents a subscription created and managed in the context of an order.

    • Request – Represents a request to the platform.

    • Subscription – Represents a collection of items within the agreement. All items are connected to one product, one vendor, and one client, and share the same billing frequency and commitment terms.

    The API is organized into collections, each containing a set of operations. Access to these operations varies by role, depending on whether you are a client, vendor, or operations user.

    Use the following links to jump to the collection you need:

    • Assets

    • Agreements

    • Orders

    • Order Subscriptions

    Before you start

    Core resources

    Browse collections

    Assets

    View Assets operations
    Operation
    Method
    Description
    Access

    Agreements

    View Agreements operations
    Operation
    Method
    Description
    Access

    Orders

    View Orders operations
    Operation
    Method
    Description
    Access

    Order Subscriptions

    View Order Subscriptions operations
    Operation
    Method
    Description
    Access

    Order Assets

    View Order Assets operations
    Operation
    Method
    Description
    Access

    Requests

    View Requests operations
    Operation
    Method
    Description
    Access

    Subscriptions

    View Subscriptions operations
    Operation
    Method
    Description
    Access

    Subscription

    The Subscription object represents a collection of product items within the agreement.

    All items are connected to one product, one vendor, and one client (same as the agreement) and have a common billing frequency and commitment terms.

    This object contains the following attributes:

    Field
    Type
    Description

    id

    string

    (Read-only) The identifier for the subscription.

    Order

    An order is a request to create a new agreement or update an agreement to include a one-time purchase or set of subscriptions. There are different types of orders in the SoftwareOne Marketplace:

    • Purchase orders – An order to buy a new product or service by establishing a new agreement.

    • Change orders – An order to change the quantity, such as downsizing the quantity of licenses or ordering additional licenses.

    • Terminate order – An order to terminate an active subscription or an agreement.

    status

    string

    The key status of the object. Allowed values are:

    • Active

    • Updating

    • Terminating

    • Terminated

    name

    string

    The name of the subscription.

    agreement

    object

    (Read-only) Represents the agreement that contains the subscription.

    product

    object

    (Read-only) Represents the product object.

    startDate

    string

    (Optional) The start date of the subscription.

    commitmentDate

    string

    (Optional) The date when the subscription commitment ends and must be renewed.

    terminationDate

    string

    (Optional) The date by which the subscription must be terminated.

    terms

    object

    (Read-only) Represents the term object containing the billing terms of the subscription.

    price

    object

    The price of the subscription.

    lines

    object

    A list of all product items (lines) purchased in the scope of this subscription.

    parameters

    object

    (Optional) Represents the parameters object, which groups separate lists of parameters. Only fulfillment parameters are available in this object.

    parameters.fulfillment

    object

    (Optional) Represents the parameters.fulfillment object that holds a concise definition of a parameter, its value, and any associated errors.

    audit

    object

    (Read-only) Represents the audit object.

    externalIDs

    object

    (Optional) Represents the externalIDs object containing a set of IDs.

    autoRenew

    bool

    (Optional) A flag that indicates whether the subscription is set to auto‑renew. The vendor can update this field. By default, it is set to true.

    Examples

    SUBSCRIPTION OBJECT
    {
      "id": "SUB-5374-9558-1697-7803",  
      "name": "Subscription for Adobe Creative Cloud",
      "status": "Updating",
      "startDate": "2023-06-05T19:08:42.3656851+02:00",
      "renewalDate": "2024-07-20T09:50:59.1139069+02: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"
      },
      "autoRenew": true,
      "lines": [
        { 
          "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": { ... }
        }
      ]
    }
    SUBSCRIPTION OBJECT
    {
      "id": "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"    
      },
      "order": {
        "id": "ORD-8556-1262-1387-2499",
        "type": "Purchase",
        "status": "Draft",
        "clientReferenceNumber": null,
        "notes": null
      },
      "autoRenewalEnabled": true,
      "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"
          }
        }
      ]
    }

    GET

    Gets all assets.

    vendor, client, ops

    GET

    Gets an asset by id.

    vendor, client, ops

    PUT

    Updates an asset by id.

    vendor, client, ops

    POST

    Sets an asset’s status to terminated and terminates all related entitlements.

    vendor

    GET

    Renders an asset’s template by id.

    vendor, client, ops

    ops

    GET

    Gets a list of agreements.

    vendor, client, ops

    GET

    Gets an agreement by id.

    vendor, client, ops

    PUT

    Updates some properties of an agreement.

    vendor, client, ops

    GET

    Renders the template for an agreement by id.

    vendor, client, ops

    POST

    Creates an agreement attachment by uploading a file.

    vendor, ops

    GET

    Gets a list of agreement attachments.

    vendor, client, ops

    GET

    Gets an agreement attachment by id.

    vendor, client, ops

    DELETE

    Deletes an agreement attachment.

    vendor, ops

    client

    GET

    Gets a list of orders visible to the user.

    vendor, client, ops

    GET

    Gets an order by id.

    vendor, client, ops

    PUT

    Updates some properties of an order.

    vendor, client, ops

    POST

    Validates the state of an order.

    vendor, client, ops

    POST

    Changes an order’s status to processing.

    vendor, client, ops

    POST

    Changes an order’s status to querying.

    vendor

    POST

    Changes an order’s status to complete.

    vendor

    POST

    Changes an order’s status to failed.

    vendor, ops

    Notify client about order

    POST

    Sends an email reminder to the client.

    ops

    DELETE

    Deletes an order.

    client

    GET

    Renders the template for an order by id.

    vendor, client, ops

    GET

    Returns a list of all subscriptions for the order visible to the user.

    vendor, client, ops

    GET

    Returns a subscription with the given id that exists in the order.

    vendor, client, ops

    PUT

    Updates an existing subscription within the order.

    vendor

    DELETE

    Removes a subscription from the order.

    vendor

    GET

    Gets all order assets.

    vendor, client, ops

    Get order asset by id

    GET

    Gets an order asset by id.

    vendor, client, ops

    PUT

    Updates an order asset by id.

    vendor, client, ops

    DELETE

    Deletes an order asset by id.

    vendor

    client, ops

    GET

    Gets a list of requests.

    vendor, client, ops

    GET

    Gets a request by id.

    vendor, client, ops

    PUT

    Updates some properties of a request.

    vendor, ops

    POST

    Performs the request validation procedure.

    vendor, client, ops

    POST

    Moves a request to the processing state.

    vendor, client, ops

    POST

    Moves a request to the querying state.

    vendor, ops

    POST

    Moves a request to the completed state.

    vendor, client, ops

    GET

    Gets a list of subscriptions in all agreements.

    vendor, client, ops

    GET

    Gets a subscription in an agreement by id.

    vendor, client, ops

    PUT

    Updates a subscription.

    vendor, client, ops

    POST

    Terminates a subscription.

    vendor

    GET

    Renders a subscription’s template.

    vendor, client, ops

    Create asset

    POST

    Creates an active asset that is globally retrievable.

    Create agreement

    POST

    Create order

    POST

    Create order subscription

    POST

    Creates a new subscription and adds it to the order.

    Create order asset

    POST

    Creates a draft asset that is only retrievable through the order.

    Create request

    POST

    Create subscription

    POST

    Creates a subscription.

    Order Assets
    Requests
    Subscriptions

    vendor

    Creates an agreement administratively.

    Creates a new order for a specified agreement or creates an agreement.

    vendor

    vendor

    Creates a new request.

    vendor

    Configuration order – An order to enable or disable the auto-renewal of a subscription.

    This object contains the following attributes:

    Field
    Type
    Description

    id

    string

    (Read-only) The primary identifier for the order.

    type

    string

    The type of order. The value is specified when the order is created and cannot be updated.

    status

    string

    ORDER OBJECT
    {
      "id": "ORD-6869-4529-8975-9005", 
      "agreement": {
        "id": "AGR-2119-4550-8674-5962",
        "name": "Microsoft Office 365 NCE E1"
      },
      "type": "Purchase",
      "status": "Processing",
      "statusNotes": {
        "id": "ERR-123-123",
        "message": "Vendor API is not responding. Try later"
      },
      "template": {
        "id": "TPL-1234-4444",
        "name": "Activation in Progress"
      },
      "assignee": {
        "id": "USR-1234-1234-1234",
        "name": "John Smith",
        "icon": "/static/users/USR-1234-1234-1234.icon.svg"
      },
      "lines": [
          {  // Upsize
            "id": "ALI-1234-1234-1234-0001",
            "item": {
              "id": "ITM-1234-1234-1234-0021",
              "name": "Adobe Illustrator"
            },
            "quantity": 10,
            "price": { ... },
            "subscription": { "id": "SUB-1234-1234-1234" }
          },
          {   // New purchase
            "id": "ALI-1234-1234-1234-0002",
            "item": {
              "id": "ITM-4444-4444-4444-0031",
              "name": "Adobe Photoshop"
            },
            "quantity": 1,
            "price": { ... }
          }
      ],
      "notes": "Order for accounting team",
      "parameters": {
        "fulfillment": [
          {
            "id": "PRM-1234-1234-1234-1234",
            "name": "Tennant Id",
            "externalId": "tenant_id",
            "value": "69b73824-ce76-4866-ad47-b615ae9d8998"
          }
        ],
        "ordering": [
          {
            "id": "PRM-1234-1234-1234-0001",
            "name": "Microsoft Partner ID",
            "externalId": "msPartnerId",
            "constraints": {
                "readonly": false,
                "hidden": false,
                "required": true
            },
            "value": "123456",
            "error": {
                "id": "E001234",
                "message": "Unknown MS Partner ID"
            }
          }
        ]
      },
      "externalIDs": {
        "client": "abc-123",
        "operations": "SO-1234-1234-1111"
      },
      "termsAndConditions":[
      {
         "id": "TCS-3159-1891-0980-8679",   
         "accepted": "2024-04-29T15:37:16.071Z",
         "acceptedBy": {
            "id": "USR-0000-0001",
            "href": "/accounts/users/USR-0000-0001",
            "name": "Will Smith"
          },
          "name": "Microsoft 365 Terms of Service"
        }
      ],
      "audit": {
        "created": { "at": "...", "by": { } },
        "updated": { "at": "...", "by": { } }
      }
    }

    Example

    List assets
    Get asset by id
    Update asset
    Terminate asset
    Render asset template
    List agreements
    Get agreement by id
    Update agreement
    Render agreement template
    Create agreement attachment
    List agreement attachments
    Get agreement attachment by id
    Delete agreement attachment
    List orders
    Get order by id
    Update order
    Validate order
    Process order
    Query order
    Complete order
    Fail order
    Delete order
    Render order template
    List order subscriptions
    Get order subscription by id
    Update order subscription
    Remove order subscription
    List order assets
    Update order asset
    Delete order asset
    List requests
    Get request by id
    Update request
    Validate request
    Process request
    Query request
    Complete request
    List subscriptions
    Get subscription by id
    Update subscription
    Terminate subscription
    Render subscription template

    (Read-only) The status of the order.

    externalIds

    object

    (Optional) Represents the object.

    notes

    string

    (Optional) Contains initial customer notes added by the buyer during the purchase process. Buyers can edit and add notes at any time for all order statuses.

    statusNotes

    object

    (Optional) Represents the object containing notes added during a status change by the vendor or vendor extensions, indicating the reason for an order failure or status change.

    error

    object

    (Optional) Represents the object indicating a validation error returned by the vendor or vendor extension during order validation. The message may include markup.

    agreement

    object

    Represents the object.

    authorization

    object

    (Read-only) Represents the object, which was used for the order.

    listing

    object

    (Read-only) Represents the used for the order.

    template

    object

    Represents the object

    assignee

    object

    (Optional) Represents the object

    audit

    object

    (Read-only) Represents the object.

    lines

    object

    (Optional) Contains information about the specific item that the buyer is purchasing/updating.

    parameters.fulfillment

    object

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

    parameters.ordering

    object

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

    subscriptions

    object

    A list of references for to be added or updated by the order.

    price

    object

    (Read-only) Represents the total for the order and is displayed to the various actors.

    Not all fields are visible to all actors.

    termsAndConditions

    object

    (Read-only) Represents the published terms and conditions of the product that are accepted as part of the order. The terms are accepted when the order is created and again when the order enters the processing state.

    externalIds
    message
    message
    agreement
    authorization
    listing
    template
    user
    audit
    subscription
    price

    Agreement

    The Agreement object represents an instance of a relationship between the seller, buyer, and licensee. It may refer to one-time purchases or a set of subscriptions.

    This object contains the following attributes:

    Field
    Type
    Description

    id

    string

    (Read-only) The primary identifier for the account.

    status

    string

    The key status of the object. May only be specified on creation and cannot be updated with PUT.

    name

    string

    The agreement name. The value is assigned automatically when the agreement is created, as {product.name} for {licensee.name}. The value can be changed later.

    vendor

    object

    (Read-only) Represents the vendor object filled in upon creation, according to the product.

    client

    object

    Represents the client object.

    buyer

    object

    (Read-only) Represents the object.

    seller

    object

    (Read-only) Represents the object.

    licensee

    object

    Represents the object.

    product

    object

    Represents the object.

    Example:

    listing

    listing

    Represents the that allows this agreement.

    Example:

    authorization

    object

    (Read-only) Represents the object used for the agreement.

    price

    object

    (Read-only) Represents the agreement’s pricing details. Monthly and yearly prices exclude one‑time charges. Visibility of specific price fields varies by actor, as defined within the object.

    Example:

    template

    object

    Represents the object.

    Example:

    error

    object

    Represents the object,containing a markup‑formatted text string that explains the reason for provisioning failure.

    Example:

    lines

    object

    Represents the object, containing a list of items in the agreement.

    Example:

    subscriptions

    object

    Represents the within the agreement.

    parameters.fulfillment

    object

    (Optional) Represents the object containing a concise definition of a parameter, its value, and any associated errors.

    Example:

    parameters.ordering

    object

    (Optional) Represents the object containing a concise definition of a parameter, its value, and any associated errors.

    Example:

    audit

    object

    (Read-only) Represents the object.

    externalIds

    object

    (Optional) Represents a set of .

    termsAndConditions

    object

    (Read‑only) Represents the terms and conditions of the product that were accepted as part of the order. These values are then copied from the order into the agreement when the order is completed.

    AGREEMENT OBJECT
    {
      "id": "AGR-2119-4550-8674", 
      "status": "Draft",
      "name": "Microsoft Office 365 NCE E1", 
      "vendor": { "id": "ACC-1234-1234" },
      "client": { "id": "ACC-1234-4444" },
      "seller": { "id": "SEL-9121-8944" },
      "buyer": { "id": "BUY-3731-7971" },
      "licensee": { "id": "LCE-9625-9634" },
      "product": {
        "id": "PRD-1111-1111-1111",    
        "name": "Microsoft Office 365 NCE",
        "icon": "/static/PRD-1111-1111-1111/logo.png"
      },
      "price": {
        "PPxY": 150,
        "PPxM": 12.50,
        "SPxY": 165,
        "SPxM": 13.75,
        "markup": 0.10,
        "margin": 0.11,
        "currency": "USD"
      },
      "startDate": "2023-12-14T17:28:57.667Z",
      "endDate": "2023-12-14T17:28:57.667Z",
      "template": {
        "id": "TPL-1234-4444",    
        "name": "Succesful Activation"
      },
      "audit": {
        "created": { "at": "...", "by": { } },
        "updated": { "at": "...", "by": { } }
      },
      "lines": [
        {
          "id": "ALI-1234-1234-1234-0127",
          "item": {
            "id": "ITM-1234-1234-1234-0992",
            "name": "Adobe Migration"
          },
          "quantity": 10,
          "price": {
            "PPx1": 12.50,
            "unitPP": 1.25,
            "SPx1": 13.50,
            "unitSP": 1.35,
            "markup": 0.10,
            "margin": 0.11,
            "currency": "USD"
          },
          "order": { "id": "ORD-6869-4529-8975-9005" }
        }
      ],
      "subscriptions": [
        { "id": "SUB-0792-5000-2253" }
      ],
      "parameters": {
        "ordering": [ ],
        "fulfillment": [ ]
      },
      "externalIDs": {
        "client": "12345678",
        "operations":	"07bf766b-c767-4293-9ab3",
        "vendor": "ABC-2023-C07-dbeee0b302c0"
      },
      "termsAndConditions":[
      {
         "id": "TCS-3159-1891-0980-8679",    
         "accepted": "2024-04-29T15:37:16.071Z",
         "acceptedBy": {
            "id": "USR-0000-0001",        
            "name": "Will Smith"
          },
          "name": "Microsoft 365 Terms of Service"
        }
      ]
    }
    AGREEMENT OBJECT
    {
      "id": "AGR-2119-4550-8674",  
      "status": "Draft",
      "name": "Microsoft Office 365 NCE E1", 
      "vendor": {
        "id": "ACC-1234-1234",  
        "name": "Microsoft",
        "icon": "/static/ACC-1234-1234/account.png"
      },
      "client": {
        "id": "ACC-1234-4444",    
        "name": "Best LLC",
        "icon": "/static/ACC-1234-4444/account.png"
      },
      "seller": {
        "id": "SEL-9121-8944",    
        "name": "Software LN",
        "icon": "/static/SEL-9121-8944/icon.png"
      },
      "buyer": {
        "id": "BUY-3731-7971",    
        "name": "Adam Ruszczak",
        "icon": "/static/BUY-3731-7971/icon.png"
      },
      "licensee": {
        "id": "LCE-9625-9634",  
        "name": "John Smith",
        "icon": "/static/LCE-9625-9634/icon.png"
      },
      "product": {
        "id": "PRD-1111-1111-1111",   
        "name": "Microsoft Office 365 NCE",
        "icon": "/static/PRD-1111-1111-1111/logo.png"
      },
      "price": {
        "PPxY": 150,
        "PPxM": 12.50,
        "SPxY": 165,
        "SPxM": 13.75,
        "markup": 0.10,
        "margin": 0.11,
        "currency": "USD"
      },
      "startDate": "2023-12-14T17:28:57.667Z",
      "endDate": "2023-12-14T17:28:57.667Z",
      "template": {
        "id": "TPL-1234-4444",   
        "name": "Succesful Activation"
      },
      "audit": {
        "created": { 
          "at": "2023-12-14T17:28:57Z", 
          "by": {
            "id": "UR-1234-1234-1234",
            "name": "John Smith",
            "icon": "/static/users/UR-1234-1234-1234.icon.svg"
          }
        },
        "updated": { 
          "at": "2023-12-14T17:28:57Z", 
          "by": {
            "id": "UR-1234-1234-1234",
            "name": "John Smith",
            "icon": "/static/users/UR-1234-1234-1234.icon.svg"
          }
        }
      },
      "lines": [
        {
          "id": "ALI-1234-1234-1234-0127",
          "item": {
            "id": "ITM-1234-1234-1234-0992",
            "name": "Adobe Migration"
          },
          "quantity": 10,
          "price": {
            "PPx1": 12.50,
            "unitPP": 1.25,
            "SPx1": 13.50,
            "unitSP": 1.35,
            "markup": 0.10,
            "margin": 0.11,
            "currency": "USD"
          },
          "order": { "id": "ORD-6869-4529-8975-9005" }
        }
      ],
      "subscriptions": [
        {
          "id": "SUB-0792-5000-2253"      
        }
      ],
      "parameters": {
        "ordering": [
          {
            "id": "string",
            "name": "string",
            "value": "string",
            "hasError": true,
            "description": {
              "type": "SingleLine",
              "phase": "Configuration",
              "isRequired": true,
              "isHidden": true,
              "isReadOnly": true,
              "error": "string"
            }
          }
        ],
        "fulfillment": [
          {
            "id": "string",
            "name": "string",
            "value": "string",
            "hasError": true,
            "description": {
              "type": "SingleLine",
              "phase": "Configuration",
              "isRequired": true,
              "isHidden": true,
              "isReadOnly": true,
              "error": "string"
            }
          }
        ]
      },
      "externalIDs": {
        "client": "12345678",
        "operations":	"07bf766b-c767-4293-9ab3",
        "vendor": "ABC-2023-C07-dbeee0b302c0"
      },
      "termsAndConditions":[
      {
         "id": "TCS-3159-1891-0980-8679",    
         "accepted": "2024-04-29T15:37:16.071Z",
         "acceptedBy": {
            "id": "USR-0000-0001",       
            "name": "Will Smith"
          },
          "name": "Microsoft 365 Terms of Service"
        }
      ]
    }

    Examples

    account
    account
    buyer
    seller
    licensee
    product
    listing
    authorization
    price
    template
    error
    line
    subscription
    orderParameter
    orderParameter
    audit
    externalIds
    {
        "id": "PRD-1111-1111-1111",
        "name": "Microsoft Office 365 NCE",
        "icon": "/static/PRD-1111-1111-1111/logo.png"
    }
    {
        "id": "LST-1234-1234"
    }
    {
      "PPxY": 150,
      "PPxM": 12.50,
      "SPxY": 165,
      "SPxM": 13.75,
      "currency": "USD"
    }
    {
        "id": "TPL-1234-4444",
        "name": "Succesful Activation"
    }
    {
         "id": "E001234",
         "message": "Agreement provisioning failed due to unavailability of the item"
    }
    [
      {
        "id": "ALI-1234-1234-1234-0127",
        "item": {
          "id": "ITM-1234-1234-1234-0992",
          "name": "Adobe Migration"
        },
        "quantity": 10,
        "price": {
          "PPx1": 12.50,
          "unitPP": 1.25,
          "SPx1": 13.50,
          "unitSP": 1.35,
          "currency": "USD"
        },
        "order": { "id": "ORD-6869-4529-8975-9005" }
      }
    ]
    [
      {
          "id": "PRM-1234-1234-1234",
          "name": "Tennant Id",
          "externalId": "tenant_id",
          "constraints": {
              "readonly": false,
              "hidden": true,
              "required": true,
              "unique": false
          },
          "value": "69b73824-ce76-4866-ad47-b615ae9d8998",
          "error": {
              "id": "E001234",
              "message": "Incorrect parameter value"
          }
      }
    ]
    [
      {
          "id": "PRM-1234-1234-1234",
          "name": "Tennant Id",
          "externalId": "tenant_id",
          "constraints": {
              "readonly": false,
              "hidden": true,
              "required": true,
              "unique": false
          },
          "value": "69b73824-ce76-4866-ad47-b615ae9d8998",
          "error": {
              "id": "E001234",
              "message": "Incorrect parameter value"
          }
      }
    ]