Cancel payment link
Stops the link accepting payment. Terminal — mint a new link rather than reopening this one. Cancelling a link that has already been paid is refused with 409 PAYMENT_LINK_ALREADY_PAID, and so is one whose earlier payment has since gone through (the link is marked paid). While a payment on the link is in progress the answer is 409 CONCURRENT_MODIFICATION: retry shortly. While one is still being confirmed (pendingConfirmation is present), or came back authorized but never captured, it is 409 PAYMENT_PENDING_CONFIRMATION: cancel once that payment is resolved.
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.cancel.
not_foundThe resource does not exist for this merchant.
invalid_requestOne or more request fields are invalid.
conflictThe resource is not in a state where this operation is valid.