late 0.0.1089

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
Documentation
# CreateCommerceDiscountRequest

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**account_id** | **String** |  | 
**title** | **String** |  | 
**method** | **Method** |  (enum: code, automatic) | 
**r#type** | **Type** |  (enum: percentage, fixed_amount, free_shipping) | 
**code** | Option<**String**> | Required for method code. | [optional]
**percentage** | Option<**f64**> | For type percentage, e.g. 15 for 15%. | [optional]
**amount** | Option<**String**> | For type fixed_amount, a decimal in the store currency. | [optional]
**applies_on_each_item** | Option<**bool**> | fixed_amount only: take the amount off each item instead of once per order. | [optional]
**minimum_subtotal** | Option<**String**> | Minimum order subtotal, a decimal in the store currency. | [optional]
**minimum_quantity** | Option<**i32**> |  | [optional]
**usage_limit** | Option<**i32**> | Code discounts only: total uses allowed. | [optional]
**once_per_customer** | Option<**bool**> | Code discounts only. | [optional]
**starts_at** | Option<**String**> | Defaults to now. | [optional]
**ends_at** | Option<**String**> |  | [optional]
**product_ids** | Option<**Vec<String>**> |  | [optional]
**collection_ids** | Option<**Vec<String>**> |  | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)