Skip to main content
POST
/
api
/
paylinks
Create a shareable payment link
curl --request POST \
  --url https://mag3nt.com/api/paylinks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "card_id": "<string>",
  "amount": 123,
  "memo": "<string>",
  "type": "SINGLE",
  "max_uses": 1,
  "expires_in": 123
}
'
{
  "success": true,
  "pay_link": {
    "id": "<string>",
    "code": "PL_a1b2c3d4",
    "url": "https://mag3nt.com/pay/PL_a1b2c3d4",
    "amount": 123,
    "asset": "<string>",
    "network": "<string>",
    "memo": "<string>",
    "uses": 123,
    "max_uses": 123,
    "expires_at": "2023-11-07T05:31:56Z",
    "qr_svg": "<string>"
  }
}

Documentation Index

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

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

Authorizations

Authorization
string
header
required

Session token from POST /api/auth/verify

Body

application/json
card_id
string
required
amount
number | null

Fixed amount (null for open-amount)

memo
string
type
enum<string>
default:SINGLE

SINGLE for one-time, RECURRING for multi-use

Available options:
SINGLE,
RECURRING
max_uses
integer
default:1
expires_in
number

Hours until expiry

Response

200 - application/json

Pay link created

success
boolean