Fix & Finalize application's Django Backend (MVP)

Job ID: 39362634

Budget: ₹1,500 – ₹12,500 INR

we are developing an AI-driven Amazon Ads optimization platform designed for sellers who spend ₹50K+ on ads each month. From a single dashboard it:

Authenticates via Amazon OAuth & JWT

Syncs Campaigns (view, pause, bid changes)

Automates with a rule engine (IF-THEN triggers)

Performs Reverse-ASIN keyword research and Product Listing optimization

Generates performance reports (ACOS, ROAS, click trends)

Manages subscriptions (Razorpay billing + plan restrictions)

Runs background jobs (token refresh, rule execution, weekly emails)

The Flutter frontend ( https://create-genie-ai-web.vercel.app/ ) is complete; your work will wire up the remaining Django/DRF backend pieces (90% of the MVP exists).

Budget & Timeline
Total Budget: ₹3,600

Deadline: 4 days from start

Core Tasks
Amazon OAuth & Token Management

Fix exchange_auth_code endpoint so that access/refresh tokens reliably save to the AmazonAdsToken model.

Ensure refresh_access_token endpoint correctly reads/stores tokens and handles Django requests.

Essential CRUD Endpoints (Stub & Wire)

Campaigns (GET /campaigns/)

Rules (POST/GET/PUT/DELETE /rules/)

Strategies (CRUD /strategies/)

ASIN Research (POST /asin-research/)

Listings (GET/PUT /listings/:asin/)

Reports Summary (GET /reports/summary/)

Gate each route by a simple plan_check_middleware stub that enforces plan limits (e.g. max 5 ASIN calls/day).

Razorpay Billing Integration

Complete /billing/webhook/ handler: verify signatures, create/expire Subscription records.

Implement /billing/status/ to let frontend query current plan status.

Background Jobs with Celery

Configure Celery + Redis (or in-memory broker) to run:

Token Refresh: every 12 hours

Rule Runner: every 5 minutes

Weekly Report Email cron

Smoke Tests & Developer Guide

Write basic pytest or Django tests to confirm endpoint responses.

Update README and Postman collection: document request/response examples, auth flow, and Celery setup.

Why This Makes Sense for ₹3,600

Focused Scope: You’re wiring existing code—no new feature design.

High Reuse: ~90% of models, serializers, and clients are complete.

Clear Requirements: Endpoints, cron schedules, and middleware limits are predefined.

Quick Ramp-Up: We’ll provide schema details, a running dev server, and sample tokens for immediate testing.

Next Steps
Review & Confirm: Let me know if the scope aligns.

Access & Onboard: I’ll share GitHub access, dev keys, and Postman collection.

Kickoff Call: 30-min walkthrough of current blockers and existing code.

Development & Daily Sync: Short check-ins on progress, PR reviews, and test environment updates.

Ready to dive in? Reply here or schedule a quick chat, and let’s launch the MVP!

Warm regards,
Taranpreet Singh Kalra
Founder & CEO | Digital Hercules Innovations
Related categories: Python Django Debugging API Integration Celery