ReDoc documentation

carts/{cartId}/selected-payment-method

carts/{cartId}/selected-payment-method

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

Returns the payment method for a specified shopping cart.

Request
path Parameters
cartId
required
integer

The cart ID.

Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

default

Unexpected error

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

carts/{cartId}/selected-payment-method

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

Adds a specified payment method to a specified shopping cart.

Request
path Parameters
cartId
required
integer

The cart ID.

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

Interface PaymentInterface

Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

default

Unexpected error

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