---
title: "Generate OAuth Link for Payment Configuration"
method: POST
path: "/v2/payments/configuration/oauth_link"
tags: ["WhatsApp Payments"]
---

# Generate OAuth Link for Payment Configuration

`POST /v2/payments/configuration/oauth_link`

Generate an OAuth link for payment gateway configuration. This endpoint creates an authorization URL 
that redirects to the payment gateway's OAuth flow, allowing businesses to connect their payment 
accounts and configure payment settings.

## Parameters

- `#/paths/~1v2~1payments~1configuration/post/parameters/0` — unresolved $ref

## Request body

- object — Request payload for generating OAuth link
  - `configuration_name` string, required — Unique name for the payment configuration. This will be used to identify and manage the payment gateway setup.
  - `redirect_url` string, uri, required — The URL where users will be redirected after completing the OAuth authorization flow. This must be a valid HTTPS URL registered with the payment gateway.

## Response `200`

OAuth link generated successfully

- object — Response containing OAuth link information
  - `status` string, required — Overall status of the API call
  - `message` string, required — Human-readable message about the operation
  - `data` object, required — OAuth link data details
    - `oauth_url` string, uri, required — The OAuth authorization URL that should be opened in a browser to complete the payment gateway configuration
    - `configuration_name` string, required — The configuration name used in the request

## Other responses

- `400` — unresolved $ref
- `4XX` — unresolved $ref

---

[API](https://skmtc.dev/netcorecloud/apis/email-api-v6.md) · [All operations](https://skmtc.dev/netcorecloud/apis/email-api-v6/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netcorecloud/email-api-v6/revisions/73f83bc2eff8/schema)
