# Set a payment method for a cart. **POST /2025-3/carts/{cartId}/payment-method** Sets a payment method for a cart. ## Servers - PACE Development API: https://api.dev.pace.cloud/cart (PACE Development API) - PACE Sandbox API: https://api.sandbox.pace.cloud/cart (PACE Sandbox API) - PACE Production API: https://api.pace.cloud/cart (PACE Production 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. ### 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)