---
title: "Retrieve configured URLs"
method: GET
path: "/payment-intents/url/{token}"
tags: ["Payments"]
---

# Retrieve configured URLs

`GET /payment-intents/url/{token}`

This endpoint fetch the merchant's preference and return the redirection URL saved in there.
    This is mostly used for the Hub2 modal feature.
    You must provide the payment intent token for that.

## Path parameters

- `token` string, required

## Response `200`

- MerchantPreferencesUrl
  - `onSuccessRedirectionUrl` string, required — Redirection url on success
  - `onFailRedirectionUrl` string, required — Redirection url on fail
  - `onCancelRedirectionUrl` string, required — Redirection url on cancel

## Other responses

- `401` — Invalid token provided
- `404` — Not Found
- `500` — Internal error

---

[API](https://skmtc.net/hub2/apis/hub2-service-api.md) · [All operations](https://skmtc.net/hub2/apis/hub2-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hub2/hub2-service-api/revisions/adb17b4b80f4/schema)
