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/user

Fetch info on the currently authenticated user

Request

Curl
Ruby
$ curl -X GET https://api.payhere.co/api/v1/user -H "Authorization: Bearer ${api_key_here}"
require "http"
require "json"

raw_json = HTTP.auth("Bearer #{api_key_here}")
               .get("https://api.payhere.co/api/v1/user")
               .body.to_s

json = JSON.parse(raw_json)

Response

{
  "data": {
    "id": 2,
    "display_name": "John Smith",
    "email": "john.smith@example.org",
    "created_at": "2015-11-08T14:12:27.962Z",
    "updated_at": "2019-03-04T13:57:32.114Z",
    "type": "users"
  }
}

Errors

  • 401 Unauthorized
← DELETE /:id
  • Request
  • Response
  • Errors
Developers
Docs
Getting StartedEmbed SDKAPI Reference
Payhere
HelpSignup freeFeatures
More
Our BlogGitHubTwitter
Copyright © 2025 Payhere Payments Ltd