---
title: Unbinding - Account Binding API E-Wallet (Direct Debit) SNAP
slug: nicepay-api-snap-unbinding-account-binding-e-wallet-direct-debit
description: Informasi tentang Unbinding - Account Binding API E-Wallet (Direct Debit) SNAP yang terdapat pada sistem NICEPAY
image: https://archbee-image-uploads.s3.amazonaws.com/ZHvSjR5ZrsoxwKbJa3xmo/m1vFbrr7yY63cBOBbC7wk_microsoftteams-image.png
icon: {"faIcon":"fa-solid fa-book"}
docTags: 
createdAt: 2025-05-15T08:52:17.184Z
---

# Tentang Unbinding - Account Binding API E-Wallet (Direct Debit) SNAP

***

API ini digunakan untuk melakukan pemutusan *account binding* terhadap akun pengguna milik Pelanggan yang terhubung dengan metode pembayaran E-Wallet sesuai standar SNAP.



Unbinding - Account Binding API E-Wallet (Direct Debit) SNAP
============================================================

***

| **Service Code** | `09`                                               |
| ---------------- | -------------------------------------------------- |
| **API Endpoint** | `/nicepay/api/v1.0/registration-account-unbinding` |
| **Method**       | `POST`                                             |



## Request Header Parameter for Unbinding - Account Binding API E-Wallet (Direct Debit) SNAP

| **Parameter**   | **Tipe** | **Ukuran** | **Kebutuhan** | **Deskripsi**                                                                                                                     |
| --------------- | -------- | ---------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `Content-Type`  | String   | Variable   | Mandatory     | Content type, value always `application/json`                                                                                     |
| `Authorization` | String   | Variable   | Mandatory     | Bearer “`accessToken`”                                                                                                            |
| `X-TIMESTAMP`   | String   | Variable   | Mandatory     | Transaction date time, in format `YYYY-MMDDTHH:mm:ss+07:00`. Time must be in GMT+7 (Jakarta time)                                 |
| `X-SIGNATURE`   | String   | Variable   | Mandatory     | Signature will be generated automatically by Merchant                                                                             |
| `X-PARTNER-ID`  | String   | 10         | Mandatory     | Unique Partner ID, Partner ID = Client ID                                                                                         |
| `X-EXTERNAL-ID` | String   | 40         | Mandatory     | Unique messaging Reference ID generated by Merchant. Numeric String. Reference number that should be unique in every transaction. |
| `CHANNEL-ID`    | String   | 5          | Mandatory     | Device identification on which the API services is currently being accessed by the End User (Customer)                            |



## Request Body Parameter for Unbinding - Account Binding API E-Wallet (Direct Debit) SNAP

| **Parameter**        | **Tipe**              | **Ukuran** | **Kebutuhan** | **Deskripsi**                                                                   |
| -------------------- | --------------------- | ---------- | ------------- | ------------------------------------------------------------------------------- |
| `partnerReferenceNo` | String                | 40         | Mandatory     | Original transaction identifier on service provider system                      |
| `merchantId`         | String                | 10         | Mandatory     | Merchant identifier that is unique per each Merchant                            |
| `additionalInfo`     | JSON&#xD;<br />Object | Variable   | Mandatory     | Additional information                                                          |
| `referenceNo`        | String                | 40         | Mandatory     | NICEPAY Transaction ID                                                          |
| `mitraCd`            | String                | 4          | Mandatory     | NICEPAY Mitra Code Example :<br />AstraPay : `ASTR`&#xD;<br />AlloBank : `ALLO` |
| `authCode`           | String                | 30         | Mandatory     | Authentication Code for Merchant                                                |



## Response Header Parameter for Unbinding - Account Binding API E-Wallet (Direct Debit) SNAP

| **Parameter**  | **Tipe** | **Ukuran** | **Kebutuhan** | **Deskripsi**                                                                                     |
| -------------- | -------- | ---------- | ------------- | ------------------------------------------------------------------------------------------------- |
| `Content-Type` | String   | Variable   | Mandatory     | Content type, value always `application/json`                                                     |
| `X-TIMESTAMP`  | String   | Variable   | Mandatory     | Transaction date time, in format `YYYY-MMDDTHH:mm:ss+07:00`. Time must be in GMT+7 (Jakarta time) |



## Response Body Parameter for Unbinding - Account Binding API E-Wallet (Direct Debit) SNAP

