Skip to main content
POST
/
api
/
formularioregistrocampana
curl -X POST https://api.example.com/api/formularioregistrocampana \
  -H "Content-Type: multipart/form-data" \
  -F "id_usuario=123" \
  -F "id_campana=45" \
  -F "id_vehiculo=78" \
  -F "telefono_conductor=0987654321" \
  -F "cedula=1234567890" \
  -F "[email protected]" \
  -F "licencia=@/path/to/license.pdf" \
  -F "matricula=@/path/to/registration.pdf" \
  -F "numero_cuenta_bancaria=1234567890123" \
  -F "entidad_bancaria=Banco Nacional" \
  -F "tipo_cuenta_bancaria=savings" \
  -F "brandeo=true" \
  -F "carroceria_capo=true" \
  -F "carroceria_techo=true" \
  -F "puerta_conductor=true" \
  -F "puerta_pasajero=true" \
  -F "id_ciudad=1" \
  -F "id_pais=1"
{
  "id_formulario": 567,
  "id_usuario": 123,
  "id_campana": 45,
  "id_vehiculo": 78,
  "telefono_conductor": 987654321,
  "cedula": "1234567890",
  "correo_electronico": "[email protected]",
  "licencia": "documents/license_20260309_123.pdf",
  "matricula": "documents/registration_20260309_123.pdf",
  "numero_cuenta_bancaria": "1234567890123",
  "entidad_bancaria": "Banco Nacional",
  "tipo_cuenta_bancaria": "savings",
  "fecha_envio": "2026-03-09",
  "estado_solicitud": "pendiente",
  "brandeo": true,
  "carroceria_capo": true,
  "carroceria_techo": true,
  "puerta_conductor": true,
  "puerta_pasajero": true,
  "puerta_trasera_iz": false,
  "puerta_trasera_der": false,
  "puerta_maletero": false,
  "id_ciudad": 1,
  "id_pais": 1
}
This endpoint handles the complete campaign registration workflow, allowing drivers to apply for advertising campaigns by submitting their personal information, banking details, vehicle information, and required documentation (license and vehicle registration).

Request Body

id_usuario
integer
required
User ID of the driver applying for the campaign
id_campana
integer
required
Campaign ID that the driver wants to join
id_vehiculo
integer
required
Vehicle ID that will be used in the campaign
telefono_conductor
integer
required
Driver’s contact phone number
cedula
string
required
Driver’s national ID number (10 digits)
correo_electronico
string
required
Driver’s email address (max 50 characters)
licencia
file
required
Driver’s license document (PDF, image formats accepted)
  • Uploaded to: documents/ directory
  • Required for verification
matricula
file
required
Vehicle registration document (PDF, image formats accepted)
  • Uploaded to: documents/ directory
  • Required for vehicle verification
numero_cuenta_bancaria
string
required
Bank account number (max 15 characters) for payment transfers
entidad_bancaria
string
required
Name of the banking institution
tipo_cuenta_bancaria
string
required
Type of bank account (e.g., “savings”, “checking”)
id_ciudad
integer
default:"1"
City ID where the driver is located
id_pais
integer
default:"1"
Country ID where the driver is located

Branding Selection Fields

brandeo
boolean
default:"false"
Whether the vehicle requires complete branding
carroceria_capo
boolean
default:"false"
Apply branding to vehicle hood
carroceria_techo
boolean
default:"false"
Apply branding to vehicle roof
puerta_conductor
boolean
default:"false"
Apply branding to driver’s door
puerta_pasajero
boolean
default:"false"
Apply branding to passenger door
puerta_trasera_iz
boolean
default:"false"
Apply branding to rear left door
puerta_trasera_der
boolean
default:"false"
Apply branding to rear right door
puerta_maletero
boolean
default:"false"
Apply branding to trunk/rear door

Response

