Update checkout with payment

POST {{orgUrl}}/services/data/v{{apiVersion}}/commerce/webstores/{{webstoreId}}/checkouts/:checkoutId/payments

Applies the payment token (variable _paymentToken) to the checkout (variable _checkoutId). Also sets the billing address.

Note: No checking will be done for the validity of the billing address or token. This uses the sample SalesforceAdapter provided in the sample store.

Request Body

{"paymentToken"=>"{{_paymentToken}}", "requestType"=>"Auth", "billingAddress"=>{"name"=>"John Doe", "street"=>"123 Acme Drive", "city"=>"Los Angeles", "region"=>"California", "country"=>"United States", "postalCode"=>"90001"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring