Get a Payment Link
Retrieve a payment link with its current status and the number of successful payments it has taken.
GET /payment-link/{id} returns one of your payment links. Poll it to see whether a link has been paid: status is active, used, expired, or cancelled, and usesCount is the number of successful payments taken through it.
A link that belongs to another merchant, or to the other environment, returns 404.
Example
reference is their orderCode.Authorizations
Your secret API key: Bearer prv_production_xxx (production) or Bearer prv_sandbox_xxx (sandbox).
Path Parameters
The payment link id.
Query Parameters
Your merchant account identifier. Required if the key maps to more than one merchant account.
Response
The payment link
The hosted checkout URL to share with the payer.
one-time, subscription used once a single-use link takes its first successful payment, or a reusable link reaches maxUses.
active, used, expired, cancelled fixed, customer_entered Absent on subscription links. For customer_entered links only currency and exponent are set.
Minimum payer-entered amount, minor units.
Maximum payer-entered amount, minor units.
Number of successful payments taken through this link.
production, sandbox 
