Logo
Commerce API API Documentation

Apply payment source

POST https://{{apiDomain}}/v1/shoppers/me/carts/active/apply-payment-method.json

Apply the payment source to the active cart.
https://docs.digitalriver.com/commerce-api/payments/sources#attaching-a-payment-method-to-an-order-or-cart

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status





Curl
curl -X POST 'https://api.digitalriver.com/v1/shoppers/me/carts/active/apply-payment-method.json' -d '{"paymentMethod":{"sourceId":"sourceId"}}'

ENDPOINTS