---
title: "Update Payor Credentials"
method: POST
path: "/csn-referrals/payor-credentials/update"
tags: ["Clients"]
---

# Update Payor Credentials

`POST /csn-referrals/payor-credentials/update`

## Request

- Base URL: `https://api.puppeteerai.com`
- URL: `https://api.puppeteerai.com/csn-referrals/payor-credentials/update`
- Auth: none declared. Required headers: `Authorization`

Upsert the per-payor portal configuration: credentials plus billing config.

``totp_secret`` is the portal's authenticator (TOTP) base32 seed; the operator
generates the rotating 2FA code from it at login time. ``billing_provider`` and
``service_line`` are the non-secret per-payor defaults merged into every task's params.

## Headers

- `Authorization` string, required

## Request body

- UpdatePayorCredentialsInput
  - `project_id` string, required
  - `payor_slug` string, required
  - `username` string, required
  - `password` string, required
  - `totp_secret` string, nullable
  - `billing_provider` object, nullable
  - `service_line` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getpuppeteer/apis/puppeteer-core-api.md) - [All operations](https://skmtc.dev/getpuppeteer/apis/puppeteer-core-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getpuppeteer/apis/puppeteer-core-api/revisions/94b4e928b42f?raw)
