Skip to content

Update payment link

PATCH
/v4/payment-links/{id}
curl --request PATCH \
--url https://console.orangepill.cloud/v4/payment-links/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "allowed_product_keys": [ "example" ], "description": "example", "expires_at": "2026-04-15T12:00:00Z", "max_uses": 1, "metadata": { "additionalProperty": "example" }, "title": "example" }'

Update mutable fields on a payment link. Amount and currency are immutable after creation.

id
required
string format: uuid
Media typeapplication/json
object
allowed_product_keys
Array<string>
description
string
nullable <= 1000 characters
expires_at
string format: date-time
nullable
max_uses
integer
nullable >= 1
metadata
object
key
additional properties
title
string
>= 1 characters <= 200 characters

Example generated

{
"allowed_product_keys": [
"example"
],
"description": "example",
"expires_at": "2026-04-15T12:00:00Z",
"max_uses": 1,
"metadata": {
"additionalProperty": "example"
},
"title": "example"
}

Updated payment link

Media typeapplication/json
object
allowed_product_keys
required
Array<string>
amount
required

Snapshotted amount in major currency units

string
cancel_url
required
string
completion_count
required
integer
created_at
required
string format: date-time
currency
required
string
description
string
nullable
expires_at
string format: date-time
nullable
id
required
string format: uuid
max_uses
integer
nullable
merchant_id
required
string format: uuid
metadata
required
object
key
additional properties
price

Present when payment link was created in product mode

object
currency
string
id
string format: uuid
recurring_interval
string
nullable
recurring_interval_count
integer
nullable
type
string
Allowed values: one_time recurring
unit_amount
string
price_id
required
string format: uuid
nullable
product

Present when payment link was created in product mode

object
description
string
nullable
id
string format: uuid
name
string
status
string
product_id
required
string format: uuid
nullable
project_id
required
string format: uuid
public_url

Present on creation response only

string
quantity
required

Present in product mode

integer
nullable >= 1
slug
required
string
status
required
string
Allowed values: active inactive archived
success_url
required
string
tenant_id
required
string format: uuid
title
required
string
updated_at
required
string format: date-time
use_count
required
integer

Example

{
"price": {
"type": "one_time"
},
"status": "active"
}

Not found

Media typeapplication/json
object
details
error
required
string
success
required
boolean

Example

{
"success": false
}