---
title: Notification - API Direct Debit
slug: en/nicepay-api-non-snap-notification-api-direct-debit
description: Information about Non-SNAP Payment API - Notification - Direct Debit API available on NICEPAY system
image: https://archbee-image-uploads.s3.amazonaws.com/ZHvSjR5ZrsoxwKbJa3xmo/LDiVDMG_an-uB2ZLqksaw_microsoftteams-image.png
icon: {"faIcon":"fa-solid fa-book"}
docTags: 
createdAt: 2022-12-01T07:50:35.000Z
---

# About API Direct Debit Notification

***

NICEPAY will send push notifications via the `dbProcessUrl` parameter based on the Merchant information provided in the [Registration - API Direct Debit](docId\:yfZlLpmX5PMjgr6-qcMAj). The Merchant needs to reassure there is no Blacklist NICEPAY IP and should Whitelist NICEPAY IP to get the push notification only from NICEPAY's server.

| **Request Method**  | <font color="#3b9f0f">**POST**</font>****                                                                                                                                                       |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Merchant Token**  | SHA256 ( `iMid`+  `tXid` + `amt`+ `merchantKey`)                                                                                                                                                |
| **IP**              | IP Public environtment Production:<br />`103.20.51.34`<br />`103.20.51.33`<br />`18.98.96.50`<br /><br />IP Public environtment Dev:<br />`103.20.51.39`<br />`103.20.51.40`<br />`18.98.96.54` |
| **User-Agent**      | `User-Agent: Jakarta Commons-HttpClient/3.1`                                                                                                                                                    |



# Notification Parameter Direct Debit Notification

***

:::hint{type="info"}
When your `dbProcessUrl` received a notification, NICEPAY strongly recommend Merchant to verify the notification using the [Status Inquiry - API Direct Debit](docId\:k3CQyBZOjMwER6XQaFXEt).
:::

| **Parameter**                                                                             | **Type** | **Length** | **Description**                                                                                                                           | **Example / Notes**                                              |
| ----------------------------------------------------------------------------------------- | -------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| `tXid`<br /><font color="#2166ae">Required</font>                                         | N        | 30         | Transaction ID                                                                                                                            | TNICECP04100202210201205567417                                   |
| `merchantToken`<br /><font color="#2166ae">Required</font>                                | AN       | 255        | Merchant Token                                                                                                                            | ecd49958d29595d09cd7ccab6057e9db119dfeb83676c27fb7649d3393b911aa |
| `referenceNo`<br /><font color="#2166ae">Required</font>                                  | ANS      | 40         | Merchant Order Number                                                                                                                     | ORD20250307130386                                                |
| `mitraCd`<br /><font color="#2166ae">Required</font>                                      | A        | 4          | [Mitra Code](docId\:Tm257gq3DxgZf98uZ0l33)&#xD;                                                                                           | JENC                                                             |
| `payMethod`<br /><font color="#2166ae">Required</font>                                    | N        | 2          | [Payment Method Code](docId\:IifMsRUUw7j9VMWeFJz97)                                                                                       | 04                                                               |
| `payNo`<br /><font color="#2166ae">Optional</font>                                        | N        | 20         | Payment Number                                                                                                                            | 504100002539                                                     |
| `payValidTm`<br /><font color="#2166ae">Optional</font>                                   | N        | 6          | CVS Expiry Time  (`HH24MISS`)                                                                                                             | null                                                             |
| `payValidDt`<br /><font color="#2166ae">Optional</font>                                   | N        | 8          | Expiry Date (`YYYYMMDD`)                                                                                                                  | null                                                             |
| `amt`<br /><font color="#2166ae">Required</font>                                          | N        | 12         | Payment Amount                                                                                                                            | 10000                                                            |
| `clientUserKey`<br />﻿<font color="#2166ae">Mandatory if tokenize﻿</font>&#xD;<br />&#xD; | AN       | 100        | User Key, Must be Unique for Each Customer&#xD;                                                                                           | 1134431                                                          |
| `userToken`<br /><font color="#2166ae">Optional</font>                                    | ANS      | 255        | User Token                                                                                                                                | 12345eea9-6234-6789-12r3-123re3456tt5                            |
| `tokenizeUser`<br /><font color="#2166ae">Optional</font>                                 | N        | 1          | Transaction Tokenize Type&#xD;                                                                                                            | 1                                                                |
| `transDt`<br /><font color="#2166ae">Optional</font>                                      | N        | 8          | Transaction Date                                                                                                                          | 20221020                                                         |
| `transTm`<br /><font color="#2166ae">Optional</font>                                      | N        | 6          | Transaction Time                                                                                                                          | 120803                                                           |
| `currency`<br /><font color="#2166ae">Required</font>                                     | A        | 3          | Currency                                                                                                                                  | IDR                                                              |
| `goodsNm`<br /><font color="#2166ae">Required</font>                                      | AN       | 100        | Goods Name                                                                                                                                | John Doe                                                         |
| `billingNm`<br /><font color="#2166ae">Required</font>                                    | A        | 100        | Billing Name                                                                                                                              | John-Doe                                                         |
| `receiptCode`<br /><font color="#2166ae">Required</font>                                  | ANS      | 20         | Authorization Number                                                                                                                      | 951523387713                                                     |
| `instmntType`<br /><font color="#2166ae">Required</font>                                  | N        | 2          | [Installment Type Code](docId\:RT2C32S9hfl_aOhYoebv5)                                                                                     | 2                                                                |
| `instmntMon`<br /><font color="#2166ae">Required</font>                                   | N        | 2          | Installment Month<br />`1`: 1 Month/Full Payment, if `instmntType`*:* *null/1*<br />`3`: 3 Months<br />`6`: 6 Months<br />`12`: 12 Months | 1                                                                |
| `mRefNo`<br /><font color="#2166ae">Required</font>                                       | AN       | 18         | Reference Number                                                                                                                          | 202503071335234                                                  |
| `matchCl`<br /><font color="#2166ae">Required</font>                                      | N        | 1          | Payment Flag: [Notification Match Amount Indicator](docId:_wBzuZhpBdoyCDEhLbBX9)                                                          | 1                                                                |
| `status`<br /><font color="#2166ae">Required</font>                                       | A        | 1          | Deposit Status: [Notification Status Code](docId\:UCni27UfonCK8_zTtM-mV) <br />`0` : Deposit<br />`1` : Reversal                          | 0                                                                |

:::hint{type="warning"}
Merchant must compare again every Merchant Token received by the Notification internally to prevent fake/invalid notifications.

&#x20;

**💡Example Case:**

For example, you have a `merchantKey` that is used to generate a token, which is `1234`. When the `merchantToken` generated by the Merchant is known, it is `abcd`, while the `merchantToken` obtained in the notification is `abdd`. Then the notification is considered **fake/invalid**.
:::



## Sample for Direct Debit Notification

***

:::CodeblockTabs
Sample POST for Direct Debit) Notification

```none
merchantToken=ecd49958d29595d09cd7ccab6057e9db119dfeb83676c27fb7649d3393b911aa
goodsNm=John Doe
referenceNo=ORD20250307130386
transTm=133600
tXid=TNICECP04104202503071335233256
amt=10000
receiptCode=951523387713
instmntType=2
billingNm=John Doe
matchCl=1
mRefNo=202503071335234
payMethod=04
currency=IDR
instmntMon=1
transDt=20250307
status=0
```
:::

