Copy Sequence
post
/rest/v19/commerce{Stage}{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.
-
Stage(required): string
The stage variable identifies where a transaction is within the Commerce process flow. (Documents, Quotes, Agreements, or Orders)
Root Schema : Transaction-_copy_sequenceCollectionRequest
Type:
objectResponse
Supported Media Types
- application/json
Default Response
Root Schema : Transaction-_copy_sequenceCollectionResponse
Type:
Show Source
object-
sequences:
array sequences
Title:
sequencessequences
Nested Schema : sequences
Type:
arrayTitle:
sequencessequences
Show Source
-
Array of:
object sequenceDef
Title:
sequenceDefsequenceDef
Nested Schema : sequenceDef
Type:
objectTitle:
sequenceDefsequenceDef
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 -H "Authorization: Bearer <token>" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/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"
}
]
}