Selected payment method

quote Guest Payment Method Management V1Get Get

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
curl -L \
  --url 'http://{{baseurl}}/V1/guest-carts/{cartId}/selected-payment-method'
{
  "method": "<string>",
  "po_number": "<string>",
  "additional_data": [
    "<string>",
    "<string>"
  ],
  "extension_attributes": {
    "agreement_ids": [
      "<string>",
      "<string>"
    ]
  }
}

quote Guest Payment Method Management V1Set Put

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
curl -L \
  --request PUT \
  --url 'http://{{baseurl}}/V1/guest-carts/{cartId}/selected-payment-method' \
  --header 'Content-Type: application/json' \
  --data '{
    "method": {
      "method": "<string>",
      "po_number": "<string>",
      "additional_data": [
        "<string>",
        "<string>"
      ],
      "extension_attributes": {
        "agreement_ids": [
          "<string>",
          "<string>"
        ]
      }
    }
  }'
-35576651