Create payment link
Send the url from the response to whoever is paying. expiresAt is optional and defaults to 30 days out; a link always expires, and the expiry is checked when the page is opened rather than by a job, so there is no window where a dead link still pays. Amounts are integers in the minor unit — 4999 is $49.99. A decimal is rejected rather than silently charged as a different figure.
Response contract
The successful wire shape and errors an integration should branch on.
Payment link
application/jsonidstringrequired- Unique payment link identifier.
object"payment_link"required- Stable resource discriminator.
statusstringrequired- One of active, paid or cancelled. There is no expired status — expiry is decided by comparing expiresAt when the page is opened.
amountintegerrequired- Amount to collect, in minor units.
currencystringrequired- Three-letter ISO currency code.
urlstringrequired- The page to send the payer to. Hosted on a Myela domain — never a provider's.
descriptionstring- What the payer is paying for. Shown on the page.
expiresAtstringrequired- When the link stops accepting payment. Always present.
paidAtstring- When the link was paid. Present once it has been.
paymentIdstring- The payment that settled this link.
pendingConfirmationobject- Present only while a charge on this link is unresolved. The link still reports active; every further attempt is refused, and so is cancelling it (409, `details.code` `PAYMENT_PENDING_CONFIRMATION`), until the named payment is reconciled, and still afterwards if it resolved as authorized but never captured.
createdAtstringrequired- When the link was created.
Example response
{
"id": "plink_01JEXAMPLE",
"object": "payment_link",
"status": "active",
"amount": 2500,
"currency": "USD",
"url": "https://example.com/pay/9Yb3xK1t0QWEs7vLzR2mNc4h",
"description": "Deposit",
"expiresAt": "2026-12-01T00:00:00.000Z",
"paidAt": "2026-09-14T18:04:11.000Z",
"paymentId": "pay_01JEXAMPLE",
"pendingConfirmation": {
"paymentId": "pay_01JEXAMPLE",
"since": "2026-09-14T18:04:11.000Z"
},
"createdAt": "2026-09-01T12:00:00.000Z"
}Error responses
authentication_failedThe key is missing, malformed, revoked, or invalid for this environment.
permission_deniedThe key does not have paymentLinks.create.
invalid_requestOne or more request fields are invalid.