ReDoc documentation

guest-carts/{cartId}/selected-payment-method

guest-carts/{cartId}/selected-payment-method

get/V1/guest-carts/{cartId}/selected-payment-method

Return the payment method for a specified shopping cart.

Request
path Parameters
cartId
required
string

The cart ID.

Responses
200

200 Success.

400

400 Bad Request

default

Unexpected error

Response samples
{
  • "po_number": "string",
  • "method": "string",
  • "additional_data": [
    ],
  • "extension_attributes": {
    }
}

guest-carts/{cartId}/selected-payment-method

put/V1/guest-carts/{cartId}/selected-payment-method

Add a specified payment method to a specified shopping cart.

Request
path Parameters
cartId
required
string

The cart ID.

Request Body schema:
required
object (quote-data-payment-interface)

Interface PaymentInterface

Responses
200

200 Success.

400

400 Bad Request

default

Unexpected error

Request samples
{
  • "method": {
    }
}
Response samples
0
0