Create payment eWallet
eWallet Payment
Header Parameters
- X-TIMESTAMP string required
ISO 8601 timestamp
- X-SIGNATURE string required
Signature
- X-PARTNER-ID string required
Partner ID
- X-EXTERNAL-ID string required
External ID
- CHANNEL-ID string required
Channel ID
- application/json
Request Body required
- partnerReferenceNo string
amount object
urlParam object[]
- validUpTo string
additionalInfo object
Responses
- 200
- 400
- 401
- 404
- 409
- 500
Sukses create eWallet
- application/json
- Schema
- Example (from schema)
Schema
- responseCode string
- responseMessage string
- partnerReferenceNo string
- appRedirectUrl string
- webRedirectUrl string
additionalInfo object
{
"responseCode": "2005400",
"responseMessage": "Success",
"partnerReferenceNo": "ref-0000000-0417",
"appRedirectUrl": "",
"webRedirectUrl": "https://kr9bp.app.link/pay?bizNo=20230904111212800110166317301232207×tamp=1693821087432&originSourcePlatform=IPG&mid=216620040014017155788&sign=&forceToH5=false",
"additionalInfo": {
"contractId": "dn325845cc-9fb7-45aa-9383-15078a28a419",
"expiredTime": "2023-09-04T18:10:11+07:00",
"channel": "DANA"
}
}
Invalid mandatory field
- application/json
- Schema
- Example (from schema)
Schema
- oneOf
- DirectDebitGenerateInvalidMandatoryField
- DirectDebitGenerateInvalidFieldFormat
responseCode stringresponseMessage stringresponseCode stringresponseMessage string
{
"responseCode": "4005402",
"responseMessage": "Invalid mandatory field { field name }"
}
Invalid signature
- application/json
- Schema
- Example (from schema)
Schema
- responseCode string
- responseMessage InvalidSignatureMessage
{
"responseCode": "4015400",
"responseMessage": "Invalid signature {cannot verify signature}"
}
Invalid X-PARTNER-ID
- application/json
- Schema
- Example (from schema)
Schema
- responseCode string
- responseMessage InvalidPartnerIdMessage
{
"responseCode": "4045416",
"responseMessage": "Partner not found"
}
Duplicate X-EXTERNAL-ID in same day
- application/json
- Schema
- Example (from schema)
Schema
- oneOf
- DirectDebitGenerateDuplicateXExternalId
- DirectDebitGenerateDuplicatePartnerReferenceNo
responseCode stringresponseMessage stringresponseCode stringresponseMessage string
{
"responseCode": "4095400",
"responseMessage": "Cannot use same X-EXTERNAL-ID in same day"
}
General Error
- application/json
- Schema
- Example (from schema)
Schema
- responseCode string
- responseMessage string
{
"responseCode": "5005400",
"responseMessage": "General Error"
}
POST /v1.0/debit/payment-host-to-host
Request
Request
curl / cURL
curl -L -X POST 'https://sandbox-api.bmstaging.id/snap/v1.0/debit/payment-host-to-host' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"partnerReferenceNo": "000000000050",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"urlParam": [
{
"url": "https://test1.bi.go.id/v1/test",
"type": "PAY_RETURN",
"isDeeplink": "N"
}
],
"validUpTo": "2023-09-04T18:10:11+07:00",
"additionalInfo": {
"channel": "DANA",
"customerPhone": "0895633156874",
"customerName": "Delina Prasetya"
}
}'
python / requests
curl -L -X POST 'https://sandbox-api.bmstaging.id/snap/v1.0/debit/payment-host-to-host' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"partnerReferenceNo": "000000000050",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"urlParam": [
{
"url": "https://test1.bi.go.id/v1/test",
"type": "PAY_RETURN",
"isDeeplink": "N"
}
],
"validUpTo": "2023-09-04T18:10:11+07:00",
"additionalInfo": {
"channel": "DANA",
"customerPhone": "0895633156874",
"customerName": "Delina Prasetya"
}
}'
go / native
curl -L -X POST 'https://sandbox-api.bmstaging.id/snap/v1.0/debit/payment-host-to-host' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"partnerReferenceNo": "000000000050",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"urlParam": [
{
"url": "https://test1.bi.go.id/v1/test",
"type": "PAY_RETURN",
"isDeeplink": "N"
}
],
"validUpTo": "2023-09-04T18:10:11+07:00",
"additionalInfo": {
"channel": "DANA",
"customerPhone": "0895633156874",
"customerName": "Delina Prasetya"
}
}'
nodejs / axios
curl -L -X POST 'https://sandbox-api.bmstaging.id/snap/v1.0/debit/payment-host-to-host' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"partnerReferenceNo": "000000000050",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"urlParam": [
{
"url": "https://test1.bi.go.id/v1/test",
"type": "PAY_RETURN",
"isDeeplink": "N"
}
],
"validUpTo": "2023-09-04T18:10:11+07:00",
"additionalInfo": {
"channel": "DANA",
"customerPhone": "0895633156874",
"customerName": "Delina Prasetya"
}
}'
ruby / Net::HTTP
curl -L -X POST 'https://sandbox-api.bmstaging.id/snap/v1.0/debit/payment-host-to-host' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"partnerReferenceNo": "000000000050",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"urlParam": [
{
"url": "https://test1.bi.go.id/v1/test",
"type": "PAY_RETURN",
"isDeeplink": "N"
}
],
"validUpTo": "2023-09-04T18:10:11+07:00",
"additionalInfo": {
"channel": "DANA",
"customerPhone": "0895633156874",
"customerName": "Delina Prasetya"
}
}'
csharp / RestSharp
curl -L -X POST 'https://sandbox-api.bmstaging.id/snap/v1.0/debit/payment-host-to-host' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"partnerReferenceNo": "000000000050",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"urlParam": [
{
"url": "https://test1.bi.go.id/v1/test",
"type": "PAY_RETURN",
"isDeeplink": "N"
}
],
"validUpTo": "2023-09-04T18:10:11+07:00",
"additionalInfo": {
"channel": "DANA",
"customerPhone": "0895633156874",
"customerName": "Delina Prasetya"
}
}'
php / cURL
curl -L -X POST 'https://sandbox-api.bmstaging.id/snap/v1.0/debit/payment-host-to-host' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"partnerReferenceNo": "000000000050",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"urlParam": [
{
"url": "https://test1.bi.go.id/v1/test",
"type": "PAY_RETURN",
"isDeeplink": "N"
}
],
"validUpTo": "2023-09-04T18:10:11+07:00",
"additionalInfo": {
"channel": "DANA",
"customerPhone": "0895633156874",
"customerName": "Delina Prasetya"
}
}'
java / OkHttp
curl -L -X POST 'https://sandbox-api.bmstaging.id/snap/v1.0/debit/payment-host-to-host' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"partnerReferenceNo": "000000000050",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"urlParam": [
{
"url": "https://test1.bi.go.id/v1/test",
"type": "PAY_RETURN",
"isDeeplink": "N"
}
],
"validUpTo": "2023-09-04T18:10:11+07:00",
"additionalInfo": {
"channel": "DANA",
"customerPhone": "0895633156874",
"customerName": "Delina Prasetya"
}
}'
powershell / RestMethod
curl -L -X POST 'https://sandbox-api.bmstaging.id/snap/v1.0/debit/payment-host-to-host' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"partnerReferenceNo": "000000000050",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"urlParam": [
{
"url": "https://test1.bi.go.id/v1/test",
"type": "PAY_RETURN",
"isDeeplink": "N"
}
],
"validUpTo": "2023-09-04T18:10:11+07:00",
"additionalInfo": {
"channel": "DANA",
"customerPhone": "0895633156874",
"customerName": "Delina Prasetya"
}
}'