Download OpenAPI specification:Download
Add missing response type "Conflict"
Add support for generating Wallets transactions reports and manage Wallets transaction report configuration
Extend the
reportFilters
parameter to support filtering onpayout_destination_id
forcheckout/transactions
Extend the
aggregate_functions
query parameter to supportcurrency
Updates made to the endpoint - GET /v1/accounts/{aid}/insight/report/configuration
- Added new type of report configuration for checkout transactions, allowing reports showing open transactions
- Added daily schedule option to existing insight transactions report
Updated the endpoint - GET /v1/accounts/{aid}/insight/kpi/checkout Added new input param
event_created_at_gte
to filter the period to create kpis from.
Change base path for the API to
/v1/accounts/{aid}/insight/
. The original prefix/v1/accounts/{aid}/insight-service/
is deprecated.
Updated Report configuration with the following fields \
- Name (custom report name)
- Emails (will be used by the reports api to send email containing the final report)
- Language
- ReportFilters
- Added discriminator field to ensure valid report configuration input
Create a report from the report params, this bypasses the normal schedule report setup and triggers report generation instantly
The "from" and "to" parameters needs to be populated with values matching the provided schedule
NB! For internal use only!
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
Insight Report Params
name required | string <= 64 characters Custom name of the report. Will be shown in report listing and in the report filename |
from required | string <date-time> The start of the data interval, must adhere to ISO 8601 dateformat (YYYY-MM-DD) |
to required | string <date-time> The end of the data interval, must adhere to ISO 8601 dateformat (YYYY-MM-DD) |
dataType required | string Service (source) and type of data used to create the report |
language required | string Enum: "no" "en" Report Language |
schedule required | string Enum: "monthly" "weekly" "daily" Schedule for the report, how often will the report be generated |
emails | Array of strings Emails will receive auto-generated report (or link to report if the report is to large) |
Array of objects (InsightTransactionReportFilter) List of filters used to filter the data for the report. Similar to SQL WHERE-clause. i.e, WHERE filter=value | |
contentType | string Enum: "application/pdf" "text/csv" Content type for the report |
{- "dataType": "checkout/transactions",
- "name": "string",
- "emails": [
- "string"
], - "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z",
- "schedule": "monthly",
- "language": "no",
- "reportFilters": [
- {
- "filter": "store_id",
- "value": "string"
}
], - "contentType": "application/pdf"
}
{- "dataType": "checkout/transactions",
- "name": "string",
- "emails": [
- "string"
], - "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z",
- "schedule": "monthly",
- "language": "no",
- "reportFilters": [
- {
- "filter": "store_id",
- "value": "string"
}
], - "contentType": "application/pdf"
}
Get a list of kpis where the transactiosn used is in the aggregations are transactions from "event_created_at_gte",
until now. However, transactions from the "current" interval are not included.
E.g if week is provided as interval, then no transactions from the current week are included. This is true for
day and month intervals aswell.
Scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
interval required | string Enum: "day" "week" "month" The interval over which the data will be aggregated. |
field required | string Value: "total_amount" The field (db column) used as source for the kpi, eg, total_amount, vat etc. |
transaction_status required | string Enum: "CAPTURED" "REFUNDED" "AUTHORIZED" Only transactions with this status will be included in the aggregation |
aggregate_functions required | string Example: aggregate_functions=["count","sum","avg","currency"] The functions applied to the data for every interval.
Available functions:
|
event_created_at_gte | string Transaction events with created_at date at or later than this date will be included in the aggregations. |
[- {
- "kpi_name": "avg",
- "values": [
- {
- "currency": "NOK",
- "value": 0,
- "date": "2019-08-24T14:15:22Z"
}
]
}
]
List all insight report configurations for the account.
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "dataType": "checkout/transactions",
- "name": "string",
- "emails": [
- "string"
]
}
]
Create a new report configuration
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
Insight Report Configuration
name required | string <= 64 characters Custom name of the report. Will be shown in report listing and in the report filename |
dataType required | string Service (source) and type of data used to create the report |
language required | string Enum: "no" "en" Report Language |
schedule required | string Enum: "monthly" "weekly" "daily" Schedule for the report, how often will the report be generated |
emails | Array of strings Emails will receive auto-generated report (or link to report if the report is to large) |
Array of objects (InsightTransactionReportFilter) List of filters used to filter the data for the report. Similar to SQL WHERE-clause. i.e, WHERE filter=value | |
contentTypes | Array of strings Items Enum: "application/pdf" "text/csv" Content types for the report |
{- "dataType": "checkout/transactions",
- "name": "string",
- "emails": [
- "string"
], - "schedule": "monthly",
- "language": "no",
- "reportFilters": [
- {
- "filter": "store_id",
- "value": "string"
}
], - "contentTypes": [
- "application/pdf"
]
}
{- "dataType": "checkout/transactions",
- "name": "string",
- "emails": [
- "string"
], - "schedule": "monthly",
- "language": "no",
- "reportFilters": [
- {
- "filter": "store_id",
- "value": "string"
}
], - "contentTypes": [
- "application/pdf"
]
}
Delete insight report configuration.
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
id required | string An id that uniquely identifies the insight report configuration. |
{- "dataType": "checkout/transactions",
- "name": "string",
- "emails": [
- "string"
], - "schedule": "monthly",
- "language": "no",
- "reportFilters": [
- {
- "filter": "store_id",
- "value": "string"
}
], - "contentTypes": [
- "application/pdf"
]
}