ReDoc documentation
Save a coupon.
required | object (sales-rule-data-coupon-interface) Interface CouponInterface |
200 Success.
400 Bad Request
401 Unauthorized
Internal Server error
Unexpected error
{- "coupon": {
- "coupon_id": 0,
- "rule_id": 0,
- "code": "string",
- "usage_limit": 0,
- "usage_per_customer": 0,
- "times_used": 0,
- "expiration_date": "string",
- "is_primary": true,
- "created_at": "string",
- "type": 0,
- "extension_attributes": { }
}
}
{- "coupon_id": 0,
- "rule_id": 0,
- "code": "string",
- "usage_limit": 0,
- "usage_per_customer": 0,
- "times_used": 0,
- "expiration_date": "string",
- "is_primary": true,
- "created_at": "string",
- "type": 0,
- "extension_attributes": { }
}