Skip to content

Set shop default voucher

PUT
/shops/{id}/settings/default_voucher
curl --request PUT \
--url https://example.com/shops/example/settings/default_voucher \
--header 'Content-Type: application/json' \
--data '{ "conditions": "example", "code": "example", "type": "amount", "value": "NaN", "unit": "example" }'
id
required
string
Media type application/json
object
conditions
required
string
code
required
string
type
required
string
Allowed values: amount gift percentage
value
required
Any of:
number
unit
required
string
Media type application/json
object
conditions
required
string
code
required
string
type
required
string
value
required
Any of:
number
unit
required
string
Example
{
"value": "NaN"
}