---
title: Approve Transaction - API Payout (Disbursement) SNAP
slug: nicepay-api-snap-approve-transaction-payout-disbursement
description: Informasi tentang Approve Transaction - API Payout (Disbursement) SNAP yang terdapat pada sistem NICEPAY
image: https://archbee-image-uploads.s3.amazonaws.com/ZHvSjR5ZrsoxwKbJa3xmo/1PDZFwx2j7j8CAeALqIH2_microsoftteams-image.png
icon: {"faIcon":"fa-solid fa-book"}
docTags: 
createdAt: 2023-02-17T11:10:31.000Z
---

# Tentang Request Approve - API Payout (Disbursement) SNAP

***

API ini digunakan untuk menyetujui proses yang diajukan pada saat pendaftaran. Kemudian, data transaksi akan lanjut untuk dieksekusi.



# Request Approve - API Payout (Disbursement) SNAP

***

:::hint{type="warning"}
Silakan mengajukan akses token terlebih dahulu untuk melakukan autentikasi melalui bagian [Request Access Token API - SNAP](docId\:GcGqBIYXG1Etcd0Ji9cHX).
:::

| **API Endpoint** | [`/nicepay/api/v1.0/transfer/approve`](https://dev.nicepay.co.id/nicepay/api/v1.0/transfer/approve) |
| ---------------- | --------------------------------------------------------------------------------------------------- |
| **HTTP Method**  | **POST**                                                                                            |
| **Description**  | Approve Payout Transaction&#xD;                                                                     |
| **Content-type** | `application/json`                                                                                  |



## Request Approve Disbursement Header Parameter

| **Parameter**   | **Tipe** | **Ukuran** | **Kebutuhan** | **Deskripsi**                                                                                                                                                                     | **Contoh**   |
| --------------- | -------- | ---------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| `Content-Type`  | String   | 127        | Mandatory     | `Application/JSON`                                                                                                                                                                |              |
| `Authorization` | String   | Variable   | Mandatory     | Bearer “`accessToken`”                                                                                                                                                            |              |
| `X-TIMESTAMP`   | String   | 25         | Mandatory     | Using ISO 8601 as timestamp format.<br />Transaction date time, in format `YYYYMMDDTHH:mm:ss+07:00`.<br />Time must be in GMT+7 (Jakarta time).<br />`2022-03-21T10:11:40+07:00`. |              |
| `X-SIGNATURE`   | String   | Variable   | Mandatory     | Signature will be generated by Merchant.<br />[Panduan X-Signature - Symmetric](docId\:UZex33ReLyENKOgbJJnYp)                                                                     |              |
| `X-PARTNER-ID`  | String   | 20         | Mandatory     | Unique Partner ID, Partner ID = Client ID                                                                                                                                         |              |
| `X-EXTERNAL-ID` | String   | 40         | Mandatory     | Unique messaging Reference ID generated by<br />Merchant. Numeric String. Reference number that<br />should be unique in every transaction.                                       |              |
| `CHANNEL-ID`    | String   | 20         | Mandatory     | Unique Channel Merchant Credential ID Number.<br />Client ID + "01" =  Channel ID <br />`"IONPAYTEST" + "01" = "IONPAYTEST01"`                                                    | IONPAYTEST01 |



## Request Approve Disbursement Body Parameter

| **Parameter**                | **Tipe** | **Ukuran** | **Kebutuhan** | **Deskripsi**                                              |
| ---------------------------- | -------- | ---------- | ------------- | ---------------------------------------------------------- |
| `originalPartnerReferenceNo` | String   | 40         | Mandatory     | Original transaction identifier on consumer system         |
| `originalReferenceNo`        | String   | 40         | Mandatory     | Original transaction identifier on service provider system |
| `merchantId`                 | String   | 10         | Mandatory     | Merchant identifier that is unique per each Merchant       |



## Response Approve Disbursement Parameter

| **Parameter**                | **Tipe**                  | **Ukuran** | **Kebutuhan** | **Deskripsi**                                                                                                                       |
| ---------------------------- | ------------------------- | ---------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `responseCode`               | String                    | 7          | Mandatory     | Refer to [General Response Code and Message - API SNAP](docId\:lKqJXSl5CMKdXYXxHYYSs)                                               |
| `responseMessage`            | String                    | 150        | Mandatory     | Refer to [General Response Code and Message - API SNAP](docId\:lKqJXSl5CMKdXYXxHYYSs)                                               |
| `originalReferenceNo`        | String                    | 40         | Mandatory     | Original transaction identifier on service provider system                                                                          |
| `originalPartnerReferenceNo` | String                    | 40         | Mandatory     | Original transaction identifier on service provider system. Must be filled upon<br />successful transaction.                        |
| `beneficiaryAccountNo`       | String                    | 25         | Mandatory     | Beneficiary Account Number                                                                                                          |
| `beneficiaryName`            | String                    | 100        | Mandatory     | Beneficiary Name                                                                                                                    |
| `beneficiaryBankCode`        | String                    | 4          | Mandatory     | Beneficiary [Bank Code - API SNAP](docId:9WOQy5-1hlf_uCwshSDHO)                                                                     |
| `amount`                     | Array of JSON<br />Object | Variable   | Mandatory     | Amount Information<br />`"amount": {...}`                                                                                           |
| `value`                      | String                    | 12         | Mandatory     | Transaction amount, If it’s IDR then value<br />includes 2 decimal digits.<br />e.g. IDR 10.000,- will be placed with<br />10000.00 |
| `currency`                   | String                    | 3          | Mandatory     | Currency code based on ISO                                                                                                          |
| `transactionStatus`          | String                    | 2          | Mandatory     | [Transaction Status - API SNAP](docId\:XxlWrB0Q8XVkSMaO7ti9a)                                                                       |



## Sample Parameter

:::CodeblockTabs
Request Body

```json
//HEADER SECTION
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJJT05QQVlURVNUIiwiaXNzIjoiTklDRVBBWSIsIm5hbWUiOiJCUklOIiwiZXhwIjoiMjAyNC0wMi0xMVQwODowOTozNVoifQ==.aIybLX36dYwfFvW7dcoenXkOe2EAwIYq84ZtPuIf3K8=
X-TIMESTAMP: 2024-12-31T10:11:40+07:00
X-SIGNATURE: ufBw7R8RhW79IOiV/Hlv607M60qzAYBv8uZmbSrYb6/Thlo/FhQVP4xRyelUehoSS9o+QS6vWTKb/ygtucC+tQ==
X-PARTNER-ID :IONPAYTEST
X-EXTERNAL-ID: eXid202402111402271707638104
CHANNEL-ID: IONPAYTEST

{
  "merchantId": "IONPAYTEST",
  "originalReferenceNo": "IONPAYTEST07202302221348332909",
  "originalPartnerReferenceNo": "order1677048512514"
}
```

Sample Response

```json
{
    "responseCode": "2000000",
    "responseMessage": "Successful",
    "originalPartnerReferenceNo": "order1677048512514",
    "originalReferenceNo": "IONPAYTEST07202302221348332909",
    "beneficiaryAccountNo": "5345000060",
    "beneficiaryName": "NICEPAY",
    "beneficiaryBankCode": "CENA",
    "amount": {
        "value": "10000.00",
        "currency": "IDR"
    },
    "transactionStatus": "03"
}
```
:::

