---
title: "Set payment method"
method: POST
path: "/payment-methods"
tags: ["payment"]
---

# Set payment method

`POST /payment-methods`

Sets a payment method for the cart.

## Request body

- object
  - `gateway_id` string, required — Payment gateway ID.

## Response `200`

Payment method set successfully.

- boolean

## Other responses

- `404` — Payment method is incorrect or does not exist.

---

[API](https://skmtc.net/cocartapi/apis/cocart-jwt-authentication.md) · [All operations](https://skmtc.net/cocartapi/apis/cocart-jwt-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cocartapi/cocart-jwt-authentication/versions/2031b047ca5f/schema)
