Get Assets for Account

Retrieve the assets for a specified account ID.

Communication (vlocity_cmt)

For API parameter names and descriptions, see Cart-Based API Swagger Reference.

Response FormatJSON
Resource URL/services/apexrest/{namespace}/v2/accounts/{account_ID}/assets

To populate the attributeCategories node in the response for getAsset API, provide one of the two fields Product2.AttributeMetadatac or JSONAttributec as an input.

If V2AttributeModel is enabled, then provide Product2.AttributeMetadatac. If V2AttributeModel is disabled, then pass JSONAttributec.

From Spring'25, the Get Assets for Account API applies the timeOffset in the effectiveAssetsDateFilte. If no offset is provided, it defaults to 00:00:00. To resolve this, append the time to the effectiveAssetsDateFilter parameter. Customers can set up a pre-hook to apply this adjustment automatically.

The CPQ APIs allow you to write custom pre and post hooks for each API to implement custom logic. The pre-hook runs before the API executes, while the post-hook runs after the API executes.

  1. Write the custom class to implement the pre and post hook.

    Here's the sample code that appends the timeoffset to the effectiveAssetsDateFilter when only a date is provided.

  1. Create the interface implementation. For example: Interface Name = CpqAppHandlerHookInterface Implementation = CPQCustomHookImplementation