Cadastrar Payment Methods de Débito Automático
Changed onCadastra, em um único lote, as contas bancárias que passarão a ser debitadas.
Request
- Base URLhttps://api.trytoku.com
- URLhttps://api.trytoku.com/brazil/automatic-debit/payment-method
- AuthAPI key in header x-api-key
Request body
Example request
{
"bank": "Banco Santander",
"id_account": "acc_7Kq2mR4tXvB9nD1sYpL0aZcE6hJ3wF8u",
"payment_method_data": [
{
"account_number": "11223344",
"account_type": "CORRENTE",
"address": {
"admin_area": "SP",
"city": "São Paulo",
"neighborhood": "Bela Vista",
"postal_code": "01310100",
"street_name": "Avenida Paulista",
"street_number": "1000"
},
"agency": "1122",
"government_id": "00000000191",
"id_subscriptions": [
"sub_4Nv8bT2yQm6rK9xJ1eZ7dC3sW5hP0gLu"
],
"requires_opt_in": false,
"sender_bank_id": "90400888"
}
]
}Response
Successful Response
Example response
{
"status": "created"
}Changes
- breaking
request body became required
- breaking
added to the
request propertyallOflist - breaking
removed the enum value
Banco Santanderof the request property - breaking
removed the enum value
Banco de Brasiliaof the request property - breaking
removed the enum value
CORRENTEof the request property// - breaking
removed the enum value
PAGAMENTOof the request property// - breaking
removed the enum value
POUPANCAof the request property// - breaking
the
//request property's minItems was increased to1 - breaking
the
request property type changed fromstringto no type - breaking
the
//request property type changed fromobjectto no type - breaking
removed the required property
from the response with the status - breaking
removed the success response with the status
- warning
the
//request property's maxLength was set to14 - 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
/// - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - info
api operation id
post_brazil-automatic-debit-payment-methodremoved and replaced withcreate_bulk_automatic_debit_payment_methods - info
api tag
Débito Automáticoadded - info
added the new optional request property
// - info
added the new optional request property
// - info
added
subschema #2to the//request propertyanyOflist - info
the request property
//became optional - info
the request property
//became optional - info
the
request property default valueCORRENTEwas added - info
request property
//list-of-types was widened by adding typesnullto media typeapplication/json - info
request property
//list-of-types was widened by adding typesnullto media typeapplication/json - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the required property
to the response with the status - info
added the success response with the status
- breaking