Title |
API Prepaid Payment
|
Version |
v1.0 |
URL Sandbox |
https://stg-pg.singapay.id |
URL Production |
- |
Doc Version |
API Version |
Date |
Document Link |
Description |
v1.0 |
v1.0 |
17 June 2025 |
- |
- |
HTTP method |
POST |
Path |
/api/v1/prepaid/payment |
Type Format |
JSON |
Key |
Value |
Format |
M/O/C |
Length |
command |
|
String |
M |
- |
data.password |
|
String |
M |
- |
data.product_code |
|
String |
M |
- |
data.customer_id |
|
String |
M |
- |
data.reference_number |
|
String |
M |
- |
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 |
- |
- |
{
"command": "plntok",
"data": {
"password" : "adepisHImankY2@",
"product_code" : "SPPLNTOK200",
"customer_id" : "14234187889",
"reference_number" : "SPPLNTOK200RJBL0057003061501750044448"
}
}
Success: Here’s an example of a successful response.
{
"command": "plntok",
"response_code": "00",
"response_text": "Payment success",
"data": {
"customer_name": "FREDI BASAH",
"token": null,
"customer_id": "14234187889",
"amount": "201500",
"price": "201500",
"transaction_id": "01JXVCEF994H9VWF2V99839Z7D",
"created_at": "2025-06-16 10:27:38"
}
}