Simulate Interac webhook (non-production)
curl --request POST \
--url https://api-prod.blaaiz.com/api/external/mock/simulate-webhook/interac \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"interac_email": "customer@example.com",
"collection_name": "John Doe",
"amount": 100.5
}
'import requests
url = "https://api-prod.blaaiz.com/api/external/mock/simulate-webhook/interac"
payload = {
"interac_email": "customer@example.com",
"collection_name": "John Doe",
"amount": 100.5
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
interac_email: 'customer@example.com',
collection_name: 'John Doe',
amount: 100.5
})
};
fetch('https://api-prod.blaaiz.com/api/external/mock/simulate-webhook/interac', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://api-prod.blaaiz.com/api/external/mock/simulate-webhook/interac")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"interac_email\": \"customer@example.com\",\n \"collection_name\": \"John Doe\",\n \"amount\": 100.5\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-prod.blaaiz.com/api/external/mock/simulate-webhook/interac",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'interac_email' => 'customer@example.com',
'collection_name' => 'John Doe',
'amount' => 100.5
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"message": "Webhook sent successfully"
}{
"message": "This endpoint is only available in development environment"
}{
"message": "Invalid or missing access token"
}Webhook
Simulate Interac webhook (non-production)
Sends a mock Interac collection webhook to your configured collection_url. Only available outside production; returns 400 in production. Required scope: mock:webhook:trigger.
POST
/
api
/
external
/
mock
/
simulate-webhook
/
interac
Simulate Interac webhook (non-production)
curl --request POST \
--url https://api-prod.blaaiz.com/api/external/mock/simulate-webhook/interac \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"interac_email": "customer@example.com",
"collection_name": "John Doe",
"amount": 100.5
}
'import requests
url = "https://api-prod.blaaiz.com/api/external/mock/simulate-webhook/interac"
payload = {
"interac_email": "customer@example.com",
"collection_name": "John Doe",
"amount": 100.5
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
interac_email: 'customer@example.com',
collection_name: 'John Doe',
amount: 100.5
})
};
fetch('https://api-prod.blaaiz.com/api/external/mock/simulate-webhook/interac', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://api-prod.blaaiz.com/api/external/mock/simulate-webhook/interac")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"interac_email\": \"customer@example.com\",\n \"collection_name\": \"John Doe\",\n \"amount\": 100.5\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-prod.blaaiz.com/api/external/mock/simulate-webhook/interac",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'interac_email' => 'customer@example.com',
'collection_name' => 'John Doe',
'amount' => 100.5
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"message": "Webhook sent successfully"
}{
"message": "This endpoint is only available in development environment"
}{
"message": "Invalid or missing access token"
}Authorizations
Use your OAuth client credentials to obtain a short-lived Bearer token from POST /oauth/token.
Body
application/json
Response
Webhook sent successfully.
Was this page helpful?
⌘I

