Decompose Sales Transaction Action

Decompose a sales transaction, such as a quote, order, or order summary.

Specify the ID of the sales transaction to decompose. The decomposition process includes these steps.

  • Intake process
  • Sales transaction decomposition

The intake process occurs synchronously or asynchronously, as specified with the intakeRequestType input parameter. You can also specify the decomposition priority using the fulfillmentPriority parameter.

This action executes only the decomposition process and stops before orchestration. You can execute custom logic in between the decomposition and orchestration processes.

This action is available in API version 68.0 and later.

Special Access Rules 

The Decompose Sales Transaction action is available in Enterprise, Unlimited, and Developer Editions of Revenue Management. See the required permissions to access and call this invocable action.

Supported REST HTTP Methods 

URI: /services/data/v66.0/actions/standard/decomposeSalesTransaction

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a placeholder for your OAuth access token.

Inputs 

InputTypeDescription
allowOverride​OfPointOfNoReturnbooleanIndicates whether to override the point of no return setting for the fulfillment step ( true ) or not ( false ). The default value is false.
fulfillmentAdapterstringRequired. Type of fulfillment adapter. Valid values are StandardOrder or GenericAdapter.
fulfillmentPrioritystringPriority to fulfill the sales transaction. Valid values are High, Bulk, or Default.
hydratedContextIdstringID of the hydrated context.
intakeRequestTypestringType of request to process the intake. Valid values are Synchronous or Asynchronous.
priorityLimit​ActionstringType of action to perform when the priority limit is reached. Valid values are Reject or Downgrade. This parameter is applicable only when you specify the fulfillmentPriority parameter.
sales​TransactionIdidRequired. ID of the sales transaction to submit.

Outputs 

OutputTypeDescription
errorCodestringCode that corresponds to the type of error encountered.
requested​FulfillmentPrioritystringPriority to fulfill the sales transaction. Valid values are High, Bulk, or Default.
requestIdstringRequest ID of the invocation.
resolved​FulfillmentPrioritystringResolved priority to fulfill the sales transaction. Valid values are High, Bulk, or Default.
submitStatusstringSubmission status of the sales transaction for decomposition. Valid values are Success, Error, Submitted, or Rejected.
usedContextIdstringID of the used context that updates the decomposition process.

Example 

POST

This sample request is for the Decompose Sales Transaction action.

1{
2  "inputs": [
3    {
4      "fulfillmentAdapter": "StandardOrder",
5      "intakeRequestType": "Synchronous",
6      "salesTransactionId": "801xx000003GYexAAG"
7    }
8  ]
9}

This sample response is for the Decompose Sales Transaction action.

1[
2  {
3    "actionName": "decomposeSalesTransaction",
4    "errors": null,
5    "invocationId": null,
6    "isSuccess": true,
7    "outcome": null,
8    "outputValues": {
9      "requestId": "ee3ded2e-fe43-401b-a54d-9124d48a0b72",
10      "requestedFulfillmentPriority": "Default",
11      "submitStatus": "SUCCESS",
12      "usedContextId": "0000000s21to18g0009176412796953180a8259def914e1abbd863dde076b71f",
13      "resolvedFulfillmentPriority": "Default"
14    },
15    "sortOrder": -1,
16    "version": 1
17  }
18]