---
title: Notification - API Direct Debit
slug: nicepay-api-non-snap-notification-api-direct-debit
description: Informasi tentang API Non-SNAP Payment - Notification - API Direct Debit yang terdapat pada sistem NICEPAY
image: https://archbee-image-uploads.s3.amazonaws.com/ZHvSjR5ZrsoxwKbJa3xmo/Ivl6L-visFVc1qgZsPq5M_rdrx9d8diaz-pgm07xfz2-test-1-1.png
icon: {"faIcon":"fa-solid fa-book"}
docTags: 
createdAt: 2022-12-01T07:50:35.000Z
---

# Tentang API Direct Debit Notification

***

NICEPAY akan mengirimkan *push notification* melalui parameter `dbProcessUrl` sesuai dengan informasi Merchant pada [Registration - API Direct Debit](docId\:VxFYMW2MFyiQVX-Rj9DRe). Merchant harus memastikan tidak melakukan Blacklist IP NICEPAY dan melakukan Whitelist IP NICEPAY untuk mendapatkan *push notification* yang hanya dikirim dari server NICEPAY.

| **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"}
Ketika notifikasi diterima pada `dbProcessUrl` Anda, kami sangat menyarankan Merchant untuk melakukan verifikasi notifikasi kembali dengan menggunakan [Status Inquiry - API Direct Debit](docId\:TvyS0QCC6pqcXX8NulLFr).
:::

| **Parameter**                                                                             | **Tipe** | **Ukuran** | **Deskripsi**                                                                                                                               | **Contoh / Catatan**                                             |
| ----------------------------------------------------------------------------------------- | -------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| `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\:DwzaQDD7DXZMECz80A6o8)&#xD;                                                                                             | JENC                                                             |
| `payMethod`<br /><font color="#2166ae">Required</font>                                    | N        | 2          | [Payment Method Code](docId\:g7inRV70XcSA9lP7bpmok)                                                                                         | 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:7CIX-U_4z295XgtNVEsbO)                                                                                        | 2                                                                |
| `instmntMon`<br /><font color="#2166ae">Required</font>                                   | N        | 2          | Installment Month<br />`1`: 1 Month/Full Payment, jika `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\:WdoGjBeqc1VmRdFJqG1ZE)                                                           | 1                                                                |
| `status`<br /><font color="#2166ae">Required</font>                                       | A        | 1          | Deposit Status: [Notification Status Code](docId\:CdRwf99UxER6PH64ADA2C) <br />`0` : Deposit<br />`1` : Reversal                            | 0                                                                |

:::hint{type="warning"}
Merchant harus melakukan perbandingan kembali terhadap setiap Merchant Token yang diterima dari Notification secara internal untuk mencegah notifikasi palsu/tidak berlaku.

&#x20;

**💡Contoh Kasus:**

Misalnya, Anda memiliki `merchantKey` yang digunakan untuk melakukan *generate* token, yaitu `1234`. Ketika `merchantToken` yang di-*generate* Merchant diketahui adalah `abcd`, sementara `merchantToken` yang didapatkan pada notifikasi adalah `abdd`, maka notifikasi tersebut dianggap **palsu/tidak berlaku.**
:::



## 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
```
:::

