Notify all buyers of a digital product
POST
/digital_products/{id}/notify_buyersCosts 2 rate-limit points · Rate limits
Send the delivery / notification email to every buyer of a digital
product, instead of calling POST /orders/{id}/notify once per order.
Emails are sent in the background; the response returns the number of
orders queued without waiting for delivery. Discarded orders are skipped.
Path parameters
idstringRequiredThe digital product ID
Headers
X-Auth-TokenstringRequiredAPI key for authentication
Returns
digital_product_idstringExample:3e84eb8d-e1d9-4e92-a4b2-a419c7f1122fnotified_countintegerNumber of orders queued for notification
Errors
404
Resource not found
422
Validation failed
POST/digital_products/{id}/notify_buyers
curl -X POST "https://app.filemonk.io/api/v1/external/digital_products/{id}/notify_buyers" \
-H "X-Auth-Token: $FILEMONK_API_KEY"const res = await fetch("https://app.filemonk.io/api/v1/external/digital_products/{id}/notify_buyers", {
method: "POST",
headers: {
"X-Auth-Token": process.env.FILEMONK_API_KEY,
},
});
const data = await res.json();import os
import requests
res = requests.post(
"https://app.filemonk.io/api/v1/external/digital_products/{id}/notify_buyers",
headers={"X-Auth-Token": os.environ["FILEMONK_API_KEY"]},
)
data = res.json()require "net/http"
require "json"
uri = URI("https://app.filemonk.io/api/v1/external/digital_products/{id}/notify_buyers")
req = Net::HTTP::Post.new(uri, "X-Auth-Token" => ENV["FILEMONK_API_KEY"])
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)Response
{
"digital_product_id": "3e84eb8d-e1d9-4e92-a4b2-a419c7f1122f",
"notified_count": 1
}{
"error": "API key is required"
}{
"error": "Resource not found"
}No body
No body