Skip to content

Payment Links

Creates a payment link for a fixed amount and currency.

POST/v1/payment-links

Requires an API key — see Authentication.

Authorization: Bearer sk_test_placeholder
Field Type Required Description
amount number Yes Amount in the smallest currency unit
currency string Yes Three-letter ISO currency code
Terminal window
curl https://api.example.com/v1/payment-links \
-H "Authorization: Bearer sk_test_placeholder" \
-H "Content-Type: application/json" \
-d '{"amount": 2000, "currency": "usd"}'
{
"id": "plink_placeholder_123",
"amount": 2000,
"currency": "usd",
"status": "active"
}
Status Code Meaning
400 invalid_request Missing or malformed field
401 unauthorized Missing or invalid API key