For the complete documentation index, see llms.txt. This page is also available as Markdown.

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).

  • 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.

Before you start

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

Core resources

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.

Browse collections

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

View Assets operations
Operation
Method
Description
Access

POST

Creates an active asset that is globally retrievable.

vendor

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

Agreements

View Agreements operations
Operation
Method
Description
Access

POST

Creates an agreement administratively.

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

Orders

View Orders operations
Operation
Method
Description
Access

POST

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

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

Order Subscriptions

View Order Subscriptions operations
Operation
Method
Description
Access

POST

Creates a new subscription and adds it to the order.

vendor

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

Order Assets

View Order Assets operations
Operation
Method
Description
Access

POST

Creates a draft asset that is only retrievable through 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

Requests

View Requests operations
Operation
Method
Description
Access

POST

Creates a new request.

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

Subscriptions

View Subscriptions operations
Operation
Method
Description
Access

POST

Creates a subscription.

vendor

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

Last updated

Was this helpful?