---
title: "Add PSP Credentials"
method: POST
path: "/api/merchant/{key}/add-pay-channel/{pckey}"
tags: ["Payment APIs"]
---

# Add PSP Credentials

`POST /api/merchant/{key}/add-pay-channel/{pckey}`

Add the credentials of Payment Channel in PortOne. In response you'll get the maskedData of the credentials.

## Path parameters

- `key` string, required
- `pckey` string, required

## Headers

- `X-Portone-Client-Key` string
- `Authorization` string

## Request body

- object
  - `creds` object, required — The credentials JSON consisting of the data required by PSP
  - `country` string, required — The country of the PSP. e.g. - GLOBAL, VN, TH, ID
  - `environment` 'live' | 'sandbox', required — The environment of the transaction is either live OR sandbox

## Response `200`

Successful response

- object
  - `content` PSPCredsContent — The JSON object containing the PSP credentials information.
    - `MerchantUUID` string — The unique order reference of the transaction generated by PSP.
    - `PaymentChannelKey` string — The Payment Channel Key as mentioned in the PortOne docs.
    - `maskedData` object — The masked object of Payment Channel credentials
  - `message` string — The description of the API request execution result
  - `status_code` string — The status_code for API request execution result
  - `status_reason` string — The status_reason for API request execution result

## Other responses

- `401` — Failure response

---

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