Singapay Home Page
Logo Icon
  1. General
  2. Detail Bill Transaction

API Information

Title API Detail Bill Transaction
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/detail-bill-transaction
Type Format JSON

Endpoint

Request Description

Key Value Format M/O/C Length
command String M -
data.transaction_id 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": "detail-bill-transaction",
    "data": {
        "transaction_id" : "01JWX2F2DZC68TC94XMNBJCC3H"
    }
}

Response

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

{
    "command": "detail-bill-transaction",
    "response_code": "00",
    "response_text": "Operation completed successfully",
    "data": {
        "transaction_id": "01JWX2F2DZC68TC94XMNBJCC3H",
        "reference_number": "SPTKMSF2G30RJBL0096284584861749552869",
        "customer_id": "082291501085",
        "transaction_type": "prepaid",
        "status": "pending",
        "inquired_at": null,
        "paid_at": "2025-06-10 17:54:29",
        "net_price": "32500",
        "display_price": {
            "amount": "32500",
            "price": "32500"
        },
        "other_info": [],
        "created_at": "2025-06-10 10:54:29",
        "product": {
            "code": "SPTKMSF2G30",
            "name": "Telkomsel Data Flash 2GB 30hr",
            "category": {
                "code": "TELASD",
                "name": "Telkomsel/AS"
            }
        }
    }
}

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

{
    "status": 401,
    "success": false,
    "error": {
        "code": 401,
        "message": "Unauthorized merchant, please sign in"
    }
}

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

{
    "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."
    }
}

Failed: Here’s an example of an error not found response.

{
    "command": "detail-bill-transaction",
    "response_code": "6",
    "response_text": "Transaction not found"
}