NAV Navbar
Logo
shell

Getting Started

Introduction

Simplifying Buying

On your e-commerce site, Kredivo Checkout let your customers finalize their purchase by providing their phone number and password. As for offline transaction, customers only need to scan QR code on their Kredivo mobile app and finish the transaction on the app.

Optimized for all devices No risk. You always get paid
Kredivo Checkout adapts seamlessly to both desktops and mobile devices. This means that you instantly get the same conversion on mobiles as on desktops. One-click buying increases conversion by an additional 29% for returning customers. Kredivo assumes all risk for both the customer and merchant. That means no more charge-backs for you as a merchant.

Try Kredivo Checkout

We have set up a demo checkout so that you can try it out yourself, just go to one of our partner sites.

Preparation

Prepare your site

In order to complete the Kredivo Checkout integration process as simply and quickly as possible, we recommend that you start by setting up the following.

Checkout page and confirmation page

Both the checkout page and the checkout confirmation page are hosted by you. Both these pages must include a div that you will populate with the Kredivo Checkout button. You will learn what the Kredivo Checkout is in our first tutorial, embed the checkout. Kredivo Checkout is responsive, which means that it will always use the full width of the container.

Tip! Place the Kredivo Checkout button so that your customers can see it instantly after loading the checkout page without scrolling. Provide clear calls to action to improve your conversion rates, such as “Finalize your purchase now”.

mco

An example of what the checkout looks like on different devices.

Push notification URI

As you will learn in the Confirm purchase tutorial, Kredivo needs a URI to inform you of the order status. You will need to include a placeholder in the push URI, which Kredivo will then replace with the order URI when we send the push request.

Developer Help

If you need any help with the documentation and sandbox environment, please email support@kredivo.com and we’ll respond as soon as we can.

If you do not already have a merchant account, please email support@kredivo.com to get setup with one.

Developer FAQ

  1. Does Kredivo work on desktop and mobile? Yes, desktop, mobile, and tablet web.
  2. I’m not a retailer but I want to offer Kredivo financial products in my site/app do you have an API for that? See previous answer. If you are interested in joining a pilot let us know support@kredivo.com
  3. Is Kredivo another payment processor? No

Integration

Register

You’ll need a server_key to interact with the Kredivo’s server. Please send an email to merchops@finaccel.co to sign up as an Kredivo merchant and get server_key.

Checkout with Kredivo

Kredivo provides two very straightforward checkout methods for you.

1. 2-click Checkout

This checkout method works for your e-commerce site. By using this checkout method, your customer will only need to input their mobile number and PIN, then finalize the purchase by inputting OTP.

You can learn more about Kredivo 2-click checkout API here. This is how Kredivo 2-click checkout works.

confirmation flow

2. QR Checkout

This checkout method enables your customer to purchase from your offline store using their Kredivo limit. Our API will give you the QR code which will be displayed on your POS device. Your customer will then scan that QR code and they can finalize their payment on their Kredivo mobile app.

You can learn more about Kredivo QR checkout API here. This is how Kredivo QR checkout works.

confirmation flow

Tokenization and Express Checkout

Tokenization is a feature that allows Kredivo users to tokenize their Kredivo account inside the merchant’s platform. A tokenized user will then be able enjoy our express checkout feature. Whereas our regular checkout requires the user to enter his/her phone number, PIN, and OTP to confirm the transaction, the express checkout will essentially allow the user to checkout without entering anything. In the case where our security system flags a transaction as suspicious, we will throw an OTP challenge to the user.

Our tokenization feature, along with the express checkout capability, is a great leap forward even when compared to our already smooth 2-click regular checkout. It is the smoothest checkout process in the market today, giving unparalleled user experience.

This tokenization feature is only be available for selected merchants. Contact us if you’re interested in using this feature.

2-click Checkout

On this step, we will try to obtain the Kredivo Login page when performing a transaction. There is at least 3 components that are required to obtain Kredivo Login page:

You’ll need a server_key to interact with the Kredivo’s server. Please send an email to merchops@finaccel.co to sign up as an Kredivo merchant and get server_key.

Initiate 2-click Checkout

To initiate 2-click checkout with Kredivo, you will need to call checkout_url API.

Using the API:

The Request JSON structured like this:

{
    "server_key":"MEJ4FLRc74UU64cxCF8Z3HYSpPctD7",
    "payment_type":"30_days",  
    "tokenize_user": false,
    "client_user_key": "randy@finaccel.co",
    "user_token" : "XXXX-XXXX",
    "transaction_details": {
        "amount":6505000,
        "order_id":"KD14721",
        "items": [
            {
                "id":"BB12345678",
                "name":"iPhone 5S",
                "price":6000000,
                "type":"Smartphone",
                "url":"http://merchant.com/cellphones/iphone5s_64g",
                "quantity":1
            },
            {
                "id":"AZ14565678",
                "name":"Hailee Sneakers Blink Silver",
                "price":250000,
                "url":"http://merchant.com/fashion/shoes/sneakers-blink-shoes",
                "type":"Sneakers",
                "quantity":2,
                "parent_type":"SELLER",
                "parent_id":"SELLER456"
            },
            {
                "id":"taxfee",
                "name":"Tax Fee",
                "price":1000,
                "quantity":1
            },
            {
                "id":"shippingfee",
                "name":"Shipping Fee",
                "price":9000,
                "quantity":1,
                "parent_type":"SELLER",
                "parent_id":"SELLER456"
            },
            {
                "id":"discount",
                "name":"Discount",
                "price":5000,
                "quantity":1
            }
        ]
    },
    "sellers":[
        {
            "id":"SELLER123",
            "name":"Sunrise",
            "email": "sunrise@gmail.com",
            "url":"https://onlineshop/seller/sunrise",
            "address" : {
                "first_name":"Irfan",
                "last_name":"Sutandro",
                "address":"Jalan Tentara Pelajar no 49",
                "city":"Jakarta Utara",
                "postal_code":"12960",
                "phone":"08123456789",
                "country_code":"IDN"
            }  
        },
        {
            "id":"SELLER456",
            "name":"Toko Bagus",
            "email": "tokobagus@gmail.com",
            "url":"https://onlineshop/seller/tokobagus",
            "address" : {
                "first_name":"Toto",
                "last_name":"Wahyuni",
                "address":"Jalan Krici raya IX",
                "city":"Jakarta Selatan",
                "postal_code":"12960",
                "phone":"08123456789",
                "country_code":"IDN"
            }
        }
    ],
    "customer_details": {
        "first_name":"Oemang",
        "last_name":"Tandra",
        "email":"alie@satuduatiga.com",
        "phone":"081513114262"
    },
    "billing_address": {
        "first_name":"Oemang",
        "last_name":"Tandra",
        "address":"Jalan Teknologi Indonesia No. 25",
        "city":"Jakarta",
        "postal_code":"12960",
        "phone":"081513114262",
        "country_code":"IDN"
    },
    "shipping_address": {
        "first_name":"Oemang",
        "last_name":"Tandra",
        "address":"Jalan Teknologi Indonesia No. 25",
        "city":"Jakarta",
        "postal_code":"12960",
        "phone":"081513114262",
        "country_code":"IDN"
    },
    "metadata": {
        "ip_address":"192.168.88.1",
        "user_agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0"
    },
    "push_uri":"https://api.merchant.com/push",
    "back_to_store_uri":"https://merchant.com"
}

