Skip to main content

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

Request Body required
  • partnerReferenceNo string
  • amount object
  • value string
  • currency string
  • urlParam object[]
  • Array [
  • url string
  • type string
  • isDeeplink string
  • ]
  • validUpTo string
  • additionalInfo object
  • channel string

    Possible values: [DANA, OVO, SC, SPAY]

  • customerPhone string
  • customerName string
Responses

Sukses create eWallet


Schema
  • responseCode string
  • responseMessage string
  • partnerReferenceNo string
  • appRedirectUrl string
  • webRedirectUrl string
  • additionalInfo object
  • contractId string
  • expiredTime string
  • channel string
POST /v1.0/debit/payment-host-to-host

Request

Base URL
https://sandbox-api.bmstaging.id/snap
X-TIMESTAMP — header required
X-SIGNATURE — header required
X-PARTNER-ID — header required
X-EXTERNAL-ID — header required
CHANNEL-ID — header required
Body required
{
"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"
}
}
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"
}
}'