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:
objectFilterConfigurationsItemRequired:trueAdditional Properties Allowed:The Filter configurations which is to be saved
Nested Schema : FilterConfigurationsItem
Type:
objectThe Filter configurations which is to be saved
- billingCountries
-
Type:
arraybillingCountriesAdditional Properties Allowed:BillingCountries with all regions selected in the filter option - billingRegions
-
Type:
arraybillingRegionsAdditional Properties Allowed:BillingRegions Codes of the regions selected in the filter option - context
-
Type:
stringRequired:trueContext selected in the filters. - groupBy
-
Type:
stringgroupBy option selected in the filters - metric
-
Type:
stringRequired:trueMetric selected in the filters - priceListGroup
-
Type:
stringPricelist groups as comma separted string - productIds
-
Type:
arrayproductIdsAdditional Properties Allowed:Product Ids of the products selected in the filter option - reportingEndDate
-
Type:
stringReportingEndDate selected in the filters. - reportingStartDate
-
Type:
stringReportingStartDate selected in the filters - shippingCountries
-
Type:
arrayshippingCountriesAdditional Properties Allowed:ShippingCountries with all regions selected in the filter option - shippingRegions
-
Type:
arrayshippingRegionsAdditional Properties Allowed:ShippingRegions Codes of the regions selected in the filter option - siteIds
-
Type:
arraysiteIdsAdditional Properties Allowed:Site Ids of the sites selected in the filter option - timeFrame
-
Type:
stringRequired:trueTimeFrame selected in the filters. - transactionCurrency
-
Type:
stringcurrency 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:
objectFilterConfigurationsItemAdditional Properties Allowed:The Filter configurations which is saved
Nested Schema : FilterConfigurationsItem
Type:
objectThe Filter configurations which is saved
- billingCountries
-
Type:
arraybillingCountriesAdditional Properties Allowed:BillingCountries with all regions selected in the filter option - billingRegions
-
Type:
arraybillingRegionsAdditional Properties Allowed:BillingRegions Codes of the regions selected in the filter option - context
-
Type:
stringContext selected in the filters. - groupBy
-
Type:
stringgroupBy option selected in the filters - metric
-
Type:
stringMetric selected in the filters - priceListGroup
-
Type:
stringPricelist groups as comma separted string - productIds
-
Type:
arrayproductIdsAdditional Properties Allowed:Product Ids of the products selected in the filter option - reportingEndDate
-
Type:
stringReportingEndDate selected in the filters. - reportingStartDate
-
Type:
stringReportingStartDate selected in the filters - repositoryId
-
Type:
stringRepository Id of the filter Configuration saved. - shippingCountries
-
Type:
arrayshippingCountriesAdditional Properties Allowed:ShippingCountries with all regions selected in the filter option - shippingRegions
-
Type:
arrayshippingRegionsAdditional Properties Allowed:ShippingRegions Codes of the regions selected in the filter option - siteIds
-
Type:
arraysiteIdsAdditional Properties Allowed:Site Ids of the sites selected in the filter option - timeFrame
-
Type:
stringTimeFrame selected in the filters. - transactionCurrency
-
Type:
stringcurrency 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:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe 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"
}]
}