action

Get list of actions

get/v1/action

Request

  • Base URL
    https://rule-engine-api.frisbii.com
  • URL
    https://rule-engine-api.frisbii.com/v1/action
  • Auth
    HTTP basic

Query parameters

fromstring

Time range from (inclusive). Local date and time (according to account timezone) on the form yyyy-MM-dd, yyyyMMdd, yyyy-MM-ddTHH:mm, yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:ss.SSS. Default from if no interval is given depends on the query. If the query limits on relation e.g. customer and/or subscription, the default from will be epoch 1970-01-01, otherwise one month before to

Example:2019-12-01
tostring

Time range to (exclusive). Local date and time (according to account timezone) on the form yyyy-MM-dd, yyyyMMdd, yyyy-MM-ddTHH:mm, yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:ss.SSS. Defaults to now.

Example:2020-01-01
intervalstring

Limit from to and interval back in time. E.g. one week. Will take precedence over from. Defined in ISO 8601 duration. See https://en.wikipedia.org/wiki/ISO_8601#Durations

Example:P1W
sizeinteger

Page size between 10 and 100 (default 20)

Example:10
next_page_tokenstring

Next page token from previous response to get next page

Example:MTYzMjkxNDc4NTAwMDoxMA
idstring

ID of the action

Example:act_1234567890
entity_idstring

ID of the entity that the actions is associated with

Example:sub_1234567890
typestring

Type of the action

Example:pause_subscription
statestring

Type of the action

Example:pause_subscription

Response

Successful operation

sizeinteger required

Page size used in paginated list

countinteger required

Number of elements in current page. If less than page size it is the last page.

tostring required

Local date and time range used as to (exclusive)

fromstring required

Local date and time range used as from (inclusive)

next_page_tokenstring

Pagination token to use to get the next page. Notice that page size and range should be the same for all page requests. If not present the last page has been reached.

Example response

{
  "size": 50,
  "count": 50,
  "to": "2021-10-06T13:02:23.190",
  "from": "2021-09-06T13:02:23.190",
  "content": [
    {
      "id": "action_1234567890",
      "state": "new",
      "created": "2021-09-01T12:00:00Z",
      "action": "add_addon_to_subscription",
      "schedule": {
        "event_type": "subscription_contract_period_renewed"
      },
      "entity_id": "sub-0001",
      "entity_type": "subscription"
    }
  ],
  "next_page_token": "MTYzMjkxNDc4NTAwMDoxMA"
}

Changes

No recorded changes to this operation across all 1 revision of this API.