| mi_negocio | Which business the key belongs to, its scope, and the programs with goals and rewards. The first one an agent calls. | — |
| onboarding | The 7 steps to get the business's card ready: which are done, which comes next and what the owner does in person, with the link to their dashboard. | — |
| programas | The loyalty programs: mechanic, stamp goal, reward and sign-up link. | — |
| buscar_cliente | Customers by phone or email, with their cards and balances. No search by name. | telefono or email |
| cliente | A customer by id, with their cards. | id |
| tarjeta | A card by id: balance, pending rewards, whether it's in Wallet, and latest visits. | id |
| estadisticas | The numbers for 7, 30 or 90 days: active customers, stamps, rewards, by program, and who comes most. | dias: 7 | 30 | 90 |
| vista_tarjeta | An image of how the card looks; accepts a trial design without saving it, and the empty, halfway and full states. | programaId, sellos?, estados?, …design |
| listar_imagenes | The images the business already has (logos, backgrounds, stamps), with their id to reuse them. | tipo? |
| guia_diseno | Recommended sizes and ratios for each image, the iOS 27 poster zones, and tips. | — |
| liga_subida | A single-use link (30 min) for the owner to upload a photo from their phone. Requires permission to operate. | tipo |
| ver_subida | If the owner already uploaded the photo, the image's id. | subidaId |
| subir_imagen | Saves a base64 image (up to ~3 MB, it's shrunk automatically). Requires permission to operate. | tipo, base64, nombre? |
| historial_diseno | Previous versions of a program's name, reward and design. | programaId |
| revertir_diseno | Takes a program back to an earlier version (and it can be undone). Requires permission to operate. | programaId, versionId |
| liga_alta | A program's sign-up link, with its QR as an image. | programaId |
| crear_programa | Creates a stamp card with its design: classic or iOS 27 poster, colors, the stamp's emoji and shape, background and logo from a URL, vocabulary and back-of-card texts. Requires permission to operate. | nombre, meta, premio, maxSellosDia?, estilo?, colores?, emoji?, fondoUrl?, logoUrl?, … |
| editar_programa | Changes a card's name, reward or design (whatever you send). The goal and daily cap stay in the panel. Requires permission to operate. | programaId, … |
| alta_cliente | Signs up a customer and returns their card's link. Requires permission to operate. | programaId, nombre, telefono, email?, notificar? |
| dar_sello | Records a visit, with the business's caps. Requires permission to operate. | tarjetaId |
| canjear_premio | Marks a reward as handed over. Requires permission to operate. | premioId |
| pedir_campana | Prepares a message to a segment of customers; it stays pending until the owner approves it in the panel. | programaId, segmento, umbral?, titulo, cuerpo |
| crear_negocio | No account: builds a DRAFT business with its card and returns the image, a token to adjust it, and the link for the owner to claim it (expires in 72 h). | negocio, giro, ciudad?, premio, meta?, …design |
| editar_borrador | No account: changes the draft (name, card and design). | borrador, … |
| vista_borrador | No account: image of the draft; tries changes without saving them. | borrador, estados?, …design |
| estado_borrador | No account: whether it was claimed and how long until it expires; can reissue the link. | borrador, reponerLiga? |
| liga_subida_borrador | No account: a link for the owner to upload a photo to the draft. | borrador, tipo |
| ver_subida_borrador | No account: the id of the photo the owner uploaded. | borrador, subidaId |