API Services
Header parameters for transaction request.
Parameter M/O/C Data Type Description
Header parameters for transaction response.
Parameter M/O/C Data Type Description
Body
Direct Debit Payment
POST
/{version}/debit/payment-host-to-host
This API service is used for payment using direct debit.
Service Code: 54
Notes: - *
is required
- Current version: v1.0
URL Path
Sandbox: https://debit-sandbox.faspay.co.id/v1.0/debit/payment-host-to-host
Request Body
Please take note of request parameters there are specific parameters exclusively utilized for particular payment channels, such as for payment channels Dana Subs, LinkAja, and BRI Direct Debit.
Response Parameters Direct Debit Payment
DD Payment Request Sample DD Payment Request Sample(Dana Subs) DD Payment Request Sample(LinkAja) DD Payment Request Sample(BRI Direct Debit) DD Payment Request Sample(OVO Tokenized) DD Payment Response Sample
Copy {
"partnerReferenceNo" : "2020102900000000000008" ,
"merchantId" : "99999" ,
"amount" : {
"value" : "100.00" ,
"currency" : "IDR"
} ,
"validUpTo" : "2023-03-31T23:00:00+07:00" ,
"additionalInfo" : {
"channelCode" : "722" ,
"billDate" : "2023-03-31T23:00:00+07:00" ,
"billDescription" : "SNAP Transaction" ,
"phoneNo" : "081274657847" ,
}
}
Copy {
"partnerReferenceNo" : "2020102900000000000001" ,
"merchantId" : "99999" ,
"amount" :
{
"value" : "2000.00" ,
"currency" : "IDR"
} ,
"validUpTo" : "2023-10-12T23:00:00+07:00" ,
"additionalInfo" :
{
"channelCode" : "722" ,
"billDate" : "2023-10-12T14:30:00+07:00" ,
"billDescription" : "SNAP Transaction" ,
"customerName" : "John Dokul" ,
"phoneNo" : "081382826301" ,
"email" : "denis@faspay.co.id" ,
"items" :
{
"product" : "Black and white" ,
"subscriptionMessage" : "box office" ,
"subscriptionIntervalType" : "MONTHLY" ,
"subscriptionIntervalValue" : "1" ,
"externalGoodsId" : "cart-123"
}
}
}
Copy {
"partnerReferenceNo" : "2020102900000000000001" ,
"merchantId" : "99999" ,
"amount" :
{
"value" : "2000.00" ,
"currency" : "IDR"
} ,
"validUpTo" : "2023-10-12T23:00:00+07:00" ,
"additionalInfo" :
{
"channelCode" : "302" ,
"billDate" : "2023-10-12T14:30:00+07:00" ,
"billDescription" : "SNAP Transaction" ,
"customerName" : "John Dokul" ,
"phoneNo" : "081382826301" ,
"email" : "denis@faspay.co.id" ,
"items" :
{
"id" : "1" ,
"product" : "Black and white" ,
"amount" :
{
"value" : "1000.00" ,
"currency" : "IDR"
} ,
"quantity" : "2" ,
}
}
}
Copy {
"bankCardToken":"card_.eyJpYXQiOjE2OTYyMzA2MTIsImlzcyI6IkJhbmsgQlJJIC0gRENFIiwianRpIjoiOWJlNDE3MWYtNTljNS00MzJiLWI5ODktNmQyYWUzNDVhNGIxIiwicGFydG5lcklkIjoi77-9Iiwic2VydmljZU5hbWUiOiJERF9FWFRFUk5BTF9TRVJWSUNFIn0.rJBUCGvNqIuCcvQo_gih9rLEMRBqu74YzWOJU6kt-E3rlXWcUTwFA66dWDxIBUbMMtVT3FbPD3jICSYJ75ULopT8ibUrecafTg4XzYf2-mGglUBCd9KCC3xdo9pccZwG_VYIWeH8gk7cqw-jKs440WYX4Znf5R2-CE7-P13yDqS9-xfoggM4E0H5jvqSrBTswQ5MgfryX5FtdJ0TV0pNPmEZ5p7V_qzQnUFxgZxL6ueYaAF5EfG3bQcBRhHuXJ_YDnhEuH4oGFET5esbM_wT-R40X0flXEBC4JDqripwGt0-KqaTAtfp4zZ0udj-08RmkMPFCJGfNSz1-r3BRGYzcw",
"partnerReferenceNo" : "2020102900000000000001" ,
"merchantId" : "99999" ,
"amount" : {
"value" : "1000.00" ,
"currency" : "IDR"
} ,
"validUpTo" : "2023-10-27T23:00:00+07:00" ,
"additionalInfo" : {
"channelCode" : "714" ,
"billDate" : "2023-10-27T14:00:00+07:00" ,
"billDescription" : "SNAP Transaction" ,
"customerName" : "John Dokul" ,
"phoneNo" : "081382826301" ,
"email" : "denis@faspay.co.id"
}
}
Copy {
"partnerReferenceNo" : "2020102900000000000001" ,
"merchantId" : "99999" ,
"amount" :
{
"value" : "2000.00" ,
"currency" : "IDR"
} ,
"validUpTo" : "2023-10-23T23:00:00+07:00" ,
"additionalInfo" :
{
"channelCode" : "720" ,
"billDate" : "2023-10-23T16:30:00+07:00" ,
"billDescription" : "SNAP Transaction" ,
"customerName" : "John Dokul" ,
"phoneNo" : "081382826301" ,
"email" : "denis@faspay.co.id"
}
}
Copy {
"responseCode" : "2005400" ,
"responseMessage" : "Request has been processed successfully" ,
"referenceNo" : "9999972270967929" ,
"partnerReferenceNo" : "2020102900000000000008" ,
"webRedirectUrl":"https://debit-staging.faspay.co.id/pws/100003/0830000010100000/f6b92da317d40ffbc40c98ffa80cc924d7b35dd5?trx_id=9999972270967929&merchant_id=99999&bill_no=2020102900000000000008",
"additionalInfo" :
{
"merchantId" : "99999" ,
"amount" :
{
"value" : "100.00" ,
"currency" : "IDR"
}
}
}
To use the OVO Tokenized payment channel, users need to initially activate their phone numbers
Direct Debit Payment Status
POST
/{version}/debit/status
This API service is used to check the direct debit payment status.
Service Code: 55
Notes: - *
is required
- Current version: v1.0
URL Path
Sandbox: https://debit-sandbox.faspay.co.id/v1.0/debit/status
Request Body
Response Parameters Direct Debit Payment Status
DD Payment Status Request Sample DD Payment Status Response Sample
Copy {
"originalPartnerReferenceNo" : "2020102900000000000001" ,
"originalReferenceNo" : "7139999985808445" ,
"serviceCode" : "55" ,
"merchantId" : "99999" ,
"additionalInfo" :
{
"channelCode" : "713"
}
}
Copy {
"responseCode" : "2005500" ,
"responseMessage" : "Request has been processed successfully" ,
"originalPartnerReferenceNo" : "2020102900000000000001" ,
"originalReferenceNo" : "7139999985808445" ,
"serviceCode" : "55" ,
"latestTransactionStatus" : "00" ,
"transactionStatusDesc" : "Success" ,
"paidTime" : "2023-10-17 15:22:43" ,
"additionalInfo" :
{
"merchantId" : "99999" ,
"amount" :
{
"value" : "1000.00" ,
"currency" : "IDR"
} ,
"paymentReff" : "164897256163543860"
}
}
Direct Debit Payment Cancel
POST
/{version}/debit/cancel
The Direct Debit Payment Cancel API is used when there are cancelation of the payment.
Service Code : 57
Notes: - *
is required
- Current version: v1.0
URL Path
Sandbox: https://debit-sandbox.faspay.co.id/v1.0/debit/cancel
Request Body
Response Parameters Direct Debit Payment Cancel
DD Payment Cancel Request Sample DD Payment Cancel Response Sample
Copy {
"originalPartnerReferenceNo" : "2020102900000000000001" ,
"originalReferenceNo" : "1653473625364758" ,
"merchantId" : "99999" ,
"reason" : "Network timeout" ,
"additionalInfo" : {
"channelCode" : "302"
}
}
Copy {
"responseCode" : "2005700" ,
"responseMessage" : "Request has been processed successfully" ,
"originalPartnerReferenceNo" : "2020102900000000000001" ,
"originalReferenceNo" : "7139999910232541" ,
"cancelTime" : "2023-03-21T10:42:40+07:00" ,
"additionalInfo" :
{
"merchantId" : "99999" ,
"latestTransactionStatus" : "05" ,
"transactionStatusDesc" : "Cancelled"
}
}
Payment Notification
Payment notification from Faspay to merchant backend will also be triggered an event of transaction status getting updated, to ensure merchant is securely informed. Please provide the URL and make sure it's already registered on Faspay system.
The detailed API reference can be found here
Integration Requirement
Integration need API & Credential Key.
Response Code
Response status consists of 2 components, the code (response code) and the description (response message).
Response Code List