Creating payment link
POST
/api/public/v1/payment_links
This endpoint creates payment links.
Headers
Content-Type
application/vnd.api+json
Authorization
Bearer <api_key>
Request Body
data.type
string
Yes
Can only be payment_links
.
data.attributes.amount
string
Yes
Payment amount to display to end users.
data.attributes.currency
string
Yes
data.attributes.paymentType
string
Yes
Payment type. Can be either Invoice
or Payout
.
data.attributes.reference
string
No
The custom reference ID to tie the payment to end-user. This can be anything you choose. Must be a unique value for each payment you create.
data.attributes.expires_at
string
Yes
Payment link expiration date and time. Follow the format 2025-01-12T23:00:00.000Z
cURL
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.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 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.relationships.target
object
This object will contain ID of the child Invoice or Payout generated by the Payment Link.
included
array
Response
Last updated