Send Pre-Debit Notification
curl --request POST \
--url https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/ \
--header 'Content-Type: application/json' \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--header 'X-Merchant-ID: <api-key>' \
--data '
{
"debit_date": "2026-12-05",
"amount": 999,
"invoice_display_number": "COURSE-INV-2026-12"
}
'import requests
url = "https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/"
payload = {
"debit_date": "2026-12-05",
"amount": 999,
"invoice_display_number": "COURSE-INV-2026-12"
}
headers = {
"X-Client-ID": "<api-key>",
"X-Client-Secret": "<api-key>",
"X-Merchant-ID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-Client-Secret': '<api-key>',
'X-Merchant-ID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
debit_date: '2026-12-05',
amount: 999,
invoice_display_number: 'COURSE-INV-2026-12'
})
};
fetch('https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/",
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([
'debit_date' => '2026-12-05',
'amount' => 999,
'invoice_display_number' => 'COURSE-INV-2026-12'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Client-ID: <api-key>",
"X-Client-Secret: <api-key>",
"X-Merchant-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/"
payload := strings.NewReader("{\n \"debit_date\": \"2026-12-05\",\n \"amount\": 999,\n \"invoice_display_number\": \"COURSE-INV-2026-12\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-Merchant-ID", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/")
.header("X-Client-ID", "<api-key>")
.header("X-Client-Secret", "<api-key>")
.header("X-Merchant-ID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"debit_date\": \"2026-12-05\",\n \"amount\": 999,\n \"invoice_display_number\": \"COURSE-INV-2026-12\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-Client-Secret"] = '<api-key>'
request["X-Merchant-ID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"debit_date\": \"2026-12-05\",\n \"amount\": 999,\n \"invoice_display_number\": \"COURSE-INV-2026-12\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Pre-debit notification triggered successfully",
"data": {
"subscription_id": "SUB7989707770",
"debit_date": "2026-12-05",
"amount": "999.00",
"invoice_display_number": "COURSE-INV-2026-12",
"notification_sent": true
}
}Subscriptions
Send Pre-Debit Notification
Tell the buyer about an upcoming subscription debit. Required before every PayU and EximPe charge.
POST
/
pg
/
subscriptions
/
{subscription_id}
/
pre_debit_notification
/
Send Pre-Debit Notification
curl --request POST \
--url https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/ \
--header 'Content-Type: application/json' \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--header 'X-Merchant-ID: <api-key>' \
--data '
{
"debit_date": "2026-12-05",
"amount": 999,
"invoice_display_number": "COURSE-INV-2026-12"
}
'import requests
url = "https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/"
payload = {
"debit_date": "2026-12-05",
"amount": 999,
"invoice_display_number": "COURSE-INV-2026-12"
}
headers = {
"X-Client-ID": "<api-key>",
"X-Client-Secret": "<api-key>",
"X-Merchant-ID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-Client-Secret': '<api-key>',
'X-Merchant-ID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
debit_date: '2026-12-05',
amount: 999,
invoice_display_number: 'COURSE-INV-2026-12'
})
};
fetch('https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/",
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([
'debit_date' => '2026-12-05',
'amount' => 999,
'invoice_display_number' => 'COURSE-INV-2026-12'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Client-ID: <api-key>",
"X-Client-Secret: <api-key>",
"X-Merchant-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/"
payload := strings.NewReader("{\n \"debit_date\": \"2026-12-05\",\n \"amount\": 999,\n \"invoice_display_number\": \"COURSE-INV-2026-12\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-Merchant-ID", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/")
.header("X-Client-ID", "<api-key>")
.header("X-Client-Secret", "<api-key>")
.header("X-Merchant-ID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"debit_date\": \"2026-12-05\",\n \"amount\": 999,\n \"invoice_display_number\": \"COURSE-INV-2026-12\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-pacb-uat.eximpe.com/pg/subscriptions/{subscription_id}/pre_debit_notification/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-Client-Secret"] = '<api-key>'
request["X-Merchant-ID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"debit_date\": \"2026-12-05\",\n \"amount\": 999,\n \"invoice_display_number\": \"COURSE-INV-2026-12\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Pre-debit notification triggered successfully",
"data": {
"subscription_id": "SUB7989707770",
"debit_date": "2026-12-05",
"amount": "999.00",
"invoice_display_number": "COURSE-INV-2026-12",
"notification_sent": true
}
}Authorizations
Headers
Body
application/json
The upcoming debit's date, amount and invoice display number.