Payment Methods

Inscribir cuentas CLABE por lote

Changed on

Inscribe por lote cuentas CLABE como medios de pago.

Con is_async en false la respuesta llega con 200 una vez inscritas las cuentas, e incluye un resultado por cada inscripción que quedó hecha: las cuentas rechazadas no aparecen en data. Con is_async en true la respuesta llega de inmediato con 201 y el identificador del lote, y las inscripciones se resuelven después.

Cada envío tiene un máximo de cuentas: si se supera, el lote se rechaza completo y la respuesta indica el límite y la cantidad enviada.

Las inscripciones que no se pueden procesar, hoy las que vienen sin número de cuenta, se dejan fuera y el resto del lote sigue su curso: cada una llega en rejected con su posición en enrollments y el motivo. Si no queda ninguna por procesar, la respuesta llega con 200, data vacío y todas en rejected, también con is_async en true.

post/payment-methods/bulk

Request

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

Query parameters

is_asyncboolean

Procesar el lote sin esperar su resultado.

Headers

x-account-keystring

Llave de API de una Account, para operar sobre esa Account en lugar de la principal.

Request body

id_accountstring required

Response

OK

Changes

    • breaking

      request body became required

    • breaking

      the request property // became required

    • breaking

      the request property's minItems was increased to 1

    • breaking

      removed the media type application/json for the response with the status

    • info

      api operation id crear-paymentmethod-de-tipo-bankaccount-en-batch removed and replaced with bulk_inscriptions_public

    • info

      api tag Payment Methods added

    • info

      added the new optional header request parameter x-account-key

    • info

      added the new optional request property ///

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the success response with the status