Loading
Prepare for Email to Become the Default Login ExperienceRead More
Intermittent freezing when using using certain browser versionsRead More
Automate Your Business Processes with Salesforce Flow
Process First Payment Billing for Subscriptions

Process First Payment Billing for Subscriptions

Generate and settle a subscription order’s first-term invoice and create a billing schedule for the subscription order.

Required Editions

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.

Set Input Values

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.

Store Output Values

Output Parameter Description
correlatoinId The request correlation ID used for tracking the request.
requestsId The ID of the request.

Error Conditions

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

Usage

This action runs 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.

 
Loading
Salesforce Help | Article