saveReportFilterConfiguration
post
/ccadmin/v1/reportFilterConfigurations
Save Report Filter Configuration. Save the filter configuration for the first time with the last run report
Request
Supported Media Types
- application/json
Body Parameter
Root Schema : saveReportFilterConfiguration_request
{
"reportingStartDate":"",
"transactionCurrency":"USD",
"billingRegions":[
"US-AB",
"US-AL"
],
"reportingEndDate":"",
"groupBy":"day",
"shippingCountries":[
"AS"
],
"timeFrame":"yesterday",
"priceListGroups":[
"UsDollar"
],
"billingCountries":[
"AS"
],
"metric":"grossRevenue",
"productIds":[
],
"shippingRegions":[
"US-AB",
"US-AL"
],
"context":"orders",
"siteIds":[
"siteUS"
]
}
- FilterConfigurationsItem
-
Type:
object
FilterConfigurationsItemRequired:true
Additional Properties Allowed:The Filter configurations which is to be saved
Nested Schema : FilterConfigurationsItem
Type:
object
The Filter configurations which is to be saved
- billingCountries
-
Type:
array
billingCountriesAdditional Properties Allowed:BillingCountries with all regions selected in the filter option - billingRegions
-
Type:
array
billingRegionsAdditional Properties Allowed:BillingRegions Codes of the regions selected in the filter option - context
-
Type:
string
Required:true
Context selected in the filters. - groupBy
-
Type:
string
groupBy option selected in the filters - metric
-
Type:
string
Required:true
Metric selected in the filters - priceListGroup
-
Type:
string
Pricelist groups as comma separted string - productIds
-
Type:
array
productIdsAdditional Properties Allowed:Product Ids of the products selected in the filter option - reportingEndDate
-
Type:
string
ReportingEndDate selected in the filters. - reportingStartDate
-
Type:
string
ReportingStartDate selected in the filters - shippingCountries
-
Type:
array
shippingCountriesAdditional Properties Allowed:ShippingCountries with all regions selected in the filter option - shippingRegions
-
Type:
array
shippingRegionsAdditional Properties Allowed:ShippingRegions Codes of the regions selected in the filter option - siteIds
-
Type:
array
siteIdsAdditional Properties Allowed:Site Ids of the sites selected in the filter option - timeFrame
-
Type:
string
Required:true
TimeFrame selected in the filters. - transactionCurrency
-
Type:
string
currency for the reporting data
Nested Schema : billingCountries
Nested Schema : billingRegions
Nested Schema : productIds
Nested Schema : shippingCountries
Nested Schema : shippingRegions
Nested Schema : siteIds
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : saveReportFilterConfiguration_response
- FilterConfigurationsItem
-
Type:
object
FilterConfigurationsItemAdditional Properties Allowed:The Filter configurations which is saved
Nested Schema : FilterConfigurationsItem
Type:
object
The Filter configurations which is saved
- billingCountries
-
Type:
array
billingCountriesAdditional Properties Allowed:BillingCountries with all regions selected in the filter option - billingRegions
-
Type:
array
billingRegionsAdditional Properties Allowed:BillingRegions Codes of the regions selected in the filter option - context
-
Type:
string
Context selected in the filters. - groupBy
-
Type:
string
groupBy option selected in the filters - metric
-
Type:
string
Metric selected in the filters - priceListGroup
-
Type:
string
Pricelist groups as comma separted string - productIds
-
Type:
array
productIdsAdditional Properties Allowed:Product Ids of the products selected in the filter option - reportingEndDate
-
Type:
string
ReportingEndDate selected in the filters. - reportingStartDate
-
Type:
string
ReportingStartDate selected in the filters - repositoryId
-
Type:
string
Repository Id of the filter Configuration saved. - shippingCountries
-
Type:
array
shippingCountriesAdditional Properties Allowed:ShippingCountries with all regions selected in the filter option - shippingRegions
-
Type:
array
shippingRegionsAdditional Properties Allowed:ShippingRegions Codes of the regions selected in the filter option - siteIds
-
Type:
array
siteIdsAdditional Properties Allowed:Site Ids of the sites selected in the filter option - timeFrame
-
Type:
string
TimeFrame selected in the filters. - transactionCurrency
-
Type:
string
currency for the reporting data
Nested Schema : billingCountries
Nested Schema : billingRegions
Nested Schema : productIds
Nested Schema : shippingCountries
Nested Schema : shippingRegions
Nested Schema : siteIds
Example application/json
{
"reportingStartDate":null,
"transactionCurrency":"USD",
"billingRegions":[
"US-AL",
"US-AB"
],
"reportingEndDate":null,
"groupBy":null,
"shippingCountries":[
"AS"
],
"timeFrame":"yesterday",
"priceListGroups":[
"UsDollar"
],
"billingCountries":[
"AS"
],
"shippingRegions":[
"US-AL",
"US-AB"
],
"metric":"grossRevenue",
"productIds":[
],
"repositoryId":"admin-orders",
"context":"orders",
"siteIds":[
"siteUS"
],
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadminui/v1/reportFilterConfiguration"
}
]
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|94049|Filter Configuration for user already exists or error while saving the filter configuration.|
|94007|If some input for filter configuration is not valid or not available when required.|
Body
Root Schema : errorModel
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - errors
-
Type:
array
errorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code - type
-
Type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code
Examples
Sample Request:
{ "reportingStartDate": "", "transactionCurrency": "USD", "billingRegions": [ "US-AB", "US-AL" ], "reportingEndDate": "", "groupBy": "day", "shippingCountries": ["AS"], "timeFrame": "yesterday", "priceListGroups": ["UsDollar"], "billingCountries": ["AS"], "metric": "grossRevenue", "productIds": [], "shippingRegions": [ "US-AB", "US-AL" ], "context": "orders", "siteIds": ["siteUS"] }
Sample Response Payload returned by endpoint:
{ "reportingStartDate": null, "transactionCurrency": "USD", "billingRegions": [ "US-AL", "US-AB" ], "reportingEndDate": null, "groupBy": null, "shippingCountries": ["AS"], "timeFrame": "yesterday", "priceListGroups": ["UsDollar"], "billingCountries": ["AS"], "shippingRegions": [ "US-AL", "US-AB" ], "metric": "grossRevenue", "productIds": [], "repositoryId": "admin-orders", "context": "orders", "siteIds": ["siteUS"], "links": [{ "rel": "self", "href": "http://localhost:9080/ccadminui/v1/reportFilterConfiguration" }] }