The Response returns JSON structured like this:


  Positive Response :

  {
    "status":"OK",
    "message":"Message if any",
    "redirect_url":"https://sandbox.kredivo.com/kredivo/v2/signin?tk=XXX"
  }

  Negative Response:

  {
    "status": "ERROR",
    "error": {
        "message": "Field secret_key is INCORRECT.",
        "kind": "APIException"
    }
  }

Request Body

Name Type Description
server_key String Required. Each merchant will have server_key generated by Kredivo.
payment_type String Required. You can set default value with 30_days or 12_months. Payment id/type chosen by the shopper (30_days, 3_months, 6_months, 12_months)
tokenize_user Boolean Optional, default value is false. Set this to True if you want to tokenize the user. You will get user_token when the transaction status is settled.
client_user_key String Optional. Required if tokenize_user = true. Should be unique per user on client side
user_token String Optional. If user_token is set, this will be used to authenticate user.
transaction_details Transaction Details of the transaction
customer_details Customer Required. Details of the customer
sellers Seller Optional (compulsory for marketplaces). Details of the seller for marketplaces
billing_address Address Optional. Billing address of the customer/shopper
shipping_address Address Required. Shipping address of the customer/shopper. shipping is required for goods (excluding ticket/voucher)
metadata Metadata Optional. Object containing the metadata parameters
push_uri String Required. URI of merchant push-notification API (HTTP POST)
user_cancel_uri String Optional. URI that the customer is sent to if the customer chooses to cancel the Kredivo payment before completion
back_to_store_uri String Required. URI of your store page. Used on the settlement page. Kredivo’s server will pass some params to this uri for merchant’s server acknowledgement: order_id: Order Id given by Merchant; tr_id: Transaction Id given by Kredivo;tr_status: Transaction status of a transaction; sign_key: Signature key to validate if the notification is originated from Kredivo. Please contact us how to parse this signature_key by using your client key.
expiration_time String (epoch) Optional. by default kredivo set expiration time 24 hours after transaction time.

Response

Name Type Description
status String Status code (OK or ERROR)
message String Description of status
redirect_url String Redirect URL will be sent for regular transaction. If the user has been authenticated, there will be 2 scenarios: If our security system flags the transaction, we will pass a redirect URL that contains an OTP challenge for the user. Otherwise, we will not pass any redirect URL and you will only need to wait for a callback from Kredivo.
error Message : Description of error status; Kind : error type

Transaction

Name Type Description
order_id String Required. Order Id given by merchant
amount Double Required. The transaction amount
items Item Required. The shopping items

Product Item

Name Type Description
id String Required. Can be product SKU. Important! for item fee such as: shipping fee, admin fee etc. you have to use this id: shippingfee, adminfee, taxfee, discount, additionalfee, insurancefee, mixpayment.
name String Required. product name given by merchant
price Double Required. Price of the item
url String Required. URL to the product item on merchant site
image_url String Optional. URL to the product item image
type String Required. Product category.
quantity Integer Required. Quantity of the item bought
parent_type String Optional. You can assign the fee to either SELLER or ITEM. If not specified, this will be tied to transaction level
parent_id String Optional. This is either the seller Id or item Id

Customer

Name Type Description
first_name String Required.
last_name String Optional.
email String Required.
phone String Required.

Address

Name Type Description
first_name String Required.
last_name String Optional.
address String Required.
city String Required.
postal_code String Required.
phone String Required.
country_code String Required. ISO 3166-1 alpha-3

Seller

Name Type Description
id String Required. Seller’s Id
name String Required. Seller’s name
url String Require. Seller’s url
legal_id String Optional. Seller’s legal Id (KTP, SIM or passport number)
email String Required. Seller’s email
address Address Required. Seller’s residential address

Metadata

Name Type Description
ip_address String Optional.
user_agent String Optional.
device_id String Optional. IMEI or IMSI of buyer device
imsi String Optional.

HTTP(S) Header

Name Type Description
Content-Type String application/json
Accept String application/json

Payment Type

This is optional step if you want to display list of eligible payment type and implement Installment on your page to calculate and display Installment breakdown on your checkout page.

Using the API:

The Request JSON structured like this:

  {
    "server_key":"8tLHIx8V0N6KtnSpS9Nbd6zROFFJH7",
    "amount":2400000,
    "items": [
        {
            "id":"BB12345678",
            "name":"iPhone 5S",
            "price":2400000,
            "url":"http://merchant.com/cellphones/iphone5s_64g",
            "type":"Smartphone",
            "quantity":1
        }
    ]
  }

