Commerce
Get a discount
GEThttps:/ / zernio.com/ api/ v1/ commerce/ discounts/ {discountId}
One discount with its value, targets, minimum, usage and schedule. Needs discounts.read.
PlatformsShopify
Authentication
AuthorizationBearer tokenRequired
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Path parameters
discountIdstringRequired
Platform-native id.
Query parameters
accountIdstringRequired
Connected store SocialAccount id.
Responses
Success· the request worked
Errors· the request failed
List discounts
The store's discounts (Shopify code and automatic discounts, WooCommerce coupons), cursor-paginated with `limit`, `cursor` and an optional `query`. Each discount lists its first 10 codes; `codeCount` has the total. Needs discounts.read.
Create a discount
Creates a code discount (buyers enter a code) or an automatic one (applied at checkout), as a percentage, a fixed amount or free shipping. It applies to every product unless productIds or collectionIds narrow it, and to every buyer.