Registration Payout
1 min
POST
https://dev.nicepay.co.id/nicepay/api/v1.0/transfer/registration
Header Parameters
- X-TIMESTAMPstringrequiredExample
- X-SIGNATUREstringrequiredDefaultOu8dyOrYUCQvLtHp97bK47ObWNsd4CJRIpPstWmvEGUWnaQ1opo6+zjhC+U4QWIFwpBZaL2EZKzxIsnpY29dCw==
- X-PARTNER-IDstringrequiredExample
- X-EXTERNAL-IDstringrequiredExample
- CHANNEL-IDstringrequiredExample
Body Parameters
- bodyregistration_payout_bodyExample
{ "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" }- objectRegistration-Payout
- merchantIdstringrequiredDescription
- msIdstringDescription
- beneficiaryAccountNostringrequiredDescription
- beneficiaryNamestringrequiredDescription
- beneficiaryPhonestringrequiredDescription
- beneficiaryCustomerResidencestringrequiredDescription
- beneficiaryCustomerTypestringrequiredDescription
- beneficiaryPostalCodestringDescription
- payoutMethodstringrequiredDescription
- beneficiaryBankCodestringrequiredDescription
- amountamountrequired
- currencystringExampleDescription
- valuestringExampleDescription
- partnerReferenceNostringrequiredDescription
- reservedDtstringDescription
- reservedTmstringDescription
- descriptionstringDescription
- deliveryNamestringDescription
- deliveryIdstringDescription
- beneficiaryPOEstringDescription
- beneficiaryDOEstringDescription
- beneficiaryCoNostringDescription
- beneficiaryAddressstringDescription
- beneficiaryMerCategorystring
- beneficiaryAuthPhoneNumberstringDescription
- beneficiaryCoMgmtNamestringDescription
- beneficiaryCoShNamestringDescription
- object
Responses
200
- SuccessfulRegistrationPayout
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
- partnerReferenceNostringExampleDescription
- originalReferenceNostringExampleDescription
- beneficiaryaccountNostringExampleDescription
- beneficiaryNamestringExampleDescription
- payoutMethodstringExampleDescription
- beneficiaryBankCodestringExampleDescription
- amountamount
- currencystringExampleDescription
- valuestringExampleDescription
202
- RequestInProgress
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
409
- DuplicatePartnerReferenceNo
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
500
- GeneralError
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
504
- RequestTimeout
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
curl
curl --request POST \
--url https://dev.nicepay.co.id/nicepay/api/v1.0/transfer/registration \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-timestamp: 2022-08-28T10:11:40+07:00' \
--header 'x-signature: Ou8dyOrYUCQvLtHp97bK47ObWNsd4CJRIpPstWmvEGUWnaQ1opo6+zjhC+U4QWIFwpBZaL2EZKzxIsnpY29dCw==' \
--header 'x-partner-id: IONPAYTEST' \
--header 'x-external-id: 2023082823595900' \
--header 'channel-id: IONPAYTEST' \
--data '{
"merchantId": "",
"beneficiaryAccountNo": "",
"beneficiaryName": "",
"beneficiaryPhone": "",
"beneficiaryCustomerResidence": "",
"beneficiaryCustomerType": "",
"payoutMethod": "",
"beneficiaryBankCode": "",
"amount": {},
"partnerReferenceNo": ""
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("x-timestamp", "2022-08-28T10:11:40+07:00");
myHeaders.append("x-signature", "Ou8dyOrYUCQvLtHp97bK47ObWNsd4CJRIpPstWmvEGUWnaQ1opo6+zjhC+U4QWIFwpBZaL2EZKzxIsnpY29dCw==");
myHeaders.append("x-partner-id", "IONPAYTEST");
myHeaders.append("x-external-id", "2023082823595900");
myHeaders.append("channel-id", "IONPAYTEST");
var raw = JSON.stringify({
"merchantId": "",
"beneficiaryAccountNo": "",
"beneficiaryName": "",
"beneficiaryPhone": "",
"beneficiaryCustomerResidence": "",
"beneficiaryCustomerType": "",
"payoutMethod": "",
"beneficiaryBankCode": "",
"amount": {},
"partnerReferenceNo": ""
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://dev.nicepay.co.id/nicepay/api/v1.0/transfer/registration", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://dev.nicepay.co.id/nicepay/api/v1.0/transfer/registration")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["x-timestamp"] = "2022-08-28T10:11:40+07:00"
request["x-signature"] = "Ou8dyOrYUCQvLtHp97bK47ObWNsd4CJRIpPstWmvEGUWnaQ1opo6+zjhC+U4QWIFwpBZaL2EZKzxIsnpY29dCw=="
request["x-partner-id"] = "IONPAYTEST"
request["x-external-id"] = "2023082823595900"
request["channel-id"] = "IONPAYTEST"
request.body = JSON.dump({
"merchantId": "",
"beneficiaryAccountNo": "",
"beneficiaryName": "",
"beneficiaryPhone": "",
"beneficiaryCustomerResidence": "",
"beneficiaryCustomerType": "",
"payoutMethod": "",
"beneficiaryBankCode": "",
"amount": {},
"partnerReferenceNo": ""
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://dev.nicepay.co.id/nicepay/api/v1.0/transfer/registration"
payload = json.dumps({
"merchantId": "",
"beneficiaryAccountNo": "",
"beneficiaryName": "",
"beneficiaryPhone": "",
"beneficiaryCustomerResidence": "",
"beneficiaryCustomerType": "",
"payoutMethod": "",
"beneficiaryBankCode": "",
"amount": {},
"partnerReferenceNo": ""
})
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'x-timestamp': '2022-08-28T10:11:40+07:00',
'x-signature': 'Ou8dyOrYUCQvLtHp97bK47ObWNsd4CJRIpPstWmvEGUWnaQ1opo6+zjhC+U4QWIFwpBZaL2EZKzxIsnpY29dCw==',
'x-partner-id': 'IONPAYTEST',
'x-external-id': '2023082823595900',
'channel-id': 'IONPAYTEST'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Successful
{
"responseCode": "2000000",
"responseMessage": "Successful",
"partnerReferenceNo": "ref-998294194",
"originalReferenceNo": "IONPAYTEST07202308301826504375",
"beneficiaryaccountNo": "903327200",
"beneficiaryName": "Test",
"payoutMethod": "0",
"beneficiaryBankCode": "BBBA",
"amount": {
"currency": "IDR",
"value": "10000.00"
}
}GENERATED
// Successful
{
"responseCode": "2000000",
"responseMessage": "Successful",
"partnerReferenceNo": "ref-998294194",
"originalReferenceNo": "IONPAYTEST07202308301826504375",
"beneficiaryaccountNo": "903327200",
"beneficiaryName": "Test",
"payoutMethod": "0",
"beneficiaryBankCode": "BBBA",
"amount": {
"currency": "IDR",
"value": "10000.00"
}
}Successful
{
"responseCode": "2000000",
"responseMessage": "Successful",
"partnerReferenceNo": "ref-998294194",
"originalReferenceNo": "IONPAYTEST07202308301826504375",
"beneficiaryaccountNo": "903327200",
"beneficiaryName": "Test",
"payoutMethod": "0",
"beneficiaryBankCode": "BBBA",
"amount": {
"value": "10000.00",
"currency": "IDR"
}
}202
// Request In Progress
{
"responseCode": "202XX00",
"responseMessage": "Request In Progress"
}GENERATED
// Request In Progress
{
"responseCode": "202XX00",
"responseMessage": "Request In Progress"
}Request In Progress
{
"responseCode": "202XX00",
"responseMessage": "Request In Progress"
}409
// Duplicate partnerReferenceNo
{
"responseCode": "409XX01",
"responseMessage": "Duplicate partnerReferenceNo"
}GENERATED
// Duplicate partnerReferenceNo
{
"responseCode": "409XX01",
"responseMessage": "Duplicate partnerReferenceNo"
}Duplicate partnerReferenceNo
{
"responseCode": "409XX01",
"responseMessage": "Duplicate partnerReferenceNo"
}500
// General Error
{
"responseCode": "500XX00",
"responseMessage": "General Error"
}GENERATED
// General Error
{
"responseCode": "500XX00",
"responseMessage": "General Error"
}General Error
{
"responseCode": "500XX00",
"responseMessage": "General Error"
}504
// Request Timeout
{
"responseCode": "504XX00",
"responseMessage": "Request Timeout"
}GENERATED
// Request Timeout
{
"responseCode": "504XX00",
"responseMessage": "Request Timeout"
}Request Timeout
{
"responseCode": "504XX00",
"responseMessage": "Request Timeout"
}