Quickstart
This guide will get you all set up and ready to use the Cari Finance API. We'll cover how to get started using one of our API clients and how to make your first API request. We'll also look at where to go next to find all the information you need to take full advantage of our powerful REST API.
Before you can make requests to the Cari Finance API, you will need to grab your API key from your dashboard. You find it under Settings » API.
Choose your client
Before making your first API request, you need to pick which API client you will use. In addition to good ol' cURL HTTP requests, Cari Finance offers clients for JavaScript, Python, PHP, and Go. In the following example, you can see how to install each client.
# cURL is most likely already installed on your machine
curl --version
Making your first API request
After picking your preferred client, you are ready to make your first call to the Cari Finance API. Below, you can see how to send a GET request to the Charges endpoint to get a list of all your charges. In the cURL example, results are limited to ten charges, the default page length for each client.
curl -G https://api.cari.finance/charges \
-H "Authorization: Bearer pk_test_27436257e3fe4b0fa266f4a6f59047a3" \
-d limit=10
What's next?
Great, you're now set up with an API client and have made your first request to the API. Here are a few links that might be handy as you venture further into the Cari Finance API:
- Grab your API key from the Cari Finance dashboard
- Check out the Charges endpoint
- Learn about the different error messages in Cari Finance
- Browse example implementations
Example Implementations
To help you get started quickly, we've prepared several example implementations:
- Simple Checkout - A minimal implementation of Cari Finance payment processing
- Complete Integration - A comprehensive example with all payment methods and features
- Embedded Payment Form - Example of embedding the payment form in your application
You can download and adapt these examples or view the source code to learn how to implement Cari Finance in your own applications.