hello,
Overview
Error Handling
Error Handling
Methods
- Account/
- Account/Auth/
- Account/Auth/TwoFactor/
- Account/BillingAddress/
- Account/ChangeOrder/Source/
- Account/ChatPassword/
- Account/Contact/
- Account/CreditCard/
- Account/Cycle/
- Account/Limits/
- Account/PasswordReset/
- Account/Paymethod/
- Account/SSH/Key/
- Account/Settings/
- Account/Subscriptions/
- Account/User/
- Account/User/StateData/
- Acronis/Backup/
- Asset/
- Asset/Connections/
- Asset/ControlPanel/Credentials/
- Asset/Measurements/
- Asset/Monitoring/
- Attribution/
- Basket/
- Basket/Domain/
- Basket/Item/
- Basket/Item/Config/
- Billing/
- Billing/Bill/
- Billing/Credit/
- Billing/CreditCard/Profile/
- Billing/Cycle/
- Billing/Invoice/
- Billing/Invoice/Preview/
- Billing/PayPal/Agreement/
- Billing/PayPal/Payment/
- Billing/Payment/
- Billing/Payment/Profile/
- BusinessEmail/Customer/
- BusinessEmail/Domain/
- Cloud/Backup/
- Cloud/Config/
- Cloud/IP/Pool/
- Cloud/Image/
- Cloud/Private/Parent/
- Cloud/Server/
- Cloud/Template/
- CloudSites/
- CloudSites/Usage/
- CodeGuard/User/
- Contact/
- Coupon/
- Coupon/Claim/
- Domain/
- Domain/Services/
- HostedEmail/Customer/
- HostedEmail/Domain/
- Licensing/
- Licensing/Cpanel/
- Licensing/Plesk/
- Market/Bundle/
- Market/Bundle/Package/
- Market/Cart/
- Market/Cart/Admin/Quote/
- Market/Cart/Discount/
- Market/Cart/Helpers/Configurator/
- Market/Cart/Item/
- Market/Package/
- Market/Package/Product/
- Market/Place/
- Meta/Timing/
- Migration/
- Migration/Account/
- Migration/Account/Server/
- Migration/Account/Server/Access/
- Migration/Destination/
- Monitoring/Bandwidth/
- Monitoring/Load/
- Monitoring/MWP/
- Monitoring/Services/
- Network/CDN/User/
- Network/CDN/Zone/
- Network/DNS/Domain/
- Network/DNS/Domain/Contact/
- Network/DNS/Domain/Nameserver/
- Network/DNS/Domain/Transfer/
- Network/DNS/Record/
- Network/DNS/Reverse/
- Network/DNS/Zone/
- Network/DNS/Zone/History/
- Network/Firewall/
- Network/Firewall/Ruleset/
- Network/IP/
- Network/LoadBalancer/
- Network/Pool/
- Network/Private/
- Network/Region/
- Network/SSHKey/
- Network/Util/
- Network/Zone/
- Notifications/
- OneTimeSecret/
- Order/AddOn/
- Product/
- Product/Addon/
- Product/Marketplace/
- Product/Series/
- Project/
- SSL/Certificate/
- Salesforce/Account/InterWorx/
- Salesforce/Chat/Auth/
- Salesforce/User/
- Server/
- Server/Auth/
- Server/Power/
- Server/VirtualDomain/
- Server/WHM/AccessHash/
- Server/WHM/DNS/
- Server/WHM/Firewall/
- Signup/Basic/
- Storage/Block/Cluster/
- Storage/Block/Volume/
- Storage/ObjectStore/
- Support/Alert/
- Support/Request/
- Support/Request/Attachment/
- Support/SystemStatus/
- Support/Ticket/Auth/
- Tags/Product/
- UserTask/
- Utilities/Info/
- VIP/
- VMware/vCloud/vDC/
- VPN/
- VPN/User/
- WWW/Cart/
- WordPress/Domain/
API Documentation (API Version bleed)
Coupon/
DESCRIPTION
API methods for interacting with Coupons
A coupon tracks campaigns of discounts on products, or rebates given on order of certain items. A coupon applies to specific product categories, and is limited in the number of customers that may claim one.
claim
URL:
https://api.liquidweb.com/bleed/Coupon/claim
Description:
Claim a coupon
Parameters:
Parameter | Type | Notes |
---|---|---|
brand | One of: 'LiquidWeb', 'Storm' | * Optional
|
claim_origin | The value: 'order' | |
code | A 6 to 40 character coupon code | * Required |
A valid email address. | * Required |
Returns:
Field | Type | Notes |
---|---|---|
amount | A positive integer value (i.e. 1 and up). | |
amount_unit | One of: 'dollars', 'percent' | |
code | A valid UUID (Universally Unique IDentifier). | |
coupon_code | A 6 to 40 character coupon code | |
created | A valid date and time in YYYY-MM-DD HH:MM:SS format, or a DateTime object. | |
A valid email address. | ||
force | A boolean value (0 or 1). | * Optional |
method | One of: 'fixed', 'percent', 'percent_mrc' | |
redeemed | A boolean value (0 or 1). |
Possible Errors:
Refer to the Error Handling documentation for the list of exception types
details
URL:
https://api.liquidweb.com/bleed/Coupon/details
Description:
Return details about a coupon
Parameters:
Parameter | Type | Notes |
---|---|---|
alsowith | An array of One of: 'categories', 'products' | |
code | A 6 to 40 character coupon code | * Required |
Returns:
Field | Type | Notes |
---|---|---|
active | A boolean value (0 or 1). | |
amount | A positive floating-point value requiring a leading whole number. | |
amount_unit | One of: 'dollars', 'percent' | |
available | A boolean value (0 or 1). | |
callout | A string of text, containing no newlines or other control characters. | |
code | A 6 to 40 character coupon code | |
customer_type | One of: 'all', 'existing', 'new' | |
internal | A boolean value (0 or 1). | |
landing_page | A correctly formed absolute path | * Optional |
method | One of: 'fixed', 'offset', 'percent', 'percent_mrc' | |
name | A string of text, containing no newlines or other control characters. | |
repetitions | A positive integer value (i.e. 1 and up). | * Required if:
|
Possible Errors:
Refer to the Error Handling documentation for the list of exception types