Create Billing Schedules From Billing Transaction Action

Create one or more billing schedules for a specified billing transaction ID.

This action calls the Create Billing Schedules for Orders (POST) API to retrieve the billing transaction items associated with the billing transaction ID. The API generates the corresponding billing schedules for each of the billing transaction items for operations such as transaction modifications, renewals, cancellations, and new sales.

This action is available in API version 62.0 and later.

Special Access Rules 

The Create Billing Schedules From Billing Transaction action is available in Enterprise, Unlimited, and Developer Editions where Billing is enabled. To use this action, you need the Create Billing Schedules From Billing Transactions API permission set.

Supported REST HTTP Methods 

URI: /services/data/v68.0/actions/standard/createBillingSchedulesFromBillingTransaction

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a placeholder for your OAuth access token.

Inputs 

InputTypeDescription
billingTransactionIdstringRequired. ID of the billing transaction record to create one or more billing schedules for.
executeAsyncbooleanOptional. Indicates whether to process the request asynchronously (true). The default value is false (synchronous). Available in API version 68.0 and later.

Outputs 

OutputTypeDescription
requestIdstringUniversally Unique Identifier (UUID) that’s used to track the status of the asynchronous action.
statusUrlstringURL that’s used to check the status of the API request.

Example 

POST

This example shows a sample request for the Create Billing Schedules From Billing Transaction action.

1{
2  "inputs": [
3    {
4      "billingTransactionId": "801xx000003JztvAAC"
5    }
6  ]
7}

This example shows a sample response for the Create Billing Schedules From Billing Transaction action.

1{
2  "actionName": "createBillingSchedulesFromBillingTransaction",
3  "errors": null,
4  "isSuccess": true,
5  "outputValues": {
6    "requestId": "4sFDU00000000652AA",
7    "statusUrl": "/services/data/v62.0/sobjects/AsyncOperationTracker/16Pxx0000004NhAEAU"
8  },
9  "sortOrder": -1,
10  "version": 1
11}

See Also