cURL
curl --request POST \ --url https://app.localhost:3000/api/public/v1/promotions/getById \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "id": "promo_123", "storeId": "store_123" } '
{ "id": "promo_123", "name": "Summer Sale 20% Off", "code": "SUMMER20", "enabled": true, "automatic": false, "usageLimit": 100, "usageCount": 42, "startDate": "2025-06-01T00:00:00.000Z", "endDate": "2025-08-31T23:59:59.000Z", "ruleOperator": "AND", "combinesWithOrderLevelDiscounts": false, "combinesWithLineItemDiscounts": false, "combinesWithShippingDiscounts": false, "forceCombine": false, "rules": [], "actions": [ { "type": "OrderAdjustment", "adjustmentType": "percentage", "adjustmentPercentage": 20 } ] }
Retrieve detailed information about a specific promotion including its rules and actions
Enter your API key as: Bearer your-api-key
Bearer your-api-key
The promotion ID
The store ID the promotion belongs to
Successful response
AND
OR