This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a tipSettings
object.
You can't create a tipSettings
object with {"default": true}
.
You can only call this method when authenticated as a Wix app or Wix user identity.
Tip settings to create.
Created tip settings.
curl -X POST \
'https://www.wixapis.com/tip-settings/v1/tip-settings' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
"tipSettings": {
"presets": [
{
"value": 5,
"default": true
},
{
"value": 10
},
{
"value": 15
}
],
"tipType": "PERCENTAGE",
"allowCustomerTip": false,
"allowBusinessTipAtPayment": true,
"allowCustomAmount": true,
"staffDistributionMethod": "PROPORTIONAL",
"default": false
}
}'
{
"tipSettings": {
"id": "1338729c-7255-48f1-a66e-f6a8e4b6f9f3",
"tipType": "PERCENTAGE",
"presets": [
{
"value": 5,
"default": true
},
{
"value": 10,
"default": null
},
{
"value": 15,
"default": null
}
],
"allowCustomerTip": false,
"allowBusinessTipAtPayment": true,
"allowCustomAmount": true,
"staffDistributionMethod": "PROPORTIONAL",
"revision": "1",
"createdDate": "2024-09-23T08:16:35.039Z",
"updatedDate": "2024-09-23T08:16:35.039Z",
"default": false,
"appId": null,
"extendedFields": null
}
}
There are 2 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.