Abrir una cuenta
Changed onAbre una cuenta para un cliente. Identifica al cliente con customer_id, o con phone y display_name para crearlo si no existe.
El compromiso de apertura se infiere de lo que envíes: items abre la cuenta ya con esos consumos, estimated_amount la abre con un monto estimado sin items, y si no envías ninguno la cuenta queda vacía y le agregas items después.
La estrategia de cobro es siempre card_on_file: al cerrar se cobra la tarjeta guardada del cliente (o le entregas un link de pago). La preautorización con hold solo se puede activar desde el dashboard, porque requiere una autorización real del procesador.
Usa un Idempotency-Key único por cuenta abierta.
Request
- Base URLhttps://app.recurrente.com/api
- AuthAPI key in header X-SECRET-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Cuenta abierta
Changes
- breaking
added to the
response propertyoneOflist for the response status - breaking
the
/response's property type changed fromobjecttoarrayfor status
- breaking
- warning
deleted the
headerrequest parameterX-SECRET-KEY - info
the endpoint scheme security
secretKeywas added to the API
- warning