Singapay Home Page
Logo Icon
  1. Pulsa Pascabayar
  2. Inquiry Process

API Information

Title API Postpaid Inquiry
Version v1.0
URL Sandbox https://stg-pg.singapay.id
URL Production -

Version Control

Doc Version API Version Date Document Link Description
v1.0 v1.0 17 June 2025 - -

URL

HTTP method POST
Path /api/v1/postpaid/inquiry
Type Format JSON

Endpoint

Request Description

Key Value Format M/O/C Length
command String M -
data.customer_id String M -
data.product_code String M -

Header Structure

Key Value Format M/O/C Length Description
X-PARTNER-ID <api_key> String M - -
Authorization Bearer <access_token> String M - -
Accept Application/json String M - -

Request & Response Payload Sample

Request

{
    "command": "mobpos",
    "data": {
        "customer_id" : "08122962721",
        "product_code" : "SPTKMSPOSH"
    }
}

Response

Success: Here’s an example of a successful response.

{
    "command": "mobpos",
    "response_code": "00",
    "response_text": "Inquiry success",
    "data": {
        "amount": "125620",
        "customer_name": "YUXXXXXXXXXXAYA",
        "customer_id": "08122962721",
        "reference_number": "SPTKMSPOSHRJBL0029576115341749548335",
        "price": "127120",
        "created_at": "2025-06-10 16:38:55"
    }
}

Failed: Here’s an example of a error response.

{
    "command": "mobpos",
    "response_code": "04",
    "response_text": "customer_id (phone number) column value 08122a962721 is not valid"
}