Example Response:

  {
    "status": "OK",
    "message": "Available payment types are listed.",
    "payments": [
        {
            "down_payment": 0,
            "name": "Bayar dalam 30 hari",
            "amount": 2400000,
            "installment_amount": 2400000,
            "rate": 0,
            "monthly_installment": 2400000,
            "discounted_monthly_installment": 0,
            "tenure": 1,
            "id": "30_days"
        },
        {
            "down_payment": 0,
            "name": "Bayar dalam 3 bulan",
            "interest_rate_transition_term": 0,
            "amount": 2400000,
            "installment_amount": 2568870,
            "rate": 2.95,
            "monthly_installment": 856290,
            "discounted_monthly_installment": 0,
            "tenure": 3,
            "id": "3_months"
        },
        {
            "down_payment": 0,
            "name": "Bayar dalam 6 bulan",
            "interest_rate_transition_term": 0,
            "amount": 2400000,
            "installment_amount": 2700540,
            "rate": 2.95,
            "monthly_installment": 450090,
            "discounted_monthly_installment": 0,
            "tenure": 6,
            "id": "6_months"
        },
        {
            "down_payment": 0,
            "name": "Bayar dalam 12 bulan",
            "interest_rate_transition_term": 0,
            "amount": 2400000,
            "installment_amount": 2976600,
            "rate": 2.95,
            "monthly_installment": 248050,
            "discounted_monthly_installment": 0,
            "tenure": 12,
            "id": "12_months"
        }

    ]
}

Request Body

Name Type Description
server_key String Required. Each merchant will have server_key generated by Kredivo.
amount Integer Required. The transaction amount
items Item Required. The shopping items

Response

Name Type Description
status String Status code (OK or ERROR)
payments Payment List of available payment type to the transaction including its breakdown. You can find available payment type here.

Product Item

Name Type Description
id String Required. Can be product SKU. Important! for item fee such as: shipping fee, admin fee etc. you have to use this id: shippingfee, adminfee, taxfee, discount, additionalfee, insurancefee, mixpayment.
name String Required. Product name
price double Required. Price of the item in the quantity
url String Required. URL to the product item on merchant site
image_url String Optional. URL to the product item image
type String Required. Product category
quantity Integer Required. Quantity of the item bought

Payment Type

Name Type Description
id String Payment id/type chosen by the shopper (30_days, 3_months, 6_months, and 12_months)
name String Payment type name
tenure Integer tenure
rate float interest
amount Double Transaction amount. Total purchased items.
monthly_installment Double total installment per month
installment_amount Double total installment
down_payment Double total down payment
interest_rate_transition_term float spesial interest
discounted_monthly_installment Double discounted monthly installment

Confirm Purchase

In this tutorial you will learn how to confirm that you have received and created an order in your system. This confirmation is needed in response to a push notification from Kredivo, indicating that the consumer has completed a purchase. Once you have received the push notification you should update the status of the order.

1. Receive notification from Kredivo

Once a consumer has completed a purchase, Kredivo will inform you via a POST request. The POST request will be made to the push notification URI you provided when you created the checkout order.

HTTP Notification example of transaction::

{
    "status": "OK",
    "amount": "1500100.00",
    "payment_type": "30_days",
    "transaction_status": "pending",
    "order_id": "KD125262",
    "message": "Transaction status is pending",
    "shipping_address": {
        "city": "Jakarta Selatan",
        "first_name": "Darana 2",
        "last_name": "Pratama",
        "countrycode": "IDN",
        "creation_date": "2017-08-04T18:28:14",
        "phone": "0217248724",
        "state": "",
        "transaction": 1505866,
        "postcode": "12120",
        "location_details": "Jl. Kerinci IX No. 5-A"
    },
    "transaction_time": 1501846094,
    "transaction_id": "fadee4e5-99a2-48d6-952d-007f3fa508e8",
    "signature_key": "o5KZPDcxgEA9QutAVcIQwE3suQRkTEIA1VXcoHp7KaWJnpHx0uuHETBVpxfYLbaPyS8RJg34uVxTUX64cfUTzVVhCrSif%2FUg92J2WyLs%2FhQ%3D"
}

Response Body from Kredivo

Name Type Description
status String Status code (OK or ERROR)
message String Description of status
payment_type String Payment id/type chosen by the shopper (30_days, 3_months, 6_months, 12_months)
transaction_id String Transaction Id given by Kredivo
transaction_status String Transaction status of a transaction, the values is:
settlement: Transaction is successful
pending: User has not completed the transaction
deny: Transaction has been denied by Kredivo
cancel: Transaction has been cancelled by merchant
expire: User did not complete transaction, thus transaction is expired
transaction_time UNIX timestamp (epoch) Timestamp of transaction
payment_type String Payment id/type chosen by the shopper (30_days, 3_months, 6_months, 12_months)
shipping_address Address Optional. Shipping address of the customer/shopper
order_id String Order Id given by merchant
amount String The transaction amount
signature_key String Signature key to validate if the notification is originated from Kredivo. Please contact us how to parse this signature_key by using your client key.

Response Address Info

Name Type Description
city String Optional.
first_name String Optional.
last_name String Optional.
countrycode String Optional.
creation_date String Optional.
phone String Optional.
state String Optional.
transaction Integer Optional.
postcode String Optional.
location_details String Optional.

2. Merchant Response

merchant response should be in JSON, structured like this:

  {
    "status":"OK",
    "message":"Message from merchant if any"
  }

3. Confirm the order status

You must now get the order status to validate the notification originated from Kredivo’s server

Using the API:

GET /v2/update?transaction_id=bb0380d7-2688-4e73-a668-997f3fc5cbec&signature_key=5f1fa4a524f5a8201a3a373d67b5796840bed1598b2bb816855d0e14d01cd09b988b4b861f39bed642b4db861108bbf0dd84ce8e17caf675d4bf2c81ab545397

Request Body

Name Type Description
transaction_id String Transaction Id given by Kredivo
signature_key String Signature key to validate if the notification is originated from Kredivo. Please contact us how to parse this signature_key by using your client key.

Response Body

Example response after call API v2/update:

