chatformdocs
API referenceV1

List connected payment gateway accounts

The Cashfree, Razorpay and Stripe accounts this organization has connected for verified payments. Credentials are never returned. `formsUsing` counts forms whose working document names the account.

GET
/v1/payment-accounts

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

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/payment-accounts"
{  "accounts": [    {      "id": "string",      "provider": "cashfree",      "credentialKind": "oauth",      "environment": "test",      "label": "string",      "providerAccountId": "string",      "status": "active",      "lastError": "string",      "currencies": [        "string"      ],      "createdAt": 0,      "formsUsing": 0,      "connectedBy": {        "name": "string",        "email": "string"      },      "isDefault": true    }  ],  "enabled": true,  "providers": {    "cashfree": {      "configured": true    },    "razorpay": {      "configured": true    },    "stripe": {      "configured": true    }  }}