Reading payment link
GET
/api/public/v1/payment_links/:id
This endpoint returns details of a particular payment link by its ID.
Headers
Content-Type
application/vnd.api+json
Path Parameters
id
Payment link ID
Response Body
data.id
string
Payment link ID.
data.type
string
Entity type returned. Always paymentLinks
.
data.attributes
object
Set of payment attributes.
data.attributes.amount
string
Payment amount to display to end users.
data.attributes.currency
string
data.attributes.accountCurrency
string
Account currency that the payment should be credited to (Invoice) or debited from (Payout).
data.attributes.network
string
data.attributes.networkName
string
data.attributes.reference
string
The custom reference ID to tie the payment to end-user.
data.attributes.hostedPageUrl
The payment hosted page URL to redirect your end-users to.
data.attributes.status
string
Payment link status context. Can be created
, pending
, completed
, expired
.
data.attributes.network
string
data.attributes.expiresAt
string
Payment link expiry date and time.
data.attributes.createdAt
string
Date and time payment was created at.
data.attributes.successRedirectUrl
string
URL you want your customer to be redirected from our hosted page to if the invoice completes.
data.attributes.unsuccessRedirectUrl
string
URL you want your customer to be redirected from our hosted page to if the invoice gets expired, cancelled or rejected.
data.relationships.target
object
This object will contain ID of the child Invoice or Payout generated by the Payment Link.
included
array
Response
Last updated