Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

⚡Payments API


Prerequisites

Before using the Payments API, make sure you have the following:

  • A PayRam server that is properly hosted and running.

  • A valid API Key generated from the PayRam dashboard for authentication.

Note : You can generate a unique API key for each project directly from the PayRam dashboard. This helps you manage and track payouts separately for every project.


Finding your BASE_URL

Every endpoint below is called as {BASE_URL}/api/v1/.... Your BASE_URL is the address your PayRam instance is reachable at — the same one you open the dashboard with.

1

Open your PayRam dashboard

Log in to your PayRam dashboard as usual.

2

Go to Settings

Select Settings from the left menu.

3

Open Site URL

Select Site URL. The address shown under Current site URL is your BASE_URL.

Depending on how you installed PayRam, it will look like one of these:

Your setup
BASE_URL

Domain with SSL

https://pay.example.com

Server IP, no SSL

http://192.168.0.1

Installed on a different port

http://192.168.0.1:3000

Note: PayRam serves the dashboard and the API from the same address, so there is no separate API port. If you installed on a port other than the default, include it in your BASE_URL.


API Endpoints

These are the current endpoints required for the Payments API integration, listed below.

Cover

Create Payment

Create a payment link for customers using the PayRam API.

Fetch Tickers

Fetch supported tickers and token options using the PayRam API.

Cover

Get Blockchain Currencies

Fetch blockchain deposit options using a payment’s reference ID.

Cover

Assign Deposit Address

Assign a static deposit address to a user for a specific blockchain.

Cover

Payment Status

Fetch the current payment status using a payment’s reference ID.

Cover

Webhook

Receive payment updates on your server instead of polling.

Last updated