Billing provides the ConnectApi
namespace (also called Connect in Apex) that contains classes for accessing the same
capabilities that are available in the Billing Business APIs. Additionally, you can use other
built-in Apex classes and interfaces grouped by namespace.
This table lists the available Billing Apex methods with the associated Connect REST API.
| convertNegativeInvoiceLines(ConvertNegativeInvoiceLinesInput,
invoiceId) |
Negative Invoice Lines to Credit Conversion (POST) |
| generateInvoices(inputRequest) |
Invoices By Using Billing Schedules (POST) |
| recoverBillingSchedules(inputRequest) |
Billing Schedule Recovery List (POST) |
| creditInvoice(CreditInvoiceInput, invoiceId) |
Credit Memo Create and Apply (POST) |
| applyCreditMemos(CreditMemoApplyInput, creditMemoId) |
Credit Memo Apply List(POST) |
| unapplyCreditMemos(CreditMemoUnapplyInput,
creditMemoInvApplicationId) |
Credit Memo Unapply (POST) |
| applyCreditMemoLines(CreditMemoLineApplyInput,
creditMemoLineId) |
Credit Memo Line Apply (POST) |
| unapplyCreditMemoLines(CreditMemoLineUnapplyInput,
creditMemoLineInvoiceLineId) |
Credit Memo Line Unapply (POST) |
| triggerInvoiceBatchDraftToPosted(invoiceBatchRunId) |
Invoices Batch Draft to Posted Status (POST) |
| postDraftInvoices(inputRequest) |
Invoice Draft to Posted Status (POST) |
| createCreditMemos(CreditMemoInputRequest) |
Credit Memo Create and Apply (POST) |
| voidPostedInvoice(invoiceId) |
Posted Invoice Voidance (POST) |
| calculateTax(calculateTax) |
Tax Calculation (POST) |
| applyPaymentLine(PaymentLineApplyInput, paymentId) |
Payment Line Apply (POST) |
| unapplyPaymentLine(PaymentLineUnapplyInput, paymentId,
paymentLineId) |
Payment Line Unapply (POST) |
| applyRefundLine(RefundLineApplyInput, refundId) |
Refund Line Apply (POST) |
| reconcileSequences(sequenceGapReconciliationInputRepresentation) |
Sequence Gap Reconciliation
(POST) |
| sequenceAssignment(sequencesAssignmentInputRepresentation) |
Sequence Assignment (POST) |
| voidPostedCreditMemo(VoidPostedCreditMemoInput,
creditMemoId) |
Void Posted Credit Memo
(POST) |
For more information about Apex classes that are available for Commerce Payments, see CommercePayments Namespace.