Skip to main content

Update Payment Link

Endpoint for updating a Payment Link.

info

Please be aware that this endpoint requires a Manage Payment Links API Key.

PUT /api/v1/groups/{group_id}/payment-links/{payment_link_id}

Request Parameters​

NameDescriptionTypeRequired
titleTitle of the Payment Link. It will be seen by end-users, make sure it is recognizable.stringRequired
descriptionDescription of the Payment Link. It will be seen by end-users.string
amount_modeAmount 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
amountFixed 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.uint64Required when amount_mode is fixed
settings.amount.minMinimum 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.maxMaximum 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.defaultAmount, 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.presetsSuggested 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_idProcessor ID used for the transaction.stringRequired
card_enabledIf true, Card payment option will be shown on the public page. Either card_enabled or ach_enabled must be set to true.boolcard_enabled or ach_enabled is Required
ach_enabledIf true, ACH payment option will be shown on the public page. Either card_enabled or ach_enabled must be set to true.boolcard_enabled or ach_enabled is Required
expires_atTimestamp 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_urlAn HTTPS URL your end-user is redirected to after a successful payment.string
info

A Payment Link that has already been paid, expired or canceled cannot be updated.

Response​

CodeDescription
200Success
400Bad Request / Validation error
500Internal Error

Example Usage​

update.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');

var requestOptions = {
method: 'PUT',
headers: headers,
redirect: 'follow',
body: {
// request body data
}
};
const group_id = '';
const payment_link_id = '';
const url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/payment-links/${payment_link_id}`;
fetch(url, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));

Example Request​

Fixed amount​

{
"title": "Consulting session (updated)",
"description": "1.5 hour consulting session",
"amount_mode": "fixed",
"amount": 22500,
"processor_id": "fbf2e44a-eed6-426f-b0e2-a3a5b34377c0",
"card_enabled": true,
"ach_enabled": false,
"expires_at": "2027-12-25T00:00:00.000Z",
"redirect_url": "https://example.com/thank-you"
}

Custom amount​

{
"title": "Donation (updated)",
"description": "Support our cause",
"amount_mode": "custom",
"settings": {
"amount": {
"min": 2000,
"max": 100000,
"default": 5000,
"presets": [5000, 10000, 25000]
}
},
"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 (updated)",
"description": "1.5 hour consulting session",
"amount_mode": "fixed",
"amount": 22500,
"settings": {},
"currency": "USD",
"card_enabled": true,
"ach_enabled": false,
"processor_id": "fbf2e44a-eed6-426f-b0e2-a3a5b34377c0",
"expires_at": "2027-12-25T00:00:00Z",
"expires_on": "2027-12-25T00: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-18T15:02:41.211348Z"
}

Custom amount​

{
"id": "5b1f0d2a-9c3e-4a7b-8f6d-2e4c1a9b7d30",
"group_id": "8059f5c6-e1cd-4e46-9196-1d7e47401a3e",
"title": "Donation (updated)",
"description": "Support our cause",
"amount_mode": "custom",
"amount": 0,
"settings": {
"amount": {
"min": 2000,
"max": 100000,
"default": 5000,
"presets": [5000, 10000, 25000]
}
},
"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-18T15:05:12.481093Z"
}