curl --request POST \
--url https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-PARTNER-ID: <api-key>' \
--data '
{
"amount": 100000,
"ewallet_vendor": "EWALLET_DANA",
"expired_at": "2026-04-02T23:59:59+07:00",
"customer_name": "John Doe",
"customer_email": "john.doe@example.com",
"customer_phone": "081234567890",
"merchant_redirect_url": "https://merchant.example.com/payment/return",
"merchant_reff_no": "INV-2026-001"
}
'import requests
url = "https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout"
payload = {
"amount": 100000,
"ewallet_vendor": "EWALLET_DANA",
"expired_at": "2026-04-02T23:59:59+07:00",
"customer_name": "John Doe",
"customer_email": "john.doe@example.com",
"customer_phone": "081234567890",
"merchant_redirect_url": "https://merchant.example.com/payment/return",
"merchant_reff_no": "INV-2026-001"
}
headers = {
"Authorization": "Bearer <token>",
"X-PARTNER-ID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-PARTNER-ID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: 100000,
ewallet_vendor: 'EWALLET_DANA',
expired_at: '2026-04-02T23:59:59+07:00',
customer_name: 'John Doe',
customer_email: 'john.doe@example.com',
customer_phone: '081234567890',
merchant_redirect_url: 'https://merchant.example.com/payment/return',
merchant_reff_no: 'INV-2026-001'
})
};
fetch('https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 100000,
'ewallet_vendor' => 'EWALLET_DANA',
'expired_at' => '2026-04-02T23:59:59+07:00',
'customer_name' => 'John Doe',
'customer_email' => 'john.doe@example.com',
'customer_phone' => '081234567890',
'merchant_redirect_url' => 'https://merchant.example.com/payment/return',
'merchant_reff_no' => 'INV-2026-001'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-PARTNER-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout"
payload := strings.NewReader("{\n \"amount\": 100000,\n \"ewallet_vendor\": \"EWALLET_DANA\",\n \"expired_at\": \"2026-04-02T23:59:59+07:00\",\n \"customer_name\": \"John Doe\",\n \"customer_email\": \"john.doe@example.com\",\n \"customer_phone\": \"081234567890\",\n \"merchant_redirect_url\": \"https://merchant.example.com/payment/return\",\n \"merchant_reff_no\": \"INV-2026-001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("X-PARTNER-ID", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout")
.header("Authorization", "Bearer <token>")
.header("X-PARTNER-ID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 100000,\n \"ewallet_vendor\": \"EWALLET_DANA\",\n \"expired_at\": \"2026-04-02T23:59:59+07:00\",\n \"customer_name\": \"John Doe\",\n \"customer_email\": \"john.doe@example.com\",\n \"customer_phone\": \"081234567890\",\n \"merchant_redirect_url\": \"https://merchant.example.com/payment/return\",\n \"merchant_reff_no\": \"INV-2026-001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["X-PARTNER-ID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 100000,\n \"ewallet_vendor\": \"EWALLET_DANA\",\n \"expired_at\": \"2026-04-02T23:59:59+07:00\",\n \"customer_name\": \"John Doe\",\n \"customer_email\": \"john.doe@example.com\",\n \"customer_phone\": \"081234567890\",\n \"merchant_redirect_url\": \"https://merchant.example.com/payment/return\",\n \"merchant_reff_no\": \"INV-2026-001\"\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"data": {
"id": 2001,
"account_id": 42,
"reff_no": "EW20260402001",
"merchant_reff_no": "INV-2026-001",
"status": "open",
"status_computed": "open",
"is_expired": false,
"ewallet_vendor": "EWALLET_DANA",
"amount": 100000,
"total_amount": 100000,
"merchant_fee": 1500,
"net_amount": 98500,
"checkout_url": "https://checkout.example.com/pay/abc123",
"checkout_url_app": "dana://checkout/abc123",
"vendor_reference_no": "DANA-REF-987654",
"merchant_redirect_url": "https://merchant.example.com/payment/return",
"additional_info": null,
"customer_name": "John Doe",
"customer_email": "john.doe@example.com",
"customer_phone": "081234567890",
"has_recon": false,
"recon_at": null,
"has_settle": false,
"settle_at": null,
"has_settle_request": false,
"settle_request_at": null,
"payment_channel": null,
"payment_vendor_code": null,
"settlement_method": null,
"processed_timestamp": null,
"expired_at": "2026-04-02T23:59:59+07:00",
"created_at": "2026-04-02T10:30:00+07:00",
"updated_at": "2026-04-02T10:30:00+07:00",
"deleted_at": null,
"events_count": 1
}
}{
"status": 400,
"success": false,
"error": {
"code": 400,
"message": "Bad Request."
}
}{
"status": 401,
"success": false,
"error": {
"code": 401,
"message": "Unauthorized merchant, please sign in"
}
}{
"status": 404,
"success": false,
"error": {
"code": 404,
"message": "Account not found."
}
}{
"status": 405,
"success": false,
"error": {
"code": 4059901,
"message": "The PATCH method is not supported for this route. Supported methods: GET, HEAD, POST."
}
}{
"status": 422,
"success": false,
"error": {
"code": 422,
"message": "Validation error.",
"errors": {
"field": [
"error message"
]
}
},
"data": {
"errors": {
"field": [
"error message"
]
}
}
}Create v1 (Legacy)
Creates a native e-wallet checkout for the specified account. Payment amount must be within merchant configuration limits for the selected e-wallet vendor.
curl --request POST \
--url https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-PARTNER-ID: <api-key>' \
--data '
{
"amount": 100000,
"ewallet_vendor": "EWALLET_DANA",
"expired_at": "2026-04-02T23:59:59+07:00",
"customer_name": "John Doe",
"customer_email": "john.doe@example.com",
"customer_phone": "081234567890",
"merchant_redirect_url": "https://merchant.example.com/payment/return",
"merchant_reff_no": "INV-2026-001"
}
'import requests
url = "https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout"
payload = {
"amount": 100000,
"ewallet_vendor": "EWALLET_DANA",
"expired_at": "2026-04-02T23:59:59+07:00",
"customer_name": "John Doe",
"customer_email": "john.doe@example.com",
"customer_phone": "081234567890",
"merchant_redirect_url": "https://merchant.example.com/payment/return",
"merchant_reff_no": "INV-2026-001"
}
headers = {
"Authorization": "Bearer <token>",
"X-PARTNER-ID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-PARTNER-ID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: 100000,
ewallet_vendor: 'EWALLET_DANA',
expired_at: '2026-04-02T23:59:59+07:00',
customer_name: 'John Doe',
customer_email: 'john.doe@example.com',
customer_phone: '081234567890',
merchant_redirect_url: 'https://merchant.example.com/payment/return',
merchant_reff_no: 'INV-2026-001'
})
};
fetch('https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 100000,
'ewallet_vendor' => 'EWALLET_DANA',
'expired_at' => '2026-04-02T23:59:59+07:00',
'customer_name' => 'John Doe',
'customer_email' => 'john.doe@example.com',
'customer_phone' => '081234567890',
'merchant_redirect_url' => 'https://merchant.example.com/payment/return',
'merchant_reff_no' => 'INV-2026-001'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-PARTNER-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout"
payload := strings.NewReader("{\n \"amount\": 100000,\n \"ewallet_vendor\": \"EWALLET_DANA\",\n \"expired_at\": \"2026-04-02T23:59:59+07:00\",\n \"customer_name\": \"John Doe\",\n \"customer_email\": \"john.doe@example.com\",\n \"customer_phone\": \"081234567890\",\n \"merchant_redirect_url\": \"https://merchant.example.com/payment/return\",\n \"merchant_reff_no\": \"INV-2026-001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("X-PARTNER-ID", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout")
.header("Authorization", "Bearer <token>")
.header("X-PARTNER-ID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 100000,\n \"ewallet_vendor\": \"EWALLET_DANA\",\n \"expired_at\": \"2026-04-02T23:59:59+07:00\",\n \"customer_name\": \"John Doe\",\n \"customer_email\": \"john.doe@example.com\",\n \"customer_phone\": \"081234567890\",\n \"merchant_redirect_url\": \"https://merchant.example.com/payment/return\",\n \"merchant_reff_no\": \"INV-2026-001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-payment-b2b.singapay.id/api/v1.0/ewallet-native/{account_id}/create-checkout")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["X-PARTNER-ID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 100000,\n \"ewallet_vendor\": \"EWALLET_DANA\",\n \"expired_at\": \"2026-04-02T23:59:59+07:00\",\n \"customer_name\": \"John Doe\",\n \"customer_email\": \"john.doe@example.com\",\n \"customer_phone\": \"081234567890\",\n \"merchant_redirect_url\": \"https://merchant.example.com/payment/return\",\n \"merchant_reff_no\": \"INV-2026-001\"\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"data": {
"id": 2001,
"account_id": 42,
"reff_no": "EW20260402001",
"merchant_reff_no": "INV-2026-001",
"status": "open",
"status_computed": "open",
"is_expired": false,
"ewallet_vendor": "EWALLET_DANA",
"amount": 100000,
"total_amount": 100000,
"merchant_fee": 1500,
"net_amount": 98500,
"checkout_url": "https://checkout.example.com/pay/abc123",
"checkout_url_app": "dana://checkout/abc123",
"vendor_reference_no": "DANA-REF-987654",
"merchant_redirect_url": "https://merchant.example.com/payment/return",
"additional_info": null,
"customer_name": "John Doe",
"customer_email": "john.doe@example.com",
"customer_phone": "081234567890",
"has_recon": false,
"recon_at": null,
"has_settle": false,
"settle_at": null,
"has_settle_request": false,
"settle_request_at": null,
"payment_channel": null,
"payment_vendor_code": null,
"settlement_method": null,
"processed_timestamp": null,
"expired_at": "2026-04-02T23:59:59+07:00",
"created_at": "2026-04-02T10:30:00+07:00",
"updated_at": "2026-04-02T10:30:00+07:00",
"deleted_at": null,
"events_count": 1
}
}{
"status": 400,
"success": false,
"error": {
"code": 400,
"message": "Bad Request."
}
}{
"status": 401,
"success": false,
"error": {
"code": 401,
"message": "Unauthorized merchant, please sign in"
}
}{
"status": 404,
"success": false,
"error": {
"code": 404,
"message": "Account not found."
}
}{
"status": 405,
"success": false,
"error": {
"code": 4059901,
"message": "The PATCH method is not supported for this route. Supported methods: GET, HEAD, POST."
}
}{
"status": 422,
"success": false,
"error": {
"code": 422,
"message": "Validation error.",
"errors": {
"field": [
"error message"
]
}
},
"data": {
"errors": {
"field": [
"error message"
]
}
}
}Authorizations
JWT issued by POST /api/v1.1/access-token/b2b. Send Authorization: Bearer <token>.
Merchant API key (Credential.api_key). Required on every request.
Path Parameters
Account identifier in ULID format.
Body
Payment amount. Minimum and maximum limits depend on merchant configuration and selected e-wallet vendor.
100000
E-wallet vendor code. Must be an active vendor in the e-wallet payment group.
"EWALLET_DANA"
Optional expiration datetime. When provided, must be later than the current time.
"2026-04-02T23:59:59+07:00"
Customer name for the checkout.
255"John Doe"
Customer email for the checkout.
255"john.doe@example.com"
Customer phone number. Required for some vendors (for example OVO push-to-pay).
20"081234567890"
Optional URL to redirect the customer after payment flow completion.
2048"https://merchant.example.com/payment/return"
Optional merchant reference number for this transaction.
255"INV-2026-001"
