POST

Create Custom Loyalty Earning Rule


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Creates a custom automated earning rule.

Currently, only social media earning rule is supported.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Loyalty
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/_api/loyalty-earning-rules/v1/earning-rules/custom

Body Params
typestringRequired

Type of the custom earning rule.


earningRuleEarningRule

Custom earning rule to create.

Response Object
earningRuleEarningRule

Created earning rule.

Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?