APIs to perform Dynamic Monetization activity.
- Delete a line item by its ID
Dynamic Monetization APIs (1.0)
https://{siteID}.flexnetoperations.{domainExtension}/dynamicmonetization/api/
https://{siteID}.flexnetoperations.{domainExtension}/dynamicmonetization/floating/api/
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/provisioning/api/v1.0/instances/{instanceId}/line-items
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/provisioning/api/v1.0/instances/{instanceId}/line-items' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
List of line items for the instance ID.
The line item state. Valid states are:
- DEPLOYED
- INACTIVE
- OBSOLETE
INACTIVE and OBSOLETE can only be set when the line item already exists.
An OBSOLETE line item cannot be set to INACTIVE or DEPLOYED.
Start date and time of the line item in milliseconds since 1970-01-01 00:00.
The count from the line item quantity used by access requests. The value can be fractional.
The properties that determine how the service will respond to access requests.
The rate table series used to determine the rate applied to Elastic access requests against this line item. An empty string indicates that the rate is determined by the latest version of a table with no series.
Allow requests to continue consuming tokens from this line item after the entitled quantity has been fully consumed, up to the overdraft limit. The overdraftType field must be set to "Number" if an overdraft limit is provided. To consume tokens from this line item indefinitely, set the overdraftType to "Unlimited", and an overdraft limit is not required. If an overdraft limit is not set, requests can only consume from this line item until the entitled quantity is reached.
[ { "activationId": "string", "state": "string", "quantity": 1, "start": 0, "end": 0, "used": 0.1, "attributes": { … } } ]
Request
Maps a line item to an instance. The first time this API is called, the payload details will be stored, and reported in a GET line-item request. If the line item is already mapped, then the details stored will be entirely replaced.
This method is intended for use if you do not use FlexNet Operations as your back office, so that you can configure your upstream system (e.g. a CRM or back office) to create line items in Dynamic Monetization for your end customers. (If you use FlexNet Operations as your back office, but use this method directly to provision line items that do not exist in FlexNet Operations, then those line items will not be reflected in FlexNet Operations.)
The line item state. Valid states are:
- DEPLOYED
- INACTIVE
- OBSOLETE
INACTIVE and OBSOLETE can only be set when the line item already exists.
An OBSOLETE line item cannot be set to INACTIVE or DEPLOYED.
Start date and time of the line item in milliseconds since 1970-01-01 00:00.
The properties that determine how the service will respond to access requests.
The rate table series used to determine the rate applied to Elastic access requests against this line item. An empty string indicates that the rate is determined by the latest version of a table with no series.
Allow requests to continue consuming tokens from this line item after the entitled quantity has been fully consumed, up to the overdraft limit. The overdraftType field must be set to "Number" if an overdraft limit is provided. To consume tokens from this line item indefinitely, set the overdraftType to "Unlimited", and an overdraft limit is not required. If an overdraft limit is not set, requests can only consume from this line item until the entitled quantity is reached.
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/provisioning/api/v1.0/instances/{instanceId}/line-items
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/provisioning/api/v1.0/instances/{instanceId}/line-items' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"activationId": "string",
"state": "string",
"quantity": 1,
"start": 0,
"end": 0,
"attributes": {
"elastic": false,
"rateTableSeries": "",
"overdraftLimit": 0,
"overdraftType": "string"
}
}'
"string"
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/provisioning/api/v1.0/instances/{instanceId}/line-items/{lineItemId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/provisioning/api/v1.0/instances/{instanceId}/line-items/{lineItemId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
The requested line item was found and returned successfully.
The line item state. Valid states are:
- DEPLOYED
- INACTIVE
- OBSOLETE
INACTIVE and OBSOLETE can only be set when the line item already exists.
An OBSOLETE line item cannot be set to INACTIVE or DEPLOYED.
Start date and time of the line item in milliseconds since 1970-01-01 00:00.
The count from the line item quantity used by access requests. The value can be fractional.
The properties that determine how the service will respond to access requests.
The rate table series used to determine the rate applied to Elastic access requests against this line item. An empty string indicates that the rate is determined by the latest version of a table with no series.
Allow requests to continue consuming tokens from this line item after the entitled quantity has been fully consumed, up to the overdraft limit. The overdraftType field must be set to "Number" if an overdraft limit is provided. To consume tokens from this line item indefinitely, set the overdraftType to "Unlimited", and an overdraft limit is not required. If an overdraft limit is not set, requests can only consume from this line item until the entitled quantity is reached.
{ "activationId": "string", "state": "string", "quantity": 1, "start": 0, "end": 0, "used": 0.1, "attributes": { "elastic": false, "rateTableSeries": "", "overdraftLimit": 0, "overdraftType": "string" } }
Request
Deletes a line item given its ID.
This method is intended for use if you do not use FlexNet Operations as your back office, so that you can manage line items in Dynamic Monetization for your end customers. (If you use FlexNet Operations as your back office, but use this method directly to remove line items that exist in FlexNet Operations, then those line items' representation in FlexNet Operations will not be affected.)
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/provisioning/api/v1.0/instances/{instanceId}/line-items/{lineItemId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/provisioning/api/v1.0/instances/{instanceId}/line-items/{lineItemId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Configuration
APIs for managing configuration values that control how customers can access and consume line items.
Available values:
- timezone.tolerant
- Allows a line item to be used up to 12 hours before its start date (UTC) and up to 12 hours after its end date (UTC), therefore making it tolerant to all time zones.
- Supported values: true (enabled) and false (disabled).
- Default: false