APIs to perform Dynamic Monetization activity.
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/api/v1.0/sessions
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/floating/api/v1.0/sessions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/floating/api/v1.0/sessions' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-instance-id: string' \
-d '{
"instanceId": "64d2028c-ae87-4069-a624-66089d957ef9"
}'
{ "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459" }
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/sessions
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/floating/api/v1.0/sessions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/floating/api/v1.0/sessions?instanceId=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
OK. The request succeeded.
The timestamp for the last scheduled automatic charge, in milliseconds since the epoch.
The timestamp when the last heartbeat was received, in milliseconds since the epoch.
The timestamp when the last access request was received for the session, in milliseconds since the epoch.
[ { "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459", "instanceId": "64d2028c-ae87-4069-a624-66089d957ef9", "state": "IDLE", "chargedUntil": 0, "lastHeartBeat": 0, "lastAccessRequest": 0 } ]
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/sessions/{sessionId}
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/floating/api/v1.0/sessions/{sessionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/floating/api/v1.0/sessions/{sessionId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'x-instance-id: string'
{ "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459", "instanceId": "64d2028c-ae87-4069-a624-66089d957ef9", "state": "IDLE", "items": [ { … } ] }
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/sessions/{sessionId}
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/floating/api/v1.0/sessions/{sessionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/floating/api/v1.0/sessions/{sessionId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'x-instance-id: string'
The information required in the request payload.
Requester details
When true, if the request cannot be granted the session will revert to the combination of items it was charging for before the request was made. When false, if the request cannot be granted the session will refund all items it was charging for before the request was made, and the session state will be set to TERMINATED. The amount refunded will be calculated using the time of the denied request up until the end of the period that has been charged for.
A list of requested items. Provide an empty list to stop using all items.
The version of the item requested. This field may only be omitted or left blank if the intention is to access an item in a rate table with an empty or unspecified version.
Number of instances of the requested item required. The value can be fractional.
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/sessions/{sessionId}
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/floating/api/v1.0/sessions/{sessionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/floating/api/v1.0/sessions/{sessionId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-instance-id: string' \
-d '{
"requester": {
"type": "string",
"value": "string"
},
"rollbackOnDeny": true,
"requestedItems": [
{
"item": "string",
"version": "string",
"count": 0.1,
"metaData": {}
}
]
}'
{ "requestedItems": [ { … } ], "requester": { "type": "string", "value": "string" }, "correlationId": "string" }
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.0/sessions/{sessionId}/heartbeat
- Dynamic Monetization API URL
https://siteID.flexnetoperations.com/dynamicmonetization/floating/api/v1.0/sessions/{sessionId}/heartbeat
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/floating/api/v1.0/sessions/{sessionId}/heartbeat' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'x-instance-id: string'
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