id_formulario
integer
Unique identifier for the registration form
id_usuario
integer
User ID of the applicant
id_campana
integer
Campaign ID applied for
id_vehiculo
integer
Vehicle ID registered for campaign
telefono_conductor
integer
Driver’s contact phone
cedula
string
Driver’s national ID
correo_electronico
string
Driver’s email address
licencia
string
URL path to uploaded license document
matricula
string
URL path to uploaded vehicle registration
numero_cuenta_bancaria
string
Bank account number for payments
entidad_bancaria
string
Banking institution name
tipo_cuenta_bancaria
string
Type of bank account
fecha_envio
string
Date when the form was submitted (YYYY-MM-DD)
estado_solicitud
string
Application status: “pendiente” (pending), “aprobado” (approved), “rechazado” (rejected)
brandeo
boolean
Complete branding flag
carroceria_capo
boolean
Hood branding selection
carroceria_techo
boolean
Roof branding selection
puerta_conductor
boolean
Driver’s door branding
puerta_pasajero
boolean
Passenger door branding
puerta_trasera_iz
boolean
Rear left door branding
puerta_trasera_der
boolean
Rear right door branding
puerta_maletero
boolean
Trunk branding selection
id_ciudad
integer
City ID
id_pais
integer
Country ID
curl -X POST https://api.example.com/api/formularioregistrocampana \
  -H "Content-Type: multipart/form-data" \
  -F "id_usuario=123" \
  -F "id_campana=45" \
  -F "id_vehiculo=78" \
  -F "telefono_conductor=0987654321" \
  -F "cedula=1234567890" \
  -F "[email protected]" \
  -F "licencia=@/path/to/license.pdf" \
  -F "matricula=@/path/to/registration.pdf" \
  -F "numero_cuenta_bancaria=1234567890123" \
  -F "entidad_bancaria=Banco Nacional" \
  -F "tipo_cuenta_bancaria=savings" \
  -F "brandeo=true" \
  -F "carroceria_capo=true" \
  -F "carroceria_techo=true" \
  -F "puerta_conductor=true" \
  -F "puerta_pasajero=true" \
  -F "id_ciudad=1" \
  -F "id_pais=1"
{
  "id_formulario": 567,
  "id_usuario": 123,
  "id_campana": 45,
  "id_vehiculo": 78,
  "telefono_conductor": 987654321,
  "cedula": "1234567890",
  "correo_electronico": "[email protected]",
  "licencia": "documents/license_20260309_123.pdf",
  "matricula": "documents/registration_20260309_123.pdf",
  "numero_cuenta_bancaria": "1234567890123",
  "entidad_bancaria": "Banco Nacional",
  "tipo_cuenta_bancaria": "savings",
  "fecha_envio": "2026-03-09",
  "estado_solicitud": "pendiente",
  "brandeo": true,
  "carroceria_capo": true,
  "carroceria_techo": true,
  "puerta_conductor": true,
  "puerta_pasajero": true,
  "puerta_trasera_iz": false,
  "puerta_trasera_der": false,
  "puerta_maletero": false,
  "id_ciudad": 1,
  "id_pais": 1
}

Campaign Registration Workflow

  1. Form Submission: Driver submits registration form with personal info, banking details, and documents
  2. Document Upload: License and vehicle registration files are uploaded to documents/ directory
  3. Branding Selection: Driver selects which parts of their vehicle will display campaign branding
  4. Validation: System validates all required fields and file uploads
  5. Status Assignment: Form is marked as “pendiente” (pending) awaiting admin approval
  6. Next Steps:
    • Admin reviews the application
    • If approved, driver proceeds to IngresoConductorCampana with QR code generation
    • Driver must complete VerificacionConductorCampana before starting routes

Notes

  • All file uploads use multipart/form-data encoding
  • Supported document formats: PDF, JPG, PNG
  • Maximum file size: 10MB per document
  • Application status transitions: pendienteaprobado or rechazado
  • Branding pricing is calculated based on selected vehicle parts and campaign rates
  • The fecha_envio field is automatically set to the submission date

Build docs developers (and LLMs) love