API reference
Sandbox
A public webhook target that always answers 200
POST/
Sandbox helper. Register https://<this host>/sandbox/webhook-sink as a webhook URL to watch deliveries succeed before your own receiver exists.
Arguments: any JSON body.
Returns {received:true, signature:<MonetizePay-Signature header>}.
Errors: none.
Next step: replace it with your real receiver and verify signatures there.
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful Response | object |
| 413 | The request body is over 1048576 bytes, or its Content-Length is not a number (code payload_too_large). Every write method is checked, before routing. A body sent without a Content-Length (chunked) is accepted on /v1 and counted as it arrives; elsewhere it is refused. The connection is closed after this answer. Send a smaller body. | ErrorResponse |
Example
curl
curl -X POST "https://api.monetize.pay/sandbox/webhook-sink"Python
import requests
response = requests.post(
"https://api.monetize.pay/sandbox/webhook-sink",
)
print(response.json())Node.js
const response = await fetch("https://api.monetize.pay/sandbox/webhook-sink", {
method: "POST",
});
console.log(await response.json());