# Payment methods

Managing payment methods in the e-shop.

## Listing of payment methods

 - [GET /api/payment-methods](https://api.docs.shoptet.com/shoptet-api/openapi/payment-methods/getlistingofpaymentmethods.md): The endpoint returns the listing of all available payment methods and
details about their settings. Paging is not used, it always returns all
methods at once.

## Adding the payment methods

 - [POST /api/payment-methods](https://api.docs.shoptet.com/shoptet-api/openapi/payment-methods/createpaymentmethod.md): Adds the new payment method for the specific e-shop.


If you are a Premium client, contact your Account or Onboarding
manager and request the creation of a new gateway identifier. New
payment gateway has to be approved by Shoptet and client needs to be
familiar with the terms of payment in advance.


The request body includes the mandatory attributes name and
paymentType. The other parameters are not mandatory and their default
values will be used:


- description - null


- visibility - false


- wholesale - false


- logo - null


Send the logo of the payment gateway as the file content, encoded with
base64, in data.logo.content request item.


Please note that name cannot be longer than 255 characters.

## Payment method deletion

 - [DELETE /api/payment-methods/{guid}](https://api.docs.shoptet.com/shoptet-api/openapi/payment-methods/deletepaymentmethod.md): Deletes payment method by guid. Only payment methods related to your
addon may be deleted. Private API tokens aren't currently supported.

