Copy Sequence
post
/rest/v16/commerceDocuments{ProcessVarName}{MainDocVarName}/actions/_copy_sequence
Use this endpoint to retrieve copy sequences for the Commerce process.
Request
Supported Media Types
- application/json
Path Parameters
-
MainDocVarName(required): string
The variable name of the main document, note the first letter must be capitalized.
-
ProcessVarName(required): string
The variable name of the commerce process, note the first letter must be capitalized.
Root Schema : Transaction-_copy_sequenceCollectionRequest
Type:
object
Response
Supported Media Types
- application/json
Default Response
Root Schema : Transaction-_copy_sequenceCollectionResponse
Type:
Show Source
object
-
sequences:
array sequences
Title:
sequences
sequences
Nested Schema : sequences
Type:
array
Title:
sequences
sequences
Show Source
-
Array of:
object sequenceDef
Title:
sequenceDef
sequenceDef
Nested Schema : sequenceDef
Type:
object
Title:
sequenceDef
sequenceDef
Show Source
-
description:
string
Description for the sequence
-
id:
integer
Id for the sequence
-
modifiedDate:
string
-
name:
string
Name of the sequence
-
order:
integer
Order of sequence
Examples
The following example shows how to retrieve copy sequences for the Commerce process 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 "Accept: application/json" https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/actions/_copy_sequence
Response Body Sample
{ "sequences": [{ "name": "sequence 1", "id": 38736650, "order": 1, "description": "", "modifiedDate": "Mon May 06 21:55:11 UTC 2024" } ] }