{
    "status": "OK",
    "legal_name": "TANDRA",
    "fraud_status": "accept",
    "order_id": "KD125262",
    "transaction_time": 1501846094,
    "amount": "1500100.00",
    "payment_type": "30_days",
    "transaction_status": "settlement",
    "message": "Confirmed order status. Valid!",
    "transaction_id": "fadee4e5-99a2-48d6-952d-007f3fa508e8",
    "user_token" : "XXXX-XXXX"
}
Name Type Description
status String Status code (OK or ERROR).
message String Description of status
payment_type String Payment id/type chosen by the shopper (30_days, 3_months, 6_months, 12_months)
transaction_id String Transaction Id given by Kredivo
transaction_status String Transaction status of a transaction, the values is:
settlement: Transaction is successful
pending: User has not completed the transaction
deny: Transaction has been denied by Kredivo
cancel: Transaction has been cancelled by merchant
expire: User did not complete transaction, thus transaction is expired
transaction_time UNIX timestamp (epoch) Timestamp of transaction
order_id String Order Id given by merchant
amount String The transaction amount
fraud_status String Detection result by Fraud Detection System (FDS), the values is:accept: Approved by FDS; deny: Denied by FDS. Transaction automatically failed
legal_name String legal name of kredivo account
user_token String Once the user authentication succeeds, we will send you the user token. Use this token to enable the express checkout for the user. Currently the user token has no expiration.

4. Settle an order in your system

You should now settle the order in your system with the order data that you want to store if transaction_status is SETTLEMENT.

Cancel Purchase

Payment can be voided with cancel method if transaction has been completed.

** A transaction can be cancelled within 30 calendar days after the transaction was created. If a cancellation is requested after 14 calendar days, we will charge cancellation fee to merchant. We would not be able to cancel a transaction after 30 calendar days.

Using the API:

Example Request for Full Cancellation :

{
    "server_key":"MEJ4FLRc74UU64cxCF8Z3HYSpPctD7",
    "order_id":"KD14721",
    "transaction_id":"6febc2b2-ac4f-462c-9e7e-56fc5da05d91",    
    "cancellation_reason":"Out of stock",
    "cancelled_by":"Althea",
    "cancellation_date":"1501844808"

}

Example Request for Partial Cancellation :

{
    "server_key":"MEJ4FLRc74UU64cxCF8Z3HYSpPctD7",
    "order_id":"KD14721",
    "transaction_id":"6febc2b2-ac4f-462c-9e7e-56fc5da05d91",
    "cancellation_amount" : 50000,  
    "cancellation_reason":"Out of stock",
    "cancelled_by":"Althea",
    "cancellation_date":"1501844808"

}

Request Body

Name Type Description
server_key String Required. Each merchant will have server_key generated by Kredivo.
order_id String Required. Order Id given by merchant
transaction_id String Required. Transaction Id given by Kredivo
cancellation_amount Integer Optional. If you don’t pass this parameter or if you pass a cancellation amount that is equal to the transaction amount, it will be treated as a full cancellation. If the cancellation amount passed is less than the transaction amount, it will be treated as a partial cancellation. If the cancellation amount is bigger than the transaction amount or a 0 or a negative number, we will return an error.
cancellation_reason String Required. A description that clarifies reason of cancelling the transaction
cancelled_by String Required. Cancellation requester name/ id
cancellation_date UNIX timestamp (epoch) Required. Timestamp of Cancellation

Example Response :

Partial cancellation:
{
  "status": "OK",
  "fraud_status": "accept",
  "order_id": "ALC300080",
  "transaction_time": 1542951231,
  "amount": "1500000.00",
  "payment_type": "30_days",
  "transaction_status": "settlement",
  "message": "Succes cancelling transaction by amount",
  "transaction_id": "69fe07ca-e055-4877-828a-a201a6729163"
}

for Full cancellation 
{
  "status": "OK",
  "fraud_status": "accept",
  "order_id": "740",
  "transaction_time": 1542952038,
  "amount": "50.00",
  "payment_type": "30_days",
  "transaction_status": "cancel",
  "message": "Succes cancelling transaction by amount",
  "transaction_id": "b027a268-c9e3-4e29-aed8-1116babd9594"
}


negative response:
{
    "status": "ERROR",
    "message": "Transaction is already cancelled.",
    "fraud_status": "deny"
}

{
    "status": "ERROR",
    "error": {
        "message": "Cancellation amount bigger than remaining transaction amount that can be cancelled",
        "kind": "APIException"
    }
}

Response

Name Type Description
status String Status code (OK or ERROR).
transaction_id String Transaction Id given by Kredivo
transaction_time UNIX timestamp (epoch) Timestamp of transaction
order_id String Order Id given by merchant
amount String The transaction amount
payment_type String Payment id/type chosen by the shopper (30_days, 3_months, 6_months, 12_months)
Transaction status String Transaction status of a transaction. when there is remaining amount(partial cancellation), transaction status will be stay in settlement. and for full cancellation, transaction status will be cancel.
message String Description of status
fraud_status String Detection result by Fraud Detection System (FDS), the values is:accept: Approved by FDS deny: Denied by FDS.

Check Transaction Status

You can use this API to check individual transaction’s status on Kredivo. You can refer to this chart to see Kredivo’s transaction status flow.

transction flow

transaction flow user register

Using the API:

Example Request :

{
    "server_key": "XNe3UDd2bG6VBqQ2QamqQJ83SNGLnZ",
    "order_id": "KB-0c40f395"
}

Example Response :

{
    "status": "OK",
    "legal_name": "MUHAMMAD RANDY RAHARJA MACHYAR",
    "fraud_status": "accept",
    "order_id": "KB-0c40f395",
    "transaction_time": 1520318880,
    "external_userid": "SbmEaX1fdr",
    "amount": "1500000.00",
    "payment_type": "30_days",
    "transaction_status": "pending",
    "message": "Transaction is pending",
    "transaction_id": "46153904-2611-462c-ab51-2423586638ea"
}

Request Body

Name Type Description
server_key String Required. Each merchant will have server_key generated by Kredivo.
order_id String Required. Order ID given by merchant.

Response

