Crear Customer Collection Account
Changed onRegistra la cuenta bancaria con la que se le cobrará a un Customer por PAC o domiciliación bancaria.
Es idempotente por Customer y Subscription: si ya existe una cuenta vigente para esa combinación, se actualiza con los datos enviados en vez de crearse otra. Omitir subscription apunta a la cuenta que no está asociada a ninguna Subscription. El número de cuenta se normaliza quitando todo carácter que no sea alfanumérico.
Cuando no se envía currency_code se usa la moneda por defecto del país de la organización, y cuando no se envía government_id se usa el del Customer. Responde 404 si el Customer o la Subscription no existen bajo la organización autenticada, y 422 cuando no se envía currency_code y el país de la organización no tiene una moneda por defecto.
Request
- Base URLhttps://api.trytoku.com
- URLhttps://api.trytoku.com/customer-collection-accounts
- AuthAPI key in header x-api-key
Headers
Llave de API de una Account, para operar sobre esa Account en lugar de la principal.
Request body
Example request
{
"account_number": "123456789",
"customer": "cus_Ht7Kd2vRq0XbNm4Y_3ZpLcJfW9Ee1AsU",
"subscription": "sub_Yx4Qb1oT8kFhLmN2_9AwZrJvE6Ss0uKd"
}Response
Successful Response
Example response
{
"customer": "cus_Ht7Kd2vRq0XbNm4Y_3ZpLcJfW9Ee1AsU",
"subscription": "sub_Yx4Qb1oT8kFhLmN2_9AwZrJvE6Ss0uKd"
}Changes
- breaking
request body became required
- breaking
added to the
request propertyallOflist - breaking
added to the
request propertyallOflist - breaking
added to the
request propertyallOflist - breaking
removed the enum value
CLFof the request property - breaking
removed the enum value
CLPof the request property - breaking
removed the enum value
checking_accountof the request property - breaking
removed the enum value
sight_accountof the request property - breaking
the
request property type changed fromstringto no type - breaking
the
request property type changed fromstringto no type - breaking
the
request property type changed fromstringto no type - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed from no type tostringfor status - info
api operation id
crear-customer-collection-accountremoved and replaced withpost_customer_collection_account_endpoint - info
api tag
Customer Collection Accountsadded - info
added the new optional
headerrequest parameterx-account-key - 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 non-success response with the status
- info
removed the non-success response with the status
- info
added to the
response propertyallOflist for the response status - info
added to the
response propertyallOflist for the response status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status
- breaking