ReDoc documentation

carts/mine/selected-payment-method

carts/mine/selected-payment-method

get/V1/carts/mine/selected-payment-method

Returns the payment method for a specified shopping cart.

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/mine/selected-payment-method

put/V1/carts/mine/selected-payment-method

Adds a specified payment method to a specified shopping cart.

Request
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"