Payment Methods

Crear un Payment Method (ruta interna)

Changed on

Crea un Payment Method a partir de los datos de una cuenta bancaria.

La Account, el Customer y la Subscription deben pertenecer todos a la misma Organization, y la Subscription debe corresponder al Customer.

Hoy sólo acepta el producto de cargo recurrente a cuenta bancaria por lote en México; con cualquier otro producto responde 400.

post/payment_methods

Request

  • Base URL
    https://api.trytoku.com
  • URL
    https://api.trytoku.com/payment_methods
  • Auth
    API key in header x-api-key

Request body

OR

Response

Successful Response

payment_method_idstring required

Id of the created payment method

statusstring required

Status of the created payment method

Changes

    • breaking

      request body became required

    • breaking

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

    • breaking

      removed the success response with the status

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • info

      api operation id create-bank-account-payment-method removed and replaced with create_payment_method_internal

    • info

      api tag Payment Methods added

    • info

      added to the request body anyOf list

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status