# Update a browser payment request (/api/carts/update-cart-user-agent-payment-request)

`POST https://api.comecero.com/api/v1/carts/{cart_id}/user_agent_payment_request/{payment_method_type}`

Sends a change from the Apple Pay sheet (a new shipping address or shipping option) to the cart. The cart's customer and shipping method change, tax and shipping are worked out again, and the new payment request comes back for `updateWith()`. Only `apple_pay` is supported. A closed cart is `422`. Any token type may call it; a limited token only for a bound cart.

## Parameters

- `cart_id` (path, required): The id of the cart.
- `payment_method_type` (path, required): The payment method type. Only `apple_pay` is supported; another valid type is `404`, an unknown one `400`.

Request body: the `cart_user_agent_payment_request_update` schema.

Responses: 200, 400, 401, 403, 404, 422, 500.

Full schemas: operation `update_cart_user_agent_payment_request` in /openapi.json.