From Prototype to Production: Credit Management for Ad OperationsFrom Prototype to Production: Credit Management for Ad Operations
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
From Prototype to Production: Building a Scalable Credit Management Platform for Ad Operations
Transforming a Conceptual Ad-Credit System Into a Production-Ready Financial Operations Platform
The platform was designed around a complex operational challenge: managing advertising credit, wallets, compliance, risk, and campaign activity across multiple clients and regions.
The original product concept came from deep experience in the ad-credit ecosystem. The workflow covered everything from wallet funding and regional allocations to KYB verification, transaction monitoring, campaign performance, and operational support.
A working React prototype had already demonstrated the core experience.
It included separate portals for clients and internal operations teams, with features such as:
Wallet and balance management
Ad account allocation
Top-up requests
Campaign performance dashboards
Compliance monitoring
Risk indicators
Operations work queues
AI-assisted support
Treasury management
The product vision was validated. The next challenge was creating the infrastructure required to operate it with real financial data.

From Mock Data to Real Infrastructure
The prototype relied heavily on simulated API responses and frontend state.
That worked well for demonstrating workflows, but financial operations require persistent data, transactional integrity, authentication, auditability, and controlled access.
We rebuilt the underlying architecture while preserving the validated frontend experience.

Financial Operations & Wallet Management
We introduced a transactional backend for core financial operations, including:
Wallet top-ups
Fund transfers
Regional wallet allocation
Ad account funding
Refunds
Balance reconciliation
A double-entry ledger provided a structured record of every movement of funds.
Transactions were designed with:
Atomic balance updates
Optimistic locking
Idempotent processing
Transaction history
Actor tracking
Before-and-after state records
Full auditability
Top-up requests were also converted into structured workflows covering submission, payment verification, approval, and balance crediting.

Compliance & KYB Management
The prototype represented compliance through simple status indicators.
We replaced those static states with a structured KYB lifecycle.
Documents could progress through stages such as:
Missing → Uploaded → Under Review → Verified → Expired
The system introduced rules governing each transition, along with:
Document expiration monitoring
Automated notification workflows
Identity verification integrations
Region-specific compliance requirements
Reviewer activity tracking
Compliance overrides
Audit history
Cases could also be routed to compliance agents according to factors such as workload, region, and verification requirements.

Risk & Anomaly Detection
Static risk indicators were replaced with a dedicated risk evaluation layer.
The platform could evaluate multiple signals, including:
Transaction velocity
Changes in spending behavior
P2P transfer patterns
Threshold breaches
Account activity
Compliance status
Dormancy indicators
Risk conditions could generate prioritized operational alerts with relevant context and recommended actions.
This connected the risk engine directly to the operations workflow rather than treating risk as a visual indicator inside the dashboard.

Operations Work Queue
The original work queue was primarily frontend-driven.
We transformed it into an event-based operations system.
Events from financial, compliance, and risk workflows could automatically create operational tasks.
The system supported:
Intelligent task assignment
Regional routing
Capacity-based allocation
SLA monitoring
Escalation workflows
Case history
Required-action validation
Resolution tracking
Every operational case could maintain a complete history of actions, notes, and status changes.

Multi-Tenant Architecture
The production system needed to support multiple client organizations while keeping their financial and compliance data isolated.
We introduced tenant-aware architecture across the data and API layers.
Each organization could maintain its own:
Wallets
Ad accounts
Transactions
Compliance records
Credit limits
Operational history
Role-based permissions separated client-facing functionality from internal administrative operations, while tenant-scoped API access helped prevent cross-organization data exposure.

Advertising Platform Integration
We also replaced simulated advertising metrics with a dedicated integration layer.
The architecture supported TikTok Ads through:
OAuth account authorization
Token refresh handling
Scheduled metric synchronization
Rate-limit awareness
Retry and backoff strategies
Pixel health monitoring
API failure handling
When an external platform became unavailable, the system could clearly identify stale information rather than presenting outdated metrics as current.

Observability & Infrastructure
Production financial systems require visibility across both technical and business operations.
We introduced:
Structured application logging
Transaction monitoring
Integration health checks
Queue monitoring
SLA alerts
Error tracking
Backend service dashboards
Synchronization monitoring
This gave operations teams visibility into both application health and business-critical events.

AI & Risk Intelligence
The platform also incorporated intelligent services into the broader architecture.
The risk layer was supported by a Python-based service and machine-learning pipeline, while an AI assistant provided a conversational interface for accessing relevant operational information.
The architecture included:
Python / FastAPI risk services
scikit-learn ML workflows
OpenAI-powered AI assistant
Pinecone vector storage
These capabilities were integrated into the broader platform rather than operating as isolated AI features.

Technology Stack
Backend: Node.js, NestJS
API: GraphQL
Authentication: Auth0
Database: PostgreSQL
Caching & Queues: Redis
Search: Elasticsearch
Cloud Infrastructure: AWS, ECS Fargate
CI/CD: GitHub Actions
Infrastructure as Code: Terraform
Payments: Stripe
Risk Engine: Python, FastAPI
Machine Learning: scikit-learn
AI: OpenAI GPT-4
Vector Database: Pinecone

The Outcome
The platform evolved from a prototype designed to demonstrate the concept into a production-oriented system capable of supporting real financial and operational workflows.
The transformation introduced:
Transaction-safe financial operations
Structured compliance workflows
Continuous risk evaluation
Event-driven operations management
Multi-tenant architecture
Live advertising integrations
Automated monitoring and alerts
AI-assisted operational intelligence
The original prototype had already established the product vision and user experience.
Our work focused on building the engineering foundation underneath it—turning simulated workflows into persistent, secure, scalable, and operationally reliable systems.
From an impressive prototype to a financial operations platform built for real-world complexity.
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started