Delivery Service
API for delivery services that provide customers onboarding, payment, and wallet services.
Main wallet
Get OTP
OTP Request API is used to trigger OTP for registered Mobile Numbers. The OTP will be sent to the registered mobile number via WhatsApp or SMS (if the registered mobile number is not registered on WhatsApp)
Endpoint
[GET]
https://{{hostname}}/pil-partner-get-otp/?mobileNumber=
Response (Success)
Headers
Content-Type:application/json
Body
{
"message": [string],
"code": [int],
"data": {
"expiry": [int]
}
}
Response (Fail)
Headers
Content-Type:application/json
Body
{
"code": [int],
"message": [string]
}
Customer Inquiry
This API is used for partners requesting customer details such as name, account type, account status, customer type, email, telephone number, KYC status, total balance.
Endpoint
[GET]
https://{{hostname}}/customer-account-inquiry/?mobileNumber=
Response (Success)
Headers
Content-Type:application/json
Body
{
"code": [int] "message": [string] "data": {
"firstName": [string], "middleName": [string],
"lastName": [string], "fullName": [string], "accountType": [string], "accountStatus": [string], "customerType": [string], "email": [string], "mobileNumber": [numeric], "kycStatus": [string], "balance":
{
"pocketId": [string],
"availableBalance": [string] }
} }
Response (Fail)
Headers
Content-Type:application/json
Body
{
"code": [int], "message": [string] }
Transfer to Bank
Transfer API is used to make transfer transactions from a user’s wallet to a bank account
Endpoint
[POST]
https://{{hostname}}/bank-transfer/
Response (Success)
Headers
Content-Type:application/json
Body
{
"responseId": [string],
"code": [int],
"data": {
"bankAccount": [numeric],
"bankName": [string],
"bankAccountName": [string],
"serviceFee": [money],
"amount": [money],
"totalAmount": [money],
"balanceBefore": [money],
"balanceAfter": [money],
"date": [datetime],
},
"message": [string]
}
Response (Fail)
Headers
Content-Type:application/json
Body
{
"responseId": [string],
"code": [int],
"message": [string]
}
Wallet Payment
This API is used to process in-app transaction payments using wallet balances.
Endpoint
[POST]
https://{{hostname}}/bank-transfer/
Customer Registration
This API is used for partners to register KasPro through partner applications.
Endpoint
[POST]
https://{{hostname}}/register-customer/
Response (Success)
Headers
Content-Type:application/json
Body
{
"responseId": [string],
"message": [string],
"code": [int]
}
Response (Fail)
Headers
Content-Type:application/json
Body
{
"responseId ": [string],
"code": [int],
"message": [string]
}
Validate OTP
The Validate OTP API is used to validate the OTP code that has been input by the user.
Endpoint
[POST]
https://{{hostname}}/validate-otp/
Response (Success)
Headers
Content-Type:application/json
Body
{
"message": [string],
"code": [int]
}
Response (Fail)
Headers
Content-Type:application/json
Body
{
"code": [int],
"message": [string]
}
Top-Up [transfer VA and cash-in via modern trade]
QRIS payment
The Cash Out API is used to make cash withdrawals from the user’s wallet balance
Endpoint
[POST]
https://{{hostname}}/bank-transfer/
Response (Success)
Headers
Content-Type:application/json
Body
{
"code": 1,
"message": "In Process",
"responseId":
"OLSFQ20220214101951114",
"data": {
"account": "888xxxxxxxxx918",
"amount": "4xxx9",
"price": "4xxx9",
"serviceFee": "6xxx",
"reffId": "OLSFQ20220214101951114",
"flowType": "Async"
}
}
Response (Fail)
Headers
Content-Type:application/json
Body
{
"responseId": [string],
"code": [int],
"message": [string]
}