---
title: Registration Payout
slug: nicepay-api-snap-testing-registration-payout
description: Informasi tentang cara uji coba API SNAP -  Registration Payout yang disediakan oleh NICEPAY
image: https://archbee-image-uploads.s3.amazonaws.com/ZHvSjR5ZrsoxwKbJa3xmo/Akg21hF14kr-bMMeRUmFg_rdrx9d8diaz-pgm07xfz2-test.png
docTags: 
createdAt: 2024-05-06T08:01:05.985Z
---

{
  "id": "yXIF5xlUVLbXgr1ZgTmyO",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://dev.nicepay.co.id/nicepay/api/v1.0/transfer/registration",
    "servers": [
      {
        "url": "https://dev.nicepay.co.id/nicepay/api/v1.0/transfer/registration"
      },
      {
        "url": "https://staging.nicepay.co.id/nicepay/api/v1.0/transfer/registration"
      },
      {
        "url": "https://www.nicepay.co.id/nicepay/api/v1.0/transfer/registration"
      }
    ],
    "name": "Registration Payout",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "kind": "required",
          "name": "X-TIMESTAMP",
          "type": "string",
          "example": "2022-08-28T10:11:40+07:00"
        },
        {
          "kind": "required",
          "name": "X-SIGNATURE",
          "type": "string",
          "default": "Ou8dyOrYUCQvLtHp97bK47ObWNsd4CJRIpPstWmvEGUWnaQ1opo6+zjhC+U4QWIFwpBZaL2EZKzxIsnpY29dCw=="
        },
        {
          "kind": "required",
          "name": "X-PARTNER-ID",
          "type": "string",
          "example": "IONPAYTEST"
        },
        {
          "kind": "required",
          "name": "X-EXTERNAL-ID",
          "type": "string",
          "example": "2023082823595900"
        },
        {
          "kind": "required",
          "name": "CHANNEL-ID",
          "type": "string",
          "example": "IONPAYTEST"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "example": "{\"beneficiaryAccountNo\":\"903327200\",\"description\":\"Test Snap Payout\",\"beneficiaryAddress\":\"Test Address\",\"payoutMethod\":\"0\",\"beneficiaryDOE\":\"220101\",\"msId\":\"\",\"deliveryId\":\"\",\"beneficiaryCoNo\":\"12345JP\",\"merchantId\":\"IONPAYTEST\",\"beneficiaryName\":\"Test\",\"beneficiaryPostalCode\":\"123456\",\"beneficiaryPhone\":\"081211111111\",\"partnerReferenceNo\":\"ref-998294194\",\"beneficiaryCoMgmtName\":\"Test Snap Payout\",\"beneficiaryMerCategory\":\"01\",\"amount\":{\"currency\":\"IDR\",\"value\":\"10000.00\"},\"beneficiaryCoShName\":\"\",\"beneficiaryPOE\":\"Test City\",\"reservedTm\":\"120000\",\"beneficiaryCustomerType\":\"1\",\"beneficiaryAuthPhoneNumber\":\"081211111111\",\"beneficiaryBankCode\":\"BBBA\",\"beneficiaryCustomerResidence\":\"1\",\"deliveryName\":\"Test\",\"reservedDt\":\"20230905\"}",
          "description": "",
          "customType": "registration_payout_body",
          "schema": [
            {
              "name": "merchantId",
              "kind": "required",
              "type": "string",
              "description": "Merchant identifier that is unique per each merchant",
              "example": ""
            },
            {
              "name": "msId",
              "kind": "optional",
              "type": "string",
              "description": "Merchant Seller Id",
              "example": ""
            },
            {
              "name": "beneficiaryAccountNo",
              "kind": "required",
              "type": "string",
              "description": "Beneficiary Account Number",
              "example": ""
            },
            {
              "name": "beneficiaryName",
              "kind": "required",
              "type": "string",
              "description": "Beneficiary Name",
              "example": ""
            },
            {
              "name": "beneficiaryPhone",
              "kind": "required",
              "type": "string",
              "description": "Beneficiary Phone",
              "example": ""
            },
            {
              "name": "beneficiaryCustomerResidence",
              "kind": "required",
              "type": "string",
              "description": "1 = Indonesia, 2 = Non Indonesia",
              "example": ""
            },
            {
              "name": "beneficiaryCustomerType",
              "kind": "required",
              "type": "string",
              "description": "1 = Personal, 2 = Company, 3 = Government",
              "example": ""
            },
            {
              "name": "beneficiaryPostalCode",
              "kind": "optional",
              "type": "string",
              "description": "Beneficiary Postal Code",
              "example": ""
            },
            {
              "name": "payoutMethod",
              "kind": "required",
              "type": "string",
              "description": "0 = Over Booking, 2 = Online Trans, 3 = SKN, 4 = RTGS",
              "example": ""
            },
            {
              "name": "beneficiaryBankCode",
              "kind": "required",
              "type": "string",
              "description": "Beneficiary Bank Code",
              "example": ""
            },
            {
              "name": "amount",
              "kind": "required",
              "type": "object",
              "modelRef": "#/components/schemas/amount",
              "customType": "amount",
              "schema": [
                {
                  "name": "currency",
                  "kind": "optional",
                  "type": "string",
                  "description": "Currency",
                  "example": "IDR"
                },
                {
                  "name": "value",
                  "kind": "optional",
                  "type": "string",
                  "description": "Value",
                  "example": "10000.00"
                }
              ]
            },
            {
              "name": "partnerReferenceNo",
              "kind": "required",
              "type": "string",
              "description": "Transaction ID from Merchant",
              "example": ""
            },
            {
              "name": "reservedDt",
              "kind": "optional",
              "type": "string",
              "description": "Format 2022-08-28T10:11:40+07:00. Time must be in GM(Jakarta time)",
              "example": ""
            },
            {
              "name": "reservedTm",
              "kind": "optional",
              "type": "string",
              "description": "Format 2022-08-28T10:11:40+07:00. Time must be in GM(Jakarta time)",
              "example": ""
            },
            {
              "name": "description",
              "kind": "optional",
              "type": "string",
              "description": "Description Transaction",
              "example": ""
            },
            {
              "name": "deliveryName",
              "kind": "optional",
              "type": "string",
              "description": "Name of the beneficiary or recipient",
              "example": ""
            },
            {
              "name": "deliveryId",
              "kind": "optional",
              "type": "string",
              "description": "Recipient's identification number such as ID card, passport, dlicense",
              "example": ""
            },
            {
              "name": "beneficiaryPOE",
              "kind": "optional",
              "type": "string",
              "description": "Beneficiary place of establishment",
              "example": ""
            },
            {
              "name": "beneficiaryDOE",
              "kind": "optional",
              "type": "string",
              "description": "Beneficiary date of establishment",
              "example": ""
            },
            {
              "name": "beneficiaryCoNo",
              "kind": "optional",
              "type": "string",
              "description": "Beneficiary business license number (NIB/TDB)",
              "example": ""
            },
            {
              "name": "beneficiaryAddress",
              "kind": "optional",
              "type": "string",
              "description": "Beneficiary company address",
              "example": ""
            },
            {
              "name": "beneficiaryMerCategory",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "beneficiaryAuthPhoneNumber",
              "kind": "optional",
              "type": "string",
              "description": "Beneficiary Authorized Phone Number",
              "example": ""
            },
            {
              "name": "beneficiaryCoMgmtName",
              "kind": "optional",
              "type": "string",
              "description": "Beneficiary Company Management Name",
              "example": ""
            },
            {
              "name": "beneficiaryCoShName",
              "kind": "optional",
              "type": "string",
              "description": "Beneficiary Company Shareholder Name",
              "example": ""
            }
          ],
          "modelRef": "#/components/schemas/registration_payout_body",
          "complexItems": [
            {
              "name": "object",
              "schema": [
                {
                  "name": "merchantId",
                  "kind": "required",
                  "type": "string",
                  "description": "Merchant identifier that is unique per each merchant",
                  "example": ""
                },
                {
                  "name": "msId",
                  "kind": "optional",
                  "type": "string",
                  "description": "Merchant Seller Id",
                  "example": ""
                },
                {
                  "name": "beneficiaryAccountNo",
                  "kind": "required",
                  "type": "string",
                  "description": "Beneficiary Account Number",
                  "example": ""
                },
                {
                  "name": "beneficiaryName",
                  "kind": "required",
                  "type": "string",
                  "description": "Beneficiary Name",
                  "example": ""
                },
                {
                  "name": "beneficiaryPhone",
                  "kind": "required",
                  "type": "string",
                  "description": "Beneficiary Phone",
                  "example": ""
                },
                {
                  "name": "beneficiaryCustomerResidence",
                  "kind": "required",
                  "type": "string",
                  "description": "1 = Indonesia, 2 = Non Indonesia",
                  "example": ""
                },
                {
                  "name": "beneficiaryCustomerType",
                  "kind": "required",
                  "type": "string",
                  "description": "1 = Personal, 2 = Company, 3 = Government",
                  "example": ""
                },
                {
                  "name": "beneficiaryPostalCode",
                  "kind": "optional",
                  "type": "string",
                  "description": "Beneficiary Postal Code",
                  "example": ""
                },
                {
                  "name": "payoutMethod",
                  "kind": "required",
                  "type": "string",
                  "description": "0 = Over Booking, 2 = Online Trans, 3 = SKN, 4 = RTGS",
                  "example": ""
                },
                {
                  "name": "beneficiaryBankCode",
                  "kind": "required",
                  "type": "string",
                  "description": "Beneficiary Bank Code",
                  "example": ""
                },
                {
                  "name": "amount",
                  "kind": "required",
                  "type": "object",
                  "modelRef": "#/components/schemas/amount",
                  "customType": "amount",
                  "schema": [
                    {
                      "name": "currency",
                      "kind": "optional",
                      "type": "string",
                      "description": "Currency",
                      "example": "IDR"
                    },
                    {
                      "name": "value",
                      "kind": "optional",
                      "type": "string",
                      "description": "Value",
                      "example": "10000.00"
                    }
                  ]
                },
                {
                  "name": "partnerReferenceNo",
                  "kind": "required",
                  "type": "string",
                  "description": "Transaction ID from Merchant",
                  "example": ""
                },
                {
                  "name": "reservedDt",
                  "kind": "optional",
                  "type": "string",
                  "description": "Format 2022-08-28T10:11:40+07:00. Time must be in GM(Jakarta time)",
                  "example": ""
                },
                {
                  "name": "reservedTm",
                  "kind": "optional",
                  "type": "string",
                  "description": "Format 2022-08-28T10:11:40+07:00. Time must be in GM(Jakarta time)",
                  "example": ""
                },
                {
                  "name": "description",
                  "kind": "optional",
                  "type": "string",
                  "description": "Description Transaction",
                  "example": ""
                },
                {
                  "name": "deliveryName",
                  "kind": "optional",
                  "type": "string",
                  "description": "Name of the beneficiary or recipient",
                  "example": ""
                },
                {
                  "name": "deliveryId",
                  "kind": "optional",
                  "type": "string",
                  "description": "Recipient's identification number such as ID card, passport, dlicense",
                  "example": ""
                },
                {
                  "name": "beneficiaryPOE",
                  "kind": "optional",
                  "type": "string",
                  "description": "Beneficiary place of establishment",
                  "example": ""
                },
                {
                  "name": "beneficiaryDOE",
                  "kind": "optional",
                  "type": "string",
                  "description": "Beneficiary date of establishment",
                  "example": ""
                },
                {
                  "name": "beneficiaryCoNo",
                  "kind": "optional",
                  "type": "string",
                  "description": "Beneficiary business license number (NIB/TDB)",
                  "example": ""
                },
                {
                  "name": "beneficiaryAddress",
                  "kind": "optional",
                  "type": "string",
                  "description": "Beneficiary company address",
                  "example": ""
                },
                {
                  "name": "beneficiaryMerCategory",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "beneficiaryAuthPhoneNumber",
                  "kind": "optional",
                  "type": "string",
                  "description": "Beneficiary Authorized Phone Number",
                  "example": ""
                },
                {
                  "name": "beneficiaryCoMgmtName",
                  "kind": "optional",
                  "type": "string",
                  "description": "Beneficiary Company Management Name",
                  "example": ""
                },
                {
                  "name": "beneficiaryCoShName",
                  "kind": "optional",
                  "type": "string",
                  "description": "Beneficiary Company Shareholder Name",
                  "example": ""
                }
              ],
              "modelRef": "#/components/schemas/Registration-Payout",
              "customType": "Registration-Payout"
            },
            {
              "name": "object",
              "schema": []
            }
          ],
          "complexType": "allOf",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Authorization",
          "name": "Authorization",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "GENERATED",
            "code": "// Successful\n{\n  \"responseCode\": \"2000000\",\n  \"responseMessage\": \"Successful\",\n  \"partnerReferenceNo\": \"ref-998294194\",\n  \"originalReferenceNo\": \"IONPAYTEST07202308301826504375\",\n  \"beneficiaryaccountNo\": \"903327200\",\n  \"beneficiaryName\": \"Test\",\n  \"payoutMethod\": \"0\",\n  \"beneficiaryBankCode\": \"BBBA\",\n  \"amount\": {\n    \"currency\": \"IDR\",\n    \"value\": \"10000.00\"\n  }\n}"
          },
          {
            "label": "Successful",
            "code": "{\n  \"responseCode\": \"2000000\",\n  \"responseMessage\": \"Successful\",\n  \"partnerReferenceNo\": \"ref-998294194\",\n  \"originalReferenceNo\": \"IONPAYTEST07202308301826504375\",\n  \"beneficiaryaccountNo\": \"903327200\",\n  \"beneficiaryName\": \"Test\",\n  \"payoutMethod\": \"0\",\n  \"beneficiaryBankCode\": \"BBBA\",\n  \"amount\": {\n    \"value\": \"10000.00\",\n    \"currency\": \"IDR\"\n  }\n}"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "SuccessfulRegistrationPayout",
            "schema": [
              {
                "name": "responseCode",
                "kind": "optional",
                "type": "string",
                "description": "Response Code",
                "example": "2000000"
              },
              {
                "name": "responseMessage",
                "kind": "optional",
                "type": "string",
                "description": "Response Message",
                "example": "Successful"
              },
              {
                "name": "partnerReferenceNo",
                "kind": "optional",
                "type": "string",
                "description": "Partner ReferenceNo",
                "example": "ref-998294194"
              },
              {
                "name": "originalReferenceNo",
                "kind": "optional",
                "type": "string",
                "description": "Original ReferenceNo",
                "example": "IONPAYTEST07202308301826504375"
              },
              {
                "name": "beneficiaryaccountNo",
                "kind": "optional",
                "type": "string",
                "description": "Beneficiary accountNo",
                "example": "903327200"
              },
              {
                "name": "beneficiaryName",
                "kind": "optional",
                "type": "string",
                "description": "Beneficiary Name",
                "example": "Test"
              },
              {
                "name": "payoutMethod",
                "kind": "optional",
                "type": "string",
                "description": "Payout Method",
                "example": "0"
              },
              {
                "name": "beneficiaryBankCode",
                "kind": "optional",
                "type": "string",
                "description": "Beneficiary BankCode",
                "example": "BBBA"
              },
              {
                "name": "amount",
                "kind": "optional",
                "type": "object",
                "modelRef": "#/components/schemas/amount",
                "customType": "amount",
                "schema": [
                  {
                    "name": "currency",
                    "kind": "optional",
                    "type": "string",
                    "description": "Currency",
                    "example": "IDR"
                  },
                  {
                    "name": "value",
                    "kind": "optional",
                    "type": "string",
                    "description": "Value",
                    "example": "10000.00"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/SuccessfulRegistrationPayout",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "202",
        "description": "Request In Progress",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "GENERATED",
            "code": "// Request In Progress\n{\n  \"responseCode\": \"202XX00\",\n  \"responseMessage\": \"Request In Progress\"\n}"
          },
          {
            "label": "Request In Progress",
            "code": "{\n  \"responseCode\": \"202XX00\",\n  \"responseMessage\": \"Request In Progress\"\n}"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "RequestInProgress",
            "schema": [
              {
                "name": "responseCode",
                "kind": "optional",
                "type": "string",
                "description": "Response Code",
                "example": "202XX00"
              },
              {
                "name": "responseMessage",
                "kind": "optional",
                "type": "string",
                "description": "Response Message",
                "example": "Request In Progress"
              }
            ],
            "modelRef": "#/components/schemas/RequestInProgress",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "409",
        "description": "Duplicate partnerReferenceNo",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "GENERATED",
            "code": "// Duplicate partnerReferenceNo\n{\n  \"responseCode\": \"409XX01\",\n  \"responseMessage\": \"Duplicate partnerReferenceNo\"\n}"
          },
          {
            "label": "Duplicate partnerReferenceNo",
            "code": "{\n  \"responseCode\": \"409XX01\",\n  \"responseMessage\": \"Duplicate partnerReferenceNo\"\n}"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "DuplicatePartnerReferenceNo",
            "schema": [
              {
                "name": "responseCode",
                "kind": "optional",
                "type": "string",
                "description": "Response Code",
                "example": "409XX01"
              },
              {
                "name": "responseMessage",
                "kind": "optional",
                "type": "string",
                "description": "Response Message",
                "example": "Duplicate partnerReferenceNo"
              }
            ],
            "modelRef": "#/components/schemas/DuplicatePartnerReferenceNo",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "General Error",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "GENERATED",
            "code": "// General Error\n{\n  \"responseCode\": \"500XX00\",\n  \"responseMessage\": \"General Error\"\n}"
          },
          {
            "label": "General Error",
            "code": "{\n  \"responseCode\": \"500XX00\",\n  \"responseMessage\": \"General Error\"\n}"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "GeneralError",
            "schema": [
              {
                "name": "responseCode",
                "kind": "optional",
                "type": "string",
                "description": "Response Code",
                "example": "500XX00"
              },
              {
                "name": "responseMessage",
                "kind": "optional",
                "type": "string",
                "description": "Response Message",
                "example": "General Error"
              }
            ],
            "modelRef": "#/components/schemas/GeneralError",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "504",
        "description": "Request Timeout",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "GENERATED",
            "code": "// Request Timeout\n{\n  \"responseCode\": \"504XX00\",\n  \"responseMessage\": \"Request Timeout\"\n}"
          },
          {
            "label": "Request Timeout",
            "code": "{\n  \"responseCode\": \"504XX00\",\n  \"responseMessage\": \"Request Timeout\"\n}"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "RequestTimeout",
            "schema": [
              {
                "name": "responseCode",
                "kind": "optional",
                "type": "string",
                "description": "Response Code",
                "example": "504XX00"
              },
              {
                "name": "responseMessage",
                "kind": "optional",
                "type": "string",
                "description": "Response Message",
                "example": "Request Timeout"
              }
            ],
            "modelRef": "#/components/schemas/RequestTimeout",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "3jQ5buVtyEIPwYocnKJZa",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://dev.nicepay.co.id/nicepay/api/v1.0/transfer/registration \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-timestamp: 2022-08-28T10:11:40+07:00' \\\n     --header 'x-signature: Ou8dyOrYUCQvLtHp97bK47ObWNsd4CJRIpPstWmvEGUWnaQ1opo6+zjhC+U4QWIFwpBZaL2EZKzxIsnpY29dCw==' \\\n     --header 'x-partner-id: IONPAYTEST' \\\n     --header 'x-external-id: 2023082823595900' \\\n     --header 'channel-id: IONPAYTEST' \\\n     --data '{\n     \"merchantId\": \"\",\n     \"beneficiaryAccountNo\": \"\",\n     \"beneficiaryName\": \"\",\n     \"beneficiaryPhone\": \"\",\n     \"beneficiaryCustomerResidence\": \"\",\n     \"beneficiaryCustomerType\": \"\",\n     \"payoutMethod\": \"\",\n     \"beneficiaryBankCode\": \"\",\n     \"amount\": {},\n     \"partnerReferenceNo\": \"\"\n     }'"
        },
        {
          "id": "IRcJgHD5F0FFonyoH3mKu",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-timestamp\", \"2022-08-28T10:11:40+07:00\");\nmyHeaders.append(\"x-signature\", \"Ou8dyOrYUCQvLtHp97bK47ObWNsd4CJRIpPstWmvEGUWnaQ1opo6+zjhC+U4QWIFwpBZaL2EZKzxIsnpY29dCw==\");\nmyHeaders.append(\"x-partner-id\", \"IONPAYTEST\");\nmyHeaders.append(\"x-external-id\", \"2023082823595900\");\nmyHeaders.append(\"channel-id\", \"IONPAYTEST\");\n\nvar raw = JSON.stringify({\n   \"merchantId\": \"\",\n   \"beneficiaryAccountNo\": \"\",\n   \"beneficiaryName\": \"\",\n   \"beneficiaryPhone\": \"\",\n   \"beneficiaryCustomerResidence\": \"\",\n   \"beneficiaryCustomerType\": \"\",\n   \"payoutMethod\": \"\",\n   \"beneficiaryBankCode\": \"\",\n   \"amount\": {},\n   \"partnerReferenceNo\": \"\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://dev.nicepay.co.id/nicepay/api/v1.0/transfer/registration\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "FLbEF38ejo0olhsHw8aOl",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://dev.nicepay.co.id/nicepay/api/v1.0/transfer/registration\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-timestamp\"] = \"2022-08-28T10:11:40+07:00\"\nrequest[\"x-signature\"] = \"Ou8dyOrYUCQvLtHp97bK47ObWNsd4CJRIpPstWmvEGUWnaQ1opo6+zjhC+U4QWIFwpBZaL2EZKzxIsnpY29dCw==\"\nrequest[\"x-partner-id\"] = \"IONPAYTEST\"\nrequest[\"x-external-id\"] = \"2023082823595900\"\nrequest[\"channel-id\"] = \"IONPAYTEST\"\nrequest.body = JSON.dump({\n   \"merchantId\": \"\",\n   \"beneficiaryAccountNo\": \"\",\n   \"beneficiaryName\": \"\",\n   \"beneficiaryPhone\": \"\",\n   \"beneficiaryCustomerResidence\": \"\",\n   \"beneficiaryCustomerType\": \"\",\n   \"payoutMethod\": \"\",\n   \"beneficiaryBankCode\": \"\",\n   \"amount\": {},\n   \"partnerReferenceNo\": \"\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "b7XFZRCO5nVV050faqqjJ",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://dev.nicepay.co.id/nicepay/api/v1.0/transfer/registration\"\n\npayload = json.dumps({\n   \"merchantId\": \"\",\n   \"beneficiaryAccountNo\": \"\",\n   \"beneficiaryName\": \"\",\n   \"beneficiaryPhone\": \"\",\n   \"beneficiaryCustomerResidence\": \"\",\n   \"beneficiaryCustomerType\": \"\",\n   \"payoutMethod\": \"\",\n   \"beneficiaryBankCode\": \"\",\n   \"amount\": {},\n   \"partnerReferenceNo\": \"\"\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-timestamp': '2022-08-28T10:11:40+07:00',\n   'x-signature': 'Ou8dyOrYUCQvLtHp97bK47ObWNsd4CJRIpPstWmvEGUWnaQ1opo6+zjhC+U4QWIFwpBZaL2EZKzxIsnpY29dCw==',\n   'x-partner-id': 'IONPAYTEST',\n   'x-external-id': '2023082823595900',\n   'channel-id': 'IONPAYTEST'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "3jQ5buVtyEIPwYocnKJZa"
    },
    "results": {
      "languages": [
        {
          "id": "__v5uoDeSl9vmeY6i3rUS",
          "language": "200",
          "code": "// Successful\n{\n  \"responseCode\": \"2000000\",\n  \"responseMessage\": \"Successful\",\n  \"partnerReferenceNo\": \"ref-998294194\",\n  \"originalReferenceNo\": \"IONPAYTEST07202308301826504375\",\n  \"beneficiaryaccountNo\": \"903327200\",\n  \"beneficiaryName\": \"Test\",\n  \"payoutMethod\": \"0\",\n  \"beneficiaryBankCode\": \"BBBA\",\n  \"amount\": {\n    \"currency\": \"IDR\",\n    \"value\": \"10000.00\"\n  }\n}",
          "subExamples": [
            {
              "label": "GENERATED",
              "code": "// Successful\n{\n  \"responseCode\": \"2000000\",\n  \"responseMessage\": \"Successful\",\n  \"partnerReferenceNo\": \"ref-998294194\",\n  \"originalReferenceNo\": \"IONPAYTEST07202308301826504375\",\n  \"beneficiaryaccountNo\": \"903327200\",\n  \"beneficiaryName\": \"Test\",\n  \"payoutMethod\": \"0\",\n  \"beneficiaryBankCode\": \"BBBA\",\n  \"amount\": {\n    \"currency\": \"IDR\",\n    \"value\": \"10000.00\"\n  }\n}"
            },
            {
              "label": "Successful",
              "code": "{\n  \"responseCode\": \"2000000\",\n  \"responseMessage\": \"Successful\",\n  \"partnerReferenceNo\": \"ref-998294194\",\n  \"originalReferenceNo\": \"IONPAYTEST07202308301826504375\",\n  \"beneficiaryaccountNo\": \"903327200\",\n  \"beneficiaryName\": \"Test\",\n  \"payoutMethod\": \"0\",\n  \"beneficiaryBankCode\": \"BBBA\",\n  \"amount\": {\n    \"value\": \"10000.00\",\n    \"currency\": \"IDR\"\n  }\n}"
            }
          ]
        },
        {
          "id": "aHvBhxn99tBxZXbLu7pdb",
          "language": "202",
          "code": "// Request In Progress\n{\n  \"responseCode\": \"202XX00\",\n  \"responseMessage\": \"Request In Progress\"\n}",
          "subExamples": [
            {
              "label": "GENERATED",
              "code": "// Request In Progress\n{\n  \"responseCode\": \"202XX00\",\n  \"responseMessage\": \"Request In Progress\"\n}"
            },
            {
              "label": "Request In Progress",
              "code": "{\n  \"responseCode\": \"202XX00\",\n  \"responseMessage\": \"Request In Progress\"\n}"
            }
          ]
        },
        {
          "id": "OQBU155asWfQlSlI_gxJK",
          "language": "409",
          "code": "// Duplicate partnerReferenceNo\n{\n  \"responseCode\": \"409XX01\",\n  \"responseMessage\": \"Duplicate partnerReferenceNo\"\n}",
          "subExamples": [
            {
              "label": "GENERATED",
              "code": "// Duplicate partnerReferenceNo\n{\n  \"responseCode\": \"409XX01\",\n  \"responseMessage\": \"Duplicate partnerReferenceNo\"\n}"
            },
            {
              "label": "Duplicate partnerReferenceNo",
              "code": "{\n  \"responseCode\": \"409XX01\",\n  \"responseMessage\": \"Duplicate partnerReferenceNo\"\n}"
            }
          ]
        },
        {
          "id": "BV_IA8CpliqX6UCXOit0E",
          "language": "500",
          "code": "// General Error\n{\n  \"responseCode\": \"500XX00\",\n  \"responseMessage\": \"General Error\"\n}",
          "subExamples": [
            {
              "label": "GENERATED",
              "code": "// General Error\n{\n  \"responseCode\": \"500XX00\",\n  \"responseMessage\": \"General Error\"\n}"
            },
            {
              "label": "General Error",
              "code": "{\n  \"responseCode\": \"500XX00\",\n  \"responseMessage\": \"General Error\"\n}"
            }
          ]
        },
        {
          "id": "gv_0khSdhNM6pz8b9htaT",
          "language": "504",
          "code": "// Request Timeout\n{\n  \"responseCode\": \"504XX00\",\n  \"responseMessage\": \"Request Timeout\"\n}",
          "subExamples": [
            {
              "label": "GENERATED",
              "code": "// Request Timeout\n{\n  \"responseCode\": \"504XX00\",\n  \"responseMessage\": \"Request Timeout\"\n}"
            },
            {
              "label": "Request Timeout",
              "code": "{\n  \"responseCode\": \"504XX00\",\n  \"responseMessage\": \"Request Timeout\"\n}"
            }
          ]
        }
      ],
      "selectedLanguageId": "__v5uoDeSl9vmeY6i3rUS"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}