Name Type Description
Status String Status code (OK or ERROR).
Legal name String kredivo user
Fraud status String Detection result by Fraud Detection System (FDS), the values is:accept: Approved by FDS deny: Denied by FDS.
Order id String Order Id given by merchant
Transaction time UNIX timestamp (epoch) Timestamp of transaction
External userid String Kredivo user id
Amount String Transaction amount
Payment type String ayment id/type chosen by the shopper (30_days, 3_months, 6_months, 12_months)
Transaction status String Transaction status of a transaction
Message String Detail status
Transaction id String Transaction Id given by Kredivo.

Deactive User Token

This step you can allow user to deactive his tokenized

Using the API:

The Request JSON structured like this:


{
    "server_key": "ABCD-XXXX-1234",
    "user_token": "XXXX-YYYY"
}


Request Body

Name Type Description
server_key string Mandatory
user_token string user_token sent from Kredivo to tokenize the user.

Response


{
    "Status": "OK", 
    "user_token": "XXXX-YYYY",
    "is_active":false,
    "remarks":"deactive user successful"
}

Negatif Response JSON structured like this:


{
    "status": "ERROR",
    "error": {
        "message": "Field secret_key is INCORRECT.",
        "kind": "APIException"
    }
  }

Success Response

Name Type Description
status string OK
user_token string user_token sent from Kredivo to tokenize the user.
is_active boolean True/False. If False, Kredivo is not able to provide User Credit Details.
remarks string remarks about user token

Error Response

Name Type Description
status String Status code : ERROR
error Object detail of error detail

Detail of Error

Name Type Description
kind String type of error
code Integer error code
message String Error message

Deactive From Kredivo App

The Request JSON structured like this:

{
  "message": "message if any",
  "client_user_key": "randy@finaccel.co"
}

User can also deactivate his/her tokenized account from Kredivo app. Push notif will be sent to inform respective merchant to invalidate user_token. Please contact kredivo to register your push notif endpoint url.

The Response JSON structured like this:

{
  "status": "OK",
  "message": "message if any"
}

Please note when calling to POST /v2/checkout_url with invalid token you will get redirect_url on response body that you should handle to continue as normal flow (Login Page)

Get User Credit Details

Using this api, you can check remaining transaction this aim to help decrease deny order from inssuficient limit.

Using the API:

The Request JSON structured like this:


{
    "server_key": "ABCD-XXXX-1234",
    "user_token": "XXXX-YYYY"
}


Request

Name Type Description
server_key string Mandatory
user_token string Mandatory. user_token sent from Kredivo to tokenize the user.

Response


{
    "Status": "OK", 
    "user_details" : {
        "legal_name" : "Randy Raharja",
        "mobile_number": "62812xxxx0581"
    }
    "user_credit_details": {
        "account_status":1,
        "account_type":2,
        "credit_limit_details":[
            {
                "payment_type":"30_days",               
                "remaining_user_limit":"1500000"
            }
            {
                "payment_type":"3_months",              
                "remaining_user_limit":"5000000"
            }
            {
                "payment_type":"6_months",              
                "remaining_user_limit":"1000000"
            }
            {
                "payment_type":"12_month",              
                "remaining_user_limit":"15000000"
            }

        ]
    }
}

Negatif Response JSON structured like this:

{
    "status": "ERROR",
    "error": {
        "message": "Field user_token is INCORRECT.",
        "kind": "APIException"
    }
}

Success Response

Name Type Description
status string status code : OK
user_details object detail of user .
user_credit_details object detail of user credit details

User Details

Name Type Description
legal_name String
mobile_number String

User Credit Details

Name Type Description
account_status integer Possible values (1: active, 2. inactive)
account_type integer 1: basic (eligible for “30_days” payment type ONLY), 2: premium (eligible for “30_days”, “3_months”, “6_months”, “12_month” payment types)
credit_limit_details obejct list of credit_limit: credit limit details per payment type

Credit Limit Details

Name Type Description
payment_type string Possible values: “30_days”, “3_months”, “6_months”, “12_month”
remaining_user_limit string remaining user limit for payment type

Error Response

Name Type Description
status String Status code : ERROR
error Object detail of error detail

Detail of Error

Name Type Description
kind String type of error
message String Error message

Connect Kredivo Account

This API will enable your users to connect their Kredivo account to your application.

Using the API:

Example Request :

{
    "server_key":"MEJ4FLRc74UU64cxCF8Z3HYSpPctD7",
    "mobile_number" : "085276767676",
    "client_user_key" : "randy@finaccel.co",
    "callback_url":"https://merchant/notify",
    "redirect_url": "https://merchant",
    "customer_details":{
        "first_name":"Oemang",
        "last_name":"Tandra",
        "email":"randy@finaccel.co",        
        "address":"Jalan Teknologi Indonesia No. 25",
        "city":"Jakarta",
        "postal_code":"12960",        
        "country_code":"IDN"
    }
}

Request Body

Name Type Description
server_key String Required. Each merchant will have server_key generated by Kredivo.
mobile_number String Required. customer phone number
client_user_key String Required. Should be unique per user on client side.
callback_url String Required. URI of your API to receive authorization token (HTTP POST)
redirect_url String Required. URI of your store to redirect customer after tokenization process
customer_details String Optional. customer detail info

Example Response :

positive response:
{
    "status": "OK",
    "message":"Message if any",
    "redirect_url":"https://sandbox.kredivo.com/kredivo/v2/connect?tk=XXX"
}

negative response:
{
    "status": "ERROR",
    "message": "Lorem ipsum."
}

Success Connect

Once tokenization successful, Kredivo will inform you via a POST request to your callback_uri.

Response for Callback_url


    {
        "status": "OK",
        "user_token": "XXXX-YYYYY",
        "client_user_key": "randy@finaccel.co",
        "message": "Kredivo-Connect success."
    }

Response Body

Name Type Description
status String Status code
user_token String key to tokenize the user.
cliet_user_key String user identifier, send by merchant.
Message String description

QR Checkout

QR Checkout is a Kredivo payment method that you can implement on your POS. By using this method, you can allow your customer to pay using their Kredivo limit on your offline store.

You will need to obtain server key to interact with Kredivo server. Please send an email to merchops@finaccel.co to sign up as an Kredivo merchant and get server_key.

Initiate QR Checkout

