Billing Checkout Input

Input representation of the checkout transaction details used to create the order, invoice, and payment.

This example passes paymentId directly for an existing payment record instead of paymentDetails.

NameTypeDescriptionRequired or OptionalAvailable Version
account​IdStringID of the account placing the order. Use accountId or customerDetails.Optional68.0
amountDoubleTotal amount to charge for this checkout transaction.Required68.0
billing​AddressAddress InputCustomer’s billing address. Use billingAddress or billingProfileId.Optional68.0
billing​ContactBilling Contact InputBilling customer details when billingProfileId isn’t provided. Creates the contact if it doesn’t exist.Optional68.0
billing​Profile​IdStringID of an existing billing profile. Use billingProfileId or billingAddress.Optional68.0
currency​Iso​CodeStringThe currency code of the transaction amount if your Salesforce org has multi-currency enabled.Required68.0
customer​DetailsBilling Checkout Customer Details InputCustomer details used to create a customer when accountId isn’t provided.Optional68.0
invoice​DateStringDate that appears on the generated invoice (YYYY-MM-DD). Defaults to the transaction date.Optional68.0
invoice​Target​DateStringEnd date for the billing period to include on this invoice (YYYY-MM-DD). Creates a targeted invoice.Optional68.0
is​Partial​Payment​AllowedBooleanIndicates whether partial payment is allowed for this payment context (true) or not (false). The default value is false.Optional68.0
line​ItemsBilling Checkout Line Item Input[]Array of products being purchased.Required68.0
payment​DetailsBilling Checkout Payment Details InputRaw payment details used to tokenize a new card or bank account. Use paymentDetails or paymentMethodId.Optional68.0
payment​IdStringID of an existing payment record to associate with this checkout transaction. Not allowed when shouldCapturePayment is true, and not allowed together with amount.Optional68.0
payment​Method​IdStringID of a saved payment method. Use paymentMethodId or paymentDetails.Optional68.0
preview​InvoiceBooleanIf true, returns a preview of the invoice without committing the checkout transaction.Optional68.0
shipping​AddressAddress InputCustomer’s shipping address.Optional68.0
should​Capture​PaymentBooleanIf true, captures the payment as part of the checkout transaction.Optional68.0