Create Payment Link
Endpoint for creating a Payment Link.
info
Please be aware that this endpoint requires a Manage Payment Links API Key.
POST /api/v1/groups/{group_id}/payment-links
Request Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| title | Title of the Payment Link. It will be seen by end-users, make sure it is recognizable. | string | Required |
| description | Description of the Payment Link. It will be seen by end-users. | string | |
| amount_mode | Amount mode of the Payment Link. fixed: the end-user pays the amount you set. custom: the end-user enters the amount on the public page, within the limits set in settings.amount. Defaults to fixed when omitted. | string | |
| amount | Fixed amount to be charged, in cents. Must be greater than zero and must not exceed $100,000.00. Must be omitted when amount_mode is custom. | uint64 | Required when amount_mode is fixed |
| settings.amount.min | Minimum amount, in cents, the end-user can enter. When omitted, it defaults to the group's flat processor fees plus $1.00. Only allowed when amount_mode is custom. | uint64 | |
| settings.amount.max | Maximum amount, in cents, the end-user can enter. Must not exceed $100,000.00, which is also the limit when omitted. Only allowed when amount_mode is custom. | uint64 | |
| settings.amount.default | Amount, in cents, pre-filled on the public page. The end-user can change it. Must be between min and max. Only allowed when amount_mode is custom. | uint64 | |
| settings.amount.presets | Suggested amounts, in cents, shown on the public page. Up to 10 unique values, each between min and max. The end-user can still enter any amount in range. Only allowed when amount_mode is custom. | []uint64 | |
| processor_id | Processor ID used for the transaction. | string | Required |
| card_enabled | If true, Card payment option will be shown on the public page. Either card_enabled or ach_enabled must be set to true. | bool | card_enabled or ach_enabled is Required |
| ach_enabled | If true, ACH payment option will be shown on the public page. Either card_enabled or ach_enabled must be set to true. | bool | card_enabled or ach_enabled is Required |
| expires_at | Timestamp after which the Payment Link can no longer be paid. Must represent a future instant. Expiration later on the same calendar day is supported by the API. The calendar date shown in the invitation email is based on the date in the submitted timestamp's UTC offset, rather than its UTC-converted date. When omitted, the Payment Link never expires. | string(RFC3339 format) | |
| redirect_url | An HTTPS URL your end-user is redirected to after a successful payment. | string |
Response
| Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request / Validation error |
| 500 | Internal Error |
Example Usage
- JavaScript
- Python
- Go
create.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');
var requestOptions = {
method: 'POST',
headers: headers,
redirect: 'follow',
body: {
// request body data
}
};
const group_id = '';
const url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/payment-links`;
fetch(url, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
create.py
import requests
group_id = ""
url = "https://api.reverepayments.dev/api/v1/groups/"+group_id+"/payment-links"
headers = {
'Authorization': 'API_KEY'
}
response = requests.request("POST", url, headers=headers, json={
// request body data
})
print(response.text)
create.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
const group_id = ""
url := "https://api.reverepayments.dev/api/v1/groups/" + group_id + "/payment-links"
client := &http.Client{}
body := bytes.NewBuffer(nil)
_ = json.NewEncoder(body).Encode(map[string]any{
// body data
})
req, _ := http.NewRequest("POST", url, body)
req.Header.Add("Authorization", "API_KEY")
res, _ := client.Do(req)
defer res.Body.Close()
bytes, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err.Error())
return
}
fmt.Println(string(bytes))
}
Example Request
Fixed amount
{
"title": "Consulting session",
"description": "1 hour consulting session",
"amount_mode": "fixed",
"amount": 15000,
"processor_id": "fbf2e44a-eed6-426f-b0e2-a3a5b34377c0",
"card_enabled": true,
"ach_enabled": true,
"expires_at": "2027-12-18T00:00:00.000Z",
"redirect_url": "https://example.com/thank-you"
}
Custom amount
{
"title": "Donation",
"description": "Support our cause",
"amount_mode": "custom",
"settings": {
"amount": {
"min": 1000,
"max": 50000,
"default": 2500,
"presets": [2500, 5000, 10000]
}
},
"processor_id": "fbf2e44a-eed6-426f-b0e2-a3a5b34377c0",
"card_enabled": true,
"ach_enabled": true
}
Example Success Response
info
expires_at is the exact moment the Payment Link expires, returned in UTC. expires_on is the calendar date of expires_at in the UTC offset you submitted, returned as midnight UTC. It is the date shown in the invitation email. It is null when the Payment Link has no expiration date, and on Payment Links created before this field was introduced.
Fixed amount
{
"id": "7e44c370-078e-4fa3-9909-bdd8554eb068",
"group_id": "8059f5c6-e1cd-4e46-9196-1d7e47401a3e",
"title": "Consulting session",
"description": "1 hour consulting session",
"amount_mode": "fixed",
"amount": 15000,
"settings": {},
"currency": "USD",
"card_enabled": true,
"ach_enabled": true,
"processor_id": "fbf2e44a-eed6-426f-b0e2-a3a5b34377c0",
"expires_at": "2027-12-18T00:00:00Z",
"expires_on": "2027-12-18T00:00:00Z",
"redirect_url": "https://example.com/thank-you",
"status": "active",
"url": "https://merchant.reverepayments.dev/payment-links/7e44c370-078e-4fa3-9909-bdd8554eb068",
"created_at": "2026-11-18T14:27:10.661796389Z",
"updated_at": "2026-11-18T14:27:10.661796389Z"
}
Custom amount
{
"id": "5b1f0d2a-9c3e-4a7b-8f6d-2e4c1a9b7d30",
"group_id": "8059f5c6-e1cd-4e46-9196-1d7e47401a3e",
"title": "Donation",
"description": "Support our cause",
"amount_mode": "custom",
"amount": 0,
"settings": {
"amount": {
"min": 1000,
"max": 50000,
"default": 2500,
"presets": [2500, 5000, 10000]
}
},
"currency": "USD",
"card_enabled": true,
"ach_enabled": true,
"processor_id": "fbf2e44a-eed6-426f-b0e2-a3a5b34377c0",
"expires_at": null,
"expires_on": null,
"redirect_url": "",
"status": "active",
"url": "https://merchant.reverepayments.dev/payment-links/5b1f0d2a-9c3e-4a7b-8f6d-2e4c1a9b7d30",
"created_at": "2026-11-18T14:31:45.120934Z",
"updated_at": "2026-11-18T14:31:45.120934Z"
}
info
The amount of a custom amount Payment Link is 0 until it is paid. Once paid, amount holds the amount paid by the end-user, excluding any surcharge.