Get External Prices Action
Retrieve the real-time pricing breakdown from an external pricing service for a specific quote line item and its recipients.
This action is available in API version 68.0 and later.
The Get External Prices action is available in Enterprise and Unlimited Editions with Energy and Utilities Cloud. Invoke this action with a clean transaction because the action performs an external callout.
URI: /services/data/v68.0/actions/standard/getExternalPrices
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is a variable.
| Input | Type | Description |
|---|---|---|
quoteLineItemId | string | Required. The ID of the parent quote line item to get pricing details for. |
namedCredentialName | string | Optional. The name of the named credential to use for the external service endpoint callout instead of the default standard credential. |
correlationId | string | Optional. A unique string used as an idempotency key to prevent duplicate service requests. If omitted, the system generates a value automatically. |
timeoutMsOverride | int | Optional. The maximum timeout, in milliseconds, to wait for the external pricing service before failing. |
partialFailureMode | string | Optional. The error-handling execution mode that determines whether the action terminates or continues if a partial processing error occurs. |
| Output | Type | Description |
|---|---|---|
isSuccess | boolean | Indicates whether the overall execution path and pricing data resolution completed successfully. |
errorCode | string | The stable error code string that identifies the root cause of the action invocation failure. |
errorMessage | string | The detailed message that explains the root validation or connection problem encountered during runtime. |
correlationId | string | The correlation tracking ID passed back by the external pricing service endpoint. |
currencyKey | string | The standard currency value key indicating the denomination used for output amount fields. |
recipientPricingResultsList | Apex[] | The list of structured Apex records representing the per-recipient pricing results. Each item contains these fields.recipientId (string): ID of the recipient.status (string): Result status, such as SUCCESS or FAILED.responseMode (string): Response mode, such as INLINE or DEFERRED.amountValue (number): Priced amount. Returned for inline results.amountCurrency (string): Currency of the priced amount. Returned for inline results.lineItemPrices (object[]): Per-line-item price breakdown. Returned for inline results.trackerId (string): Tracker ID for deferred results.webhookCallbackUrl (string): Optional webhook callback URL for deferred results.expectedReadyAt (string): Optional timestamp when deferred results are expected to be ready.pricingDetailsJson (string): JSON string of additional pricing details. |
- POST
This sample request is for the Get External Prices action.
This sample response is for the Get External Prices action.