Create a chart of accounts filter

post

/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters

Request

Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Filter Criteria
Type: array
Title: Filter Criteria
The filter criteria resource is used to specify criteria for a chart of accounts filter.
Show Source
Nested Schema : schema
Type: object
Show Source
  • Maximum Length: 80
    The segment value for the segment code and the operator.
  • Maximum Length: 80
    The operator for the segment code used as criteria for the chart of accounts filter.
  • Maximum Length: 80
    The segment code in a chart of accounts. The value for the segment code can be reviewed using the Setup and Maintenance work area and the Manage Chart of Accounts Configurations task.
  • Maximum Length: 80
    The segment value for the segment code used only with the Between and Not Between operators.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : chartOfAccountsFilters-item-response
Type: object
Show Source
Nested Schema : Filter Criteria
Type: array
Title: Filter Criteria
The filter criteria resource is used to specify criteria for a chart of accounts filter.
Show Source
Nested Schema : chartOfAccountsFilters-filterCriteria-item-response
Type: object
Show Source
  • Maximum Length: 80
    The segment value for the segment code and the operator.
  • Links
  • Maximum Length: 80
    The operator for the segment code used as criteria for the chart of accounts filter.
  • Maximum Length: 80
    The segment code in a chart of accounts. The value for the segment code can be reviewed using the Setup and Maintenance work area and the Manage Chart of Accounts Configurations task.
  • Maximum Length: 80
    The segment value for the segment code used only with the Between and Not Between operators.
Back to Top

Examples

Example 1

The following example shows how to create a chart of accounts filter with one segment by submitting a POST request on the REST resource using cURL.

curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X POST -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters

Example Request Payload

The following example shows the contents of the request body in JSON format:

{
    "StructureInstanceCode":"OPERATIONS_ACCOUNTING_FLEX",
    "filterCriteria":[
    {
        "SegmentCode":"Department",
        "Operator":"BETWEEN",
        "FromValue":"05",
        "ToValue":"15"
    }]
}

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
    "FilterId": 300100185055422,
    "StructureInstanceCode": "OPERATIONS_ACCOUNTING_FLEX",
    "filterCriteria": [
        {
            "SegmentCode": "Department",
            "Operator": "BETWEEN",
            "FromValue": "05",
            "ToValue": "15",
            "links": [
                {
                    "rel": "self",
                    "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100185055420/child/filterCriteria/300100185055421",
                    "name": "filterCriteria",
                    "kind": "item"
                },
                {
                    "rel": "canonical",
                    "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100185055420/child/filterCriteria/300100185055421",
                    "name": "filterCriteria",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100185055420",
                    "name": "chartOfAccountsFilters",
                    "kind": "item"
                }
            ]
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100185055420",
            "name": "chartOfAccountsFilters",
            "kind": "item"
        },
        {
            "rel": "canonical",
            "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100185055420",
            "name": "chartOfAccountsFilters",
            "kind": "item"
        },
        {
            "rel": "child",
            "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100185055420/child/filterCriteria",
            "name": "filterCriteria",
            "kind": "collection"
        }
    ]
}

Example 2

The following example shows how to create a chart of accounts filter with multiple segments by submitting a POST request on the REST resource using cURL.

curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X POST -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters

Example Request Payload

The following example shows the contents of the request body in JSON format:

{
        "StructureInstanceCode":"OPERATIONS_ACCOUNTING_FLEX",
         "filterCriteria":[
        {                   
                  "SegmentCode":"Company",
                  "Operator":"EQUALTO",
                  "FromValue":"01"
        },
 
        {                 
                  "SegmentCode":"Product",
                  "Operator":"EQUALTO",
                  "FromValue":"2370"
        },
 
        {                   
                  "SegmentCode":"Account",
                  "Operator":"LESSTHANEQUALTO",
                  "FromValue":"09"
        },
 
        {                   
                  "SegmentCode":"Department",
                  "Operator":"BETWEEN",
                  "FromValue":"05",
                  "ToValue":"15"
        }]
}

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
    "FilterId": 300100543621935,
    "StructureInstanceCode": "OPERATIONS_ACCOUNTING_FLEX",
    "filterCriteria": [
        {
            "SegmentCode": "Company",
            "Operator": "EQUALTO",
            "FromValue": "01",
            "ToValue": null,
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930/child/filterCriteria/300100543621931",
                    "name": "filterCriteria",
                    "kind": "item"
                },
                {
                    "rel": "canonical",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930/child/filterCriteria/300100543621931",
                    "name": "filterCriteria",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930",
                    "name": "chartOfAccountsFilters",
                    "kind": "item"
                }
            ]
        },
        {
            "SegmentCode": "Product",
            "Operator": "EQUALTO",
            "FromValue": "2370",
            "ToValue": null,
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930/child/filterCriteria/300100543621932",
                    "name": "filterCriteria",
                    "kind": "item"
                },
                {
                    "rel": "canonical",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930/child/filterCriteria/300100543621932",
                    "name": "filterCriteria",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930",
                    "name": "chartOfAccountsFilters",
                    "kind": "item"
                }
            ]
        },
        {
            "SegmentCode": "Account",
            "Operator": "LESSTHANEQUALTO",
            "FromValue": "09",
            "ToValue": null,
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930/child/filterCriteria/300100543621933",
                    "name": "filterCriteria",
                    "kind": "item"
                },
                {
                    "rel": "canonical",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930/child/filterCriteria/300100543621933",
                    "name": "filterCriteria",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930",
                    "name": "chartOfAccountsFilters",
                    "kind": "item"
                }
            ]
        },
        {
            "SegmentCode": "Department",
            "Operator": "BETWEEN",
            "FromValue": "05",
            "ToValue": "15",
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930/child/filterCriteria/300100543621934",
                    "name": "filterCriteria",
                    "kind": "item"
                },
                {
                    "rel": "canonical",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930/child/filterCriteria/300100543621934",
                    "name": "filterCriteria",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930",
                    "name": "chartOfAccountsFilters",
                    "kind": "item"
                }
            ]
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930",
            "name": "chartOfAccountsFilters",
            "kind": "item"
        },
        {
            "rel": "canonical",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930",
            "name": "chartOfAccountsFilters",
            "kind": "item"
        },
        {
            "rel": "child",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/chartOfAccountsFilters/300100543621930/child/filterCriteria",
            "name": "filterCriteria",
            "kind": "collection"
        }
    ]
}
Back to Top