My Approvals Search

post

/rest/v16/commerceDocuments{ProcessVarName}{MainDocVarName}/actions/_search/_my_approval_search

Use this endpoint to retrieve a user's pending approvals waiting in a queue when there are quotes they need to approve.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Transaction-_my_approval_searchCollectionRequest
Type: object
Show Source
Nested Schema : Query Definition
Type: object
Title: Query Definition
Captures the query definition for the current resource request.
Show Source
Nested Schema : actions
Type: array
Array of actions names, whose state is requested in the state object response.
Show Source
Nested Schema : childDefs
Type: array
Show Source
Nested Schema : expand
Type: array
Array of child resource names that you want to expand so that the contents return with the parent in the same request.
Show Source
Nested Schema : expandedDomains
Type: array
Array of field names, whose expanded domains are requested in the state object response.
Show Source
Nested Schema : fields
Type: array
Array of field names that you wanted returned in a request.
Show Source
Nested Schema : Child query criteria.
Type: object
Title: Child query criteria.
Captures the query criteria for the child resource.
Show Source
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Transaction-_my_approval_searchCollectionResponse
Type: object
Back to Top

Examples

The following example shows how to retrieve a user's pending approvals waiting in a queue when there are quotes they need to approve by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X POST -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/actions/_search/_my_approval_search

Request Body Sample

{
  "criteria": {
    "fields": [
      "projectName",
      "_id",
      "_lock_status",
      "_currency_pref",
      "mainMathInput_Float1"
    ],
    "orderby": [
      "_currency_pref:DESC",
      "projectName:ASC"
    ],
    "limit": 10,
    "offset": 20

  }
}

Response Body Sample

{
  "hasMore": false,
  "links": [{
      "rel": "self",
      "href": "http://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqo"
    }
  ],
  "items": [{
      "_lock_status": null,
      "mainMathInput_Float1": null,
      "_currency_pref": {
        "id": 14619668,
        "currencyCode": "USD",
        "links": [{
            "rel": "domain",
            "href": "http://sitename.oracle.com/rest/v16/currencies"
          }, {
            "rel": "canonical",
            "href": "http://sitename.oracle.com/rest/v16/currencies/USD"
          }
        ]
      },
      "_id": 3023106049,
      "projectName": "Super User's project 11/07/2023 08:13:39"
    }, {
      "_lock_status": null,
      "mainMathInput_Float1": null,
      "_currency_pref": {
        "id": 14619668,
        "currencyCode": "USD",
        "links": [{
            "rel": "domain",
            "href": "http://sitename.oracle.com/rest/v16/currencies"
          }, {
            "rel": "canonical",
            "href": "http://sitename.oracle.com/rest/v16/currencies/USD"
          }
        ]
      },
      "_id": 3023123297,
      "projectName": "Super User's project 11/08/2023  22:06:16"
    }, {
      "_lock_status": null,
      "mainMathInput_Float1": null,
      "_currency_pref": {
        "id": 14619668,
        "currencyCode": "USD",
        "links": [{
            "rel": "domain",
            "href": "http://sitename.oracle.com/rest/v16/currencies"
          }, {
            "rel": "canonical",
            "href": "http://sitename.oracle.com/rest/v16/currencies/USD"
          }
        ]
      },
      "_id": 3023123306,
      "projectName": "Super User's project 11/08/2023  22:06:16"
    }, {
      "_lock_status": null,
      "mainMathInput_Float1": null,
      "_currency_pref": {
        "id": 14619668,
        "currencyCode": "USD",
        "links": [{
            "rel": "domain",
            "href": "http://sitename.oracle.com/rest/v16/currencies"
          }, {
            "rel": "canonical",
            "href": "http://sitename.oracle.com/rest/v16/currencies/USD"
          }
        ]
      },
      "_id": 3023120057,
      "projectName": "Super User's project 11/08/2023 07:43:34"
    }, {
      "_lock_status": null,
      "mainMathInput_Float1": null,
      "_currency_pref": {
        "id": 14619668,
        "currencyCode": "USD",
        "links": [{
            "rel": "domain",
            "href": "http://sitename.oracle.com/rest/v16/currencies"
          }, {
            "rel": "canonical",
            "href": "http://sitename.oracle.com/rest/v16/currencies/USD"
          }
        ]
      },
      "_id": 3023120066,
      "projectName": "Super User's project 11/08/2023 07:43:54"
    }, {
      "_lock_status": null,
      "mainMathInput_Float1": null,
      "_currency_pref": {
        "id": 14619668,
        "currencyCode": "USD",
        "links": [{
            "rel": "domain",
            "href": "http://sitename.oracle.com/rest/v16/currencies"
          }, {
            "rel": "canonical",
            "href": "http://sitename.oracle.com/rest/v16/currencies/USD"
          }
        ]
      },
      "_id": 3023123276,
      "projectName": "Super User's project 11/08/2023 21:53:31"
    }, {
      "_lock_status": null,
      "mainMathInput_Float1": null,
      "_currency_pref": {
        "id": 14619668,
        "currencyCode": "USD",
        "links": [{
            "rel": "domain",
            "href": "http://sitename.oracle.com/rest/v16/currencies"
          }, {
            "rel": "canonical",
            "href": "http://sitename.oracle.com/rest/v16/currencies/USD"
          }
        ]
      },
      "_id": 3023123288,
      "projectName": "Super User's project 11/08/2023 22:05:37"
    }, {
      "_lock_status": null,
      "mainMathInput_Float1": null,
      "_currency_pref": {
        "id": 14619668,
        "currencyCode": "USD",
        "links": [{
            "rel": "domain",
            "href": "http://sitename.oracle.com/rest/v16/currencies"
          }, {
            "rel": "canonical",
            "href": "http://sitename.oracle.com/rest/v16/currencies/USD"
          }
        ]
      },
      "_id": 3023123315,
      "projectName": "Super User's project 11/08/2023 22:06:16"
    }, {
      "_lock_status": null,
      "mainMathInput_Float1": 4.35,
      "_currency_pref": {
        "id": 14619668,
        "currencyCode": "USD",
        "links": [{
            "rel": "domain",
            "href": "http://sitename.oracle.com/rest/v16/currencies"
          }, {
            "rel": "canonical",
            "href": "http://sitename.oracle.com/rest/v16/currencies/USD"
          }
        ]
      },
      "_id": 15555481,
      "projectName": "Test"
    }
  ]
}
Back to Top