To initiate QR checkout with Kredivo, you will need to init_checkout API.

Using the API:

The Request JSON structured like this:

  {
    "server_key":"8tLHIx8V0N6KtnSpS9Nbd6zROFFJH7",
    "amount":75000,
    "source": "QR",
    "order_id": "548tIt83saeN",
    "sub_merchant_id": "KFCSenayanCity",
    "push_uri" : "https://www.merchantmoka.com/notify"
    "items": [
         {
        "id": "001",
        "name":"Nasi Capcay Seafood",
        "price":50000,
        "type":"Food",
        "quantity":1
        },
         {
        "id": "002",
        "name":"Cappuccino",
        "price":25000,
        "type":"Drink",
        "quantity":1
        }
    ]
}


Response:

  {
    "status": "OK",
    "qr_image": "{HOST}/{endpoint}/v1/qr/6a643481-33fa-4fa7-9135-8a1503fc863a",
    "transaction_id": "6a643481-33fa-4fa7-9135-8a1503fc863a"
  }

Request Body

Name Type Description
server_key String Required. Each merchant will have server_key generated by Kredivo.
amount Double Required. The transaction amount
source String Required. Default value is “QR”
order_id String Required. Order ID given by merchant
sub_merchant_id String Required. ID of a sub merchant. (e.g. KFCSenayanCity)
push_uri String Required. URI of merchant push-notification API (HTTP POST)
items Item Required. The shopping items

Detail QR Item

Name Type Description
id String Optional. Can be product SKU. Important! for item fee such as: shipping fee, admin fee etc. you have to use this id: shippingfee, adminfee, taxfee, discount, additionalfee, insurancefee, mixpayment
name String Required. product name given by merchant
price Double Required. Price of the item
type String Optional. Product category.
quantity Integer Required. Quantity of the item bought

Response

Name Type Description
status String Status code (OK or ERROR)
qr_image String The QR Code URL to be displayed on POS
transaction_id String Transaction ID given by Kredivo

Confirm Purchase

In this tutorial you will learn how to confirm that you have received and created an order in your system. This confirmation is needed in response to a push notification from Kredivo, indicating that the consumer has completed a purchase. Once you have received the push notification you should update the status of the order.

1. Receive notification from Kredivo

Once a consumer has completed a purchase, Kredivo will inform you via a POST request. The POST request will be made to the push notification URI you provided when you created the checkout order.

HTTP Notification example of transaction::

{
    "status": "OK",
    "amount": "1500100.00",
    "payment_type": "30_days",
    "transaction_status": "pending",
    "order_id": "KD125262",
    "message": "Transaction status is pending",
    "shipping_address": {
        "city": "Jakarta Selatan",
        "first_name": "Darana 2",
        "last_name": "Pratama",
        "countrycode": "IDN",
        "creation_date": "2017-08-04T18:28:14",
        "phone": "0217248724",
        "state": "",
        "transaction": 1505866,
        "postcode": "12120",
        "location_details": "Jl. Kerinci IX No. 5-A"
    },
    "transaction_time": 1501846094,
    "transaction_id": "fadee4e5-99a2-48d6-952d-007f3fa508e8",
    "signature_key": "o5KZPDcxgEA9QutAVcIQwE3suQRkTEIA1VXcoHp7KaWJnpHx0uuHETBVpxfYLbaPyS8RJg34uVxTUX64cfUTzVVhCrSif%2FUg92J2WyLs%2FhQ%3D",
    "sub_merchant_id": "KFCSenayanCity"
}

Response Body from Kredivo

Name Type Description
status String Status code (OK or ERROR)
message String Description of status
payment_type String Payment id/type chosen by the shopper (30_days, 3_months, 6_months, 12_months)
transaction_id String Transaction Id given by Kredivo
transaction_status String Transaction status of a transaction, the values is:
settlement: Transaction is successful
pending: User has not completed the transaction
deny: Transaction has been denied by Kredivo
cancel: Transaction has been cancelled by merchant
expire: User did not complete transaction, thus transaction is expired
transaction_time UNIX timestamp (epoch) Timestamp of transaction
payment_type String Payment id/type chosen by the shopper (30_days, 3_months, 6_months, 12_months)
shipping_address Address Optional. Shipping address of the customer/shopper
order_id String Order Id given by merchant
amount String The transaction amount
signature_key String Signature key to validate if the notification is originated from Kredivo. Please contact us how to parse this signature_key by using your client key.
sub_merchant_id String ID of a sub merchant. (e.g. KFCSenayanCity)

Response Address Info

Name Type Description
city String Optional.
first_name String Optional.
last_name String Optional.
countrycode String Optional.
creation_date String Optional.
phone String Optional.
state String Optional.
transaction Integer Optional.
postcode String Optional.
location_details String Optional.

2. Merchant Response

merchant response should be in JSON, structured like this:

  {
    "status":"OK",
    "message":"Message from merchant if any"
  }

3. Confirm the order status

You must now get the order status to validate the notification originated from Kredivo’s server

Using the API:

GET /v2/update?transaction_id=bb0380d7-2688-4e73-a668-997f3fc5cbec&signature_key=5f1fa4a524f5a8201a3a373d67b5796840bed1598b2bb816855d0e14d01cd09b988b4b861f39bed642b4db861108bbf0dd84ce8e17caf675d4bf2c81ab545397

Request Body

Name Type Description
transaction_id String Transaction Id given by Kredivo
signature_key String Signature key to validate if the notification is originated from Kredivo. Please contact us how to parse this signature_key by using your client key.

Response Body

Example response after call API v2/update:

