Skip to main content

Recurring

Body Request

NoNameTypeMandatoryMin LengthMax LengthDescription
1 orderObjectM112Detail of Order
2 customerObjectM18Detail of Customer
3 urlObjectM14Detail of Url
4 billingObjectO11Detail of Billing
5 shippingObjectO14Detail of Shipping
6 metaObjectO11Detail of MetaData
7 cardObjectO17Detail of Card
8 recurringObjectM111Detail of Recurring
9 sourceOfFundsObjectM111Detail of SourceOfFunds
10 deviceObjectO17Detail of Device

Sample Request

{
"customer": {
"id": "hajar.finnet@gmail.com",
"email": "hajar.finnet@gmail.com",
"firstName": "Hajar",
"lastName": "Ismail",
"mobilePhone": "+6281286288844"
},
"order": {
"id": "1686716101151",
"amount": "1000",
"currency": "IDR",
"description": "Testing"
},
"recurring": {
"type": "PURCHASE",
"id": "abcd",
"amount": "1000",
"interval": "1",
"intervalUnit": "monthly",
"maxInterval": "2",
"startDate": "20230715",
"endDate": "20240715",
"retry": {
"interval": "1",
"intervalUnit": "minutes",
"maxInterval": "1"
}
},
"url": {
"callbackUrl": "https://sandbox.finpay.co.id/simdev/finpay/result/tangkapCurl.php"
},
"sourceOfFunds": {
"type": "cc"
}
}

Body Response

NoNameTypeMandatoryMin LengthMax LengthDescription
1 responseCodeEnumM17Response Code
2 responseMessageStringM1500Response Message
3 paymentCodeStringO130Payment Code
4 redirecturlStringM1320Redirect URL
5 expiryLinkStringM119Expiry Link
6 processingTimeNumberM120Processing Time
7 appurlStringO1320App URL
8 imageurlStringO1320Image URL
9 accountListArrayO14Account List

Sample Response

{
"responseCode": "2000000",
"responseMessage": "Success",
"redirecturl": "https://devo.finpay.id/pg/payment/card/access/5deff9bd9b6be81ec2cc9d87b4f4eed5dae09198fd65731ed0eaf46a3aba5ffe",
"expiryLink": "2023-07-15 14:42:01",
"processingTime": 0.12071895599365234
}