Overview
This guide walks you through the complete flow of creating a delivery using the Chidori API. By the end, you will have:- Obtained API keys from the dashboard
- Funded your wallet
- Calculated a delivery price
- Created a delivery
- Paid for the delivery
Prerequisites
Before you begin, make sure you have:- A Chidori account (sign up here)
- A verified account (email verification required)
- Basic knowledge of making HTTP requests
Step 1: Get your API keys
1
Access the Dashboard
Navigate to chidori.africa/dashboard and log in to your account.
2
Create an API Key
Go to the API Keys section and create a new key:
- Name: Give it a descriptive name (e.g., “Production Key”)
- Mode: Select Sandbox for testing or Live for production
- Permissions: Select the permissions you need
3
Store Your Key Securely
Your API key looks like this:Store it securely in your environment variables.
Step 2: Fund your wallet
Before creating deliveries, you need funds in your wallet. Fund your wallet through the Chidori Dashboard:- Go to the Wallet section in your dashboard
- Click Fund Wallet
- Choose your payment method and amount
- Complete the payment
Step 3: Get a price estimate
Before creating a delivery, get a price estimate using the pickup and destination coordinates:Save the
tempDeliveryId from the response. You will need it to create the actual delivery.Step 4: Create the delivery
Use thetempDeliveryId from the pricing response to create a delivery:
Step 5: Pay for the delivery
Complete the delivery by paying for it from your wallet:Congratulations! You have successfully created and paid for your first delivery.
