APIs to perform Dynamic Monetization activity.
Dynamic Monetization APIs (v1.1)
- Dynamic Monetization API URLhttps://siteID.flexnetoperations.com/dynamicmonetization/api/v1.1/sessions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.1/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 URLhttps://siteID.flexnetoperations.com/dynamicmonetization/api/v1.1/sessions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.1/sessions?instanceId=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK. The request succeeded.
The date and time, in milliseconds since 1970-01-01 00:00 UTC, of the last scheduled automatic charge.
The date and time, in milliseconds since 1970-01-01 00:00 UTC, when the last heartbeat was received.
The date and time, in milliseconds since 1970-01-01 00:00 UTC, when the last access request was received for the session.
[ { "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459", "instanceId": "64d2028c-ae87-4069-a624-66089d957ef9", "state": "IDLE", "chargedUntil": 0, "lastHeartBeat": 0, "lastAccessRequest": 0 } ]
- Dynamic Monetization API URLhttps://siteID.flexnetoperations.com/dynamicmonetization/api/v1.1/sessions/{sessionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.1/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 URLhttps://siteID.flexnetoperations.com/dynamicmonetization/api/v1.1/sessions/{sessionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.1/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 URLhttps://siteID.flexnetoperations.com/dynamicmonetization/api/v1.1/sessions/{sessionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.1/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 URLhttps://siteID.flexnetoperations.com/dynamicmonetization/api/v1.1/sessions/{sessionId}/heartbeat
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://{siteid}.flexnetoperations.{domainextension}/dynamicmonetization/api/v1.1/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
- session.charge.period
- Defines the automatic charge interval for a session. Consult the user guide for more information about session automatic charging.
- Supported values: ISO-8601 duration in the form
PTnH,PTnM, orPTnHnM. Seconds are not supported.- Examples:
PT1His every hourPT30Mis every 30 minutesPT1H30Mis every 90 minutes
- Minimum: 10 minutes
- Maximum: 24 hours
- Examples:
- Default:
PT1H(every hour)