Upload Document
HTTP Request
Content Type
Form Data Parameters
PDF file to upload (max 10 MB)
Document type folder. Must be one of:
soat, rtm, polizas, tarjeta_propiedadVehicle license plate number (will be sanitized)
Response
Storage path where the file was uploaded
Success message
Success Response
Error Responses
Missing FileImplementation Details
- Files are stored in the
vehiculos_docsbucket in Supabase Storage - File names are generated as
{sanitizedPlaca}_{currentYear}.pdf - The
upsert: trueoption allows overwriting existing files - Files are cached for 1 hour (
cacheControl: '3600') - Only alphanumeric characters and hyphens are allowed in the sanitized placa
Delete Document
HTTP Request
Request Body
Storage path of the file to delete (e.g., “soat/ABC123_2026.pdf”)
Response
Success message
Success Response
Error Responses
Missing PathImplementation Details
- Files are removed from the
vehiculos_docsbucket in Supabase Storage - The path must match the exact storage path returned when the file was uploaded
- If the file doesn’t exist, the operation may still return success