chatformdocs
API referenceV1

Rename a payment account, or make it the default

`label` sets the name the account is shown under in the builder. `isDefault: true` makes it the account new verified-checkout questions start on. Nothing changes at the gateway.

PATCH
/v1/payment-accounts/{id}

Authorization

AuthorizationBearer <token>

A server-side secret key. Never send one from a browser — a request carrying an Origin header is refused for this reason.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/v1/payment-accounts/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "ok": true}