Skip to content
LA CRYPTADOCS / 01

Registration, payments, and check-in

From public checkout to confirmation and Event admission.

Registration, payments, and check-in

A registration always belongs to a concrete Event. An Event Factory may have generated it, but the factory does not receive attendees, payments, or check-ins.

1. Prepare checkout

The public page loads checkout-state to show availability, ticket types, allowed quantities, current price, and form requirements. State may change while a person enters their details; the registration response is the final confirmation.

Before submitting:

  • verify name, email, and required fields;
  • select quantities per ticket type;
  • apply a coupon through the Event validation operation;
  • accept terms or consent where required;
  • do not calculate the final price only on the client.

A coupon may reduce the subtotal, set a price, or enable a special condition. The server validates it again with capacity, validity period, and usage limits.

2. Create the registration

register creates or links the identity, reserves capacity, and returns the next step. One purchase may include multiple ticket types and units; capacity is consumed per seat, not per order.

The usual result is one of these:

ResultNext step
Free or fully discountedImmediate confirmation or pending approval
LightningPay the invoice and query or claim its settlement
Mercado PagoComplete provider checkout, then claim the result
Approval requiredWait for a decision from the organization team

Pending-payment reservations may temporarily count against capacity. If a quote expires, fetch a new checkout-state rather than reusing it.

3. Pay and reconcile

Keep the original order identifier and invoice. The backend verifies payment with the provider and applies settlement once. Refreshing the page, receiving two webhooks, or repeating a query must not issue duplicate tickets.

For Lightning, claim verifies the preimage or invoice state. For Mercado Pago, mercadopago/claim queries and reconciles the corresponding preference. An intermediate state means “not confirmed yet,” not “failed permanently.”

Do not mark a payment successful based only on a browser redirect. The authoritative state is returned by the Event API.

4. Confirm attendance

Depending on configuration, a registration may be confirmed on payment, require team approval, or ask for an email or WhatsApp action. Confirmation links and tokens are single-purpose secrets; do not send them to analytics or include them in public screenshots.

Repeating an applied confirmation returns current state or an already_* result. This idempotency supports recovery from a disconnect without creating another registration.

5. Receive the ticket

Once the Event conditions are met, one ticket item is issued per seat. Each ticket has its own code and, where applicable, a consecutive number within the Event. An order for three seats produces three tickets even when they initially belong to one person.

The ticket may appear in the personal area and arrive by email. Its code is a bearer secret: anyone presenting it can attempt to use it.

6. Check in

The scanner first queries code status and then performs check-in. If the organization requires staff credentials, the public read does not authorize consumption by itself.

  • The first valid check-in claims an available ticket and records time and actor.
  • A second attempt on the same ticket is safe and returns already_checked_in.
  • A revoked, expired, or wrong-Event code is not accepted.
  • If a person owns multiple tickets, each admission is consumed independently.

After check-in, available gifts for the ticket may be shown. Consumption is also atomic: insufficient quantity returns a conflict and does not partially deduct inventory.

States and recovery

SymptomRecommended action
409 during registrationReload availability, coupon, and identity state
Pending invoiceWait and query the same order; do not immediately create another
Payment made, ticket missingRun the provider claim, then refresh items
Repeated confirmationShow current state; do not treat it as a new registration
Check-in with a disconnectQuery again before retrying to avoid stale state

For exact request and response shapes, filter by the public Event tag in the API reference.