Set your default markup percent
curl --request PATCH \
--url https://api.wizzgift.com/retailer/v1/account \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"defaultMarkupPercent": 5
}
'const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({defaultMarkupPercent: 5})
};
fetch('https://api.wizzgift.com/retailer/v1/account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wizzgift.com/retailer/v1/account"
payload = { "defaultMarkupPercent": 5 }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wizzgift.com/retailer/v1/account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'defaultMarkupPercent' => 5
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"pricing": {
"marginDiscountPercent": 123,
"defaultMarkupPercent": 123,
"maxMarkupPercent": 123
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API key"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "B2B_LIMIT_EXCEEDED",
"message": "Daily spend cap exceeded",
"details": {
"limit": "dailySpendCapUSD",
"limitValue": 5000,
"current": 4800,
"requested": 400,
"window": "day",
"tier": "starter"
}
},
"requestId": "req_8f3k2"
}{
"error": "Too many requests",
"message": "<string>"
}Retailer · Account
Set your default markup percent
defaultMarkupPercent is applied to every checkout that does not send
an explicit markupPercent; capped by the tier’s maxMarkupPercent.
PATCH
/
retailer
/
v1
/
account
Set your default markup percent
curl --request PATCH \
--url https://api.wizzgift.com/retailer/v1/account \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"defaultMarkupPercent": 5
}
'const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({defaultMarkupPercent: 5})
};
fetch('https://api.wizzgift.com/retailer/v1/account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wizzgift.com/retailer/v1/account"
payload = { "defaultMarkupPercent": 5 }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wizzgift.com/retailer/v1/account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'defaultMarkupPercent' => 5
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"pricing": {
"marginDiscountPercent": 123,
"defaultMarkupPercent": 123,
"maxMarkupPercent": 123
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API key"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "B2B_LIMIT_EXCEEDED",
"message": "Daily spend cap exceeded",
"details": {
"limit": "dailySpendCapUSD",
"limitValue": 5000,
"current": 4800,
"requested": 400,
"window": "day",
"tier": "starter"
}
},
"requestId": "req_8f3k2"
}{
"error": "Too many requests",
"message": "<string>"
}Authorizations
API key (wg_live_…) created in the dashboard (Account → API Keys).
Shown once at creation; only a hash is stored server-side.
Body
application/json
Required range:
x >= 0Example:
5
Response
Updated pricing block.
Show child attributes
Show child attributes
⌘I