Способы оплаты

POST /payment_methods

Changed on

Создание способа оплаты

Request

  • Base URL
    https://api.yookassa.ru/v3
  • Auth
    HTTP basic

Headers

Idempotence-Keystring required

Request body

type'bank_card' required

Response

The request has succeeded.

type'bank_card' required
idstring required
savedboolean required
status'pending' | 'active' | 'inactive' required
holderstring required
titlestring

Changes

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      removed from the request body oneOf list

    • breaking

      the request's body type changed from no type to object

    • breaking

      the response's body type changed from no type to object for status

    • info

      api operation id PaymentMethods_create was added

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      removed request discriminator

    • info

      removed the pattern [0-9a-zA-Z+-_.]{1,64} from the header request parameter Idempotence-Key

    • info

      added to the response body allOf list for the response status

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      removed response discriminator for the response status

    • info

      removed from the response body oneOf list for the response status

    • info

      added the optional property to the response with the status

    • info

      removed the error enum value from the //// response property for the response status

    • info

      removed the error enum value from the //// response property for the response status

    • info

      removed the error enum value from the //// response property for the response status

    • info

      removed the error enum value from the //// response property for the response status

    • info

      removed the error enum value from the //// response property for the response status