---
schema_version: "1"
id: 7ee263089be3d7dcffc5b3e9f4b0427000f07e2e423648bdddbf7451b3a62ad5
title: Select Context Definition and Mapping for Create Billing Schedules for Orders API
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/billing_set_up_context_definition.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.billing_set_up_context_definition.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2cc5f5a29ff0956508c01f33ed049719bfd34fd9ee82d3aeadcfa3322012c249
description: The Create Billing Schedules for Orders API uses Context Service to hydrate the data of orders to create billing schedules. Before using this API, select a context definition and its mapping that you want the API to use.
products:
  - Revenue Cloud
release: "264"
---
# Select Context Definition and Mapping for Create Billing Schedules for Orders API

The Create Billing Schedules for Orders API uses Context Service to hydrate the data of orders to create billing schedules. Before using this API, select a context definition and its mapping that you want the API to use.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d207162e40">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d207162e40 ">To select a context definition and its mappings:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d207162e40 ">Billing Admin permission set</td>

          </tr>
        </tbody>
      </table>

1. In Setup, find and select **Billing Settings**.
2. In the Context Service Mapping section, select the extended BillingContext context definition as the context definition.
3. Select **OrderEntitiesMapping** or a similar source mapping context map that you have added.
    
    Make sure to select only a source context mapping that maps orders to billing transaction context nodes.
4. Optionally, [add a custom intracontext mapping](https://help.salesforce.com/s/articleView?id=ind.context_service_add_context_mapping.htm&type=5&language=en_US) and select the mapping to map custom Order fields to the billing transaction nodes, or to override the existing mapping of standard fields.
    
    You can [pass preferred order details to billing schedules by configuring the custom mapping](https://help.salesforce.com/s/articleView?id=ind.billing_custom_field_support.htm&release=264.0.0&type=5 "To meet specific business requirements, populate custom field data from orders or external transactions to corresponding billing schedule, billing schedule group, and billing schedule group relationship records. Use Context Service to define how data must be transferred by configuring a custom intracontext mapping. Then, use the Create Billing Schedules for Orders API or the Create Standalone Billing Schedules API to generate billing schedules and billing schedule groups. You can also use custom fields to override the standard fields in billing nodes by using the custom intracontext mapping.") by using Context Service.

#### See Also

- [Turn On Context Service](https://help.salesforce.com/s/articleView?id=ind.context_service_turn_on_context_service.htm&language=en_US)
- [_Revenue Cloud Developer Guide_: Create Billing Schedules for Orders API](https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/connect_resources_create_billing_schedules.htm)
- [_Revenue Cloud Developer Guide_: Create Standalone Billing Schedules API](https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/connect_resources_create_billing_schedules_from_any_transaction.htm)