This endpoint provides comprehensive access to all campaigns associated with a company. It supports pagination, filtering by status, and sorting to efficiently manage large numbers of campaigns.
This endpoint returns essential campaign information optimized for list views and campaign management interfaces. For detailed campaign information, use the Get Campaign Details endpoint.
GET {{micro_service_base_url}}/stores/company/{{company_id}}/campaigns?status=active
Search Campaigns by Name
Copy
GET {{micro_service_base_url}}/stores/company/{{company_id}}/campaigns?search=summer
Get Campaigns with Pagination
Copy
GET {{micro_service_base_url}}/stores/company/{{company_id}}/campaigns?limit=10&offset=20
Get Upcoming Campaigns
Copy
GET {{micro_service_base_url}}/stores/company/{{company_id}}/campaigns?status=scheduled&order=ASC
Filter by Date Range
Copy
GET {{micro_service_base_url}}/stores/company/{{company_id}}/campaigns?start_date_from=2025-06-01&start_date_to=2025-12-31
Performance Optimization: Use pagination (limit and offset) when dealing with companies that have many campaigns to ensure fast response times and efficient resource usage.
Search Functionality: The search parameter performs case-insensitive matching against both campaign names and descriptions, making it easy to find specific campaigns.
{ "error": "Company not found", "message": "The specified company does not exist", "code": "COMPANY_NOT_FOUND"}
Invalid Parameters
Copy
{ "error": "Invalid parameters", "message": "Limit must be between 1 and 100", "code": "INVALID_PARAMETERS"}
Invalid Date Format
Copy
{ "error": "Invalid date format", "message": "Date must be in YYYY-MM-DD format", "code": "INVALID_DATE_FORMAT"}
Large Result Sets: When requesting campaigns without pagination, large companies may experience slower response times. Always use pagination for production applications.