Logo
Salesforce Developers API Documentation

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.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X POST '/services/data/v57.0/commerce/webstores//checkouts/:checkoutId/payments' -H 'Content-Type: application/json' -d '{"paymentToken":"_paymentToken","requestType":"Auth","billingAddress":{"name":"John Doe","street":"123 Acme Drive","city":"Los Angeles","region":"California","country":"United States","postalCode":"90001"}}'

ENDPOINTS