Skip to Content
RunePayDocs
API referencePayment links

Update a payment link

Changes `active`, `name` or `description`. Omitted fields keep their value.

POST
/payment_links/{id}

Changes active, name or description. Omitted fields keep their value.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A secret key, sk_test_… or sk_live_….

Path Parameters

id*string

The object id.

Header Parameters

Idempotency-Key?string

Makes a retry safe: the same key and body within 24 hours does not repeat the request.

Request Body

application/json
  1. body
active?boolean
name?string
description?|

null clears it.

Response Body

Success.

application/json
  1. response
id*string
object*string
livemode*boolean
active*boolean
name*string
description*string|null
amount*|

Fixed amount in minor units, or null when the buyer chooses.

min_amount*integer|null
max_amount*integer|null
currency*string

Three-letter ISO 4217 code, uppercase.

success_url*string|null
metadata*

Your own key-value strings, returned as sent.

url*string

Share this URL with buyers.

created*integer

Unix timestamp in seconds.

updated*integer

Unix timestamp in seconds.

Example Request
curl -X POST 'https://runepay.co/api/v1/payment_links/string' \  -H 'Authorization: Bearer sk_test_...' \  -H 'Content-Type: application/json' \  -d '{  "active": false}'
Example Response
{  "id": "plink_01KA7D4E6F8G0H2J4K6M8N0P2Q",  "object": "payment_link",  "livemode": false,  "active": false,  "name": "Pro plan",  "description": "One month of Pro",  "amount": 1999,  "min_amount": null,  "max_amount": null,  "currency": "USD",  "success_url": "https://merchant.example/thanks",  "metadata": {    "plan": "pro"  },  "url": "https://runepay.co/pay/l/plink_01KA7D4E6F8G0H2J4K6M8N0P2Q",  "created": 1767225600,  "updated": 1767312000}