---
title: Notification - API Paylater
slug: nicepay-api-non-snap-notification-api-paylater
description: Informasi tentang API Non-SNAP Payment - Notification - API Paylater yang terdapat pada sistem NICEPAY
image: https://archbee-image-uploads.s3.amazonaws.com/ZHvSjR5ZrsoxwKbJa3xmo/XqzBZX2xE6ooqAYHuoHBW_nicepay-docs-logo.png
icon: {"faIcon":"fa-solid fa-book"}
docTags: 
createdAt: 2022-12-01T07:51:03.000Z
---

# Tentang API Paylater Notification

***

NICEPAY mengirimkan *push notification* yang dikirim melalui `dbProcessUrl` Merchant. 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 Paylater Notification

***

:::hint{type="info"}
Ketika notifikasi diterima pada `dbProcessUrl` Anda, kami sangat menyarankan Merchant untuk melakukan verifikasi notifikasi kembali dengan menggunakan [Status Inquiry - API Paylater](docId\:r6YyG1qEKKLzWnVhazxCV).
:::

| **Parameter**                                                           | **Tipe** | **Ukuran** | **Deskripsi**                                                                                                          | **Contoh / Catatan**                                             |
| ----------------------------------------------------------------------- | -------- | ---------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| `tXid `                                                                 | N        | 30         | Transaction ID                                                                                                         | PAYLOANTES06202212141610281704                                   |
| `merchantToken `                                                        | AN       | 255        | Merchant Token                                                                                                         | 0716e8cbb7bac584efa98df5021543e11fab1a520415f1382572eadcca81107f |
| `referenceNo `                                                          | ANS      | 40         | Merchant Order Number                                                                                                  | ord20221214161263                                                |
| `payMethod `                                                            | N        | 2          | [Payment Method Code](docId\:g7inRV70XcSA9lP7bpmok)                                                                    | 06                                                               |
| `amt `                                                                  | N        | 12         | Payment Amount                                                                                                         | 25145                                                            |
| `goodsNm`                                                               | AN       | 100        | Goods Name                                                                                                             | Testing                                                          |
| `matchCl`                                                               | N        | 1          | Payment Flag: [Notification Match Amount Indicator](docId\:WdoGjBeqc1VmRdFJqG1ZE)                                      | Null                                                             |
| `status`                                                                | A        | 1          | Deposit Status: <br />[Notification Status Code](docId\:CdRwf99UxER6PH64ADA2C) <br />`0` : Deposit<br />`1` : Reversal | 0                                                                |
| `mitraCd`                                                               | A        | 4          | [Mitra Code](docId\:DwzaQDD7DXZMECz80A6o8)                                                                             | KDVI                                                             |
| `transTm`                                                               | N        | 6          | Transaction Time (`HH24MISS`)                                                                                          | 155852                                                           |
| `clientUserKey`<br /><font color="#2166ae">Mandatory if tokenize</font> | AN       | 100        | User Key, Must be Unique for Each Customer                                                                             | 1134431                                                          |
| `billingNm`                                                             | A        | 100        | Buyer Name                                                                                                             | John-Doe                                                         |
| `transDt`                                                               | N        | 8          | Transaction Date                                                                                                       | 20221214                                                         |
| `currency`                                                              | A        | 3          | Currency                                                                                                               | IDR                                                              |
| `tokenizeUser`                                                          | N        | 1          | Transaction Tokenize Type                                                                                              | 1                                                                |
| `userToken`                                                             | ANS      | 255        | User Token                                                                                                             | 12345eea9-6234-6789-12r3-123re3456tt5                            |



# Additional Parameter for Others Payment Method Notification

***

| **Parameter** | **Tipe** | **Ukuran** | **Deskripsi**                               |
| ------------- | -------- | ---------- | ------------------------------------------- |
| `mitraCd`     | A        | 4          | [Mitra Code](docId\:DwzaQDD7DXZMECz80A6o8)  |
| `payNo`       | N        | 12         | Payment Number                              |
| `payValidDt`  | N        | 8          | Expiry Date (`YYYYMMDD`)                    |
| `payValidTm`  | N        | 6          | Expiry Time (`HH24MISS`)                    |
| `receiptCode` | ANS      | 20         | Authorization Number                        |
| `mRefNo`      | AN       | 18         | Reference Number                            |
| `depositDt`   | N        | 8          | Deposit Date (`YYYYMMDD`)                   |
| `depositTm`   | N        | 6          | Deposit Time (`HH24MISS`)                   |

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



**💡Contoh Kasus:**

Misalnya, Anda memiliki `merchantKey` yang digunakan untuk melakukan *generate&#x20;*&#x74;oken, yaitu 123&#x34;**.&#x20;**&#x4B;etika `merchantToken` yang di-*generate&#x20;*&#x4D;erchant diketahui adalah `abcd`, sementara `merchantToken` yang didapatkan pada notifikasi adalah `abdd`, maka notifikasi tersebut dianggap **palsu/tidak berlaku.**
:::



## Sample for Paylater Notification

***

:::CodeblockTabs
Sample POST for Paylater Notification

```none
merchantToken=0716e8cbb7bac584efa98df5021543e11fab1a520415f1382572eadcca81107f
goodsNm=Testing
referenceNo=ord20221214161263
mitraCd=KDVI
transTm=155852
tXid=PAYLOANTES06202212141610281704
amt=25145
clientUserKey=1134431
billingNm=John-Doe
matchCl=null
userToken=12345eea9-6234-6789-12r3-123re3456tt5
payMethod=06
tokenizeUser=1
currency=IDR
transDt=20221214
status=0
```
:::

