Developers

Developers

  • Docs
  • Help
  • Blog

›/api

Overview

  • Getting Started
  • Testing

Integrations

  • Simple link
  • Simple embed
  • React SDK
  • Embed SDK
  • Webhooks
  • REST Hooks
  • Wix Embed SDK

API

  • Authentication

/api

    /v1/current_company

    • GET /
    • PUT /
    • GET /stats

    /v1/customers

    • GET /
    • GET /:id

    /v1/payments

    • GET /
    • GET /:id

    /v1/plans

    • GET /
    • POST /
    • PUT /:id

    /v1/refunds

    • POST /

    /v1/subscriptions

    • GET /
    • GET /:id
    • DELETE /:id

    /v1/user

    • GET /

GET /api/v1/customers

List all of your customers, ordered chronologically, most recent first.

Request

Curl
Ruby
$ curl -X GET https://api.payhere.co/api/v1/customers?page=1&per_page=50 \
       -H "Accept: application/json" \
       -H "Authorization: Bearer ${api_key_here}"
require "http"
require "json"

resp = HTTP.auth("Bearer #{api_key_here}")
           .get(
              "https://api.payhere.co/api/v1/customers",
              page: 1,
              per_page: 50
            )

parsed = JSON.parse(resp.body)

Params

  • page - Page number
  • per_page - Records per page, default 20, max 100.

Response

{
  "data": [
    {
      "id": 989899294,
      "name": "Geoff Williams",
      "email": "g.williams01@example.org",
      "ip_address": null,
      "location": {},
      "created_at": "2019-03-04T16:28:32.656Z",
      "updated_at": "2019-03-04T16:28:32.656Z",
      "type": "customers"
    }
  ],
  "meta": {
    "current_page": 1,
    "next_page": null,
    "prev_page": null,
    "total_pages": 1,
    "total_count": 1
  }
}

Errors

  • 400 Bad request
  • 401 Unauthorized
← GET /statsGET /:id →
  • Request
    • Params
  • Response
  • Errors
Developers
Docs
Getting StartedEmbed SDKAPI Reference
Payhere
HelpSignup freeFeatures
More
Our BlogGitHubTwitter
Copyright © 2025 Payhere Payments Ltd