Selected payment method
Return the payment method for a specified shopping cart.
get
/V1/guest-carts/{cartId}/selected-payment-method
Path parameters
cartIdstringrequired
(Required) The cart ID.
Example:
<string>
Responses
application/json
application/json
application/json
cURL
JavaScript
Python
HTTP
200
400
500
Add a specified payment method to a specified shopping cart.
put
/V1/guest-carts/{cartId}/selected-payment-method
Path parameters
cartIdstringrequired
(Required) The cart ID.
Example:
<string>
Header parameters
Content-Typestring
Example:
application/json
Body
object
Example:
{"method":{"method":"<string>","po_number":"<string>","additional_data":["<string>","<string>"],"extension_attributes":{"agreement_ids":["<string>","<string>"]}}}
Responses
application/json
application/json
application/json
cURL
JavaScript
Python
HTTP
200
400
500