ReDoc documentation
Get coupon by coupon id.
200 Success.
400 Bad Request
401 Unauthorized
Internal Server error
Unexpected error
{- "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": { }
}
Save a coupon.
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": { }
}