For the complete documentation index, see llms.txt. This page is also available as Markdown.

Expiring payment link

POST /api/public/v1/payment_links/:id/expiration

Immediately expires a payment link, transitioning its status to expired. Only payment links with status created or pending can be expired.

Headers

Name
Value

Content-Type

application/vnd.api+json

Authorization

Bearer <api_key>

Path Parameters

Name
Value

id

Payment link ID.

Response Body

Name
Type
Description

data.id

string

Payment link ID.

data.type

string

Always paymentLinks.

data.attributes.amount

string

Payment amount displayed to the end user.

data.attributes.currency

string

Currency of the payment amount.

data.attributes.accountCurrency

string

Merchant account currency used for settlement or funding.

data.attributes.network

string

Network code selected by the end user. null if not yet selected.

data.attributes.networkName

string

Human-readable network name. null if not yet selected.

data.attributes.reference

string

Your internal correlation key, as set at creation.

data.attributes.hostedPageUrl

string

URL of the Txn-hosted page.

data.attributes.status

string

Always expired after a successful call.

data.attributes.approvalStatus

string

Approval workflow status for payout payment links subject to an approval rule. null otherwise.

data.attributes.expiresAt

string

ISO 8601 timestamp of when the payment link expired.

data.attributes.createdAt

string

ISO 8601 timestamp of when the payment link was created.

data.attributes.paymentType

string

Invoice or Payout.

data.attributes.paymentMethods[]

array

Payment methods that were available on the hosted page.

data.attributes.successRedirectUrl

string

Success redirect URL. null if not set.

data.attributes.unsuccessRedirectUrl

string

Unsuccessful redirect URL. null if not set.

data.relationships.target.data

object

ID and type of the child invoice or payout. null if none was triggered before expiry.

Response

Last updated