Reading payment link
GET /api/public/v1/payment_links/:id
Returns a single payment link by ID.
Headers
Content-Type
application/vnd.api+json
Authorization
Bearer <api_key>
Path Parameters
id
Payment link ID.
Response Body
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 on the hosted page. null until a selection is made.
data.attributes.networkName
string
Human-readable network name. null until the end user selects a network.
data.attributes.reference
string
Your internal correlation key, as set at creation.
data.attributes.hostedPageUrl
string
URL of the Txn-hosted page to redirect your end user to.
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 expires.
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 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 until the end user selects a cryptocurrency on the hosted page.
Response
Last updated