---
schema_version: "1"
id: 1bcfa2a5430662d4eea244c1f8b65458b93db211e64925ba8966c4ebbc173bb1
title: Invoke the Repricing Batch Processor
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_invoke_the_repricing_batch_processor.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_invoke_the_repricing_batch_processor.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 1165c275c41ba9508ef5ae8e1ed14f60d5cb46030203857a80433e1f6aa6370e
description: The repricing API works with assets and orderItems. You can replace a batch job with customer requirements based on how you want to reprice. For example, you may want to restrict repricing only for certain Accounts, Orders, Quotes, Opportunities, or lineItems based on certain conditions, such as repriced orders only created during 1st JAN 2018 to 10th JAN 2018.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Invoke the Repricing Batch Processor

The repricing API works with assets and orderItems. You can replace a batch job with customer requirements based on how you want to reprice. For example, you may want to restrict repricing only for certain Accounts, Orders, Quotes, Opportunities, or lineItems based on certain conditions, such as repriced orders only created during 1st JAN 2018 to 10th JAN 2018.

- To Reprice all OrderItems by orders:
    
    ```
    vlocity_cmt.RepricingBatchProcessor repricingBatchJob = new vlocity_cmt.RepricingBatchProcessor(Order);
    ID batchprocessid = Database.executeBatch(repricingBatchJob,1);
    ```
- To reprice all assets by account:
    
    ```
    vlocity_cmt.RepricingBatchProcessor repricingBatchJob = new vlocity_cmt.RepricingBatchProcessor('Account');
    ID batchprocessid = Database.executeBatch(repricingBatchJob,1);
    ```