Agreements

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 properties:

Field
Type
Description

id

string

Primary account identifier.

Example: AGR-2119-4550-8674

href

string

Relative reference to the object in the API.

Example: /v1/commerce/agreements/AGR-2119-4550-8674

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.

Example: Microsoft Office 365 NCE E1

vendor

Reference to the vendor account object filled in upon creation, according to the product.

Example:

client

Reference to the client account object.

Example:

buyer

Reference to the Buyer object.

Example:

seller

Reference to the Seller object.

Example:

licensee

Reference to the Licensee object.

Example:

product

Reference to the Product object.

Example:

listing

Listing

Reference to the listing that allows this agreement.

Example:

authorization

Authorization

Reference to the Authorization object used for the agreement.

Example:

price

Price

The agreement's pricing details including the monthly and yearly costs, excluding one-time charges.

Different aspects of the price object are visible to different actors, as indicated in the Price Object.

Example:

template

Template

Reference to Template object.

Example:

error

ErrorObject

Markup text string explaining the reason for provisioning failure.

Example:

lines

Lines

List of items in the agreement.

Example:

subscriptions

Subscription

List of subscriptions in the agreement.

Example:

parameters.fulfillment

OrderParameterValue

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

Example:

parameters.ordering

Order Parameter Object

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

Example:

audit

AuditObject

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

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

Example:

externalIds

ExternalIdsObject

Set of external IDs.

Example:

Example

{
  "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,
    "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,
        "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"
  }
}

Last updated

Was this helpful?