> ## Documentation Index
> Fetch the complete documentation index at: https://docs-v2.reeple.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch a payment link

> Look up the details behind a payment-link reference

Returns the order and merchant details behind a payment link, so you can render a checkout page
for it. Payment links are issued by Reeple and referenced by their own reference, which is not
your order reference.

## Endpoint

```
GET https://api-v4.reeple.ai/charge/paymentlink/info
```

## Query parameters

| Field       | Type   | Description                               |
| ----------- | ------ | ----------------------------------------- |
| `reference` | String | **Required.** The payment-link reference. |

## Request example

```bash theme={null}
curl "https://api-v4.reeple.ai/charge/paymentlink/info?reference=YOUR_LINK_REFERENCE"
```

## Response

Returns the standard envelope with the link's order and merchant details.

<Note>
  The provider has not published a success response body for this endpoint. Confirm the exact
  shape against your sandbox account before depending on individual fields.
</Note>

## Common errors

```json theme={null}
{
  "status": "failed",
  "statusCode": "604",
  "message": "Sorry! Cannot find this payment link, check the reference and try again"
}
```

| Code  | Cause                                            |
| ----- | ------------------------------------------------ |
| `604` | The reference is unknown or the link has expired |

<Warning>
  A payment-link reference is **not** an order reference. Passing an order reference here returns
  `604`.
</Warning>

## Next steps

<Card title="Get payment keys" href="/api-reference/payment-links/get-payment-keys">
  Fetch the keys needed to complete a payment against a link.
</Card>
