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/current_company/stats

Fetch payment stats for last 30 days. Comparison fields are 30-60days to give a comparison value from last month.

Request

Curl
Ruby
$ curl -X GET https://api.payhere.co/api/v1/current_company/stats \
       -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/current_company/stats")

parsed = JSON.parse(resp.body)

Params

N/A

Response

{
  "currency": "gbp",
  "payments_last_30": 329.40,
  "payments_comparison": 278.42,
  "subscribers_last_30": 7,
  "subscribers_comparison": 5,
  "payments_all_time": 6239.76
}

Errors

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