cURL
curl -X PATCH "https://dash.joinmarkt.com/api/merchant/v1/stores/STORE_ID/coupons/{couponId}" \
-H "Authorization: Bearer $JOIN_MARKT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"code":"example code","discountType":"percentage"}'const res = await fetch("https://dash.joinmarkt.com/api/merchant/v1/stores/STORE_ID/coupons/{couponId}", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.JOIN_MARKT_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"code": "example code",
"discountType": "percentage"
}),
})
const data = await res.json()import os, requests
res = requests.patch(
"https://dash.joinmarkt.com/api/merchant/v1/stores/STORE_ID/coupons/{couponId}",
headers={"Authorization": f"Bearer {os.environ['JOIN_MARKT_API_KEY']}"},
json={
"code": "example code",
"discountType": "percentage"
},
)
data = res.json(){}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}Update a coupon
Send only the fields you want to change.
Scope: coupon:update
This changes real data in your store, including when you press Send here.
PATCH
/
api
/
merchant
/
v1
/
stores
/
{storeId}
/
coupons
/
{couponId}
cURL
curl -X PATCH "https://dash.joinmarkt.com/api/merchant/v1/stores/STORE_ID/coupons/{couponId}" \
-H "Authorization: Bearer $JOIN_MARKT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"code":"example code","discountType":"percentage"}'const res = await fetch("https://dash.joinmarkt.com/api/merchant/v1/stores/STORE_ID/coupons/{couponId}", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.JOIN_MARKT_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"code": "example code",
"discountType": "percentage"
}),
})
const data = await res.json()import os, requests
res = requests.patch(
"https://dash.joinmarkt.com/api/merchant/v1/stores/STORE_ID/coupons/{couponId}",
headers={"Authorization": f"Bearer {os.environ['JOIN_MARKT_API_KEY']}"},
json={
"code": "example code",
"discountType": "percentage"
},
)
data = res.json(){}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}{
"error": "Product not found",
"code": "NOT_FOUND"
}Authorizations
Your Merchant API key. Create one in Dashboard → Developers → API keys.
Path Parameters
Your store id. Find it in Dashboard → Developers, or in GET /stores with MCP.
Coupon id. Accepts the internal id or the public id (for example PRD-…).
Body
application/json
Required string length:
1 - 50Available options:
percentage, fixed Required range:
0 <= x <= 1000000Required range:
0 <= x <= 1000000Required range:
0 <= x <= 1000000Required range:
0 < x <= 1000000Response
The updated coupon.
The response is of type object.