{
    "status": "OK",
    "legal_name": "TANDRA",
    "fraud_status": "accept",
    "order_id": "KD125262",
    "transaction_time": 1501846094,
    "amount": "1500100.00",
    "payment_type": "30_days",
    "transaction_status": "settlement",
    "message": "Confirmed order status. Valid!",
    "transaction_id": "fadee4e5-99a2-48d6-952d-007f3fa508e8",
    "sub_merchant_id": "KFCSenayanCity",
}
Name Type Description
status String Status code (OK or ERROR).
message String Description of status
payment_type String Payment id/type chosen by the shopper (30_days, 3_months, 6_months, 12_months)
transaction_id String Transaction Id given by Kredivo
transaction_status String Transaction status of a transaction, the values is:
settlement: Transaction is successful
pending: User has not completed the transaction
deny: Transaction has been denied by Kredivo
cancel: Transaction has been cancelled by merchant
expire: User did not complete transaction, thus transaction is expired
transaction_time UNIX timestamp (epoch) Timestamp of transaction
order_id String Order Id given by merchant
amount String The transaction amount
fraud_status String Detection result by Fraud Detection System (FDS), the values is:accept: Approved by FDS; deny: Denied by FDS. Transaction automatically failed
legal_name String legal name of kredivo account
sub_merchant_id String ID of a sub merchant. (e.g. KFCSenayanCity)

4. Settle an order in your system

You should now settle the order in your system with the order data that you want to store if transaction_status is SETTLEMENT.

Check Transaction Status

Once your customer is done processing the transaction on their side, you will need to call check transaction status API.

Using the API:

The Request JSON structured like this:

  {
    "server_key":"8tLHIx8V0N6KtnSpS9Nbd6zROFFJH7",
    "order_id": "KB-0c40f395"
  }

Response:

  {
    "status": "OK",
    "order_id": "EDC6A643481-33FA-4FA7-9135-8A1503FC863A",
    "transaction_time": "2017-12-14 16:07:24",
    "amount": 75000,
    "payment_type": "30_days",
    "transaction_status": "settlement",
    "message": "Transaction is settlement",
    "transaction_id": "6a643481-33fa-4fa7-9135-8a1503fc863a",
    "payback_amount": 50000,
    "discount_amount": 0,
    "items": [
         {
        "id": "001",
        "name":"Nasi Capcay Seafood",
        "price":50000,
        "quantity":1
         },
         {
        "id": "002",
        "name":"Cappuccino",
        "price":25000,
        "quantity":1
        }
    ],
    "merchant": {
         "short_description": null,
         "contact_number": "+62-81321881212",
         "name": "Lazada",
         "address": "Indonesia",
         "url": "www.lazada.co.id",
         "contact_person": "Vince Iswara",
         "id": 110,
         "description": null
    }
}


Request Body

Name Type Description
server_key String Required. Each merchant will have server_key generated by Kredivo.
order_id String Required. Order ID given by merchant.

Response

Name Type Description
status String Status code (OK or ERROR)
order_id String Order ID given by merchant
transaction_time UNIX timestamp (epoch) Timestamp of transaction
amount Double Transaction amount
payment_type String Payment id/type chosen by the shopper (30_days, 3_months, 6_months, 12_months)
transaction_status String Transaction status of the transaction
settlement: Transaction is successful
pending: User has not completed the transaction
deny: Transaction has been denied by Kredivo
cancel: Transaction has been cancelled by merchant
expire: User did not complete transaction, thus transaction is expired
message String Detail status
transaction_id String Transaction ID given by Kredivo
payback_amount Double Total amount that the user need to payback
discount_amount Double Discount amount that the user get for the transaction
items Item The shopping items
merchant Merchant Merchant information where the transaction take place

Merchant

Name Type Description
short_description String Short description of the merchant
contact_number String Merchant’s contact number
name String Merchant name
address String Merchant address
url String URL to merchant website
contact_person String Merchant’s contact person
id Long int Merchant’s ID on Kredivo
description String Description of the merchant

Cancel Purchase

Payment can be voided with cancel method if transaction has been completed.

Using the API:

The Request JSON structured like this:

  {
    "server_key":"8tLHIx8V0N6KtnSpS9Nbd6zROFFJH7",
    "transaction_id": "2be7d9ea-ccba-4743-8b92-0f1fc3ec358d",
    "cancellation_amount": 5000,
    "cancellation_reason":"Out of stock",
    "cancelled_by":"Althea",
    "cancellation_date":"1512032053",
    "order_id":"KB-0123456"
  }

Request Body

Name Type Description
server_key String Required. Each merchant will have server_key generated by Kredivo.
order_id String Required. Order Id given by merchant
transaction_id String Required. Transaction Id given by Kredivo
cancellation_amount Integer Optional. If you don’t pass this parameter or if you pass a cancellation amount that is equal to the transaction amount, it will be treated as a full cancellation. If the cancellation amount passed is less than the transaction amount, it will be treated as a partial cancellation. If the cancellation amount is bigger than the transaction amount or a 0 or a negative number, we will return an error.
cancellation_reason String Required. A description that clarifies reason of cancelling the transaction
cancelled_by String Required. Cancellation requester name/ id
cancellation_date UNIX timestamp (epoch) Required. Timestamp of Cancellation

Response for full cancellation:

  {
    "status": "OK",
    "fraud_status": "accept",
    "order_id": "EDCA0020F1E-FE69-43EA-B9CA-FCDE1B52B2A6",
    "transaction_time": 1513146999,
    "amount": "5000000.00",
    "payment_type": "30_days",
    "transaction_status": "cancel",
    "message": {short, long}"Cancelled the transaction!",
    "transaction_id": "2be7d9ea-ccba-4743-8b92-0f1fc3ec358d",
    "sub_merchant_id": "KFCSenayanCity"
  }

Response for cancellation by amount/ partial amount:

  {
    "status": "OK",
    "fraud_status": "accept",
    "order_id": "EDCA0020F1E-FE69-43EA-B9CA-FCDE1B52B2A6",
    "transaction_time": 1513146999,
    "amount": "1000.00",
    "payment_type": "30_days",
    "transaction_status": "settlement",
    "message": "Succes cancelling transaction by amount",   
    "transaction_id": "2be7d9ea-ccba-4743-8b92-0f1fc3ec358d",
    "sub_merchant_id": "KFCSenayanCity"
  }

Example for negative response:

  {
     "status": "ERROR",
     "error": {
       "message": "Cancellation amount bigger than remaining transaction amount that can be cancelled",
       "kind": "APIException"
     }
    }

Response

