# Set a payment method for a cart. **POST /2026-2/carts/{cartId}/payment-method** Sets a payment method for a cart. ## Servers - PACE Cloud API: https://api.pace.cloud/cart (PACE Cloud API) ## Authentication methods - Oauth2 - Oauth2 ## Parameters ### Path parameters - **cartId** (string(uuid)) The unique identifier of the cart to set the payment method for. ### Body: application/json (object) - **paymentMethodId** (string(uuid)) The unique identifier of the payment method to set for the cart. ## Responses ### 200 The payment method was successfully set for the cart. #### Body: application/json (object) - **data** (object) The cart that has been updated. ### 400 The request parameters are missing or invalid. ### 401 Client authentication failed. ### 403 Missing one or more required scopes. ### 404 The specified cart was not found. ### 500 An unexpected error occurred. [Powered by Bump.sh](https://bump.sh)