POST TopUp/Inquiry

Request Information

URI Parameters

None.

Body Parameters

TopUpInquiryRequest
NameDescriptionTypeAdditional information
productCode

string

None.

customerID

string

None.

customerMSISDN

string

None.

sequence

integer

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "productCode": "sample string 1",
  "customerID": "sample string 2",
  "customerMSISDN": "sample string 3",
  "sequence": 4,
  "userID": "sample string 5",
  "accessToken": "sample string 6"
}

application/xml, text/xml

Sample:
<TopUpInquiryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 6</accessToken>
  <userID>sample string 5</userID>
  <customerID>sample string 2</customerID>
  <customerMSISDN>sample string 3</customerMSISDN>
  <productCode>sample string 1</productCode>
  <sequence>4</sequence>
</TopUpInquiryRequest>

Response Information

Resource Description

TopUpInquiryResponse
NameDescriptionTypeAdditional information
productCode

string

None.

customerID

string

None.

noMeter

string

None.

customerMSISDN

string

None.

customerName

string

None.

powerRate

string

None.

payment

decimal number

None.

adminBank

decimal number

None.

billingReferenceID

string

None.

period

string

None.

additionalMessage

string

None.

respTime

describe time in sending response

date

None.

userID

user ID to access API

string

None.

accessToken

access token that needed to access API

string

None.

status

SUCCESS or FAILED

string

None.

respMessage

detail message of response status

string

None.

Response Formats

application/json, text/json

Sample:
{
  "productCode": "sample string 1",
  "customerID": "sample string 2",
  "noMeter": "sample string 3",
  "customerMSISDN": "sample string 4",
  "customerName": "sample string 5",
  "powerRate": "sample string 6",
  "payment": 7.0,
  "adminBank": 8.0,
  "billingReferenceID": "sample string 9",
  "period": "sample string 10",
  "additionalMessage": "sample string 11",
  "respTime": "2025-04-18T05:40:53.3131269+07:00",
  "userID": "sample string 13",
  "accessToken": "sample string 14",
  "status": "sample string 15",
  "respMessage": "sample string 16"
}

application/xml, text/xml

Sample:
<TopUpInquiryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 14</accessToken>
  <respMessage>sample string 16</respMessage>
  <respTime>2025-04-18T05:40:53.3131269+07:00</respTime>
  <status>sample string 15</status>
  <userID>sample string 13</userID>
  <additionalMessage>sample string 11</additionalMessage>
  <adminBank>8</adminBank>
  <billingReferenceID>sample string 9</billingReferenceID>
  <customerID>sample string 2</customerID>
  <customerMSISDN>sample string 4</customerMSISDN>
  <customerName>sample string 5</customerName>
  <noMeter>sample string 3</noMeter>
  <payment>7</payment>
  <period>sample string 10</period>
  <powerRate>sample string 6</powerRate>
  <productCode>sample string 1</productCode>
</TopUpInquiryResponse>