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

# Update PSP Credentials

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

## Request

- Base URL: `https://api.portone.cloud`
- URL: `https://api.portone.cloud/api/merchant/{key}/add-pay-channel/{pckey}`
- Auth: none declared

Update 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.dev/portone/apis/payment-apis.md) - [All operations](https://skmtc.dev/portone/apis/payment-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/portone/apis/payment-apis/revisions/ba1cf0767f99?raw)
