Skip to main content
POST
Create a shareable payment link

Authorizations

Authorization
string
header
required

API key prefixed with 'Bearer sx_live_...'

Body

application/json
card_id
string
required
amount

Fixed amount (null for open-amount)

memo
string
accepted_protocols
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

id
string
code
string
Example:

"PL_a1b2c3d4"

url
string
Example:

"https://mag3nt.com/pay/PL_a1b2c3d4"

amount
asset
string
network
string
memo
string
status
enum<string>
Available options:
ACTIVE,
EXPIRED,
CANCELLED
uses
integer
max_uses
integer
expires_at
string<date-time> | null
qr_svg
string