
Use more general search terms.
Select fewer filters to broaden your search.
You are here:
Generate and settle a subscription order’s first-term invoice and create a billing schedule for the subscription order.
| Available in: Lightning Experience |
| View supported editions. |
In Flow Builder, add an Action element to your flow. Select the
Commerce category, and search for Process First Payment
Billing. To access this action from the API, use the name processFirstPaymentBilling.
Use values from earlier in the flow to set the inputs.
| Input Parameter | Description |
|---|---|
| correlationId | The request correlation ID used for tracking the request. |
| orderSummaryId | The ID of the order summary record. |
| Output Parameter | Description |
|---|---|
| correlatoinId | The request correlation ID used for tracking the request. |
| requestsId | The ID of the request. |
| Error Condition | Description |
|---|---|
| User Can’t Invoke Action | The caller doesn’t have the appropriate permissions to call the action. Error Code: INSUFFICIENT_ACCESS HTTP Status Code: 400 |
| Order Summary Isn’t Included | The action didn’t specify the the orderSummaryId as input. Error Code: REQUIRED_MISSING_FIELD HTTP Status Code: 400 |
| Invalid Order Summary | The provided orderSummaryId is invalid. Error Code: INVALID_INPUT HTTP Status Code: 400 |
This action is executed asynchronously with the Commerce First Billing Service. The service creates billing schedules from order items, creates a first invoice from the order, and associates a payment record with the invoice. Subscribe to FirstBillPaymentSetupEvent to be notified of both success and failures for this action.

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.