List Product Product Configs (v3)
curl --request POST \
--url https://sandbox-biller-b2b.singapay.id/api/v3/list-product-config \
--header 'Accept: <accept>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-PARTNER-ID: <x-partner-id>' \
--data '
{
"command": "list-product-config",
"data": {
"category_flat_code": "TOPUPG",
"search": "legend",
"is_popular": true,
"has_products": true,
"active_only": true,
"page": 1,
"per_page": 20
}
}
'import requests
url = "https://sandbox-biller-b2b.singapay.id/api/v3/list-product-config"
payload = {
"command": "list-product-config",
"data": {
"category_flat_code": "TOPUPG",
"search": "legend",
"is_popular": True,
"has_products": True,
"active_only": True,
"page": 1,
"per_page": 20
}
}
headers = {
"X-PARTNER-ID": "<x-partner-id>",
"Accept": "<accept>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-PARTNER-ID': '<x-partner-id>',
Accept: '<accept>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
command: 'list-product-config',
data: {
category_flat_code: 'TOPUPG',
search: 'legend',
is_popular: true,
has_products: true,
active_only: true,
page: 1,
per_page: 20
}
})
};
fetch('https://sandbox-biller-b2b.singapay.id/api/v3/list-product-config', 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-biller-b2b.singapay.id/api/v3/list-product-config",
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([
'command' => 'list-product-config',
'data' => [
'category_flat_code' => 'TOPUPG',
'search' => 'legend',
'is_popular' => true,
'has_products' => true,
'active_only' => true,
'page' => 1,
'per_page' => 20
]
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-PARTNER-ID: <x-partner-id>"
],
]);
$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-biller-b2b.singapay.id/api/v3/list-product-config"
payload := strings.NewReader("{\n \"command\": \"list-product-config\",\n \"data\": {\n \"category_flat_code\": \"TOPUPG\",\n \"search\": \"legend\",\n \"is_popular\": true,\n \"has_products\": true,\n \"active_only\": true,\n \"page\": 1,\n \"per_page\": 20\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-PARTNER-ID", "<x-partner-id>")
req.Header.Add("Accept", "<accept>")
req.Header.Add("Authorization", "Bearer <token>")
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-biller-b2b.singapay.id/api/v3/list-product-config")
.header("X-PARTNER-ID", "<x-partner-id>")
.header("Accept", "<accept>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"command\": \"list-product-config\",\n \"data\": {\n \"category_flat_code\": \"TOPUPG\",\n \"search\": \"legend\",\n \"is_popular\": true,\n \"has_products\": true,\n \"active_only\": true,\n \"page\": 1,\n \"per_page\": 20\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-biller-b2b.singapay.id/api/v3/list-product-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-PARTNER-ID"] = '<x-partner-id>'
request["Accept"] = '<accept>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"command\": \"list-product-config\",\n \"data\": {\n \"category_flat_code\": \"TOPUPG\",\n \"search\": \"legend\",\n \"is_popular\": true,\n \"has_products\": true,\n \"active_only\": true,\n \"page\": 1,\n \"per_page\": 20\n }\n}"
response = http.request(request)
puts response.read_body{
"command": "list-product-config",
"response_code": "00",
"response_text": "Operation completed successfully",
"data": {
"product_configs": [
{
"code": "MLTP",
"name": "Topup Mobile Legend",
"name_en": "Mobile Legends",
"image": "mltp.png",
"platform": "mobile",
"is_popular": true,
"sort_order": 1,
"is_active": true,
"products_count": 30,
"category_flat_code": "TOPUPG"
}
],
"pagination": {
"current_page": 1,
"last_page": 1,
"per_page": 20,
"total": 1
}
}
}{
"status": 401,
"success": false,
"error": {
"code": 401,
"message": "Unauthorized merchant, please sign in"
}
}{
"command": "detail-bill-transaction",
"response_code": "04",
"response_text": "Rejected Format Error",
"data": {
"data": "The data field is required.",
"data.transaction_id": "The data.transaction id field is required."
}
}Product Catalog
List Product Product Configs (v3)
Product config adalah config table untuk produk yang butuh metadata tambahan: image brand/platform, request_fields (field input user saat inquiry), platform (mobile/pc/console), dan urutan tampil. Bukan “grouping entity” atau parent produk. Produk mereferensikan config ini via products.product_config_code. Untuk list brand: gunakan DISTINCT products.brand via list-product. Product config dipakai saat butuh metadata (image, request_fields). Untuk game topup: tiap game punya satu config (MLTP = Mobile Legends, FFTP = Free Fire). Untuk streaming: tiap platform punya config (SPOTIFYSTM = Spotify). Sorted popular first, then sort_order, then name.
POST
/
api
/
v3
/
list-product-config
List Product Product Configs (v3)
curl --request POST \
--url https://sandbox-biller-b2b.singapay.id/api/v3/list-product-config \
--header 'Accept: <accept>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-PARTNER-ID: <x-partner-id>' \
--data '
{
"command": "list-product-config",
"data": {
"category_flat_code": "TOPUPG",
"search": "legend",
"is_popular": true,
"has_products": true,
"active_only": true,
"page": 1,
"per_page": 20
}
}
'import requests
url = "https://sandbox-biller-b2b.singapay.id/api/v3/list-product-config"
payload = {
"command": "list-product-config",
"data": {
"category_flat_code": "TOPUPG",
"search": "legend",
"is_popular": True,
"has_products": True,
"active_only": True,
"page": 1,
"per_page": 20
}
}
headers = {
"X-PARTNER-ID": "<x-partner-id>",
"Accept": "<accept>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-PARTNER-ID': '<x-partner-id>',
Accept: '<accept>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
command: 'list-product-config',
data: {
category_flat_code: 'TOPUPG',
search: 'legend',
is_popular: true,
has_products: true,
active_only: true,
page: 1,
per_page: 20
}
})
};
fetch('https://sandbox-biller-b2b.singapay.id/api/v3/list-product-config', 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-biller-b2b.singapay.id/api/v3/list-product-config",
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([
'command' => 'list-product-config',
'data' => [
'category_flat_code' => 'TOPUPG',
'search' => 'legend',
'is_popular' => true,
'has_products' => true,
'active_only' => true,
'page' => 1,
'per_page' => 20
]
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-PARTNER-ID: <x-partner-id>"
],
]);
$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-biller-b2b.singapay.id/api/v3/list-product-config"
payload := strings.NewReader("{\n \"command\": \"list-product-config\",\n \"data\": {\n \"category_flat_code\": \"TOPUPG\",\n \"search\": \"legend\",\n \"is_popular\": true,\n \"has_products\": true,\n \"active_only\": true,\n \"page\": 1,\n \"per_page\": 20\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-PARTNER-ID", "<x-partner-id>")
req.Header.Add("Accept", "<accept>")
req.Header.Add("Authorization", "Bearer <token>")
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-biller-b2b.singapay.id/api/v3/list-product-config")
.header("X-PARTNER-ID", "<x-partner-id>")
.header("Accept", "<accept>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"command\": \"list-product-config\",\n \"data\": {\n \"category_flat_code\": \"TOPUPG\",\n \"search\": \"legend\",\n \"is_popular\": true,\n \"has_products\": true,\n \"active_only\": true,\n \"page\": 1,\n \"per_page\": 20\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-biller-b2b.singapay.id/api/v3/list-product-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-PARTNER-ID"] = '<x-partner-id>'
request["Accept"] = '<accept>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"command\": \"list-product-config\",\n \"data\": {\n \"category_flat_code\": \"TOPUPG\",\n \"search\": \"legend\",\n \"is_popular\": true,\n \"has_products\": true,\n \"active_only\": true,\n \"page\": 1,\n \"per_page\": 20\n }\n}"
response = http.request(request)
puts response.read_body{
"command": "list-product-config",
"response_code": "00",
"response_text": "Operation completed successfully",
"data": {
"product_configs": [
{
"code": "MLTP",
"name": "Topup Mobile Legend",
"name_en": "Mobile Legends",
"image": "mltp.png",
"platform": "mobile",
"is_popular": true,
"sort_order": 1,
"is_active": true,
"products_count": 30,
"category_flat_code": "TOPUPG"
}
],
"pagination": {
"current_page": 1,
"last_page": 1,
"per_page": 20,
"total": 1
}
}
}{
"status": 401,
"success": false,
"error": {
"code": 401,
"message": "Unauthorized merchant, please sign in"
}
}{
"command": "detail-bill-transaction",
"response_code": "04",
"response_text": "Rejected Format Error",
"data": {
"data": "The data field is required.",
"data.transaction_id": "The data.transaction id field is required."
}
}Authorizations
Headers
Body
application/json
Response
Product configs retrieved successfully
Example:
{
"product_configs": [
{
"code": "MLTP",
"name": "Topup Mobile Legend",
"name_en": "Mobile Legends",
"image": "mltp.png",
"platform": "mobile",
"is_popular": true,
"sort_order": 1,
"is_active": true,
"products_count": 30,
"category_flat_code": "TOPUPG"
}
],
"pagination": {
"current_page": 1,
"last_page": 1,
"per_page": 20,
"total": 1
}
}
