APIs to perform Dynamic Monetization activity.
- Create conditions
Dynamic Monetization APIs (1.0)
https://{siteID}.flexnetoperations.{domainExtension}/dynamicmonetization/api/
https://{siteID}.flexnetoperations.{domainExtension}/dynamicmonetization/floating/api/
A human readable name to help a user identify the action. The same name may be re-used in other line items.
The unique identifier of the condition that triggers this action.
Required, unless defining a default action. Only one default action may be defined per line item.
The maximum number of tokens that may be consumed from the stated line item by requests satisfying the condition.
Required for ALLOW, but may be omitted at most once per line item to create a default ALLOW action. Not used for DENY.
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/instances/{instanceId}/line-items/{lineItemId}/actions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.0/instances/{instanceId}/line-items/{lineItemId}/actions' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '[
{
"name": "string",
"conditionId": "1e06e0eb-07f6-4fcd-8750-870cbafd1693",
"action": "ALLOW",
"allocation": 1000
}
]'
A list of actions that were created.
A human readable name to help a user identify the action. The same name may be re-used in other line items.
The unique identifier of the condition that triggers this action.
Required, unless defining a default action. Only one default action may be defined per line item.
The maximum number of tokens that may be consumed from the stated line item by requests satisfying the condition.
Required for ALLOW, but may be omitted at most once per line item to create a default ALLOW action. Not used for DENY.
The total count that has been consumed from the allocation by access requests.
This field is only present for actions which have an allocation.
[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "conditionId": "1e06e0eb-07f6-4fcd-8750-870cbafd1693", "action": "ALLOW", "allocation": 1000, "used": 0.1 } ]
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/instances/{instanceId}/line-items/{lineItemId}/actions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.0/instances/{instanceId}/line-items/{lineItemId}/actions' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/instances/{instanceId}/line-items/{lineItemId}/actions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.0/instances/{instanceId}/line-items/{lineItemId}/actions' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
A list of actions was returned successfully.
A human readable name to help a user identify the action. The same name may be re-used in other line items.
The unique identifier of the condition that triggers this action.
Required, unless defining a default action. Only one default action may be defined per line item.
The maximum number of tokens that may be consumed from the stated line item by requests satisfying the condition.
Required for ALLOW, but may be omitted at most once per line item to create a default ALLOW action. Not used for DENY.
The total count that has been consumed from the allocation by access requests.
This field is only present for actions which have an allocation.
[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "conditionId": "1e06e0eb-07f6-4fcd-8750-870cbafd1693", "action": "ALLOW", "allocation": 1000, "used": 0.1 } ]
Request
Modifies the list of actions for a line item. The existing actions can be re-ordered, modified or omitted, and new actions can be added to the list. If an action is omitted, it will be completely removed and the current counts for a related allocation will be lost; therefore, care should be taken when making any changes.
A human readable name to help a user identify the action. The same name may be re-used in other line items.
The unique identifier of the condition that triggers this action.
Required, unless defining a default action. Only one default action may be defined per line item.
The maximum number of tokens that may be consumed from the stated line item by requests satisfying the condition.
Required for ALLOW, but may be omitted at most once per line item to create a default ALLOW action. Not used for DENY.
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/instances/{instanceId}/line-items/{lineItemId}/actions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.0/instances/{instanceId}/line-items/{lineItemId}/actions' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '[
{
"id": null,
"name": "string",
"conditionId": "1e06e0eb-07f6-4fcd-8750-870cbafd1693",
"action": "ALLOW",
"allocation": 1000
}
]'
The replacement list of actions that has been saved.
A human readable name to help a user identify the action. The same name may be re-used in other line items.
The unique identifier of the condition that triggers this action.
Required, unless defining a default action. Only one default action may be defined per line item.
The maximum number of tokens that may be consumed from the stated line item by requests satisfying the condition.
Required for ALLOW, but may be omitted at most once per line item to create a default ALLOW action. Not used for DENY.
The total count that has been consumed from the allocation by access requests.
This field is only present for actions which have an allocation.
[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "conditionId": "1e06e0eb-07f6-4fcd-8750-870cbafd1693", "action": "ALLOW", "allocation": 1000, "used": 0.1 } ]
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/instances/{instanceId}/conditions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.0/instances/{instanceId}/conditions' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
A sample list of conditions.
[ { "id": "123e4567-e89b-12d3-a456-426614174004", "name": "compositeCondition", "operator": "AND", "conditions": [ … ] }, { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "simpleCondition", "operator": "IN", "property": "category", "values": [ … ] } ]
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/instances/{instanceId}/conditions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.0/instances/{instanceId}/conditions' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '[
{
"name": "compositeCondition",
"operator": "AND",
"conditions": [
{
"operator": "IN",
"property": "status",
"values": [
"active",
"pending"
]
},
{
"operator": "NOT",
"condition": {
"operator": "IN",
"property": "category",
"values": [
"restricted"
]
}
}
]
},
{
"name": "simpleCondition",
"operator": "IN",
"property": "category",
"values": [
"gold",
"silver"
]
}
]'
A sample list of conditions.
[ { "id": "123e4567-e89b-12d3-a456-426614174004", "name": "compositeCondition", "operator": "AND", "conditions": [ … ] }, { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "simpleCondition", "operator": "IN", "property": "category", "values": [ … ] } ]
The identifier of a condition to be modified. If an identifier is not provided, a new condition will be created with a generated identifier.
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/instances/{instanceId}/conditions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.0/instances/{instanceId}/conditions' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '[
{
"name": "compositeCondition",
"operator": "AND",
"conditions": [
{
"operator": "IN",
"property": "status",
"values": [
"active",
"pending"
]
},
{
"operator": "NOT",
"condition": {
"operator": "IN",
"property": "category",
"values": [
"restricted"
]
}
}
]
},
{
"name": "simpleCondition",
"operator": "IN",
"property": "category",
"values": [
"gold",
"silver"
]
}
]'
A sample list of conditions.
[ { "id": "123e4567-e89b-12d3-a456-426614174004", "name": "compositeCondition", "operator": "AND", "conditions": [ … ] }, { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "simpleCondition", "operator": "IN", "property": "category", "values": [ … ] } ]
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/instances/{instanceId}/conditions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.0/instances/{instanceId}/conditions' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/instances/{instanceId}/conditions/{conditionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.0/instances/{instanceId}/conditions/{conditionId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/instances/{instanceId}/line-items/actions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.0/instances/{instanceId}/line-items/actions?next=0' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
[ { "lineItems": [ … ], "next": 0 } ]
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