---
title: "Generate Payment Link"
method: POST
path: "/v1/client/transaction/gen-payment-link"
---

# Generate Payment Link

`POST /v1/client/transaction/gen-payment-link`

The Generate Pay  Link API allows the API user to create a Payment link for the application user at the Payment Gateway for the payment to complete the transaction

## Headers

- `api-key` string, required
- `auth-key` string, required
- `userId` string, required

## Request body

- object
  - `transactionId` string, required — Transaction ID from the Generate Quote API
  - `redirectUrl` string — The URL where the application ser is redirected to post completion/ termination of payment at PG

## Response `200`

200

- object
  - `status` integer
  - `message` string
  - `data` object
    - `paymentLink` string
    - `status` string
    - `amount` number
    - `createdAt` string
    - `expiry` string
    - `transactionId` string

## Other responses

- `500` — 500

---

[API](https://skmtc.net/stockal/apis/uat-client-api-v2.md) · [All operations](https://skmtc.net/stockal/apis/uat-client-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stockal/uat-client-api-v2/revisions/08e36bbbd3be/schema)
