Updates specific merchant settings, based on the provided fields. Fields not provided will not be updated.
Security
api_key
The merchant's credit discount combinations settings. Fields will default to existing settings OR false if not provided.
Whether unique discount codes are enabled for one_time_purchase, subscription, or both.
Enum:"one_time_purchase""subscription""both"
Whether general discount codes are enabled for one_time_purchase, subscription, or both.
Enum:"one_time_purchase""subscription""both"
Whether signup discounts are enabled for one_time_purchase, subscription, or both.
Enum:"one_time_purchase""subscription""both"
- https://public.inveterateapi.comhttps://public.inveterateapi.com/v2.0/admin/merchant
curl -i -X PATCH \
https://public.inveterateapi.com/v2.0/admin/merchant \
-H 'Content-Type: application/json' \
-H 'X-Inveterate-Api-Key: YOUR_API_KEY_HERE' \
-d '{
"creditExpirationEnabled": true,
"creditsEnabled": true,
"creditDiscountCombinations": {
"productDiscounts": null,
"orderDiscounts": null,
"shippingDiscounts": null
},
"uniqueDiscountCodes": "one_time_purchase",
"generalDiscountCodes": "one_time_purchase",
"signUpDiscounts": "one_time_purchase",
"creditExpirationDays": 1
}'Returned upon successful direct action to our database. Action is immediate.
The message associated with the response. Generally, the message only confirms the requested action. In the case of errors, the message will give insight into the source of the error.
Response
{ "message": "Success", "data": { "id": 1, "name": "John Doe" } }