Skip to main content
PATCH
/
api
/
v1
/
business
/
links
/
{id}
Update a payment link
curl --request PATCH \
  --url http://localhost:3001/api/v1/business/links/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "title": "My Payment Page",
  "description": "Pay for goods and services",
  "avatarUrl": "https://example.com/avatar.png",
  "accentColor": "#6366f1",
  "thankYouMessage": "Thank you for your payment!",
  "amountType": "flexible",
  "fixedAmount": 49.99,
  "presetAmounts": [
    5,
    10,
    25,
    50,
    100
  ],
  "currency": "USD",
  "minAmount": 1,
  "maxAmount": 10000,
  "acceptsCard": true,
  "acceptsCrypto": false,
  "collectName": true,
  "collectEmail": true,
  "collectNote": true,
  "isActive": true,
  "config": {}
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "businessId": "<string>",
    "slug": "<string>",
    "title": "<string>",
    "amount": 123,
    "currency": "<string>",
    "type": "link",
    "isActive": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "redirectUrl": "<string>",
    "metadata": {}
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.useaxra.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

x-api-key
string
required

Path Parameters

id
string
required

Body

application/json
title
string
Example:

"My Payment Page"

description
string
Example:

"Pay for goods and services"

avatarUrl
string
Example:

"https://example.com/avatar.png"

accentColor
string
Example:

"#6366f1"

thankYouMessage
string
Example:

"Thank you for your payment!"

amountType
string

"flexible" | "fixed" | "preset"

Example:

"flexible"

fixedAmount
number
Example:

49.99

presetAmounts
string[]
Example:
[5, 10, 25, 50, 100]
currency
string
Example:

"USD"

minAmount
number
Example:

1

maxAmount
number
Example:

10000

acceptsCard
boolean
Example:

true

acceptsCrypto
boolean
Example:

false

collectName
boolean
Example:

true

collectEmail
boolean
Example:

true

collectNote
boolean
Example:

true

isActive
boolean
Example:

true

config
object

Church-specific config

Response

OK

success
boolean
required
Example:

true

data
object
required