Overview
The Inscripcion content type manages event registration submissions with integrated payment processing through Flow. It tracks participant information, payment status, and transaction details.This is a collection type with draft and publish disabled. Registrations are created immediately and processed in real-time.
Schema Information
- Collection Name:
inscripcions - Singular:
inscripcion - Plural:
inscripcions - Draft & Publish: Disabled (immediate processing)
Attributes
nombreCompleto
Full name of the person registering.
- Optional field
- Free text format
rut
Chilean national identification number (RUT).
- Optional field
- Format: XX.XXX.XXX-X
- Should include verification digit
edad
Age of the participant.
- Optional field
- Numeric value
- Used for category assignment
categoria
Race category for the participant.
- Optional field
- Free text format
- Examples: “Infantil”, “Experto”, “Elite”, “Master A”
tipo
Registration type.
- Optional field
- Free text format
- Examples: “Open”, “Federado”
Contact email address.
- Email format validation
- Optional field
- Used for confirmation and communication
monto
Payment amount in Chilean pesos.
- Optional field
- Integer value (no decimals)
- Example: 15000 for $15,000 CLP
tokenFlow
Flow payment gateway token.
- Optional field
- Generated by Flow during payment initialization
- Used to track payment session
estadoPago
Current payment status.
- Default: “Pendiente”
- Allowed values:
Pendiente: Payment not yet completedPagado: Payment successfulRechazado: Payment failed or rejected
- Updated by payment webhook
ordenFlow
Flow order number.
- Optional field
- Assigned by Flow after payment confirmation
- Used for payment reconciliation
telefono
Contact phone number.
- Optional field
- Free text format
- Example: “+56912345678”
API Endpoints
List All Registrations
Array of registration entries
Get Single Registration
Create Registration
Update Registration Status
Delete Registration
Query Parameters
Filter by Payment Status
Filter by Category
Filter by Type
Sorting
Flow Payment Integration
Registration Flow
- Create Registration: Create an inscripcion record with
estadoPago: "Pendiente" - Initialize Payment: Call Flow API to get
tokenFlow - Update Registration: Store
tokenFlowin the registration - Redirect User: Send user to Flow payment page
- Webhook Callback: Flow sends payment result to your webhook
- Update Status: Update
estadoPagoto “Pagado” or “Rechazado” - Store Order: Save
ordenFlowfor reconciliation
Always validate Flow webhook signatures to prevent fraudulent payment confirmations.
Example Response
Payment Status Workflow
Best Practices
Validate RUT
Validate Chilean RUT format and verification digit on the client side before submission to prevent errors.
Email Confirmations
Send confirmation emails immediately after registration creation and after successful payment.
Payment Timeout
Set a timeout for pending payments (e.g., 30 minutes). Mark as “Rechazado” if not completed.
Secure Webhooks
Always verify Flow webhook signatures and use HTTPS endpoints for payment callbacks.
Audit Trail
Log all payment status changes with timestamps for troubleshooting and reconciliation.
Error Handling
Implement proper error handling for failed payments and provide clear user feedback.
Payment Reconciliation
UseordenFlow to reconcile payments with Flow transaction records:
Store both
tokenFlow (session) and ordenFlow (confirmation) for complete payment tracking.