cURL
curl --request POST \ --url https://api.example.com/wp-json/latepoint-api/v1/coupons \ --header 'Content-Type: application/json' \ --data ' { "code": "<string>", "name": "<string>", "description": "<string>", "discount_type": "<string>", "discount_value": 123, "status": "<string>", "active_from": "<string>", "active_to": "<string>", "usage_limit": 123, "min_order_amount": 123, "max_discount_amount": 123 } '
Create a new coupon.
Documentation IndexFetch the complete documentation index at: https://docs-restapi.wplimit.com/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs-restapi.wplimit.com/llms.txt
Use this file to discover all available pages before exploring further.
percent
fixed_amount
active
inactive
POST /wp-json/latepoint-api/v1/coupons Authorization: Bearer YOUR_API_KEY Content-Type: application/json { "code": "TEST2025", "name": "Test Coupon 2025", "description": "Test coupon for API testing", "discount_type": "percent", "discount_value": 15, "status": "active" }
{ "success": true, "message": "Coupon created successfully", "data": { "id": 7, "code": "TEST2025", "name": "Test Coupon 2025", "description": "Test coupon for API testing", "discount_type": "percent", "discount_value": 15, "status": "active", "active_from": "", "active_to": "", "usage_limit": 0, "min_order_amount": 0, "max_discount_amount": 0, "created_at": "2025-08-21 11:07:00", "updated_at": "2025-08-21 11:07:00" } }