Name Type Description
status String Status code (OK or ERROR).
fraud_status String Detection result by Fraud Detection System (FDS), the values is:accept: Approved by FDS deny: Denied by FDS.
order_id String Order Id given by merchant
transaction_time UNIX timestamp (epoch) Timestamp of transaction
amount String The transaction amount
payment_type String Payment id/type chosen by the shopper (30_days, 3_months, 6_months, 12_months)
transaction_status String Transaction status of a transaction, the values is:
settlement: Transaction is successful
pending: User has not completed the transaction
deny: Transaction has been denied by Kredivo
cancel: Transaction has been cancelled by merchant
expire: User did not complete transaction, thus transaction is expired
message String Description of status
transaction_id String Transaction Id given by Kredivo
sub_merchant_id String ID of a sub merchant. (e.g. KFCSenayanCity)

Plugins

We provide plugins for e-commerce site running on certain platforms to make it easier to integrate with Kredivo. Below are plugins for some supported platforms.

Woocommerce

woocommerce

Download plugin for woocomerce v.3.x.x here

Prestashop

prestashop

Download plugin for prestashop v.1.6.x here

Opencart

opencart

Download plugin for opencart v.1.x.x here and opencart v.2.x.x here

Magento

magento

Download plugin for magento v.1.x.x here and magento v.2.x.x here

Branding & Visual

Logos

Using Kredivo’s logotype generates trust and increases your conversion.

Your website’s background

Depending on if you have dark or light background you can get either a blue or white logo.

Width

We recommend that the Kredivo logo displayed at your site is between 100-300 px. Note that you should not add px after the size parameter.

Example:

basic

basic-white

kredivo-color

kredivo-white

Download Kredivo logo here.

On your frontpage

When showing the different payment alternatives you offer in your store, display our one and only logo. When hovering over the logo shows details on the payment methods available in your store.

On product level

You will increase the conversion for high value products by showing your consumers that they have the ability to pay in installments. Always use our logotype on product level. The logotype is highly recognisable, even in small sizes. For optimal conversion use our payment method widget.

Marketing Resource

What is Merchant Success?

Kredivo team is here to work together with you to identify and solve problems, support and build a long-term mutual relationship, as well as create collaborative campaigns to increase your revenue.

Our product is your “Sales Enabler”, meaning that Kredivo helps your customer to buy more and more often. In order to see significant results of our product, we strongly encourage you to implement merchant best practice

Why is this important to implement Merchant Best Practices?

  1. Incremental sales takes time and effort. Acquiring customer that is loyal require time and effort. Kredivo is here to facilitate the process through Merchant Best Practice.

  2. Education is crucial. Instant credit financing is not a familiar concept with many consumers. It is important for merchant to educate and create a good consumer flow within the platform.

  3. Sales enabler engine. “Buy now pay later” and “Installment without credit card” is a very strong message for consumptive consumers, allowing them to buy more and more often. Sharing this messages within the platform clearly will help increase sales.

Important Information:

  1. Please send all Kredivo related collateral (newsletter, product promotion, social media posting, banner, FAQ) to successops@finaccel.co prior to posting for approval.
  2. For any merchant related inquiries on customer service and payment information please send it to merchant.help@kredivo.com. (Note: this is for merchant related inquiries not consumers related inquiries, in any circumstances this email shall not be given to consumers).
  3. For any consumer related inquiries on our product, technical and payment please let the consumer send these inquiries to support@kredivo.com or call at +62-855-7467-9098 (Note: Merchant is able to relay this email and phone number to consumers)

Other Marketing Resources:

Service Level Agreement

This Service Level Agreement (the “SLA”) is a policy governing the use of the Kredivo Checkout, a product of PT FinAccel Teknologi Indonesia (“FinAccel”) and its users (“you”). This SLA applies separately to each account using Kredivo Checkout or any other FinAccel products or services. FinAccel reserves the right to change the terms of this SLA.

Service Commitment

All of FinAccel’s products and services, including Kredivo Checkout, are hosted on Amazon EC2 and Amazon S3. FinAccel will use commercially reasonable efforts to make the Kredivo Checkout available with a Monthly Uptime Percentage (defined below) of at least 99.9% of the time in any calendar month. If it is not, then you may be eligible to receive the Service Discount described below.

Definitions

The following definitions shall apply to the Kredivo Checkout SLA.

Maximum Service Discount: The aggregate maximum amount of Service Discount you can claim for a single calendar month shall not exceed thirty days of billing.

Uptime SLA Exclusions: The SLA does not apply to any performance issues: (i) caused by factors outside of FinAccel’s reasonable control including any force majeure event or Internet access problems beyond the demarcation point of our servers; (ii) that resulted from any actions or inactions of you; or (iii) arising from our suspension and termination of your right to use Kredivo Checkout in accordance with the Kredivo Merchant Agreement.

Response and Resolution Times*

Severity Definition Response Time Resolution Time
Critical Production server or other mission critical system(s) are down and no workaround is immediately available 15 mins 30 mins
- Server Down
- Connection Down
- More than 15% of transaction are not processed by Kredivo due to some technical issues
Major Major functionality is severely impaired 30 mins 60 mins
- Intermittent connection
- Less than 15% of transaction are not processed by Kredivo due to some technical issues
Minor Partial, non-critical loss of functionality 30 mins 120 mins
- Unable to access Kredivo Dashboard
- Refund error
- Missing Merchant logo

*These are response and resolution times between office hours (9 am – 6:30 pm). For response and resolution times on weekends and public holidays, please add another 30-60 minutes.

Environment Setup

Sandbox

Use credentials below to integrate with our sandbox server.

Credential Description
Domain URL QR, 2-click https://sandbox.kredivo.com/kredivo/
Server Key 8tLHIx8V0N6KtnSpS9Nbd6zROFFJH7
Test Account To make transaction you can use below credentials and enter ‘4567’ as the OTP.
Username: 81513114262
Password: 663482
Transaction OTP: 4567

Production

Use credentials below to integrate with our production server. Only transaction comes to this server will be processed by our server.

Credential Description
End Point Please ask support@kredivo.com for live server end point before going live.

System Status

Click here to see Kredivo’s system status