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...
List items in the Agreements collection.
Get a single Agreement object by ID.
Create a new request.
Update some properties (assignee
and externalIDs
) of a request.
Get a list of requests.
Get a single request by ID.
Get a single request message.
id
string
Primary Request identifier
Example: "REQ-1671-0642"
href
string
Relative reference to object on API (always /v1/commerce/requests/{id})
Example: "/v1/commerce/requests/REQ-1671-0642"
status
string
Status of the request.
Example: "Querying"
client
Reference to client Account object.
Example:
vendor
Reference to vendor Account object.
Example:
requester
User of requester, in client account.
Example:
assignee
User of vendor who is responsible to processing request.
Example:
product
Product
Example:
externalIds
ExternalIdsObject
Set of external IDs identifiers.
Example:
parameters.order
ParameterValue[]
Request ordering parameters values
Example:
error
ErrorObject
Error reported by validation procedure.
Example:
audit
AuditObject
Audit object with possible entries: created, updated, activated, terminated, according to lifecycle of the object.
Possible audit events: Created, Updated, and Querying.
Example:
| string | Primary account identifier. Example: "AGR-2119-4550-8674" |
| string | Relative reference to object on API (always /commerce/agreements/{id}). Example: "/v1/commerce/agreements/AGR-2119-4550-8674" |
| string | The key status of the object. May only be specified on creation - Draft or Provisioning, and cannot be updated with |
| string | Agreement name, will be assigned automatically on creation, as Example: "Microsoft Office 365 NCE E1" |
| Example: |
| Example: |
| Example: |
| Example: |
| Example: |
| Example: |
| Listing | Reference to the listing which allows this agreement. Example: |
| Authorization | Reference to the Authorization object used for the agreement. Example: |
| Price | The price for the agreement, explains the monthly and yearly prices for the whole agreement, one-time price tags are never included into it. different parts of price object visible to different actors, see Price Object. Example: |
| Template | Reference to Template object. Example: |
| ErrorObject | Markup text string explaining reason for provisining failure. Always set on moving status to Failed. Example: |
| Lines[] | List of items in Agreement. Example: |
| Subscription[] | Example: |
| OrderParameterValue [] | An object that holds a concise definition of a parameter, its value, and any associated errors. Example: |
| Order Parameter Object [] | An object that holds a concise definition of a parameter, its value, and any associated errors. Example: |
| 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: |
| ExternalIdsObject | Set of external IDs. Example: |
List attachments in the scope of the specific request.
Get an attachment in the scope of the specific request.
Create a request attachment.
Get a list of subscriptions in all agreements.
Get a list of subscriptions in all agreements.
List orders that the user has access to.
id | string | Primary message identifier Example: "MSG-1212-3434-5656-7878" |
href | string | Relative reference to object on API (always /v1/somewhere/items/{id}) Example: "/v1/commerce/requests/REQ-1671-0642/messages/MSG-1212-3434-5656-7878" |
type | string | Type of message: User or System. Example: "User" |
content | string | Message contents Example: "I would agree discount of 5%". |
request | Reference to request, never sent in context of the Request - i.e. not set on subcollection /commerce/request/{id}/messages, but will be sent whithout this context. Example: |
audit | AuditObject | Audit object with possible entries: Created. Example: |
An order is a request made by a buyer to create/update an agreement with a one-time purchase or/and set of subscriptions. There are three types of Orders.
Purchase - A purchase order is the first order created in the lifecycle of an agreement. The purchase order is always the first order and there is only one within an agreement.
Change - A change order is a request to update the agreement. There can be multiple change orders in an agreement.
Termination - A termination order is a request to terminate the agreement or terminate a specific subscription within the agreement. There can be multiple termination orders.
Field | Type | Description |
---|---|---|
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 |
---|---|---|
Returns subscription with a given ID that exists in the order.
Reference to the vendor object filled-in on creation according product.
Reference to the Client object.
Reference to object.
Reference to the object.
Reference to the object.
Reference to the object.
inlineAttachmentContent
string
Inline attachment content. For example, in the case of type LicenseKey, this field is actually populated with a license key string.
Example: "DFE25-GQ943-GH992-KL235-PY037"
id
Primary attachment identifier using the prefix “ATT”.
Example: "ATT-1234-1234-1234"
classification
File or License Key
Example: "File"
status
Attachment status. Can be Published or Deleted.
Example: "Published"
id
string
Primary order identifier
Example: "ORD-5542-1187-3130-0991"
href
string
Relative reference to object on API (always /commerce/orders/{id})
Example: "/commerce/orders/ORD-5542-1187-3130-0991"
type
string
Specified on creation of order, cannot be updated.
Example: "Purchase"
status
string
Example: "Processing"
externalIds
ExternalIds
External IDs for either client/vendor/distributor.
Example:
notes
string
Contains initial customer notes added by Buyer during purchase process. Buyer can edit and add notes at any time for all order statuses. Managed by client. Not used by vendor extensions.
Example: "Order of 2 subs for 2 ppl from accounting dept."
statusNotes
Message Object
Notes added during status change by vendor or vendor extensions to indicate reason of order failure or status change. Should be shown on order screen (as part of template or standalone).
Example:
error
Message Object
Standard error object. Means some error appeared on parameters validation, which can include markup. Used to indicate validation error by vendor or vendor extension during order validation. Should be reflected in purchase wizard while parameters validation and on the parameters and the items screens of order. Should behave like errors in parametes, i.e. reset on order status changes.
Example:
agreement
Agreement
The agreement represents an instance of a relationship between Seller, Buyer, and Licensee.
It may refer to one-time purchases or/and set of subscriptions.
Example:
authorization
Authorization
Reference to Authorization object which was used for ther order.
Example:
listing
Listing
Reference to Listing which was used for the order.
Example:
template
Template
Example:
assignee
User
Example:
audit
AuditObject
AuditObject is a dictionary with events that happened with the object, every event has “at” part which specifies the last time the event occurred, and “by” part which specifies who the actor executed the event.
Example:
lines[]
Line[]
An Order Lines contains the information about the specific item the Buyer is purchasing/updating.
Example:
parameters.fulfillment
Order Parameter Object []
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:
subscriptions
Subscription
List of subscription references, for these subscriptions that going to be added/updated by the order. On POST or PUT, lines property of subscription can be provided to reflect these changes.
Example:
price
Price
This represents the total price for an Order and is displayed to the various actors. Object is READONLY
.
Please note not all fields are visible to all actors.
Example:
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:
product
Product
Product reference
Example:
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:
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:
lines
Lines[]
List of all product items (lines) purchasedi n scope of this subscription.
Example:
parameters
object
An object that groups together separate lists of parameters. Only fulfillment parameters are available in this object.
Example:
parameters.fulfillment
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: Created, Updated, Activated, Terminated, and Failed.
Example:
externalIDs
ExternalIDsObject
Set of external IDs.
Example:
Returns list of all subscriptions for the order.
Creates a new subscription and adds it to the order.
Success
Request attachment id
Request attachment id
No Content
Request attachment id
Request attachment id
No Content
Request id
Success
Success
Success
Success
Success
Success
Id of order to be deleted
No Content
Id of subscription to be deleted
No Content
Success
Success
Success
Request id
Complete request data
No Content
Request id
Query request data
No Content
Request id
Process request data
No Content
Request Id
Create message
Created
Success
Success
Json representation of the attachment
Created
Success
Success
Json representation of the attachment
Created
Success
Success
Success
Request data
Created
Success
Request id
Request
Success
Id of the subscription to update
Update details of subscription
Success
Details of the subscription to create
Created
Id of order to be processed
Update details of order
Success
Id of order to be completed
Update details of order
Success
Id of order to be completed
Update details of order
Success
Id of order to update
Update details of order
Success
Id of order to be failed
Update details of order
Success
Id of order to be queried
Update details of order
Success
Success
Id of existing agreement to update
Update details
Success
Details of the agreement to create
Created
Details of the order to create
Created