Create Billing Schedules for Orders (POST)

Generate billing schedules for orders by using context service.

Special Access Rules 

The org must have the standard billing context definition with the target mapping. This context definition is available in orgs with Billing enabled. Additionally, you need the Create Billing Schedules From Billing Transactions API permission set and the Context Service Runtime permission set to use this API.

See these requirements to learn more about the configuration prerequisites.

Resource 

1/commerce/invoicing/billing-schedules/actions/create

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/commerce/invoicing/billing-schedules/actions/create

Available Version 

62.0

HTTP Methods 

POST

Request Body for POST 

JSON Example

1{
2    "billingTransactionIds": [ "801xx000003H1H9AAK"]
3}

Properties

NameTypeDescriptionRequired or OptionalAvailable Version
billing​Transaction​IdsString[]ID of the billing transaction. This property value is the ID of the order if the source of the billing request is for the Order object. If the order product associated with the specified order ID doesn’t have an associated billing treatment ID, the API considers the default billing treatment ID. The generated billing schedule group has the default billing treatment ID. The API supports only one billing transaction ID in the input.Required62.0

Response Body for POST 

Context-Aware Billing Schedule