Quickstart

This quickstart gets you up and running with the ZuriPay API. We will cover where to find your API keys and how to make your first request to initialize a payment transaction.

Install your preferred HTTP client

ZuriPay provides a simple REST API. You can use any HTTP client in any language. Here are some options:

# cURL is most likely already installed on your machine
curl --version

Making your first API request

Here is an example of initializing a payment transaction. This creates a new transaction and returns a transaction ID and reference.

POST
/v1/transactions
curl -X POST https://api.zuripay.app/v1/transactions \
  -H "Authorization: Bearer sk_test_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 1000,
    "email": "[email protected]",
    "currency": "USD",
    "success_url": "https://yoursite.com/success",
    "failure_url": "https://yoursite.com/failure"
  }'

What's next?

After your first call, explore these sections:

  • Authentication -- Learn about API key types and JWT authentication
  • Transactions -- Full transaction lifecycle management
  • Webhooks -- Receive real-time payment notifications
  • Testing -- Test your integration in sandbox mode

Was this page helpful?