Apply Template

Applies an existing Sales Configuration Template to a target Quote or Order by cloning the template cart’s line items.

  • Resource URL: /services/apexrest/<namespace>/v1/cpq/templates/{templateId}/apply/{cartId}
  • HTTP Method: POST
  • Content-Type: application/json
  • Response Format: JSON
ParameterTypeRequiredDescription
templateIdStringYesThe SalesConfigTemplate__c record ID.
cartIdStringYesThe target Quote or Order ID to receive the template items.
ParameterTypeRequiredDescription
asyncModeBooleanNoSet to true to run the clone operation asynchronously. Default: false.
pricingBooleanNoSet to true to execute pricing after applying the template. Default: false.
validationBooleanNoSet to true to execute validation after applying the template. Default: false.

POST /services/apexrest/vlocity_cmt/v1/cpq/templates/a1Bxx0000004XyzDEF/apply/0Q0xx0000009AbcGHI

Success Response (200): Sync Mode

Success Response (200): Async Mode