Skip to main content
POST
/
api
/
v1
/
prepaid
/
inquiry
Inquiry Prepaid (Legacy)
curl --request POST \
  --url https://sandbox-biller-b2b.singapay.id/api/v1/prepaid/inquiry \
  --header 'Accept: <accept>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-PARTNER-ID: <x-partner-id>' \
  --data '
{
  "command": "plntok",
  "data": {
    "customer_id": "14012345678",
    "product_code": "SPPLNTOK"
  }
}
'
{
  "command": "plntok",
  "response_code": "00",
  "response_text": "Inquiry success",
  "data": {
    "amount": "50000",
    "customer_name": "JOHN DOE",
    "customer_id": "14012345678",
    "reference_number": "SPPLNTOKRJBL0012345678901749548209",
    "price": "52500",
    "created_at": "2025-06-10 16:36:49"
  }
}

Authorizations

Authorization
string
header
required

JWT Bearer token obtained from /api/v1.0/access-token/b2b

Headers

X-PARTNER-ID
string
required

Merchant API key

Accept
string
default:Application/json
required

Body

application/json
command
enum<string>
required

Product category code

Available options:
plntok
Example:

"plntok"

data
object
required

Response

Inquiry successful

command
string
Example:

"plntok"

response_code
string
Example:

"00"

response_text
string
Example:

"Inquiry success"

data
object