Authorization: Bearer ********************curl --location --request POST 'https://cantant-staging-933303906015.europe-north1.run.app/api/v2/payments/create-discount' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "coupon based",
"description": "this is just to test coupon based discount",
"frequency": "MONTHLY",
"duration": 1,
"discount_code": "IFEOLUWA123",
"discount_start_date": "2024-08-29 10:31:22",
"discount_end_date": "2024-10-30 12:00:00",
"discount_type": "COUPON_BASED",
"discount_value": 10,
"max_usage": 10
}'{
"success": true,
"message": "discount created successfully",
"data": {
"plan_id": null,
"plan_price_id": null,
"discount_code": "IFEOLUWA123",
"name": "coupon based",
"description": "this is just to test coupon based discount",
"frequency": "MONTHLY",
"duration": 1,
"discount_start_date": "2024-08-29 10:31:22",
"discount_end_date": "2024-10-30 12:00:00",
"discount_type": "COUPON_BASED",
"discount_value": 10,
"is_active": true,
"created_at": "2024-08-28T22:00:21.223+01:00",
"updated_at": "2024-08-28T22:00:21.223+01:00",
"id": "1"
}
}