> ## Documentation Index
> Fetch the complete documentation index at: https://docs.singapay.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Inquiry Postpaid (Legacy)

> Perform a bill inquiry for postpaid products. The command field determines the product category. Returns bill details and a reference number for subsequent payment.



## OpenAPI

````yaml https://biller-b2b.singapay.id/docs post /api/v1/postpaid/inquiry
openapi: 3.0.0
info:
  title: B2B Biller API
  description: >-
    API documentation for the B2B Biller service. Provides endpoints for bill
    payments (postpaid/prepaid), transaction management, balance checking, and
    authentication.
  version: 1.0.0
servers:
  - url: https://sandbox-biller-b2b.singapay.id
    description: Sandbox
  - url: https://biller-b2b.singapay.id
    description: Production
security: []
tags:
  - name: Authentication
    description: OAuth2 token generation
  - name: General
    description: Bill transaction listing, detail, balance, and utilities
  - name: Postpaid V1
    description: Postpaid bill inquiry and payment (V1)
  - name: Prepaid V1
    description: Prepaid inquiry and payment — PLN Token, Pulsa, Paket Data (V1)
  - name: Postpaid V2
    description: Postpaid bill inquiry and payment (V2)
  - name: Prepaid V2
    description: Prepaid inquiry, payment, and game topup (V2)
paths:
  /api/v1/postpaid/inquiry:
    post:
      tags:
        - Postpaid V1
      summary: Inquiry Postpaid (Legacy)
      description: >-
        Perform a bill inquiry for postpaid products. The command field
        determines the product category. Returns bill details and a reference
        number for subsequent payment.
      operationId: postpaidInquiryV1
      parameters:
        - name: X-PARTNER-ID
          in: header
          description: Merchant API key
          required: true
          schema:
            type: string
        - name: Accept
          in: header
          required: true
          schema:
            type: string
            default: Application/json
      requestBody:
        required: true
        content:
          application/json:
            schema:
              required:
                - command
                - data
              properties:
                command:
                  description: Product category code
                  type: string
                  enum:
                    - pdam
                    - plnpos
                    - plnnon
                    - intv
                    - bpjsks
                    - bputk
                    - putk
                    - mobpos
                  example: plnpos
                data:
                  required:
                    - customer_id
                    - product_code
                  properties:
                    customer_id:
                      description: Customer/subscriber ID
                      type: string
                      example: '146300068064'
                    product_code:
                      description: Product code (must exist in products table)
                      type: string
                      example: SPPLNPOS
                    period:
                      description: >-
                        Payment period — required for bpjsks (1-12), bputk
                        (1,2,3,6,12), putk
                      type: integer
                      minimum: 1
                      example: 1
                    phone_number:
                      description: Customer phone number
                      type: string
                      maxLength: 25
                      nullable: true
                  type: object
              type: object
            examples:
              PLN Pascabayar:
                summary: PLN Pascabayar Inquiry
                value:
                  command: plnpos
                  data:
                    customer_id: '146300068064'
                    product_code: SPPLNPOS
              PLN Non Tag:
                summary: PLN Non Tagihan Inquiry
                value:
                  command: plnnon
                  data:
                    customer_id: '146300068064'
                    product_code: SPPLNNON
              BPJS Kesehatan:
                summary: BPJS Kesehatan Inquiry (with period)
                value:
                  command: bpjsks
                  data:
                    customer_id: '8888802379205901'
                    product_code: SPBPJSKSPOS
                    period: 1
              BPJS TK PU:
                summary: BPJS Ketenagakerjaan PU Inquiry (with period)
                value:
                  command: bputk
                  data:
                    customer_id: '0000012345678'
                    product_code: SPBPUTKPOS
                    period: 1
              BPJS TK BPU:
                summary: BPJS Ketenagakerjaan BPU Inquiry (with period)
                value:
                  command: putk
                  data:
                    customer_id: '0000012345678'
                    product_code: SPPUTKPOS
                    period: 1
              PDAM:
                summary: PDAM Inquiry
                value:
                  command: pdam
                  data:
                    customer_id: '0812345678'
                    product_code: SPPDAMPOS
              Internet TV:
                summary: Internet TV Inquiry
                value:
                  command: intv
                  data:
                    customer_id: '121234567890'
                    product_code: SPINTVPOS
              Pulsa Pascabayar:
                summary: Pulsa Pascabayar Inquiry
                value:
                  command: mobpos
                  data:
                    customer_id: '081234567890'
                    product_code: SPMOBPOS
      responses:
        '200':
          description: Inquiry successful
          content:
            application/json:
              schema:
                properties:
                  command:
                    type: string
                    example: plnpos
                  response_code:
                    type: string
                    example: '00'
                  response_text:
                    type: string
                    example: Inquiry success
                  data:
                    description: Inquiry result (structure varies by product category)
                    properties:
                      amount:
                        type: string
                        example: '151005'
                      customer_name:
                        type: string
                        example: NARSONO
                      period:
                        type: string
                        example: '202403'
                      customer_id:
                        type: string
                        example: '146300068064'
                      reference_number:
                        type: string
                        example: SPPLNPOSRJBL0080217757411749548209
                      price:
                        type: string
                        example: '152505'
                      created_at:
                        type: string
                        example: '2025-06-10 16:36:49'
                    type: object
                type: object
              examples:
                PLN Pascabayar Success:
                  summary: PLN Pascabayar inquiry success
                  value:
                    command: plnpos
                    response_code: '00'
                    response_text: Inquiry success
                    data:
                      amount: '151005'
                      customer_name: NARSONO
                      period: '202403'
                      customer_id: '146300068064'
                      reference_number: SPPLNPOSRJBL0080217757411749548209
                      price: '152505'
                      created_at: '2025-06-10 16:36:49'
                BPJS Kesehatan Success:
                  summary: BPJS Kesehatan inquiry success
                  value:
                    command: bpjsks
                    response_code: '00'
                    response_text: Inquiry success
                    data:
                      amount: '70000'
                      customer_name: KAYAH
                      period: '1'
                      customer_id: '8888802379205901'
                      reference_number: SPBPJSKSPOSRJBL0051066291251749548602
                      price: '72500'
                      created_at: '2025-06-10 16:43:22'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
        '500':
          description: System error
          content:
            application/json:
              schema:
                properties:
                  command:
                    type: string
                    example: plnpos
                  response_code:
                    type: string
                    example: '99'
                  response_text:
                    type: string
                    example: System error, please try again
                type: object
      security:
        - bearerAuth: []
components:
  schemas:
    UnauthorizedErrorResponse:
      description: Unauthorized error response (HTTP 401)
      required:
        - status
        - success
        - error
      properties:
        status:
          type: integer
          example: 401
        success:
          type: boolean
          example: false
        error:
          properties:
            code:
              type: integer
              example: 401
            message:
              type: string
              example: Unauthorized merchant, please sign in
          type: object
      type: object
    ValidationErrorResponse:
      description: Validation error response (HTTP 422)
      required:
        - command
        - response_code
        - response_text
        - data
      properties:
        command:
          type: string
          example: detail-bill-transaction
        response_code:
          type: string
          example: '04'
        response_text:
          type: string
          example: Rejected Format Error
        data:
          description: Field-level error messages
          type: object
          example:
            data: The data field is required.
            data.transaction_id: The data.transaction id field is required.
          additionalProperties:
            type: string
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      description: JWT Bearer token obtained from /api/v1.0/access-token/b2b
      bearerFormat: JWT
      scheme: bearer

````