| **Parameter**        | **Tipe** | **Ukuran** | **Kebutuhan** | **Deskripsi**                                                                        |
| -------------------- | -------- | ---------- | ------------- | ------------------------------------------------------------------------------------ |
| `responseCode`       | String   | 7          | Mandatory     | Refer to response code list                                                          |
| `responseMessage`    | String   | 150        | Mandatory     | Debug message to provide more&#xD;<br />information                                  |
| `referenceNo`        | String   | 40         | Mandatory     | NICEPAY Transaction ID                                                               |
| `partnerReferenceNo` | String   | 40         | Mandatory     | Merchant transaction identifier                                                      |
| `additionalInfo`     | String   | Variable   | Mandatory     | Additional information                                                               |
| `mitraCd`            | String   | 4          | Mandatory     | NICEPAY Mitra Code Example :&#xD;<br />AstraPay : `ASTR`&#xD;<br />AlloBank : `ALLO` |
| `redirectUrl`        | String   | 256        | Optional      | Redirect URL to process unbinding account                                            |



## Sample Parameter for Unbinding - Account Binding API E-Wallet (Direct Debit) SNAP

***

### Request Parameter

:::CodeblockTabs
cURL

```curl
curl -X POST \
  'https://dev.nicepay.co.id/nicepay/api/v1.0/registration-account-unbinding' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJJT05QQVlURVNUIiwiaXNzIjoiTklDRVBBWSIsIm5hbWUiOiJCUklOIiwiZXhwIjoiMjAyNC0wMi0xMVQwODowOTozNVoifQ==.aIybLX36dYwfFvW7dcoenXkOe2EAwIYq84ZtPuIf3K8=' \
  -H 'X-TIMESTAMP: 2024-01-31T10:11:40+07:00' \
  -H 'X-SIGNATURE: ufBw7R8RhW79IOiV/Hlv607M60qzAYBv8uZmbSrYb6/Thlo/FhQVP4xRyelUehoSS9o+QS6vWTKb/ygtucC+tQ==' \
  -H 'X-PARTNER-ID: IONPAYTEST' \
  -H 'X-EXTERNAL-ID: tXid202410142300021707638093' \
  -H 'CHANNEL-ID: IONPAYTEST01' \
  -d '{"partnerReferenceNo":"2020102900000000000001","merchantId":"IONPAYTEST","additionalInfo":{"referenceNo":"IONPAYTEST05202208121451526358","mitraCd":"ASTR","authCode":"nlleyvaQcB2SOkVjtF7ceCuC16BiqCc6DRrjaKOnnfRdToW8Tr"}}'
```

Node.js

```nodejs
const config = {
  isProduction: false,
  privateKey: cons.privateKey,
  clientSecret: cons.clientSecret,
  clientId: "IONPAYTEST",
  isCloudServer: false,
};

const ACCESS_TOKEN = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJJT05QQVlURVNUIiwiaXNzIjoiTklDRVBBWSIsIm5hbWUiOiJCUklOIiwiZXhwIjoiMjAyNC0wMi0xMVQwODowOTozNVoifQ==.aIybLX36dYwfFvW7dcoenXkOe2EAwIYq84ZtPuIf3K8=";

const parameter = {
  body: {
    partnerReferenceNo: "2020102900000000000001",
    merchantId: "IONPAYTEST",
    additionalInfo: {
      referenceNo: "IONPAYTEST05202208121451526358",
      mitraCd: "ASTR",
      authCode: "nlleyvaQcB2SOkVjtF7ceCuC16BiqCc6DRrjaKOnnfRdToW8Tr" 
    }
  },
  headers: {
    X_EXTERNAL_ID: "tXid202410142300021707638093",
    CHANNEL_ID: "IONPAYTEST01",
  },
};

let snap = new Snap(config);
let endPoint = `/api/v1.0/registration-account-unbinding`; 
let response = snap
  .requestSnapTransaction(parameter, endPoint, ACCESS_TOKEN, "POST");
```
:::



### Response Parameter

:::CodeblockTabs
Sample Response

```json
{
    "responseCode": "2000900",
    "responseMessage": "Successful",
    "referenceNo": "IONPAYTEST05202208121451526358",
    "partnerReferenceNo": "2020102900000000000001",
    "additionalInfo": {
        "mitraCd": "ASTR",
        "redirectUrl": "https://redirect.com/account-unbinding/644efc4f9396cbf1075="
    }
}
```
:::

